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
<!-- The Basics --> | |
<div class="container"> | |
<div class="row"> | |
<div class="eight columns"> | |
Eight columns | |
</div> | |
<div class="four columns"> | |
Four columns | |
</div> |
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
if(function_exists('be_gallery_metabox')): | |
//http://www.billerickson.net/contributions/plugins/gallery-metabox/ | |
function be_gallery_types(){ | |
//define post types | |
$post = array('post','page','cwp_theme'); | |
return $post; | |
} | |
function be_gallery_icon(){ | |
return 'icon-60'; | |
} |
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> | |
<?php | |
$terms = get_the_terms($post->ID, 'design'); | |
if ($terms && !is_wp_error($terms)) : | |
$draught_links = array(); | |
foreach ($terms as $term) { | |
echo "<li><strong>{$term->name}</strong> - {$term->description}</li>"; |
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
<?php | |
function theme_scripts(){ | |
wp_register_script('hoverizer', get_template_directory_uri() . '/library/hoverizer/jquery.hoverizr.min.js', array('jquery')); | |
wp_enqueue_script('hoverizer'); | |
} | |
function cwp_theme_footer(){ | |
?> | |
<script type="text/javascript"> | |
jQuery.noConflict(true); |
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
<?php /** | |
* ***************************************************************************** | |
* Add Metaboxes | |
* ***************************************************************************** | |
*/ | |
//add_action( 'add_meta_boxes', 'cwpt_custom_metaboxes' ); | |
function cwpt_custom_metaboxes(){ | |
add_meta_box('cwpt_preview', 'Site Preview', 'cwpt_preview_box', 'cwp_custom_options', 'normal', 'high'); |
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
<?php | |
/* admin menu */ | |
add_action('admin_menu', 'TDB_menu'); | |
//wp_theme_demo_bar.php changed line 542 to userlevel 8 > manage_options ********************************** | |
function TDB_menu() { | |
global $zv_wptdb_plugin_name; | |
$pluginpage = add_options_page($zv_wptdb_plugin_name, 'WP Theme Demo Bar', 'manage_options', __FILE__, 'TDB_options'); | |
add_action('admin_head-'.$pluginpage, 'wpthemedemobar_admin_head'); | |
} |
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
<?php | |
$jck_posts_recent = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE $wpdb->posts.post_parent = 0 AND $wpdb->posts.post_type = '$posttype' AND $wpdb->posts.post_status = 'publish' ORDER BY ID DESC LIMIT 10"); | |
if ($jck_posts_recent) { | |
$content .= "<optgroup label='Recently' style='color: #ccc; padding: 5px;'>"; | |
foreach ($jck_posts_recent as $jck_post) { | |
$selected = ($jck_post->ID == $post->ID) ? "style='color: #333;padding:3px 0 3px 6px;border-bottom:1px solid #eee;font-weight:bold;' disabled='disabled' selected='selected'" : ''; |
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
<?php | |
/** | |
* @package JCK_Quick_Jump Modified | |
* @version 1.3 | |
*/ | |
/* | |
Plugin Name: Admin Quick Jump Modified |
OlderNewer