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
<!--[if !IE]><!--><script> | |
if (/*@cc_on!@*/false) { | |
document.documentElement.className+=' ie10'; | |
} | |
</script><!--<![endif]--> |
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
#hack{ | |
color:red; /* All browsers */ | |
color:red !important;/* All browsers but IE6 */ | |
_color:red; /* Only works in IE6 */ | |
*color:red; /* IE6, IE7 */ | |
+color:red;/* Only works in IE7*/ | |
*+color:red; /* Only works in IE7 */ | |
color:red\9; /* IE6, IE7, IE8, IE9 */ | |
color:red\0; /* IE8, IE9 */ | |
color:red\9\0;/*Only works in IE9*/ |
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
## EXPIRES CACHING ## | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresByType image/jpg "access 1 year" | |
ExpiresByType image/jpeg "access 1 year" | |
ExpiresByType image/gif "access 1 year" | |
ExpiresByType image/png "access 1 year" | |
ExpiresByType text/css "access 1 month" | |
ExpiresByType application/pdf "access 1 month" | |
ExpiresByType text/x-javascript "access 1 month" |
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 echo qtrans_generateLanguageSelectCode('text'); ?> | |
// From http://www.webcreatorbox.com/en/tutorials/qtranslate-multilingual-wordpress-plugin/ |
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
add_filter('post_type_link','qtrans_convertURL');//fix custom post type URL | |
// From http://was955.wordpress.com/2013/04/01/how-to-make-qtranslate-supports-custom-post-types/ |
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
if (qtrans_getLanguage()=='en') { | |
// put your code here if the current language code is 'en' (English) | |
} elseif (qtrans_getLanguage()=='id') { | |
// put your code here if the current language code is 'id' (Indonesian) | |
} | |
// From http://www.openscriptsolution.com/cms/wordpress/how-to-get-current-language-code-by-using-qtranslate-plugin-of-wordpress/ |
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
$('a[href*=#]').click(function(){ | |
$('html, body').animate({ | |
scrollTop: $( $.attr(this, 'href') ).offset().top | |
}, 700, 'linear'); | |
return false; | |
}); |
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
/* PX to EM conversion | |
example: font-size: em(30); | |
*/ | |
@function em($target, $context: 16) { | |
@return ($target / $context) * 1em; | |
} |
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
<div class="entry-content"> | |
<?php the_post_thumbnail(); ?> | |
<?php if (get_custom_field('subtitulo')):?> | |
<p class="evento-subtitulo"><?php print_custom_field('subtitulo'); ?></p> | |
<?php endif;?> | |
<?php if (get_custom_field('fecha_inicio')):?> | |
<p><strong>Fecha:</strong> <?php print_custom_field('fecha_inicio'); ?><?php echo get_custom_field('fecha_fin') ? ' hasta el '.get_custom_field('fecha_fin') :''; ?></p> | |
<?php endif;?> | |
<?php if (get_custom_field('lugar')):?> |
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
update_option( 'image_default_link_type', 'none' ); | |
function no_atag_on_images($content){ | |
return preg_replace('/<p>\s*(<a .*>)?\s*(<img .* \/>)\s*(<\/a>)?\s*<\/p>/iU', '\1\2\3', $content); } | |
add_filter('the_content', 'no_atag_on_images'); | |
// From http://freakify.com/make-wordpress-images-non-clickable-inside-a-post/ |