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 | |
/* | |
Plugin Name: Homepage Settings for BigBang | |
Plugin URI: http://www.inboundnow.com/ | |
Description: Adds additional functionality to the big bang theme. | |
Author: David Wells | |
Author URI: http://www.inboundnow.com | |
*/ | |
// Specify Hooks/Filters |
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 wpkit_user_agent_class() { | |
global $is_lynx, $is_gecko, $is_IE, $is_winIE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_edge, $is_iphone; | |
$opera = strpos( $_SERVER['HTTP_USER_AGENT'], 'OPR'); | |
$operaneon = strpos( $_SERVER['HTTP_USER_AGENT'], 'MMS'); | |
$useragent = $_SERVER['HTTP_USER_AGENT']; | |
if( $is_lynx ) : echo ' linux'; |
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="videoWrapper videoWrapper169 js-videoWrapper"> | |
<iframe class="videoIframe js-videoIframe" src="" frameborder="0" allowTransparency="true" allowfullscreen data-src="https://www.youtube.com/embed/hgzzLIa-93c?autoplay=1& modestbranding=1&rel=0&hl=sv"></iframe> | |
<button class="videoPoster js-videoPoster" style="background-image:url(http://i2.wp.com/www.cgmeetup.net/home/wp-content/uploads/2015/05/Avengers-Age-of-Ultron-UI-Reel-1.jpg);">Play video</button> | |
</div> | |
<button onclick="videoStop()">external close button</button> | |
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 | |
$parentid = get_queried_object_id(); | |
$args = array( | |
'parent' => $parentid, | |
'childless' => false, | |
'hide_empty' => false, | |
'orderby' => 'count', | |
//'child_of' => 15, |
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
// Añade una clase revisando si una clase en otro elemento existe | |
// después hace una iteración para añadir la clase a cada elemento | |
var elemento = document.querySelector('.elemento').classList.contains('.una-clase'); | |
var li = document.querySelectorAll('.nav li'); | |
if( elemento ) { | |
for( var e = 0; e < li.length; e++ ) { | |
li[e].classList.add('.clase-a-añadir'); | |
} | |
} |
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
$colors: ( | |
"gray": '#eee', | |
"black": '#000', | |
"white": '#fff', | |
"red": '#ff4' | |
); | |
@each $color, $value in $colors { | |
.item-#{$color} { | |
background-color: $value; |
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
/** | |
* Cambia labels en el menú de administrador | |
*/ | |
function change_post_menu_label() { | |
global $menu; | |
global $submenu; | |
$menu[5][0] = 'Proyectos'; | |
$submenu['user-edit.php'][5][0] = 'Proyectos'; | |
$submenu['user-edit.php'][10][0] = 'Publicar'; |
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
# Control cache | |
<filesMatch ".(css|jpg|jpeg|png|gif|js|ico|svg)$"> | |
Header set Cache-Control "max-age=2628000, public" | |
</filesMatch> | |
# Gzip | |
<ifModule mod_gzip.c> | |
mod_gzip_on Yes | |
mod_gzip_dechunk Yes | |
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$ |
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
var date = new Date(); | |
var showDates_<?= $i ?> = [ | |
<?php if( have_rows( 'viaje_fechas' ) ) : while( have_rows( 'viaje_fechas' ) ) : the_row( 'viaje_fechas' ); ?> | |
"<?php the_sub_field( 'viaje_fecha' ); ?>", | |
<?php endwhile; reset_rows(); endif; ?> | |
]; | |
var moreDates_<?= $i ?> = [ | |
<?php while( have_rows( 'viaje_fechas' ) ) : the_row( 'viaje_fechas' ); ?> |
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
"*": | |
core: | |
telemetryConsent: "no" | |
uriHandlerRegistration: "always" | |
editor: | |
fontSize: 12 | |
invisibles: {} | |
scrollPastEnd: true | |
showIndentGuide: true | |
showInvisibles: true |
OlderNewer