Skip to content

Instantly share code, notes, and snippets.

Avatar

Jean Luc Houedanou jhouedanou

View GitHub Profile
View gist:9639307
pear config-create ${HOME} ${HOME}/.pearrc;pear install -o PEAR;echo "export PHP_PEAR_PHP_BIN=/usr/local/php53/bin/php" >> ~/.bash_profile;echo 'export PATH=${HOME}/pear:/usr/local/php53/bin:${PATH}' >> ~/.bash_profile;. ~/.bash_profile;pear channel-discover pear.drush.org;pear install drush/drush
View gist:10017771
jQuery(document).ready(function(){
// extra jQuery goodness for the Slider - March 15th 2012.
//jQuery('#myCarousel').fadeOut();
jQuery('#myCarousel').fadeIn();
/*carousel animation requested by the client*/
$("#sup").click(function () {
$('#myCarousel').fadeIn().slideDown('');
});
$("#sdow").click(function () {
$('#myCarousel').fadeOut().slideUp(2000);
View gist:10487172
<?php
$post = $wp_query->post;
if (in_category('catname')) {
include(TEMPLATEPATH.'/single-catname.php');
} elseif (in_category('glaoui')) {
include(TEMPLATEPATH.'/single-glaoui.php');
else{
include(TEMPLATEPATH.'/single_default.php');
//single_default.php etant le modele d article par defaut
}
View gist:e0d70948bff022e1efe3
<div id="wolf" class="ym-g80 ym-gr">
<ul id="treb" class="cycle-slideshow"
data-cycle-slides="li"
data-cycle-fx=carousel
data-cycle-timeout=1000
data-cycle-pause-on-hover="true">
<?php
$the_query = new WP_Query('cat=9'); ?>
<?php if ( $the_query->have_posts() ) : ?>
<!-- la boucle -->
View carousel.php
View carousel
View nav-wordpress.php
<div class="navigation">
<?php posts_nav_link('&#8734;','Page suivante','Page pr&eacute;c&eacute;dente'); ?>
</div>