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: Theme Blvd Shortcodes | |
Description: This plugin works in conjuction with the Theme Blvd framework to create shortcodes for many of the framework's internal elements. | |
Version: 1.4.1 | |
Author: Theme Blvd | |
Author URI: http://themeblvd.com | |
License: GPL2 | |
Copyright 2013 Theme Blvd |
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: Theme Blvd Shortcodes | |
Description: This plugin works in conjuction with the Theme Blvd framework to create shortcodes for many of the framework's internal elements. | |
Version: 1.4.1 | |
Author: Theme Blvd | |
Author URI: http://themeblvd.com | |
License: GPL2 | |
Copyright 2013 Theme Blvd |
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 my_post_grid() { | |
global $wp_query; | |
global $post; | |
// Open first row | |
echo '<div class="row">'; | |
$i = 1; |
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 ) { |
OlderNewer