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 | |
// http://www.zenphoto.org/svn/trunk/zp-core/functions-i18n.php | |
function setupLanguageArray() { | |
global $_zp_languages; | |
$_zp_languages = array( | |
'af' => gettext('Afrikaans'), | |
'sq_AL' => gettext('Albanian'), | |
'ar_AE' => gettext('Arabic (United Arab Emirates)'), | |
'ar_BH' => gettext('Arabic (Bahrain)'), | |
'ar_DZ' => gettext('Arabic (Algeria)'), |
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
/** | |
* Search by SKU or ID for products. Adapted from code by BenIrvin (Admin Search by ID) | |
*/ | |
if (is_admin()) : | |
add_action( 'parse_request', 'jigoshop_admin_product_search' ); | |
add_filter( 'get_search_query', 'jigoshop_admin_product_search_label' ); | |
endif; | |
function jigoshop_admin_product_search( $wp ) { | |
global $pagenow, $wpdb; |
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
div.actions a:hover { | |
background:#ca0000; | |
background-image:-webkit-gradient(linear, left top, left bottom, from(#ca0000), to(#ed1b38)); | |
background-image:-webkit-linear-gradient(top, #ca0000, #ed1b38); | |
background-image:-moz-linear-gradient(top, #ca0000, #ed1b38); | |
background-image:-ms-linear-gradient(top, #ca0000, #ed1b38); | |
background-image:-o-linear-gradient(top, #ca0000, #ed1b38); | |
background-image:linear-gradient(to bottom, #ca0000, #ed1b38); | |
} |
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
<ul class="clearfix"> | |
<li class="home"> | |
<a href="/contenido/inicio" title="Página de Inicio" class="ir">P´gina de Inicio</a> | |
</li><!-- /.home --> | |
<li class="about"> | |
<a href="/paginas/conoce-a-enrique-pena-nieto" title="Conóceme" class="primary">Conóceme</a> | |
{!-- | |
<ul> | |
<li class="enrique"><a href="/paginas/conoce-a-enrique-pena-nieto" title="Enrique Peña Nieto">Enrique Peña Nieto</a></li> |
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
<div class="tabs-contents"> | |
<div id="team-page-1" class="columns"> | |
<div class="row clearfix"> | |
<div class="photo cell left"> | |
<a href="/paginas/conoce-a-enrique-pena-nieto" title="Conoce a Enrique Peña Nieto"><img alt="" src="//dnwssx4l7gl7s.cloudfront.net/nieto/default/page/-/Enrique_Pena_Nieto_200.jpg" style="margin-left: 2px; margin-right: 2px; margin-top: 2px; margin-bottom: 2px; float: left;" /></a> | |
</div> | |
<div class="data cell right"> | |
<h4><a href="/paginas/conoce-a-enrique-pena-nieto" title="Conoce a Enrique Peña Nieto">Conoce a Enrique Peña Nieto</a></h4> | |
<p>Soy mexiquense. Nací en Atlacomulco, Estado de México, el 20 de julio de 1966. Estudié la licenciatura en Derecho en la Universidad Panamericana y la maestría en Administración de Empresas, en el Instituto Tecnológico y de Estudios Superiores de Monterrey (ITESM).Mi compromiso por México surgió desde que era muy joven, por esa razón soy orgullosamente priísta desde 1984. Con perseverancia y trabajo dentro del PRI, comencé a ad |
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
# Filename-based cache busting | |
# taken from https://github.com/h5bp/html5-boilerplate/ | |
# This rewrites file names of the form `name.123456.js` to `name.js` | |
# so that the browser doesn't use the cached version when you have | |
# updated (but not manually renamed) the file. | |
<IfModule mod_rewrite.c> | |
Options +FollowSymlinks | |
RewriteEngine On |
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
$("#searchForm").submit(function() { | |
var form = $(this); | |
form.find('[placeholder]').each(function(i, e){ | |
var el = $(e); | |
if (el.val(), el.attr('placeholder')) { | |
el.val(''); | |
} | |
}); |
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
if ($.browser.msie) { | |
$('[placeholder]').focus(function() { | |
var input = $(this); | |
input.css("color", "#333"); | |
if (input.val() == input.attr('placeholder')) { | |
input.val(''); | |
input.removeClass('placeholder'); | |
} |
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
$("#element").bind("keyup input paste", function() { | |
//Do Work Here | |
}); |
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
uploader.bind('FilesAdded', function(up, files) { | |
//console.log (up); | |
//console.log (files); | |
$.each(files, function(i, file) { | |
$('#filelist').append( | |
'<div id="' + file.id + '">' + | |
file.name + ' (' + plupload.formatSize(file.size) + ') <b></b>' + | |
'<a href="" class="remove btn error">X</a></div>' | |
); | |
$('#uploadfiles').css('display', 'initial'); |