This file contains hidden or 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 | |
/*-----------------------------------------------------------------------------------*/ | |
/* Create a new post type called course | |
/*-----------------------------------------------------------------------------------*/ | |
function create_post_type_courses() | |
{ | |
$labels = array( | |
'name' => __( 'Course'), | |
'singular_name' => __( 'Course' ), |
This file contains hidden or 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 | |
/** | |
* DEFINVE SOME VARIABLE FOR MY JS FILES | |
*/ | |
function environment_var(){ | |
?> | |
<script type="text/javascript"> | |
var templatePath = "<?php bloginfo('template_directory') ?>"; | |
</script> |
This file contains hidden or 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
$("#caroussel-arrow ul li button").click(function(){ | |
var clicked_arrow = $(this).attr('id'); | |
var current_categ = $("#caroussel-content").data('config').categ; | |
var current_offset = $("#caroussel-content").data('config').offset; | |
if(clicked_arrow == 'right' && current_offset<12){ | |
$("#caroussel-content").html("<img class='loading' src='' alt='loading'/>") | |
var new_offset = current_offset+4; | |
console.log('droite and offset '+new_offset); | |
$.get(templatePath+'/inc/caroussel.php',{ loop: current_categ , offset: new_offset},function(data){ | |
$("#caroussel-content").html(data); |
This file contains hidden or 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
$('#caroussel-content').bind('caroussel-change',function(){ | |
$('#caroussel-content figure').mouseenter(function(){ | |
$(this).children("figcaption").animate({top: "0"}, 500); | |
}).mouseleave(function(){ | |
$(this).children("figcaption").animate({top: "220px"}, 500); | |
}); | |
}); |
This file contains hidden or 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
<iframe src="http://www.facebook.com/plugins/like.php?app_id=207035349334157&href&send=false&layout=button_count&width=200&show_faces=false&action=like&colorscheme=light&font=lucida+grande&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe> |
This file contains hidden or 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
(function($){ | |
$.fn.diaporama = function(options) { | |
var defaults = { | |
delay: 3, | |
animationSpeed: "normal", | |
controls:true | |
}; | |
var options = $.extend(defaults, options); |
This file contains hidden or 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
sudo apt-get install mutter |
This file contains hidden or 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
sudo mutter --replace |
This file contains hidden or 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
sudo sh /usr/share/ati/fglrx-uninstall.sh | |
sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev* xorg-driver-fglrx |
This file contains hidden or 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
sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 wget execstack libelfg0 dh-modaliases |
OlderNewer