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 jc_get_styles(){ | |
$styles = array(); | |
$styles[0]["text"]='<span class="white">Black text on white </span>'; | |
$styles[0]["title"]='Click here to set Style 0'; | |
$styles[0]["sheet"]='style/white'; | |
$styles[1]["text"]='<span class="black">White text on black </span>'; |
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 ( is_search() || is_front_page() ) : ?> | |
<div class="entry-summary"> | |
<?php the_excerpt(); ?> | |
</div><!-- .entry-summary --> | |
<?php else : ?> | |
<div class="entry-content"> | |
<?php | |
/* translators: %s: Name of current post */ | |
the_content( sprintf( | |
__( 'Continue reading %s <span class="meta-nav">→</span>', 'twentyfourteen' ), |
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
add_action( 'customize_register', 'slug_customizer' ); | |
function slug_customizer( $customizer ){ | |
$sliders = array(); | |
if ( class_exists( 'Soliloquy_Lite' ) || class_exists( 'Soliloquy' ) ) | |
$sliders['soliloquy'] = 'Soliloquy'; | |
if ( class_exists( 'MetaSliderPlugin' ) ) | |
$sliders['metaslider'] = 'Meta Slider'; | |
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 | |
add_filter( 'shortcode_atts_gallery', 'medium_size' ); | |
function medium_size( $attr ){ | |
$attr['size'] = 'medium'; | |
return $attr; | |
} |
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 | |
// Get all the galleries in the current post | |
$galleries = get_post_galleries( get_the_ID(), false ); | |
// Count all the galleries | |
$total_gal = count( $galleries ); | |
/** | |
* count all the images | |
* @param array $array The array needed | |
* @return int returns the number of images in the post | |
*/ |
NewerOlder