background preloader

Kidzou

Facebook Twitter

Catégorie:Portail:Animation/Articles liés. Postman. Adding Custom Endpoints | WP REST API v2 Documentation. The WordPress REST API is more than just a set of default routes. It is also a tool for creating custom routes and endpoints. The WordPress front-end provides a default set of URL mappings, but the tools used to create them (e.g. the Rewrites API, as well as the query classes: WP_Query, WP_User, etc) are also available for creating your own URL mappings, or custom queries.

This document details how to create a totally custom route, with its own endpoints. We’ll first work through a short example, then expand it out to the full controller pattern as used internally. Bare Basics So you want to add custom endpoints to the API? Let’s start with a simple function that looks like this: <? To make this available via the API, we need to register a route. We need to pass in three things to register_rest_route: the namespace, the route we want, and the options. <? Right now, we’re only registering the one endpoint for the route. Namespacing Namespaces are the first part of the URL for the endpoint. <? Untitled. Developer Resources. "found": 1341, "posts": [ "site_ID": 3584907, "author": { "login": "andreazoellner", "email": false, "name": "Andrea Zoellner", "first_name": "Andrea", "last_name": "Zoellner", "nice_name": "andreazoellner", "avatar_URL": "https:\/\/0.gravatar.com\/avatar\/c294f0a8bad2d33f62dd1c2d81b38f99?

"profile_URL": "http:\/\/en.gravatar.com\/andreazoellner", "site_ID": 67702148 "date": "2016-08-11T16:00:48+00:00", "modified": "2016-08-11T00:54:25+00:00", "title": "Three Ways to Showcase Instagram Photos on Your Website", "URL": "http:\/\/en.blog.wordpress.com\/2016\/08\/11\/three-ways-to-showcase-instagram\/", "short_URL": "http:\/\/wp.me\/pf2B5-9xu", "excerpt": "<p>Discover how WordPress.com can help you share your beautiful snaps — complete with video tutorials!

"slug": "three-ways-to-showcase-instagram", "guid": "http:\/\/en.blog.wordpress.com\/? "status": "publish", "sticky": false, "password": "", "parent": false, "type": "post", "discussion": { "comments_open": true, "comment_status": "open", "pings_open": false, Ellefsen/wordpress-heroku-php - Buttons - Heroku Elements. How to setup WordPress on Heroku with the Heroku Buildpack for PHP This will set up a fresh WordPress install on Heroku with the newly released Heroku Buildpack for PHP. nginx - Nginx for serving web content.php - PHP-FPM for process management.wordpress - Downloaded from the Github WordPress Repo.MySQL - ClearDB for the MySQL backend.Sendgrid - Sendgrid for the email backend.MemCachier - MemCachier for the memcached backend.New Relic- Monitoring Getting started Use the Deploy to Heroku button, or use the old fashioned way described below.

Clone this repository into a new directory. Create your Heroku app. heroku apps:create application-name --stack cedar --buildpack --region eu --region eu is for deploying your app in the European region. or on to add this buildpack to an existing app, run heroku config:set BUILDPACK_URL= Before you push to Heroku make sure to add the following add-ons. Overview Sources.

Geofire-js/reference.md at master · firebase/geofire-js. Firebase-import/README.md at master · firebase/firebase-import. Firebase-import/README.md at master · firebase/firebase-import. React-firebase-boilerplate/README.md at master · collardeau/react-firebase-boilerplate. React-hot-redux-firebase-starter/README.md at master · douglascorrea/react-hot-redux-firebase-starter. Firebase. Le guide des pages AMP (Accelerated Mobile Pages) Si vous avez des questions sur les pages au format AMP (Accelerated Mobile Pages) dont Google est le principal acteur, lisez ce dossier qui compile absolument toutes les questions/réponses sur AMP. Article mis à jour le 23/08/2016 (AMP disponible pour le ecommerce), publié initialement le 03/03/2016 Le guide ultime des Pages AMP (Accelerated Mobile Pages) Présentation des pages accélérées pour mobiles "AMP" Qu'est-ce que AMP ? Accelerated Mobile Pages Project AMP signifie Accelerated Mobile Pages, c'est-à-dire les "pages mobiles accélérées".

Vous pouvez trouver des informations officielles sur le site principal ampproject.org (lui-même disponible au format AMP). L'objectif est que les pages AMP s'affichent quasiment instantanément, c'est-à-dire généralement 90% plus rapidement que d'habitude. Grâce à cette grande vitesse, l'expérience utilisateur sur mobile se trouve largement améliorée, ce qui d'après des études fait chuter le taux de rebond.

Comment fonctionnent les pages AMP ? Il faut : Panse / teletext.io-templates · GitLab. Prerequisites To run the examples you will need to have git and node installed. Running an example To run a sample template first clone this repository: git clone Open the directory of the template you want to use (in this case 'business') and start the webserver: cd business npm install -g http-server http-server This will start the HTTP server for the sample site. Open index.html in your favorite editor replace the account id in Txt.render() and save the file open Help!? For help or questions please check out our help section on the website or contact support@teletext.io. Components - UIkit documentation.

All kinds of useful, additional components which are not included in UIkit itself. UIkit offers some advanced components that are not included in the UIkit core framework. Usually you wouldn't use these components in your everyday website. They include stuff like nestables and datepickers, which will come in handy, if you create advanced user interfaces like administration areas. Usage After you've downloaded UIkit, you can find all additional components in separate /css and /js folders: /css /components autocomplete.css autocomplete.min.css autocomplete.gradient.css autocomplete.gradient.min.css autocomplete.almost-flat.css autocomplete.almost-flat.min.css ... /js /components autocomplete.js autocomplete.min.js ... To use one of these components, all you need to do is to add the CSS and the component's JavaScript to the header of your document.

Example Tests UIkit provides test files for every component. Go to tests. Super Freelancer. Utiliser React en moteur de templates. Vous connaissez probablement tous des moteurs de templates. En JavaScript nous avons Handlebars, Jade, EJS, Slim... Tous ces projets partent de bonnes intentions mais à l'utilisation, on peut sentir des limitations et donc de l'insatisfaction. Utiliser Handlebars par exemple, c'est un peu devoir coder tout un tas de helpers pour gérer une partie de votre affichage, ça peut vite devenir lourd. Être restreint à une syntaxe limitée par choix est un peu frustrant. Quand c'est pas ça, c'est la syntaxe du moteur qui va être lourde.

On peut en venir à regretter PHP. Blague à part, nous cherchions des langages pour refaire une partie de notre site puisque nous n'étions pas vraiment satisfaits du processus actuel (anciennement Handlebars, puis Jade). Mais finalement, pourquoi ne pas rester avec du JavaScript, purement et simplement ? C'est ce que nous avons fait avec React et JSX qui sont de plus en plus utilisés. Ce que vous voyez c'est bien du JavaScript. #Head #Body C'est bien simple. Blog Timeline – Notiz Theme. React-router/app.js at latest · reactjs/react-router. Rating-Widget: Star Review System — WordPress Plugins.

Beautiful Page, Post & Comment star ratings WYSISYG User-Friendly Configuration Google 5-star ratings - Rich-Snippets Integration (* Professional Plan) In-Settings Live Preview! (Bonus: Multi-Criteria Star Ratings Support) Multi-Criteria Ratings Stunning Top-Rated Sidebar Widget Handful of AWESOME Features to Configure the Top-Rated Items Ratings Reports (* Professional Plan) WooCommerce Full Integration - Interactive Product Star Ratings Mobile Optimized Experience - Floating Star Activator bbPress Full Integration for Forum Topics/Replies & User Reputation BuddyPress Activity and User Ratings Per-Post/Page/Product Rating Customization to Show / Hide & Active / ReadOnly Full Text Customization Developer's Friendly! Power-User Settings to Tweak Everything Advanced Customization WooCommerce Products Collection Ratings.

Thumbs Rating — WordPress Plugins. I activated the plugin and I don't see the buttons You must specify where do you want to show the thumbs within your theme, check out the Installation instructions. Can I customize the colors? Absolutely. Check out the CSS within the plugin (thumbs-rating/css/style.css) and override the classes from your theme's style.css file. When I sort the admin columns some posts disappear If the post/page has 0 votes for the column your trying to sort, WordPress hides it. It only shows the posts/pages with at least +1 or -1 votes. How do I show the number of votes in other parts of my theme? Paste the following snippets inside the loop: (Both functions accept the post ID as a parameter in case you need it) Code The shortcode [thumbs_rating_top] accept the following parameters: type: positive (default) / negativeposts_per_page: 5 (default)category: ID (default = all)show_votes: yes (default) / nopost_type: any (default) / post / page / booksshow_both: no (default) / yesorder: DESC (default) / ASC.

10 Useful WordPress Hook Hacks. Hooks are very useful in WordPress. They allow you to “hook” a custom function to an existing function, which allows you to modify WordPress’ functionality without editing core files. In this article, we have compiled 10 extremely useful ready-to-use WordPress hooks, along with examples and coding explanations. What Is A Hook? Link To achieve a particular effect on a WordPress blog, you have to modify how WordPress works. Some of these modifications are made to what WordPress developers call “core files,” files required by WordPress to work properly.

But modifying core files is always a bad idea. Still, developers need to overwrite some of WordPress’ functionality, which is why WordPress provides the Plugin API1. Hooks are one of the main building blocks of WordPress plug-ins. How to Use Hooks on Your WordPress Blog Link Unless you’re writing a plug-in, you would write hooks in the functions.php file. A hook, as you would expect, “hooks” one function to another. Hooks resources: 1. Source: Use this SQL script when changing domains on a WordPress site. Whether you’re moving from an old domain to a new domain or you’re changing from a development domain to a production domain this will work. __STEP1: always backup your database. __STEP2: chan.

Wordpress-pecl-memcached-object-cache/readme.md at master · tollmanz/wordpress-pecl-memcached-object-cache. Homepage. React Developer Tools. Apeman-react-captcha. Apeman react package for captcha component. Installation $ npm install apeman-react-captcha --save Demo Live demo is hosted on GitHub Pages. Usage "use strict"; import React from 'react'; import {ApCaptcha, ApCaptchaStyle} from 'apeman-react-captcha'; let ExampleComponent = React.createClass({ getInitialState() { return { captchaSrc: ". render() { let s = this, state = s.state; return ( <ApCaptcha src={state.captchaSrc} refreshText="refresh" onRefresh={s.refreshCaptcha}/> refreshCaptcha() { let s = this; let time = new Date().getTime(); console.log('refreshCaptcha:', time); s.setState({ captchaSrc: `.

Components ApCaptcha Props ApCaptchaSvg SVG captcha. DO NOT use svg base captcha in production, since it may be parsable by bots. ApCaptchaStyle License This software is released under the MIT License. The best way to load external JavaScript - NCZOnline. Posted at July 28, 2009 by Nicholas C. Zakas Tags: Blocking JavaScript Performance Not too long ago, I wrote about loading JavaScript without blocking by creating a dynamic <script> tag. When <script> tags are in the flow of an HTML document, the browser must stop rendering and wait for the script file to download and execute before continuing (example).

Creating a new <script> tag via JavaScript avoids this issue because it’s out of the flow of the document, so the script file is downloaded and executed without waiting. The best technique Steve Souders has explored several different ways to load JavaScript without blocking both on his blog and in his books. Create two JavaScript files. That’s it! That’s a tiny amount of code to get your bootstrapped so it will load incredibly fast (especially when gzipped). The actual code on your page ends up looking like this: Script placement Inlining the first script YUI 3 has you covered YUI 3 is designed around this very premise. Conclusion. How To: Get A Facebook Application Access Token | MasteringAPI.

Postcss/postcss. Let's Encrypt. Design Considerations: Text on Images. By Chris Coyier On I enjoyed Erik D. Kennedy's post 7 Rules for Creating Gorgeous UI (Part 2). In it, his Rule 4 is: Learn the methods of overlaying text on images. I thought we could take a look at all his points, code them up, and note anything that comes up technically. Tinting The image should be dark, and not have a lot of contrast-y edges. Picking an image is up to you, but let's say it isn't particularly dark. See the Pen Darken Image with Multiple Backgrounds by Chris Coyier (@chriscoyier) on CodePen. And while a black overlay is simplest and most versatile, you can certainly find colored overlays as well. Indeed with this method you can color however you want from the comfort of CSS: See the Pen Darken Image with Multiple Backgrounds by Chris Coyier (@chriscoyier) on CodePen.

White Text The text has to be white — I dare you to find a counter-example that’s clean and simple. I find this to be true as well, at least when trying to be classy whatsoever. Full Page Images Text-in-a-box. Manuel PHP - Définit le formateur pour le décalage horaire. (PHP 5 >= 5.5.0, PECL intl >= 3.0.0) IntlDateFormatter::setTimeZone -- datefmt_set_timezone — Définit le formateur pour le décalage horaire Description Style orienté objet publicbooleanIntlDateFormatter::setTimeZone ( mixed $zone ) booleandatefmt_set_timezone ( mixed $zone ) Liste de paramètres zone Le décalage horaire à utiliser avec ce formateur.

NULL, in which case the default timezone will be used, as specified in the ini setting date.timezone or through the function date_default_timezone_set() and as returned by date_default_timezone_get(). Valeurs de retour Retourne TRUE en cas de succès, FALSE si une erreur survient. Exemples Exemple #1 Exemple avec IntlDateFormatter::setTimeZone() <? L'exemple ci-dessus va afficher : NULL Europe/Amsterdam IntlTimeZone Europe/Lisbon DateTimeZone Europe/Paris String Europe/Rome IntlTimeZone Object ( [valid] => 1 [id] => GMT+00:30 [rawOffset] => 1800000 [currentOffset] => 1800000 ) Creating and Using a self signed SSL Certificates in debian. This document covers a very specific, limited purpose, but one that meets a common need: preventing browser, mail, and other clients from complaining about the certificates installed on your server.

Not covered is dealing with a commercial root certificate authority (CA). Instead, we will become our own root CA, and sign our own certificates. (These procedures were developed using OpenSSL 0.9.6.) Quick Start Those who want to start creating certificates right away without reading this whole document should skip to the summary at the end. Note: a self-signed cert can be created with the simple command mod-ssl-makecert, part of the Debian package libapache-mod-ssl. Background Why be our own root CA? Prerequisites You will need an installed copy of OpenSSL for this, which is available from Chances are it is already installed on your machine.

Initial Setup First, we will create a directory where we can work. Creating a Root Certificate "Warning! Signing a Certificate Stunnel. Gravity-forms-skeleton/gravity-forms-skeleton.php at master · envex/gravity-forms-skeleton. Programmatically Trigger Gravity Forms Notification - by @gravityplus. Christocracy/cordova-plugin-background-geolocation.

Ios - Fix Cordova Geolocation Ask for Location Message. Mod_ssl: The Apache Interface to OpenSSL. Creating a Self-Signed SSL Certificate. Loading CSS without blocking render by Keith Clark. Internet Explorer for Mac the Easy Way: Run IE 7, IE8, & IE9 Free in a Virtual Machine. WP Smush.it. Download Nulled AppPresser - Mobile App Framework For Free - CrackedWPPlugins.com. Page d'accueil - Mont-de-l'Enclus. SaschaGalley/grunt-phpunit. Automated Testing « Make WordPress Core. Localeconv. Cachify - Caching für WordPress. Quick Setup: Apache Worker, FastCGI, PHP-FPM and APC | Failover Web Development Blog. Getting Started with PHPUnit – The PHP Testing Framework. Transférer un site entre 2 serveurs release 2 OVH. Tweaking BatCache to play nicely with Woocommerce | Kieran Barnes.

Creating Cache Groups with vary_cache_on_function – WordPress.com VIP. WP Redis. PageSpeed System Integration - PageSpeed Module. VPS OVH – Partie 1 : Configuration | Nicolas Borde. Advanced Configuration - Web Tracking (analytics.js) Features. Flockport. Using APC with HHVM / Nginx. Installation — Navigator 1.0.0 documentation. Actions - wordpress hooks run sequence. Markjaquith/WP-Stack. Wordfence Security.