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
function remove_wp_login_styles () { | |
add_filter( 'style_loader_tag', '__return_null' ); | |
} | |
add_action( 'login_init', 'remove_wp_login_styles'); |
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
// Calendar icon | |
//------------------------// | |
.calendar-icon { | |
// Contenedor principal | |
display: inline; | |
float: left; | |
height: 14px; | |
margin: 6px 3px 0 0; | |
position: relative; |
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
function bp_component_screen_controller() { | |
global $bp; | |
//Are we in the current type | |
if ( $bp->current_component == BP_YOUR_COMPONENT_SLUG ) { | |
// The directory. | |
if ( (empty( $bp->current_action ) || ($bp->current_action == 'page')) && | |
(empty( $bp->action_variables ) || is_numeric($bp->action_variables[0]))) { |
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
<ul class="share-buttons"> | |
<li>¿Te ha gustado? Compártelo!</li> | |
<li><a href="javascript: return false;" onclick="window.open('http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php echo urlencode(get_the_title()) ?>','window','width=550,height=400')" class="btn btn-small"><i class="facebook"></i> Facebook</a></li> | |
<li><a href="javascript: return false;" onclick="window.open('https://twitter.com/share?url=<?php the_permalink();?>&text=<?php echo get_the_title() ?>&via=cuidadoinfantil','window','width=550,height=400')" class="btn btn-small"><i class="twitter"></i> Twitter</a></li> | |
<li><a href="javascript: return false;" onclick="window.open('https://plus.google.com/share?url=<?php the_permalink();?>','window','width=450,height=430')" class="btn btn-small"><i class="google"></i> Google+</a></li> | |
<? /* <li><a href="javascript: return false;" onclick="window.open('https://www.linkedin.com/cws/share?url=<?php the_permalink();?>&title=<?php echo urlencode(get_the_title())?>&original_referer=<?php |
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
function dropdown_taxonomy ( $taxonomy, $all_option = 'todo') { | |
$terms = get_terms ( $taxonomy ); | |
?> | |
<!-- START taxonomy Search --> | |
<select name="<?php echo $taxonomy ?>"> | |
<option value=''><?php echo $all_option ?></option> | |
<?php foreach($terms as $term): ?> | |
<option value="<?php echo $term->name ;?>" <?php selected(get_query_var($taxonomy), $term->name, true) ?>> | |
<?php echo $term->name ?> |
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 the filter | |
add_filter( 'template_include', 'my_custom_template'); | |
/** | |
* Returns customized templates for custom taxonomies | |
* | |
* @param string $template | |
* @return string | |
*/ | |
function my_custom_template ( $template ) { |
NewerOlder