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 | |
function merge_images($images, $config=null){ | |
if(empty($images)) return 'No images'; | |
$config = array_merge( | |
array( | |
'w' => '700', | |
'h' => '370', | |
'q' => '50', | |
'r' => false |
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
google.maps.event.addListener(map, 'tilesloaded', function() { | |
infowindow.open(map,marker); | |
}); |
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 | |
add_theme_support('post-thumbnails'); | |
add_image_size('slideshow-mini', 870, 500, true); |
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 | |
/** | |
* Trick to have the 'Portfolio' entry into the breadcrumbs | |
*/ | |
global $portfolio_id; | |
$portfolio_id = 165; | |
add_filter('wp_seo_get_bc_ancestors', 'add_portfolio_taxonomy', 10, 1); | |
function add_portfolio_taxonomy($ancestors){ | |
global $portfolio_id; | |
$ancestors[] = $portfolio_id; |
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
<style> | |
.inner,.wrapper:hover { | |
background: #e2017b; | |
background: -moz-linear-gradient(top, #e2017b 0%, #640037 100%); | |
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #e2017b), color-stop(100%, #640037) ); | |
background: -webkit-linear-gradient(top, #e2017b 0%, #640037 100%); | |
background: -o-linear-gradient(top, #e2017b 0%, #640037 100%); | |
background: -ms-linear-gradient(top, #e2017b 0%, #640037 100%); | |
background: linear-gradient(top, #e2017b 0%, #640037 100%); | |
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e2017b', endColorstr='#640037', GradientType=0 ); |
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
jQuery(document).ready(function(){ | |
jQuery('#container1 .auto-size').textAutoSize({ | |
width: 249, | |
maxSize: 200, | |
minSize: 5, | |
//testEl: jQuery('#auto-size-test'), | |
mode: "ite-binary" | |
}); | |
jQuery('#container2 .auto-size').textAutoSize({ | |
maxSize: 100, |
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 | |
/** | |
* Manage the portfolio feature | |
* @author etessore | |
* | |
*/ | |
class portfolio{ | |
const url_field_name = 'url'; | |
const customer_box_id = 'customer-box'; | |
const client_custom_post_name = 'clients'; |
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
jQuery(document).ready(function(){ | |
jQuery('#slideshow').doSlideshow(); | |
}); | |
jQuery(window).resize(function(){ | |
jQuery('#slideshow').imageResize(); | |
}); | |
jQuery.fn.doSlideshow = function() { | |
if ( |
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 | |
/** | |
* This class removes the default excerpt metabox | |
* and adds a new box with the wysiwyg editor capability | |
* @author etessore | |
*/ | |
class TinyMceExcerptCustomization{ | |
const textdomain = ''; | |
const custom_exceprt_slug = '_custom-excerpt'; |
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 | |
/** | |
* Extended Walker class for use with the | |
* Twitter Bootstrap toolkit Dropdown menus in Wordpress. | |
* Edited to support n-levels submenu. | |
* @author johnmegahan https://gist.github.com/1597994, Emanuele 'Tex' Tessore https://gist.github.com/3765640 | |
* @license CC BY 4.0 https://creativecommons.org/licenses/by/4.0/ | |
*/ | |
class BootstrapNavMenuWalker extends Walker_Nav_Menu { |
OlderNewer