Skip to content

Instantly share code, notes, and snippets.

View olirabt's full-sized avatar
👀

olirbt_ olirabt

👀
View GitHub Profile
@olirabt
olirabt / Helpers.class.php
Created November 14, 2017 10:56
wordpress-helpers
<?php
class Helpers {
protected $_post_id;
protected $_category_names_arr = array();
protected $_category_slugs_arr = array();
public function __construct($post_id = '') {
$this->setPostId($post_id);
}
@olirabt
olirabt / AnimationArticles.class.js
Created January 6, 2017 13:56
Animation au chargement d'articles en ajax (wordpress)
var AnimationArticles = function(articlesBruts, articlesContainersTab) {
this.articlesBruts = articlesBruts;
this.articlesContainersTab = articlesContainersTab;
this.newlyLoadedTab = [];
this.articlesTraites;
this.newlyLoadedContainer;
this.init();
}
Nos partenairesarray(7) {
[0]=&gt;
array(1) {
["logo_partenaire_hp"]=&gt;
string(65) "http://marketpay-dev/wp-content/uploads/2016/09/visa_logo_6-1.gif"
}
[1]=&gt;
array(1) {
["logo_partenaire_hp"]=&gt;
string(66) "http://marketpay-dev/wp-content/uploads/2016/09/visalogo12-291.png"
@olirabt
olirabt / gist:51a6e4f8968a54d66a21
Created May 29, 2015 09:13
Fonction date_heure
//TEST HEURE
function date_heure() // olivier: j'ai viré le parametre "id". On l'utilisait pas
{
date = new Date;
annee = date.getFullYear();
moi = date.getMonth();
mois = new Array('Janvier', 'F&eacute;vrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Ao&ucirc;t', 'Septembre', 'Octobre', 'Novembre', 'D&eacute;cembre');
j = date.getDate();
jour = date.getDay();
jours = new Array('Dimanche', 'Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi');