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
#! /bin/bash | |
# Author: @scrubmx | |
# https://github.com/scrubmx/ | |
# | |
# WordPress installation name | |
if [[ $# -eq 0 ]] ; then | |
printf '\n\033[0;33m%s\033[0m' 'usage: ' | |
printf '\033[0;32m%s\033[0m\n' 'mkwp name' | |
exit 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
if ( ! Modernizr.inputtypes.date ) { | |
$('input[type="date"]').datepicker({ | |
dateFormat: 'yy-mm-dd' | |
}); | |
} |
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
/** | |
* Muestra el link a la ultima pagina del archive o page (con paginación) | |
* @return string HTML link with the proper link. | |
*/ | |
function last_page_link() | |
{ | |
global $wp_query; | |
$pagename = ($wp_query->query['pagename']) ? $wp_query->query['pagename'] : ''; |
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
window.Lightbox = {}; | |
/** | |
* Contenedor donde se pone la imagen | |
* @type jQuery Wrapped DOM Element | |
*/ | |
Lightbox.$container =$('#evento-uploads-lightbox'); | |
/** | |
* Contador que indica el indice de la imagen que estamos viendo |
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
body { | |
-moz-transform: rotate(-180deg); | |
-ms-transform: rotate(-180deg); | |
-o-transform: rotate(-180deg); | |
-webkit-transform: rotate(-180deg); | |
transform: rotate(-180deg); | |
} |
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
Array.prototype.remove = function (itemToRemove) | |
{ | |
return this.filter(function (element) { | |
return element !== itemToRemove; | |
}); | |
} |
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 if ( have_posts() ) : ?> | |
<?php while ( have_posts() ) : the_post(); ?> | |
<?php get_template_part( 'templates/post', get_post_format() ); ?> | |
<?php endwhile; ?> | |
<?php wp_reset_postdata(); ?> |
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 | |
/** | |
* The base configurations of the WordPress. | |
* | |
* This file has the following configurations: MySQL settings, Table Prefix, | |
* Secret Keys, WordPress Language, and ABSPATH. You can find more information | |
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing | |
* wp-config.php} Codex page. You can get the MySQL settings from your web host. | |
* | |
* This file is used by the wp-config.php creation script during the |
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 | |
class MethodNotFoundException extends Exception {} | |
/** | |
* Concrete class (testable) | |
*/ | |
class Beneficios_Query { |
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 (! Modernizr.inputtypes.date) { | |
$('input[type=date]').datepicker(); | |
} |
OlderNewer