<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-material-design/0.5.7/css/bootstrap-material-design.min.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-material-design/0.5.7/css/ripples.min.css">
L'API de personnalisation permets de se connecter au moteur de Wordpress afin de modifier les fonctionnalités de base, ou ajouter de nouvelles fonctionnalités.
Le mot "hook" peut être traduit par "crochet" ou "hameçon". Les "hooks" sont une notion essentiel de l'API de personnalisation ( Plugin API ).
Les "hooks" sont des évenements déclenchés à un moment donné durant l'execution de l'application. On peut écouter ces évenements, et définir le code personnalisé qui sera executé au moment ou cet évenement sera déclenché par l'application.
Wordpress distingue deux types de "hooks", les actions et les filtres.
// $uniqid = $this->getRequest()->query->get('uniqid');
// $formData = $this->getRequest()->request->get($uniqid);
$premium = $this->getForm()->getData()->getPremium();
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bvm = bvm || {}; | |
bvm.as = {}; | |
bvm.as.asl = (function(jQuery){ | |
var photos_loaded = 0; | |
var photos_success = 0; | |
var photos_appended = 0; | |
var advert_photos = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="https://cdn.jsdelivr.net/rsvp/3.0.6/rsvp.min.js"></script> | |
var bvm = bvm || {}; | |
bvm.as = {}; | |
bvm.as.asl = (function(jQuery){ | |
var advert_photos = []; | |
var advert_photos_thumb = []; | |
var photos_loaded = 0; |
Il faut créer un fichier nommé 'searchform-advanced.php.php' et l'intégrer avec : get_template_part( 'advanced', 'searchform' );.
<form method="get" id="advanced-searchform" role="search" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<h3><?php _e( 'Advanced Search', 'textdomain' ); ?></h3>
<!-- PASSING THIS TO TRIGGER THE ADVANCED SEARCH RESULT PAGE FROM functions.php -->
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace UserBundle\Event; | |
use Symfony\Component\EventDispatcher\Event; | |
use UserBundle\Entity\User; | |
class ExportEvent extends Event | |
{ | |
const USER_REGISTERED = 'user.registered'; | |
protected $usr; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace riccardonar\Doctrine\DBAL\Types; | |
use Doctrine\DBAL\Platforms\AbstractPlatform; | |
use Doctrine\DBAL\Types\ConversionException; | |
use Doctrine\DBAL\Types\Type; | |
use riccardonar\IntRange; | |
class Int4RangeType extends Type | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Model; | |
use Doctrine\DBAL\Connection; | |
class AbstractModel | |
{ | |
/** | |
* @var Connection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
fn main(){ | |
mut handler := os.create('test.txt') or { panic(err) } | |
handler.write_string('Hello World!') or { panic(err) } | |
handler.close() | |
} |