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 | |
/** | |
* For themes built prior to framework 2.5, this puts | |
* the HTML markup back to the way it was originally | |
* for various framework hooks that were modified in 2.5, | |
* which changed the structural markup setup of the theme. | |
*/ | |
/*------------------------------------------------------------*/ | |
/* Header |
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 | |
/** | |
* Find all instances of image URL strings within | |
* a text block. | |
*/ | |
function themeblvd_get_images( $str ) { | |
$protocols = array('http://', 'https://'); | |
$extentions = array('.gif', '.jpeg', '.jpg', '.png'); | |
$images = array(); |
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 | |
/** | |
* Kick in mobile menu starting at mobile(>768), | |
* instead of tablet (>993) | |
*/ | |
function my_js_locals( $locals ) { | |
$locals['mobile_menu_viewport_max'] = '767'; | |
return $locals; | |
} | |
add_filter( 'themeblvd_js_locals', 'my_js_locals' ); |
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 | |
/** | |
* Put comment args back the way they were prior to framework 2.5 | |
*/ | |
function theme_comment_form_args( $args, $commenter, $req, $aria_req ) { | |
$commenter = wp_get_current_commenter(); | |
$req = get_option( 'require_name_email' ); | |
$aria_req = ( $req ? " aria-required='true'" : '' ); | |
$args = array( | |
'fields' => array( |
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 an older theme wasn't already using a custom | |
* action for meta, this will default back to the | |
* way it was before framework 2.5 | |
*/ | |
function theme_meta( $input ) { | |
// Separator | |
$sep = apply_filters( 'themeblvd_meta_separator', '<span class="sep"> / </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 | |
/** | |
* In framework 2.5, featured image size options were | |
* limited to show/hide. However, framework will still | |
* process options onto old content files (if theme has them). | |
* To put this all back in place, simply add the options | |
* back with the following. | |
*/ | |
function theme_featured_image_options( $options ) { |
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 | |
/** | |
* For older themes prior to framework 2.5, this | |
* will put the "Featured Image Display" option | |
* for single posts back how it was before. Theme | |
* framework will still handle this meta option | |
* as before. | |
*/ | |
function theme_post_meta( $setup ) { |
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 | |
/** | |
* Remove Content > Single > Sub Meta Information | |
*/ | |
themeblvd_remove_option( 'content', 'single', 'single_sub_meta' ); | |
/** | |
* Remove Sub Meta Information option from Post Options | |
*/ | |
function theme_remove_sub_meta_post_option( $setup ) { |
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 ( themeblvd_get_att( 'show_sub_meta' ) ) : ?> | |
<div class="sub-meta-wrapper"> | |
<?php themeblvd_blog_sub_meta(); ?> | |
</div><!-- .sub-meta-wrapper (end) --> | |
<?php endif; ?> |