function woothemes_add_css() { global $woo_options; wp_register_style('prettyPhoto', get_template_directory_uri() . '/includes/css/prettyPhoto.css'); wp_register_style('non-responsive', get_template_directory_uri() . '/css/non-responsive.css'); // Disable prettyPhoto css if WooCommerce is activated and user is on the product page $woocommerce_activated = is_woocommerce_activated(); $woocommerce_lightbox = get_option('woocommerce_enable_lightbox') == 'yes' ? true : false; $woocommerce_product = false; if ($woocommerce_activated) { $woocommerce_product = is_product(); } if ($woocommerce_activated && $woocommerce_product && $woocommerce_lightbox) { wp_deregister_style('prettyPhoto'); } // Conditionally load the Portfolio CSS, where needed. $load_portfolio_css = false; if (is_page_template('template-portfolio.php') || is_singular() && get_post_type() == 'portfolio' || is_post_type_archive('portfolio') || is_tax('portfolio-gallery')) { $load_portfolio_css = true; } // Allow child themes/plugins to load the portfolio CSS when they need it. $load_portfolio_css = apply_filters('woo_load_portfolio_css', $load_portfolio_css); if ($load_portfolio_css) { wp_enqueue_style('prettyPhoto'); } do_action('woothemes_add_css'); }
/** * Add 'woocommerce-active' class to the body tag * @param array $classes * @return array $classes modified to include 'woocommerce-active' class */ function storefront_woocommerce_body_class($classes) { if (is_woocommerce_activated()) { $classes[] = 'woocommerce-active'; } return $classes; }
function woothemes_add_javascript() { global $woo_options; wp_register_script('prettyPhoto', get_template_directory_uri() . '/includes/js/jquery.prettyPhoto.js', array('jquery')); wp_register_script('enable-lightbox', get_template_directory_uri() . '/includes/js/enable-lightbox.js', array('jquery', 'prettyPhoto')); wp_register_script('google-maps', 'http://maps.google.com/maps/api/js?sensor=false'); wp_register_script('google-maps-markers', get_template_directory_uri() . '/includes/js/markers.js'); wp_register_script('flexslider', get_template_directory_uri() . '/includes/js/jquery.flexslider-min.js', array('jquery')); wp_register_script('featured-slider', get_template_directory_uri() . '/includes/js/featured-slider.js', array('jquery', 'flexslider')); wp_register_script('infinite-scroll', get_template_directory_uri() . '/includes/js/jquery.infinitescroll.min.js', array('jquery')); wp_register_script('masonry', get_template_directory_uri() . '/includes/js/jquery.masonry.min.js', array('jquery')); wp_enqueue_script('third party', get_template_directory_uri() . '/includes/js/third-party.js', array('jquery')); wp_enqueue_script('tiptip', get_template_directory_uri() . '/includes/js/jquery.tiptip.min.js', array('jquery')); wp_enqueue_script('general', get_template_directory_uri() . '/includes/js/general.js', array('jquery')); // Load Google Script on Contact Form Page Template if (is_page_template('template-contact.php')) { wp_enqueue_script('google-maps'); wp_enqueue_script('google-maps-markers'); } // End If Statement // Load infinite scroll on shop page / product cats if (is_woocommerce_activated()) { if ($woo_options['woocommerce_archives_infinite_scroll'] == 'true' && (is_shop() || is_product_category())) { wp_enqueue_script('infinite-scroll'); } } // Load Masonry on the blog grid layout if (is_page_template('template-blog-grid.php')) { wp_enqueue_script('masonry'); add_action('wp_head', 'woo_fire_masonry'); } do_action('woothemes_add_javascript'); }
function storefront_header_cart() { if (is_woocommerce_activated()) { if (is_cart()) { $class = 'current-menu-item'; } else { $class = ''; } ?> <ul class="site-header-cart menu"> <li class="<?php echo esc_attr($class); ?> "> <?php storefront_cart_link(); ?> </li> <li> <?php the_widget('WC_Widget_Cart', 'title='); ?> </li> </ul> <?php } }
/** * Add 'woocommerce-active' class to the body tag * @param array $classes * @return array $classes modified to include 'woocommerce-active' class */ function eighteen_tags_woocommerce_body_class($classes) { if (is_woocommerce_activated()) { $classes[] = 'woocommerce-active'; } return $classes; }
/** * Layout adjustments * @return rearrange markup through add_action and remove_action */ function g_layout_adjustments() { if (is_woocommerce_activated()) { remove_action('woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 5); remove_action('woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 10); add_action('woocommerce_before_shop_loop_item_title', 'g_product_loop_title_price_wrap', 11); add_action('woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_rating', 2); add_action('woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_price', 1); add_action('woocommerce_after_shop_loop_item_title', 'g_product_loop_title_price_wrap_close', 2); add_action('woocommerce_before_subcategory_title', 'g_product_loop_title_price_wrap', 11); add_action('woocommerce_after_subcategory_title', 'g_product_loop_title_price_wrap_close', 2); remove_action('storefront_header', 'storefront_header_cart', 60); add_action('storefront_header', 'storefront_header_cart', 4); remove_action('storefront_header', 'storefront_product_search', 40); add_action('storefront_header', 'storefront_product_search', 3); } remove_action('storefront_header', 'storefront_secondary_navigation', 30); add_action('storefront_header', 'storefront_secondary_navigation', 6); remove_action('storefront_header', 'storefront_site_branding', 20); add_action('storefront_header', 'storefront_site_branding', 5); remove_action('woocommerce_cart_collaterals', 'woocommerce_cross_sell_display'); add_action('woocommerce_after_cart', 'woocommerce_cross_sell_display', 30); add_action('storefront_header', 'g_primary_navigation_wrapper', 49); add_action('storefront_header', 'g_primary_navigation_wrapper_close', 61); add_action('storefront_header', 'g_top_bar_wrapper', 1); add_action('storefront_header', 'g_top_bar_wrapper_close', 6); }
/** * Add 'woocommerce-active' class to the body tag * @param array $classes * @return array $classes modified to include 'woocommerce-active' class */ public function woocommerce_body_class($classes) { if (is_woocommerce_activated()) { $classes[] = 'woocommerce-active'; } return $classes; }
function woa_remove_sidebar_shop_page() { if (is_woocommerce_activated()) { if (is_shop() || is_tax('product_cat') || get_post_type() == 'product') { remove_action('storefront_sidebar', 'storefront_get_sidebar', 10); add_filter('body_class', 'woa_remove_sidebar_class_body', 10); } } }
function calibrefx_initialize_other() { if (is_woocommerce_activated()) { // Support for Woocoomerce add_theme_support('woocommerce'); remove_action('woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0); } //remove unneccesary headers remove_action('wp_head', 'wp_generator'); }
/** * Plugin initialization */ function pbo_tools_initialize() { load_plugin_textdomain('pbo-tools', false, dirname(plugin_basename(__FILE__)) . '/languages/'); require_once PBO_TOOLS_DIR . 'query-ex.php'; $SE = new SearchEverything(); if (is_woocommerce_activated()) { require_once PBO_TOOLS_DIR . 'woocommerce/products.php'; require_once PBO_TOOLS_DIR . 'woocommerce/wc-product-ex.php'; } }
/** * Display Header Cart * * @since 2.2.6 * * @uses is_woocommerce_activated() check if WooCommerce is activated */ function odin_header_cart() { if (is_woocommerce_activated()) { ?> <ul class="site-header-cart menu"> <?php odin_cart_link(); ?> <?php the_widget('WC_Widget_Cart', 'title='); ?> </ul> <?php } }
function converio_cart_shopping_bag() { if (is_woocommerce_activated()) { ?> <div class="shopping-bag"> <?php if (version_compare(WOOCOMMERCE_VERSION, "2.0.0") >= 0) { the_widget('WC_Widget_Cart', 'title='); } else { the_widget('WooCommerce_Widget_Cart', 'title='); } ?> </div> <?php } }
function et_shop_on_sale_products($args) { if (is_woocommerce_activated()) { $on_sale_query = new WP_Query(array('post_type' => 'product', 'meta_query' => array(array('key' => '_sale_price', 'value' => 0, 'compare' => '>', 'type' => 'numeric')))); if ($on_sale_query->have_posts()) { ?> <section class="et_shop-product-section et_shop-on-sale-products"> <h2 class="section-title"><?php echo wp_kses_post(__('On Sale', 'et_shop')); ?> </h2> <?php echo et_shop_do_shortcode('sale_products', array('per_page' => 4, 'columns' => 4)); ?> </section><?php } } }
/** * Constructor function. * @since 1.0.0 * @return void */ public function __construct() { /* Widget variable settings. */ $this->woo_widget_cssclass = 'widget_woo_component'; $this->woo_widget_description = __('This is a WooThemes standardized component loading widget. Intended primarily for use in the "Homepage" widget region.', 'woothemes'); $this->woo_widget_idbase = 'woo_component'; $this->woo_widget_title = __('Woo - Component', 'woothemes'); $this->woo_widget_componentslist = array('posts-timeline' => __('Posts Timeline', 'woothemes'), 'blog-posts' => __('Blog Posts', 'woothemes'), 'page-content' => __('Page Content', 'woothemes'), 'contact-area' => __('Contact Area', 'woothemes')); if (is_woocommerce_activated()) { $this->woo_widget_componentslist['hero-product'] = __('Hero Product', 'woothemes'); $this->woo_widget_componentslist['featured-products'] = __('Featured Products', 'woothemes'); } /* Widget settings. */ $widget_ops = array('classname' => $this->woo_widget_cssclass, 'description' => $this->woo_widget_description); /* Widget control settings. */ $control_ops = array('width' => 250, 'height' => 350, 'id_base' => $this->woo_widget_idbase); /* Create the widget. */ $this->WP_Widget($this->woo_widget_idbase, $this->woo_widget_title, $widget_ops, $control_ops); }
function Woo_Widget_Component() { /* Widget variable settings. */ $this->woo_widget_cssclass = 'widget_woo_component'; $this->woo_widget_idbase = 'woo_component'; $this->woo_widget_componenttitle = __('Component', 'woothemes'); $this->woo_widget_title = __('Woo - ', 'woothemes') . $this->woo_widget_componenttitle; $this->woo_widget_description = sprintf(__('This is a WooThemes standardized component widget for loading components into a custom layout.', 'woothemes')); $this->woo_widget_componentslist = array('features' => __('Features', 'woothemes'), 'portfolio' => __('Portfolio', 'woothemes'), 'blog' => __('Content/Blog', 'woothemes'), 'blog-alt' => __('Blog Alternate Layout', 'woothemes')); if (is_woocommerce_activated()) { $this->woo_widget_componentslist['shop'] = __('Shop', 'woothemes'); } /* Widget settings. */ $this->widget_ops = array('classname' => $this->woo_widget_cssclass, 'description' => $this->woo_widget_description); /* Widget control settings. */ $this->control_ops = array('width' => 250, 'height' => 350, 'id_base' => $this->woo_widget_idbase); /* Create the widget. */ $this->WP_Widget($this->woo_widget_idbase, $this->woo_widget_title, $this->widget_ops, $this->control_ops); }
/** * Constructor function. * @since 1.0.0 * @return void */ public function __construct() { /* Widget variable settings. */ $this->woo_widget_cssclass = 'widget_sensei_course_component'; $this->woo_widget_description = __('This widget will output a list of Courses - New, Featured, Free, Paid, Active, Completed.', 'woothemes-sensei'); $this->woo_widget_idbase = 'sensei_course_component'; $this->woo_widget_title = __('Sensei - Course Component', 'woothemes-sensei'); $this->woo_widget_componentslist = array('usercourses' => __('New Courses', 'woothemes-sensei'), 'featuredcourses' => __('Featured Courses', 'woothemes-sensei'), 'activecourses' => __('My Active Courses', 'woothemes-sensei'), 'completedcourses' => __('My Completed Courses', 'woothemes-sensei')); // Add support for the WooCommerce shelf. if (function_exists('is_woocommerce_activated') && is_woocommerce_activated()) { $this->woo_widget_componentslist['freecourses'] = __('Free Courses', 'woothemes-sensei'); $this->woo_widget_componentslist['paidcourses'] = __('Paid Courses', 'woothemes-sensei'); } /* Widget settings. */ $widget_ops = array('classname' => $this->woo_widget_cssclass, 'description' => $this->woo_widget_description); /* Widget control settings. */ $control_ops = array('width' => 250, 'height' => 350, 'id_base' => $this->woo_widget_idbase); /* Create the widget. */ parent::__construct($this->woo_widget_idbase, $this->woo_widget_title, $widget_ops, $control_ops); }
public function init() { wp_localize_script('etp-script', 'sfpSettings', array('shopLayout' => false, 'mobStore' => false, 'infiniteScroll' => false)); if (!is_woocommerce_activated()) { $this->css .= '.wc-18-tags-active #site-navigation > div { width: 100%; }'; return; } add_filter('eighteen_tags_loop_columns', array($this, 'columns'), 999); //Header cart display $header_cart = $this->get('header-wc-cart'); add_action('wc_18_tags_in' . $header_cart . '_nav', 'eighteen_tags_header_cart'); if (!empty($header_cart)) { add_action('wc_18_tags_in_nav', 'eighteen_tags_header_cart'); WooCommerce_18_Tags_Public::$desktop_css .= '#site-navigation.main-navigation .site-header-cart { display: none !important; }'; $this->css .= '.wc-18-tags-active #site-navigation > div { width: 100%; }'; } //Header cart color $this->css .= '.wc-18-tags-active .site-header-cart .cart-contents { color: ' . $this->get('header-wc-cart-color', '#000000') . '; }'; $is_product_archive = is_shop() || is_product_taxonomy(); $is_checkout_process = is_cart() || is_checkout(); $this->set_styles($is_product_archive, $is_checkout_process); }
function e_commerce_cart_link() { if (is_woocommerce_activated()) { ?> <div class="cart-contents cart_totals"> <a href="<?php echo esc_url(WC()->cart->get_cart_url()); ?> " title="<?php _e('View cart', 'e-commerce'); ?> "> <span class="cart-icon"></span><span class="subtotal"><?php echo wp_kses_data(WC()->cart->get_cart_subtotal()); ?> </span> <span class="count"><?php echo wp_kses_data(sprintf(_n('%d item', '%d items', WC()->cart->get_cart_contents_count(), 'e-commerce'), WC()->cart->get_cart_contents_count())); ?> </span> </a> </div> <?php } }
/** * Breadcrumbs. * * @since 2.2.0 * * @param string $homepage Homepage name. * * @return string HTML of breadcrumbs. */ function odin_breadcrumbs($homepage = '') { global $wp_query, $post, $author; !empty($homepage) || ($homepage = __('Home', 'odin')); // Default html. $current_before = '<li class="active">'; $current_after = '</li>'; if (!is_home() && !is_front_page() || is_paged()) { // First level. echo '<ol id="breadcrumbs" class="breadcrumb">'; echo '<li><a href="' . home_url() . '" rel="nofollow">' . $homepage . '</a></li>'; // Single post. if (is_single() && !is_attachment()) { // Checks if is a custom post type. if ('post' != $post->post_type) { // But if Woocommerce if ('product' === $post->post_type) { if (is_woocommerce_activated()) { $shop_page = get_post(wc_get_page_id('shop')); echo '<li><a href="' . get_permalink($shop_page) . '">' . get_the_title($shop_page) . '</a></li>'; } // Gets post type taxonomies. $taxonomy = get_object_taxonomies('product'); $taxy = 'product_cat'; } else { $post_type = get_post_type_object($post->post_type); echo '<li><a href="' . get_post_type_archive_link($post_type->name) . '">' . $post_type->label . '</a></li> '; // Gets post type taxonomies. $taxonomy = get_object_taxonomies($post_type->name); } if ($taxonomy) { $taxy = $taxonomy[0]; // Gets post terms. $terms = get_the_terms($post->ID, $taxy); $term = $terms ? array_shift($terms) : ''; // Gets parent post terms. $parent_term = get_term($term->parent, $taxy); if ($term) { if ($term->parent) { echo '<li><a href="' . get_term_link($parent_term) . '">' . $parent_term->name . '</a></li> '; } echo '<li><a href="' . get_term_link($term) . '">' . $term->name . '</a></li> '; } } } else { $category = get_the_category(); $category = $category[0]; // Gets parent post terms. $parent_cat = get_term($category->parent, 'category'); // Gets top term $cat_tree = get_category_parents($category, FALSE, ':'); $top_cat = explode(':', $cat_tree); $top_cat = $top_cat[0]; if ($category->parent) { if ($parent_cat->parent) { echo '<li><a href="' . get_term_link($top_cat, 'category') . '">' . $top_cat . '</a></li>'; } echo '<li><a href="' . get_term_link($parent_cat) . '">' . $parent_cat->name . '</a></li>'; } echo '<li><a href="' . get_category_link($category->term_id) . '">' . $category->name . '</a></li>'; } echo $current_before . get_the_title() . $current_after; // Single attachment. } elseif (is_attachment()) { $parent = get_post($post->post_parent); $category = get_the_category($parent->ID); $category = $category[0]; echo '<li><a href="' . get_category_link($category->term_id) . '">' . $category->name . '</a></li>'; echo '<li><a href="' . get_permalink($parent) . '">' . $parent->post_title . '</a></li>'; echo $current_before . get_the_title() . $current_after; // Page without parents. } elseif (is_page() && !$post->post_parent) { echo $current_before . get_the_title() . $current_after; // Page with parents. } elseif (is_page() && $post->post_parent) { $parent_id = $post->post_parent; $breadcrumbs = array(); while ($parent_id) { $page = get_page($parent_id); $breadcrumbs[] = '<li><a href="' . get_permalink($page->ID) . '">' . get_the_title($page->ID) . '</a></li>'; $parent_id = $page->post_parent; } $breadcrumbs = array_reverse($breadcrumbs); foreach ($breadcrumbs as $crumb) { echo $crumb . ' '; } echo $current_before . get_the_title() . $current_after; // Category archive. } elseif (is_category()) { $category_object = $wp_query->get_queried_object(); $category_id = $category_object->term_id; $current_category = get_category($category_id); $parent_category = get_category($current_category->parent); // Displays parent category. if (0 != $current_category->parent) { $parents = get_category_parents($parent_category, TRUE, false); $parents = str_replace('<a', '<li><a', $parents); $parents = str_replace('</a>', '</a></li>', $parents); echo $parents; } printf(__('%sCategory: %s%s', 'odin'), $current_before, single_cat_title('', false), $current_after); // Tags archive. } elseif (is_tag()) { printf(__('%sTag: %s%s', 'odin'), $current_before, single_tag_title('', false), $current_after); // Custom post type archive. } elseif (is_post_type_archive()) { // Check if Woocommerce Shop if (is_woocommerce_activated() && is_shop()) { $shop_page_id = wc_get_page_id('shop'); echo $current_before . get_the_title($shop_page_id) . $current_after; } else { echo $current_before . post_type_archive_title('', false) . $current_after; } // Search page. } elseif (is_search()) { printf(__('%sSearch result for: "%s"%s', 'odin'), $current_before, get_search_query(), $current_after); // Author archive. } elseif (is_author()) { $userdata = get_userdata($author); echo $current_before . __('Posted by', 'odin') . ' ' . $userdata->display_name . $current_after; // Archives per days. } elseif (is_day()) { echo '<li><a href="' . get_year_link(get_the_time('Y')) . '">' . get_the_time('Y') . '</a></li>'; echo '<li><a href="' . get_month_link(get_the_time('Y'), get_the_time('m')) . '">' . get_the_time('F') . '</a></li>'; echo $current_before . get_the_time('d') . $current_after; // Archives per month. } elseif (is_month()) { echo '<li><a href="' . get_year_link(get_the_time('Y')) . '">' . get_the_time('Y') . '</a></li>'; echo $current_before . get_the_time('F') . $current_after; // Archives per year. } elseif (is_year()) { echo $current_before . get_the_time('Y') . $current_after; // Archive fallback for custom taxonomies. } elseif (is_archive()) { $current_object = $wp_query->get_queried_object(); $taxonomy = get_taxonomy($current_object->taxonomy); $term_name = $current_object->name; // Displays the post type that the taxonomy belongs. if (!empty($taxonomy->object_type)) { // Get correct Woocommerce Post Type crumb if (is_woocommerce()) { $shop_page = get_post(wc_get_page_id('shop')); echo '<li><a href="' . get_permalink($shop_page) . '">' . get_the_title($shop_page) . '</a></li>'; } else { $_post_type = array_shift($taxonomy->object_type); $post_type = get_post_type_object($_post_type); echo '<li><a href="' . get_post_type_archive_link($post_type->name) . '">' . $post_type->label . '</a></li> '; } } // Displays parent term. if (0 != $current_object->parent) { $parent_term = get_term($current_object->parent, $current_object->taxonomy); echo '<li><a href="' . get_term_link($parent_term) . '">' . $parent_term->name . '</a></li>'; } echo $current_before . $taxonomy->label . ': ' . $term_name . $current_after; // 404 page. } elseif (is_404()) { echo $current_before . __('404 Error', 'odin') . $current_after; } // Gets pagination. if (get_query_var('paged')) { echo ' (' . sprintf(__('Page %s', 'abelman'), get_query_var('paged')) . ')'; } echo '</ol>'; } }
*/ require_once get_template_directory() . '/core/helpers.php'; /** * WP Custom Admin. */ require_once get_template_directory() . '/inc/admin.php'; /** * Comments loop. */ require_once get_template_directory() . '/inc/comments-loop.php'; /** * WP optimize functions. */ require_once get_template_directory() . '/inc/optimize.php'; /** * WP Hooks. */ require_once get_template_directory() . '/inc/hooks.php'; /** * Custom template tags. */ require_once get_template_directory() . '/inc/template-tags.php'; /** * WooCommerce compatibility files. */ if (is_woocommerce_activated()) { add_theme_support('woocommerce'); require get_template_directory() . '/inc/woocommerce/hooks.php'; require get_template_directory() . '/inc/woocommerce/functions.php'; require get_template_directory() . '/inc/woocommerce/template-tags.php'; }
/** * Display On Sale Products * Hooked into the `homepage` action in the homepage template * @since 1.0.0 * @return void */ function storefront_on_sale_products($args) { if (is_woocommerce_activated()) { $args = apply_filters('storefront_on_sale_products_args', array('limit' => 4, 'columns' => 4, 'title' => __('On Sale', 'storefront'))); echo '<section class="storefront-product-section storefront-on-sale-products">'; do_action('storefront_homepage_before_on_sale_products'); echo '<h2 class="section-title">' . wp_kses_post($args['title']) . '</h2>'; echo do_shortcode_func('sale_products', array('per_page' => intval($args['limit']), 'columns' => intval($args['columns']))); do_action('storefront_homepage_after_on_sale_products'); echo '</section>'; } }
function woo_options() { // THEME VARIABLES $themename = "Canvas"; $themeslug = "canvas"; // STANDARD VARIABLES. DO NOT TOUCH! $shortname = "woo"; $manualurl = 'http://docs.woothemes.com/document/' . $themeslug . '/'; //Access the WordPress Categories via an Array $woo_categories = array(); $woo_categories_obj = get_categories('hide_empty=0'); foreach ($woo_categories_obj as $woo_cat) { $woo_categories[$woo_cat->cat_ID] = $woo_cat->cat_name; } $categories_tmp = array_unshift($woo_categories, "Select a category:"); //Access the WordPress Pages via an Array $woo_pages = array(); $woo_pages_obj = get_pages('sort_column=post_parent,menu_order'); foreach ($woo_pages_obj as $woo_page) { $woo_pages[$woo_page->ID] = $woo_page->post_name; } $woo_pages_tmp = array_unshift($woo_pages, "Select a page:"); //Stylesheets Reader $alt_stylesheet_path = get_template_directory() . '/styles/'; $alt_stylesheets = array(); if (is_dir($alt_stylesheet_path)) { if ($alt_stylesheet_dir = opendir($alt_stylesheet_path)) { while (($alt_stylesheet_file = readdir($alt_stylesheet_dir)) !== false) { if (stristr($alt_stylesheet_file, ".css") !== false) { $alt_stylesheets[] = $alt_stylesheet_file; } } } } // More Options $options_pixels = array(); $other_entries = array(__('Select a number:', 'woothemes'), '0'); $other_entries_2 = array(__('Select a number:', 'woothemes')); $total_possible_numbers = intval(apply_filters('woo_total_possible_numbers', 20)); for ($i = 0; $i <= $total_possible_numbers; $i++) { $options_pixels[] = $i . 'px'; $other_entries[] = $i; $other_entries_2[] = $i; } $tumblog_options = array(__('Disabled', 'woothemes'), __('Before', 'woothemes'), __('After', 'woothemes')); $options_image_link_to = array('image' => __('The Image', 'woothemes'), 'post' => __('The Post', 'woothemes')); // Setup an array of slide-page terms for a dropdown. $slide_groups = array(); if (taxonomy_exists('slide-page')) { $args = array('echo' => 0, 'hierarchical' => 1, 'taxonomy' => 'slide-page'); $cats_dropdown = wp_dropdown_categories($args); $cats = array(); // Quick string hack to make sure we get the pages with the indents. $cats_dropdown = str_replace("<select name='cat' id='cat' class='postform' >", '', $cats_dropdown); $cats_dropdown = str_replace('</select>', '', $cats_dropdown); $cats_split = explode('</option>', $cats_dropdown); $cats[] = __('Select a Slide Group:', 'woothemes'); foreach ($cats_split as $k => $v) { $id = ''; // Get the ID value. preg_match('/value="(.*?)"/i', $v, $matches); if (isset($matches[1])) { $id = $matches[1]; $cats[$id] = trim(strip_tags($v)); } } $slide_groups = $cats; } // Below are the various theme options. /* General Settings */ $options = array(); $options[] = array("name" => __('General Settings', 'woothemes'), "icon" => "general", "type" => "heading"); $options[] = array('name' => __('Quick Start', 'woothemes'), 'type' => 'subheading'); $options[] = array("name" => __('Custom Logo', 'woothemes'), "desc" => __('Upload a logo for your theme, or specify an image URL directly.', 'woothemes'), "id" => $shortname . "_logo", "std" => "", "type" => "upload"); $options[] = array("name" => __('Custom Favicon', 'woothemes'), "desc" => __('Upload a 16px x 16px Png/Gif image that will represent your website\'s favicon.', 'woothemes'), "id" => $shortname . "_custom_favicon", "std" => "", "type" => "upload"); $options[] = array("name" => __('Tracking Code', 'woothemes'), "desc" => __('Paste your Google Analytics (or other) tracking code here. This will be added into the footer template of your theme.', 'woothemes'), "id" => $shortname . "_google_analytics", "std" => "", "type" => "textarea"); $options[] = array('name' => __('Subscription Settings', 'woothemes'), 'type' => 'subheading'); $options[] = array("name" => __('RSS URL', 'woothemes'), "desc" => __('Enter your preferred RSS URL. (Feedburner or other)', 'woothemes'), "id" => $shortname . "_feed_url", "std" => "", "type" => "text"); $options[] = array('name' => __('Display Options', 'woothemes'), 'type' => 'subheading'); $options[] = array("name" => __('Custom CSS', 'woothemes'), "desc" => __('Quickly add some CSS to your theme by adding it to this block.', 'woothemes'), "id" => $shortname . "_custom_css", "std" => "", "type" => "textarea"); $options[] = array("name" => __('Post/Page Comments', 'woothemes'), "desc" => __('Select if you want to comments on posts and/or pages.', 'woothemes'), "id" => $shortname . "_comments", "type" => "select2", "options" => array("post" => __('Posts Only', 'woothemes'), "page" => __('Pages Only', 'woothemes'), "both" => __('Pages / Posts', 'woothemes'), "none" => __('None', 'woothemes'))); $options[] = array("name" => __('Post Content', 'woothemes'), "desc" => __('Select if you want to show the full content or the excerpt on posts.', 'woothemes'), "id" => $shortname . "_post_content", "type" => "select2", "options" => array("excerpt" => __('The Excerpt', 'woothemes'), "content" => __('Full Content', 'woothemes'))); $options[] = array("name" => __('Display Breadcrumbs', 'woothemes'), "desc" => __('Display dynamic breadcrumbs on each page of your website.', 'woothemes'), "id" => $shortname . "_breadcrumbs_show", "std" => "false", "type" => "checkbox"); $options[] = array("name" => __('Pagination Style', 'woothemes'), "desc" => __('Select the style of pagination you would like to use on the blog.', 'woothemes'), "id" => $shortname . "_pagination_type", "type" => "select2", "options" => array("paginated_links" => __('Numbers', 'woothemes'), "simple" => __('Next/Previous', 'woothemes'))); /* General Styling */ $options[] = array("name" => __('General Styling', 'woothemes'), "icon" => "styling", "type" => "heading"); $options[] = array('name' => __('Base Styling', 'woothemes'), 'type' => 'subheading'); $options[] = array("name" => __('Disable ALL Custom Styling', 'woothemes'), "desc" => __('Disable output of all custom styling (CSS) from the theme options and use default styles from the stylesheet.', 'woothemes'), "id" => $shortname . "_style_disable", "std" => "false", "type" => "checkbox"); $options[] = array("name" => __('Background Options', 'woothemes'), "desc" => "", "id" => $shortname . "_background_notice", "std" => sprintf(__('Background options can also be set in <a href="%s">Appearance > Customize</a>. The options on that page <strong>override</strong> the background options bellow.', 'woothemes'), admin_url('customize.php')), "type" => "info"); $options[] = array("name" => __('Background Color', 'woothemes'), "desc" => __('Pick a custom color for site background or add a hex color code e.g. #e6e6e6', 'woothemes'), "id" => $shortname . "_style_bg", "std" => "", "type" => "color"); $options[] = array("name" => __('Background Image', 'woothemes'), "desc" => __('Upload a background image, or specify the image address of your image. (http://yoursite.com/image.png)', 'woothemes'), "id" => $shortname . "_style_bg_image", "std" => "", "type" => "upload"); $options[] = array("name" => __('Background Image Repeat', 'woothemes'), "desc" => __('Select how you want your background image to display.', 'woothemes'), "id" => $shortname . "_style_bg_image_repeat", "type" => "select", "options" => array("No Repeat" => "no-repeat", "Repeat" => "repeat", "Repeat Horizontally" => "repeat-x", "Repeat Vertically" => "repeat-y")); $options[] = array('name' => __('Background image position', 'woothemes'), 'desc' => __('Select how you would like to position the background', 'woothemes'), 'id' => $shortname . '_style_bg_image_pos', 'std' => 'top left', 'type' => 'select', 'options' => array("top left", "top center", "top right", "center left", "center center", "center right", "bottom left", "bottom center", "bottom right")); $options[] = array("name" => __('Background Attachment', 'woothemes'), "desc" => __('Select whether the background should be fixed or move when the user scrolls', 'woothemes'), "id" => $shortname . "_style_bg_image_attach", "std" => "scroll", "type" => "select", "options" => array("scroll", "fixed")); $options[] = array("name" => __('Top Border', 'woothemes'), "desc" => __('Specify border properties for the top border.', 'woothemes'), "id" => $shortname . "_border_top", "std" => array('width' => '0', 'style' => 'solid', 'color' => '#000000'), "type" => "border"); /* $options[] = array( 'name' => __( 'Links', 'woothemes' ), 'type' => 'subheading' ); */ $options[] = array("name" => __('Link Color', 'woothemes'), "desc" => __('Pick a custom color for links or add a hex color code e.g. #697e09', 'woothemes'), "id" => $shortname . "_link_color", "std" => "", "type" => "color"); $options[] = array("name" => __('Link Hover Color', 'woothemes'), "desc" => __('Pick a custom color for links hover or add a hex color code e.g. #697e09', 'woothemes'), "id" => $shortname . "_link_hover_color", "std" => "", "type" => "color"); $options[] = array("name" => __('Button Color', 'woothemes'), "desc" => __('Pick a custom color for buttons or add a hex color code e.g. #697e09', 'woothemes'), "id" => $shortname . "_button_color", "std" => "", "type" => "color"); $options[] = array("name" => __('Button Hover Color', 'woothemes'), "desc" => __('Pick a custom hover color for buttons or add a hex color code e.g. #697e09', 'woothemes'), "id" => $shortname . "_button_hover_color", "std" => "", "type" => "color"); $options[] = array("name" => __('General Border Color', 'woothemes'), "desc" => __('Pick a custom color for general border colors or add a hex color code e.g. #e6e6e6', 'woothemes'), "id" => $shortname . "_style_border", "std" => "", "type" => "color"); /* Misc Typography */ $options[] = array('name' => __('Misc Typography', 'woothemes'), 'type' => 'subheading'); $options[] = array("name" => __('Misc Typography', 'woothemes'), "desc" => "", "id" => $shortname . "_general_font_notice", "std" => __('The misc typography options below only control typography not covered by other typography options. You can control specific typography on post title, post content, widget titles etc. in the other sections in the options panel.', 'woothemes'), "type" => "info"); $options[] = array("name" => __('General Text Font Style', 'woothemes'), "desc" => __('Select typography for general text.', 'woothemes'), "id" => $shortname . "_font_text", "std" => array('size' => '14', 'unit' => 'px', 'face' => 'Helvetica, Arial, sans-serif', 'style' => 'thin', 'color' => '#555555'), "type" => "typography"); $options[] = array("name" => __('H1 Font Style', 'woothemes'), "desc" => __('Select the typography you want for header H1.', 'woothemes'), "id" => $shortname . "_font_h1", "std" => array('size' => '28', 'unit' => 'px', 'face' => 'Helvetica, Arial, sans-serif', 'style' => 'bold', 'color' => '#222222'), "type" => "typography"); $options[] = array("name" => __('H2 Font Style', 'woothemes'), "desc" => __('Select the typography you want for header H2.', 'woothemes'), "id" => $shortname . "_font_h2", "std" => array('size' => '24', 'unit' => 'px', 'face' => 'Helvetica, Arial, sans-serif', 'style' => 'bold', 'color' => '#222222'), "type" => "typography"); $options[] = array("name" => __('H3 Font Style', 'woothemes'), "desc" => __('Select the typography you want for header H3.', 'woothemes'), "id" => $shortname . "_font_h3", "std" => array('size' => '20', 'unit' => 'px', 'face' => 'Helvetica, Arial, sans-serif', 'style' => 'bold', 'color' => '#222222'), "type" => "typography"); $options[] = array("name" => __('H4 Font Style', 'woothemes'), "desc" => __('Select the typography you want for header H4.', 'woothemes'), "id" => $shortname . "_font_h4", "std" => array('size' => '16', 'unit' => 'px', 'face' => 'Helvetica, Arial, sans-serif', 'style' => 'bold', 'color' => '#222222'), "type" => "typography"); $options[] = array("name" => __('H5 Font Style', 'woothemes'), "desc" => __('Select the typography you want for header H5.', 'woothemes'), "id" => $shortname . "_font_h5", "std" => array('size' => '14', 'unit' => 'px', 'face' => 'Helvetica, Arial, sans-serif', 'style' => 'bold', 'color' => '#222222'), "type" => "typography"); $options[] = array("name" => __('H6 Font Style', 'woothemes'), "desc" => __('Select the typography you want for header H6.', 'woothemes'), "id" => $shortname . "_font_h6", "std" => array('size' => '12', 'unit' => 'px', 'face' => 'Helvetica, Arial, sans-serif', 'style' => 'bold', 'color' => '#222222'), "type" => "typography"); $options[] = array("name" => __('Layout', 'woothemes'), "icon" => "styling", "type" => "heading"); $options[] = array('name' => __('General Layout', 'woothemes'), 'type' => 'subheading'); $options[] = array("name" => __('Layout Manager', 'woothemes'), "desc" => "", "id" => $shortname . "_layout_manager_notice", "std" => sprintf(__('Below you can set the general site width and layout. To control the width of the columns in your themes layout, please visit the <a href="%s">Layout Manager</a>.', 'woothemes'), admin_url('admin.php?page=woo-layout-manager')), "type" => "info"); $options[] = array("name" => __('Site Width', 'woothemes'), "desc" => "Set the width (in px) that you would like your content column to be (recommended max-width is 1600px)", "id" => $shortname . "_layout_width", "std" => "960", "min" => "600", "max" => "1600", "increment" => "10", "type" => 'slider'); $images_dir = get_template_directory_uri() . '/functions/images/'; $options[] = array("name" => __('Main Layout', 'woothemes'), "desc" => __('Select main content and sidebar alignment. Choose between 1, 2 or 3 column layout.', 'woothemes'), "id" => $shortname . "_layout", "std" => "two-col-left", "type" => "images", "options" => array('one-col' => $images_dir . '1c.png', 'two-col-left' => $images_dir . '2cl.png', 'two-col-right' => $images_dir . '2cr.png', 'three-col-left' => $images_dir . '3cl.png', 'three-col-middle' => $images_dir . '3cm.png', 'three-col-right' => $images_dir . '3cr.png')); $url = get_template_directory_uri() . '/functions/images/'; $options[] = array("name" => __('Footer Widget Areas', 'woothemes'), "desc" => __('Select how many footer widget areas you want to display.', 'woothemes'), "id" => $shortname . "_footer_sidebars", "std" => "4", "type" => "images", "options" => array('0' => $url . 'footer-widgets-0.png', '1' => $url . 'footer-widgets-1.png', '2' => $url . 'footer-widgets-2.png', '3' => $url . 'footer-widgets-3.png', '4' => $url . 'footer-widgets-4.png')); $options[] = array("name" => __('Enable Fixed Mobile Layout', 'woothemes'), "desc" => __('Canvas is responsive, meaning it adapts its layout on mobile devices. Enabling Fixed Layout will remove the responsive layout on mobile devices.', 'woothemes'), "id" => $shortname . "_remove_responsive", "std" => "false", "type" => "checkbox"); /* Boxed Layout */ $options[] = array('name' => __('Boxed Layout', 'woothemes'), 'type' => 'subheading'); $options[] = array("name" => __('Boxed Layout Style', 'woothemes'), "desc" => __('Enable the boxed layout style.', 'woothemes'), "id" => $shortname . "_layout_boxed", "std" => "false", "type" => "checkbox"); $options[] = array("name" => __('Box Background Color', 'woothemes'), "desc" => __('Pick a custom color for the boxed background or add a hex color code e.g. #ffffff', 'woothemes'), "id" => $shortname . "_style_box_bg", "std" => "#ffffff", "type" => "color"); $options[] = array("name" => __('Box Margin', 'woothemes'), "desc" => __('Enter an integer value i.e. 20 for the desired top and bottom margin.', 'woothemes'), "id" => $shortname . "_box_margin", "std" => "", "type" => array(array('id' => $shortname . '_box_margin_top', 'type' => 'text', 'std' => '0', 'meta' => __('Top', 'woothemes')), array('id' => $shortname . '_box_margin_bottom', 'type' => 'text', 'std' => '0', 'meta' => __('Bottom', 'woothemes')))); $options[] = array("name" => __('Box Border Top/Bottom', 'woothemes'), "desc" => __('Specify border properties for the boxed layout.', 'woothemes'), "id" => $shortname . "_box_border_tb", "std" => array('width' => '1', 'style' => 'solid', 'color' => '#dbdbdb'), "type" => "border"); $options[] = array("name" => __('Box Border Left/Right', 'woothemes'), "desc" => __('Specify border properties for the boxed layout.', 'woothemes'), "id" => $shortname . "_box_border_lr", "std" => array('width' => '1', 'style' => 'solid', 'color' => '#dbdbdb'), "type" => "border"); $options[] = array("name" => __('Box Rounded Corners', 'woothemes'), "desc" => __('Set amount of pixels for border radius (rounded corners). Will only show in CSS3 compatible browser.', 'woothemes'), "id" => $shortname . "_box_border_radius", "type" => "select", "std" => "0px", "options" => $options_pixels); $options[] = array("name" => __('Box Shadow', 'woothemes'), "desc" => __('Enable box shadow. Will only show in CSS3 compatible browser.', 'woothemes'), "id" => $shortname . "_box_shadow", "std" => "true", "type" => "checkbox"); /* Full width Layout */ $options[] = array('name' => __('Full Width Layout', 'woothemes'), 'type' => 'subheading'); $options[] = array("name" => __('Full Width Layout', 'woothemes'), "desc" => "", "id" => $shortname . "_full_width_notice", "std" => __('Below you can enable full width header and footer areas and set the background. You can set the styling options for the full width navigation under the Primary Navigation options. Please note that Boxed Layout must be disabled.', 'woothemes'), "type" => "info"); $options[] = array("name" => __('Enable Full Width Header', 'woothemes'), "desc" => __('Set header container to display full width.', 'woothemes'), "id" => $shortname . "_header_full_width", "std" => "false", "type" => "checkbox"); $options[] = array("name" => __('Header Background Color', 'woothemes'), "desc" => __('Select the background color you want for your full width header.', 'woothemes'), "id" => $shortname . "_full_header_full_width_bg", "std" => "", "type" => "color"); $options[] = array("name" => __('Header Background Image', 'woothemes'), "desc" => __('Upload a background image, or specify the image address of your image (http://yoursite.com/image.png). <br/>Image should be same width as your site width.', 'woothemes'), "id" => $shortname . "_full_header_bg_image", "std" => "", "type" => "upload"); $options[] = array("name" => __('Header Background Image Repeat', 'woothemes'), "desc" => __('Select how you want your background image to display.', 'woothemes'), "id" => $shortname . "_full_header_bg_image_repeat", "type" => "select", "options" => array("No Repeat" => "no-repeat", "Repeat" => "repeat", "Repeat Horizontally" => "repeat-x", "Repeat Vertically" => "repeat-y")); $options[] = array("name" => __('Enable Full Width Footer', 'woothemes'), "desc" => __('Set footer widget area and footer container to display full width.', 'woothemes'), "id" => $shortname . "_footer_full_width", "std" => "false", "type" => "checkbox"); $options[] = array("name" => __('Footer Widget Area Background Color', 'woothemes'), "desc" => __('Select the background color you want for your full width widget area.', 'woothemes'), "id" => $shortname . "_foot_full_width_widget_bg", "std" => "#f0f0f0", "type" => "color"); $options[] = array("name" => __('Footer Background Color', 'woothemes'), "desc" => __('Select the background color you want for your full width footer.', 'woothemes'), "id" => $shortname . "_footer_full_width_bg", "std" => "#222222", "type" => "color"); $options[] = array("name" => __('Header & Footer', 'woothemes'), "icon" => "styling", "type" => "heading"); /* Header Styling */ $options[] = array('name' => __('Header', 'woothemes'), 'type' => 'subheading'); $options[] = array("name" => __('Header Background Color', 'woothemes'), "desc" => __('Pick a custom color for header background or add a hex color code e.g. #e6e6e6', 'woothemes'), "id" => $shortname . "_header_bg", "std" => "", "type" => "color"); $options[] = array("name" => __('Header Background Image', 'woothemes'), "desc" => __('Upload a background image, or specify the image address of your image (http://yoursite.com/image.png). <br/>Image should be same width as your site width.', 'woothemes'), "id" => $shortname . "_header_bg_image", "std" => "", "type" => "upload"); $options[] = array("name" => __('Header Background Image Repeat', 'woothemes'), "desc" => __('Select how you want your background image to display.', 'woothemes'), "id" => $shortname . "_header_bg_image_repeat", "type" => "select", "options" => array("No Repeat" => "no-repeat", "Repeat" => "repeat", "Repeat Horizontally" => "repeat-x", "Repeat Vertically" => "repeat-y")); $options[] = array("name" => __('Header Border', 'woothemes'), "desc" => __('Specify border properties for the header.', 'woothemes'), "id" => $shortname . "_header_border", "std" => array('width' => '0', 'style' => 'solid', 'color' => ''), "type" => "border"); $options[] = array("name" => __('Header Margin Top/Bottom', 'woothemes'), "desc" => __('Enter an integer value i.e. 20 for the desired header margin.', 'woothemes'), "id" => $shortname . "_header_margin_tb", "std" => "", "type" => array(array('id' => $shortname . '_header_margin_top', 'type' => 'text', 'std' => '0', 'meta' => __('Top', 'woothemes')), array('id' => $shortname . '_header_margin_bottom', 'type' => 'text', 'std' => '0', 'meta' => __('Bottom', 'woothemes')))); $options[] = array("name" => __('Header Padding Top/Bottom', 'woothemes'), "desc" => __('Enter an integer value i.e. 20 for the desired header padding.', 'woothemes'), "id" => $shortname . "_header_padding_tb", "std" => "", "type" => array(array('id' => $shortname . '_header_padding_top', 'type' => 'text', 'std' => '40', 'meta' => __('Top', 'woothemes')), array('id' => $shortname . '_header_padding_bottom', 'type' => 'text', 'std' => '40', 'meta' => __('Bottom', 'woothemes')))); $options[] = array("name" => __('Header Padding Left/Right', 'woothemes'), "desc" => __('Enter an integer value i.e. 20 for the desired header padding.', 'woothemes'), "id" => $shortname . "_header_padding_lr", "std" => "", "type" => array(array('id' => $shortname . '_header_padding_left', 'type' => 'text', 'std' => '', 'meta' => __('Left', 'woothemes')), array('id' => $shortname . '_header_padding_right', 'type' => 'text', 'std' => '', 'meta' => __('Right', 'woothemes')))); $options[] = array("name" => __('Site Title Font Style', 'woothemes'), "desc" => __('Select typography for site title.', 'woothemes'), "id" => $shortname . "_font_logo", "std" => array('size' => '40', 'unit' => 'px', 'face' => 'Helvetica, Arial, sans-serif', 'style' => 'bold', 'color' => '#222222'), "type" => "typography"); $options[] = array("name" => __('Site Description Font Style', 'woothemes'), "desc" => __('Select typography for site description.', 'woothemes'), "id" => $shortname . "_font_desc", "std" => array('size' => '13', 'unit' => 'px', 'face' => 'Helvetica, Arial, sans-serif', 'style' => 'thin', 'color' => '#999999'), "type" => "typography"); /* Footer */ $options[] = array('name' => __('Footer', 'woothemes'), 'type' => 'subheading'); $options[] = array("name" => __('Footer Font Style', 'woothemes'), "desc" => __('Select typography for footer.', 'woothemes'), "id" => $shortname . "_footer_font", "std" => array('size' => '13', 'unit' => 'px', 'face' => 'Helvetica, Arial, sans-serif', 'style' => 'thin', 'color' => '#999999'), "type" => "typography"); $options[] = array("name" => __('Footer Background', 'woothemes'), "desc" => __('Select the background color you want for your footer.', 'woothemes'), "id" => $shortname . "_footer_bg", "std" => "", "type" => "color"); $options[] = array("name" => __('Footer Border Top', 'woothemes'), "desc" => __('Specify top border properties for the footer.', 'woothemes'), "id" => $shortname . "_footer_border_top", "std" => array('width' => '1', 'style' => 'solid', 'color' => '#dbdbdb'), "type" => "border"); $options[] = array("name" => __('Footer Border Bottom', 'woothemes'), "desc" => __('Specify bottom border properties for the footer.', 'woothemes'), "id" => $shortname . "_footer_border_bottom", "std" => array('width' => '0', 'style' => 'solid', 'color' => ''), "type" => "border"); $options[] = array("name" => __('Footer Border Left/Right', 'woothemes'), "desc" => __('Specify left/right border properties for the footer.', 'woothemes'), "id" => $shortname . "_footer_border_lr", "std" => array('width' => '0', 'style' => 'solid', 'color' => ''), "type" => "border"); $options[] = array("name" => __('Footer Rounded Corners', 'woothemes'), "desc" => __('Set amount of pixels for border radius (rounded corners). Will only show in CSS3 compatible browser.', 'woothemes'), "id" => $shortname . "_footer_border_radius", "type" => "select", "options" => $options_pixels); $options[] = array("name" => __('Enable Custom Footer (Left)', 'woothemes'), "desc" => __('Activate to add the custom text below to the theme footer.', 'woothemes'), "id" => $shortname . "_footer_left", "class" => "collapsed", "std" => "false", "type" => "checkbox"); $options[] = array("name" => __('Custom Text (Left)', 'woothemes'), "desc" => __('Custom HTML and Text that will appear in the footer of your theme.', 'woothemes'), "id" => $shortname . "_footer_left_text", "class" => "hidden last", "std" => "<p></p>", "type" => "textarea"); $options[] = array("name" => __('Enable Custom Footer (Right)', 'woothemes'), "desc" => __('Activate to add the custom text below to the theme footer.', 'woothemes'), "id" => $shortname . "_footer_right", "class" => "collapsed", "std" => "false", "type" => "checkbox"); $options[] = array("name" => __('Custom Text (Right)', 'woothemes'), "desc" => __('Custom HTML and Text that will appear in the footer of your theme.', 'woothemes'), "id" => $shortname . "_footer_right_text", "class" => "hidden last", "std" => "<p></p>", "type" => "textarea"); $options[] = array("name" => __('Navigation', 'woothemes'), "icon" => "styling", "type" => "heading"); /* Top Navigation */ $options[] = array('name' => __('Top Navigation', 'woothemes'), 'type' => 'subheading'); $options[] = array("name" => __('Top Navigation - Background Color', 'woothemes'), "desc" => sprintf(__('Pick a custom color for the top navigation background or add a hex color code e.g. #000.<br />Top Navigation can be added with <a href="%s">WP Menus</a>', 'woothemes'), admin_url('nav-menus.php')), "id" => $shortname . "_top_nav_bg", "std" => "", "type" => "color"); $options[] = array("name" => __('Top Navigation - Hover / Sub Menu Color', 'woothemes'), "desc" => __('Pick a custom color for the top navigation hover text color or add a hex color code e.g. #000', 'woothemes'), "id" => $shortname . "_top_nav_hover", "std" => "", "type" => "color"); $options[] = array("name" => __('Top Navigation - Hover / Sub Menu Background Color', 'woothemes'), "desc" => __('Pick a custom color for the top navigation hover background color or add a hex color code e.g. #000', 'woothemes'), "id" => $shortname . "_top_nav_hover_bg", "std" => "", "type" => "color"); $options[] = array("name" => __('Top Navigation Font Style', 'woothemes'), "desc" => __('Select typography for navigation.', 'woothemes'), "id" => $shortname . "_top_nav_font", "std" => array('size' => '12', 'unit' => 'px', 'face' => 'Helvetica, Arial, sans-serif', 'style' => 'thin', 'color' => '#ddd'), "type" => "typography"); /* Primary Navigation */ $options[] = array('name' => __('Primary Navigation', 'woothemes'), 'type' => 'subheading'); $options[] = array("name" => __('Background Color', 'woothemes'), "desc" => __('Pick a custom color for the navigation background or add a hex color code e.g. #cccccc', 'woothemes'), "id" => $shortname . "_nav_bg", "std" => "", "type" => "color"); $options[] = array("name" => __('Navigation Font Style', 'woothemes'), "desc" => __('Select typography for navigation.', 'woothemes'), "id" => $shortname . "_nav_font", "std" => array('size' => '14', 'unit' => 'px', 'face' => 'Helvetica, Arial, sans-serif', 'style' => '', 'color' => '#666666'), "type" => "typography"); $options[] = array("name" => __('Hover / Sub Menu Text Color', 'woothemes'), "desc" => __('Pick a custom color for the navigation hover / sub menu text color or add a hex color code e.g. #eeeeee', 'woothemes'), "id" => $shortname . "_nav_hover", "std" => "", "type" => "color"); $options[] = array("name" => __('Hover / Sub Menu Background Color', 'woothemes'), "desc" => __('Pick a custom color for the navigation hover / sub menu background color or add a hex color code e.g. #eeeeee', 'woothemes'), "id" => $shortname . "_nav_hover_bg", "std" => "", "type" => "color"); $options[] = array("name" => __('Divider', 'woothemes'), "desc" => __('Specify border properties for the menu items dividers.', 'woothemes'), "id" => $shortname . "_nav_divider_border", "std" => array('width' => '0', 'style' => 'solid', 'color' => '#dbdbdb'), "type" => "border"); $options[] = array("name" => __('Dropdown menu border', 'woothemes'), "desc" => __('Specify border properties for the navigation dropdown menu.', 'woothemes'), "id" => $shortname . "_nav_dropdown_border", "std" => array('width' => '0', 'style' => 'solid', 'color' => '#dbdbdb'), "type" => "border"); $options[] = array("name" => __('Border Top', 'woothemes'), "desc" => __('Specify border properties for the navigation.', 'woothemes'), "id" => $shortname . "_nav_border_top", "std" => array('width' => '0', 'style' => 'solid', 'color' => '#dbdbdb'), "type" => "border"); $options[] = array("name" => __('Border Bottom', 'woothemes'), "desc" => __('Specify border properties for the navigation.', 'woothemes'), "id" => $shortname . "_nav_border_bot", "std" => array('width' => '0', 'style' => 'solid', 'color' => '#dbdbdb'), "type" => "border"); $options[] = array("name" => __('Border Left/Right', 'woothemes'), "desc" => __('Specify border properties for the navigation.', 'woothemes'), "id" => $shortname . "_nav_border_lr", "std" => array('width' => '0', 'style' => 'solid', 'color' => '#dbdbdb'), "type" => "border"); $options[] = array("name" => __('Navigation Rounded Corners', 'woothemes'), "desc" => __('Set amount of pixels for border radius (rounded corners). Will only show in CSS3 compatible browser.', 'woothemes'), "id" => $shortname . "_nav_border_radius", "type" => "select", "std" => "0px", "options" => $options_pixels); $options[] = array("name" => __('Navigation Margin Top/Bottom', 'woothemes'), "desc" => __('Enter an integer value i.e. 20 for the desired header margin.', 'woothemes'), "id" => $shortname . "_nav_margin_tb", "std" => "", "type" => array(array('id' => $shortname . '_nav_margin_top', 'type' => 'text', 'std' => '', 'meta' => __('Top', 'woothemes')), array('id' => $shortname . '_nav_margin_bottom', 'type' => 'text', 'std' => '', 'meta' => __('Bottom', 'woothemes')))); $options[] = array("name" => __('Enable Subscribe Icon', 'woothemes'), "desc" => __('Enable the Subscribe to RSS icon in right navigation.', 'woothemes'), "id" => $shortname . "_nav_rss", "std" => "false", "type" => "checkbox"); $options[] = array("name" => __('Enable E-mail Icon', 'woothemes'), "desc" => __('Enter an URL for the mail icon in the right navigation', 'woothemes'), "id" => $shortname . "_subscribe_email", "std" => "", "type" => "text"); $options[] = array("name" => __('Enable Search', 'woothemes'), "desc" => __('Enable Search in the right navigation.', 'woothemes'), "id" => $shortname . "_nav_search", "std" => "false", "type" => "checkbox"); $options[] = array("name" => __('Posts', 'woothemes'), "icon" => "styling", "type" => "heading"); /* Post Styling */ $options[] = array('name' => __('Posts / Pages', 'woothemes'), 'type' => 'subheading'); $options[] = array("name" => __('Post/Page Title Font Style', 'woothemes'), "desc" => __('Specify typography for post/page title text.', 'woothemes'), "id" => $shortname . "_font_post_title", "std" => array('size' => '28', 'unit' => 'px', 'face' => 'Helvetica, Arial, sans-serif', 'style' => 'bold', 'color' => '#222222'), "type" => "typography"); $options[] = array("name" => __('Post Meta Font Style', 'woothemes'), "desc" => __('Specify typography for post meta.', 'woothemes'), "id" => $shortname . "_font_post_meta", "std" => array('size' => '12', 'unit' => 'px', 'face' => 'Helvetica, Arial, sans-serif', 'style' => 'thin', 'color' => '#999999'), "type" => "typography"); $options[] = array("name" => __('Post/Page Text Font Style', 'woothemes'), "desc" => __('Specify typography for post/page content text.', 'woothemes'), "id" => $shortname . "_font_post_text", "std" => array('size' => '15', 'unit' => 'px', 'face' => 'Helvetica, Arial, sans-serif', 'style' => '300', 'color' => '#555555'), "type" => "typography"); $options[] = array("name" => __('Post More (bottom) Font Style', 'woothemes'), "desc" => __('Specify typography for post bottom text.', 'woothemes'), "id" => $shortname . "_font_post_more", "std" => array('size' => '13', 'unit' => 'px', 'face' => 'Helvetica, Arial, sans-serif', 'style' => 'thin', 'color' => ''), "type" => "typography"); $options[] = array("name" => __('Post More (bottom) Border Top', 'woothemes'), "desc" => __('Specify border properties for post more section.', 'woothemes'), "id" => $shortname . "_post_more_border_top", "std" => array('width' => '0', 'style' => 'solid', 'color' => '#e6e6e6'), "type" => "border"); $options[] = array("name" => __('Post More (bottom) Border Bottom', 'woothemes'), "desc" => __('Specify border properties for post more section.', 'woothemes'), "id" => $shortname . "_post_more_border_bottom", "std" => array('width' => '0', 'style' => 'solid', 'color' => '#e6e6e6'), "type" => "border"); $options[] = array("name" => __('Post Author Background Color', 'woothemes'), "desc" => __('Pick a custom background color for the post author section or add a hex color code e.g. #fafafa', 'woothemes'), "id" => $shortname . "_post_author_bg", "std" => "#fafafa", "type" => "color"); $options[] = array("name" => __('Post Author Border Top', 'woothemes'), "desc" => __('Specify border properties for post author section.', 'woothemes'), "id" => $shortname . "_post_author_border_top", "std" => array('width' => '1', 'style' => 'solid', 'color' => '#e6e6e6'), "type" => "border"); $options[] = array("name" => __('Post Author Border Bottom', 'woothemes'), "desc" => __('Specify border properties for post author section.', 'woothemes'), "id" => $shortname . "_post_author_border_bottom", "std" => array('width' => '1', 'style' => 'solid', 'color' => '#e6e6e6'), "type" => "border"); $options[] = array("name" => __('Post Author Border Left/Right', 'woothemes'), "desc" => __('Specify border properties for the navigation.', 'woothemes'), "id" => $shortname . "_post_author_border_lr", "std" => array('width' => '1', 'style' => 'solid', 'color' => '#e6e6e6'), "type" => "border"); $options[] = array("name" => __('Post Author Rounded Corners', 'woothemes'), "desc" => __('Set amount of pixels for border radius (rounded corners). Will only show in CSS3 compatible browser.', 'woothemes'), "id" => $shortname . "_post_author_border_radius", "type" => "select", "std" => "5px", "options" => $options_pixels); $options[] = array("name" => __('Disable Post Author', 'woothemes'), "desc" => __('Disable post author below post?', 'woothemes'), "id" => $shortname . "_disable_post_author", "std" => "false", "type" => "checkbox"); $options[] = array("name" => __('Comments Background Color (even threads)', 'woothemes'), "desc" => __('Pick a custom background color for the post comments even threads or add a hex color code e.g. #fafafa', 'woothemes'), "id" => $shortname . "_post_comments_bg", "std" => "", "type" => "color"); $options[] = array("name" => __('Page Navigation Font Style', 'woothemes'), "desc" => __('Select typography for Page Navigation text.', 'woothemes'), "id" => $shortname . "_pagenav_font", "std" => array('size' => '13', 'unit' => 'px', 'face' => 'Helvetica, Arial, sans-serif', 'style' => 'thin', 'color' => '#888'), "type" => "typography"); $options[] = array("name" => __('Page Navigation Background Color', 'woothemes'), "desc" => __('Pick a custom color for the Page Navigation background or add a hex color code e.g. #fafafa', 'woothemes'), "id" => $shortname . "_pagenav_bg", "std" => "", "type" => "color"); $options[] = array("name" => __('Page Navigation Border Top', 'woothemes'), "desc" => __('Specify border properties for Page Navigation section.', 'woothemes'), "id" => $shortname . "_pagenav_border_top", "std" => array('width' => '0', 'style' => 'solid', 'color' => '#e6e6e6'), "type" => "border"); $options[] = array("name" => __('Page Navigation Border Bottom', 'woothemes'), "desc" => __('Specify border properties for Page Navigation section.', 'woothemes'), "id" => $shortname . "_pagenav_border_bottom", "std" => array('width' => '0', 'style' => 'solid', 'color' => '#e6e6e6'), "type" => "border"); $options[] = array('name' => __('Archives', 'woothemes'), 'type' => 'subheading'); $options[] = array("name" => __('Archive Header Font Style', 'woothemes'), "desc" => __('Select typography for Archive header.', 'woothemes'), "id" => $shortname . "_archive_header_font", "std" => array('size' => '18', 'unit' => 'px', 'face' => 'Arial, sans-serif', 'style' => 'bold', 'color' => '#222222'), "type" => "typography"); $options[] = array("name" => __('Archive Header Border Bottom', 'woothemes'), "desc" => __('Specify border properties for Archive header', 'woothemes'), "id" => $shortname . "_archive_header_border_bottom", "std" => array('width' => '1', 'style' => 'solid', 'color' => '#e6e6e6'), "type" => "border"); $options[] = array("name" => __('Disable Archive Header RSS link', 'woothemes'), "desc" => __('Disable RSS link in Archive header', 'woothemes'), "id" => $shortname . "_archive_header_disable_rss", "std" => "false", "type" => "checkbox"); $options[] = array("name" => __('Widgets', 'woothemes'), "icon" => "styling", "type" => "heading"); $options[] = array("name" => __('Widget Background Color', 'woothemes'), "desc" => __('Pick a custom color for the widget background or add a hex color code e.g. #cccccc', 'woothemes'), "id" => $shortname . "_widget_bg", "std" => "", "type" => "color"); $options[] = array("name" => __('Widget Border', 'woothemes'), "desc" => __('Specify border properties for widgets.', 'woothemes'), "id" => $shortname . "_widget_border", "std" => array('width' => '0', 'style' => 'solid', 'color' => '#dbdbdb'), "type" => "border"); $options[] = array("name" => __('Widget Padding', 'woothemes'), "desc" => __('Enter an integer value i.e. 20 for the desired widget padding.', 'woothemes'), "id" => $shortname . "_widget_padding", "std" => "", "type" => array(array('id' => $shortname . '_widget_padding_tb', 'type' => 'text', 'std' => '', 'meta' => __('Top/Bottom', 'woothemes')), array('id' => $shortname . '_widget_padding_lr', 'type' => 'text', 'std' => '', 'meta' => __('Left/Right', 'woothemes')))); $options[] = array("name" => __('Widget Title', 'woothemes'), "desc" => __('Select the typography you want for the widget title.', 'woothemes'), "id" => $shortname . "_widget_font_title", "std" => array('size' => '14', 'unit' => 'px', 'face' => 'Helvetica, Arial, sans-serif', 'style' => 'bold', 'color' => '#555555'), "type" => "typography"); $options[] = array("name" => __('Widget Title Bottom Border', 'woothemes'), "desc" => __('Specify border property for the widget title.', 'woothemes'), "id" => $shortname . "_widget_title_border", "std" => array('width' => '1', 'style' => 'solid', 'color' => '#e6e6e6'), "type" => "border"); $options[] = array("name" => __('Widget Text', 'woothemes'), "desc" => __('Select the typography you want for the widget text.', 'woothemes'), "id" => $shortname . "_widget_font_text", "std" => array('size' => '13', 'unit' => 'px', 'face' => 'Helvetica, Arial, sans-serif', 'style' => 'thin', 'color' => '#555555'), "type" => "typography"); $options[] = array("name" => __('Widget Rounded Corners', 'woothemes'), "desc" => __('Set amount of pixels for border radius (rounded corners). Will only show in CSS3 compatible browser.', 'woothemes'), "id" => $shortname . "_widget_border_radius", "type" => "select", "options" => $options_pixels); $options[] = array("name" => __('Tabs Widget Background color', 'woothemes'), "desc" => __('Pick a custom color for the tabs widget or add a hex color code e.g. #cccccc', 'woothemes'), "id" => $shortname . "_widget_tabs_bg", "std" => "", "type" => "color"); $options[] = array("name" => __('Tabs Widget Inside Background Color', 'woothemes'), "desc" => __('Pick a custom color for the tabs widget or add a hex color code e.g. #cccccc', 'woothemes'), "id" => $shortname . "_widget_tabs_bg_inside", "std" => "", "type" => "color"); $options[] = array("name" => __('Tabs Widget Title', 'woothemes'), "desc" => __('Select the typography you want for the widget text.', 'woothemes'), "id" => $shortname . "_widget_tabs_font", "std" => array('size' => '12', 'unit' => 'px', 'face' => 'Helvetica, Arial, sans-serif', 'style' => 'bold', 'color' => '#555555'), "type" => "typography"); $options[] = array("name" => __('Tabs Widget Meta / Tabber Font', 'woothemes'), "desc" => __('Select the typography you want for the widget text.', 'woothemes'), "id" => $shortname . "_widget_tabs_font_meta", "std" => array('size' => '11', 'unit' => 'px', 'face' => 'Helvetica, Arial, sans-serif', 'style' => 'thin', 'color' => '#999999'), "type" => "typography"); /* Template: Magazine */ $options[] = array("name" => __('Magazine Template', 'woothemes'), "icon" => "layout", "type" => "heading"); $options[] = array('name' => __('Posts Slider', 'woothemes'), 'type' => 'subheading'); $options[] = array("name" => __('Magazine Page Template', 'woothemes'), "desc" => "", "id" => $shortname . "_woo_magazine_notice", "std" => sprintf(__('Below you can control settings for the Magazine page template. Please refer to <a href="%s">documentation</a> on how to setup the page template.'), 'http://www.woothemes.com/support/theme-documentation/canvas/'), "type" => "info"); $options[] = array("name" => __('Enable Featured Slider', 'woothemes'), "desc" => __('Enable the featured slider on the "Magazine" page template.', 'woothemes'), "id" => $shortname . "_slider_magazine", "std" => "false", "type" => "checkbox"); $options[] = array("name" => __('Post Tag(s)', 'woothemes'), "desc" => __('Add comma separated list for the tags that you would like to have displayed in the featured slider on the "Magazine" page template. For example, if you add "tag1, tag3" here, then all posts tagged with either "tag1" or "tag3" will be shown in the featured area. These posts will be excluded from normal posts below slider.', 'woothemes'), "id" => $shortname . "_slider_magazine_tags", "std" => "", "type" => "text"); $options[] = array("name" => __('Number Of Posts To Display', 'woothemes'), "desc" => __('Select the number of entries that should appear in the Featured Slider.', 'woothemes'), "id" => $shortname . "_slider_magazine_entries", "std" => "3", "type" => "select", "options" => $other_entries_2); $options[] = array("name" => __('Exclude Posts', 'woothemes'), "desc" => __('Exclude the slider posts from the posts grid below slider.', 'woothemes'), "id" => $shortname . "_slider_magazine_exclude", "std" => "true", "type" => "checkbox"); $options[] = array("name" => __('Display The Post Titles', 'woothemes'), "desc" => __('Show the post title in the "Posts" slider.', 'woothemes'), "id" => $shortname . "_slider_magazine_title", "std" => "true", 'class' => 'collapsed', "type" => "checkbox"); $options[] = array("name" => __('Title Font Style', 'woothemes'), "desc" => __('Select typography for title.', 'woothemes'), "id" => $shortname . "_slider_magazine_font_title", "std" => array('size' => '24', 'unit' => 'px', 'face' => 'Arial, sans-serif', 'style' => 'bold', 'color' => '#ffffff'), 'class' => 'hidden last', "type" => "typography"); $options[] = array("name" => __('Display The Post Excerpts', 'woothemes'), "desc" => __('Show the post excerpt in the "Posts" slider.', 'woothemes'), "id" => $shortname . "_slider_magazine_excerpt", "std" => "true", 'class' => 'collapsed', "type" => "checkbox"); $options[] = array("name" => __('Excerpt Font Style', 'woothemes'), "desc" => __('Select typography for excerpt text.', 'woothemes'), "id" => $shortname . "_slider_magazine_font_excerpt", "std" => array('size' => '13', 'unit' => 'px', 'face' => 'Arial, sans-serif', 'style' => 'thin', 'color' => '#cccccc'), 'class' => 'hidden', "type" => "typography"); $options[] = array("name" => __('Excerpt Length', 'woothemes'), "desc" => __('Total number of words to show in the excerpt.', 'woothemes'), "id" => $shortname . "_slider_magazine_excerpt_length", "std" => "15", 'class' => 'hidden last', "type" => "text"); $options[] = array('name' => __('Featured Posts', 'woothemes'), 'type' => 'subheading'); $options[] = array("name" => __('Number Of Featured Posts', 'woothemes'), "desc" => __('Select how many featured (full width) posts you would like to show before your two-column posts. Set total number of posts in Settings > Reading.', 'woothemes'), "id" => $shortname . "_magazine_feat_posts", "type" => "select", "options" => $other_entries); $options[] = array("name" => __('Post Content for "Featured" Posts', 'woothemes'), "desc" => __('Select if you want to show the full content or the excerpt on posts in the "Featured" section.', 'woothemes'), "id" => $shortname . "_magazine_featured_post_content", "std" => 'excerpt', "type" => "select2", "options" => array("excerpt" => __('The Excerpt', 'woothemes'), "content" => __('Full Content', 'woothemes'))); $options[] = array("name" => __('Featured Image Dimensions', 'woothemes'), "desc" => __('Enter an integer value i.e. 250 for the image size.', 'woothemes'), "id" => $shortname . "_image_dimensions", "std" => "", "type" => array(array('id' => $shortname . '_magazine_f_w', 'type' => 'text', 'std' => 100, 'meta' => __('Width', 'woothemes')), array('id' => $shortname . '_magazine_f_h', 'type' => 'text', 'std' => 100, 'meta' => __('Height', 'woothemes')))); $options[] = array("name" => __('Featured Post Image Alignment', 'woothemes'), "desc" => __('Select how to align your featured post images.', 'woothemes'), "id" => $shortname . "_magazine_f_align", "std" => "alignleft", "type" => "radio", "options" => array("alignleft" => "Left", "alignright" => "Right", "aligncenter" => "Center")); $options[] = array('name' => __('Posts Grid', 'woothemes'), 'type' => 'subheading'); $options[] = array("name" => __('Post Content for "Grid" Posts', 'woothemes'), "desc" => __('Select if you want to show the full content or the excerpt on posts in the "Grid" section.', 'woothemes'), "id" => $shortname . "_magazine_grid_post_content", "std" => 'excerpt', "type" => "select2", "options" => array("excerpt" => __('The Excerpt', 'woothemes'), "content" => __('Full Content', 'woothemes'))); $options[] = array("name" => __('Post Title Font Style', 'woothemes'), "desc" => __('Specify typography for post title.', 'woothemes'), "id" => $shortname . "_magazine_grid_font_post_title", "std" => array('size' => '18', 'unit' => 'px', 'face' => 'Helvetica, Arial, sans-serif', 'style' => 'bold', 'color' => '#222222'), "type" => "typography"); $options[] = array("name" => __('Post Image Dimensions', 'woothemes'), "desc" => __('Enter an integer value i.e. 250 for the image size.', 'woothemes'), "id" => $shortname . "_image_dimensions", "std" => "", "type" => array(array('id' => $shortname . '_magazine_b_w', 'type' => 'text', 'std' => 100, 'meta' => __('Width', 'woothemes')), array('id' => $shortname . '_magazine_b_h', 'type' => 'text', 'std' => 100, 'meta' => __('Height', 'woothemes')))); $options[] = array("name" => __('Post Image Alignment', 'woothemes'), "desc" => __('Select how to align your normal post images.', 'woothemes'), "id" => $shortname . "_magazine_b_align", "std" => "alignleft", "type" => "radio", "options" => array("alignleft" => "Left", "alignright" => "Right", "aligncenter" => "Center")); /* Template: Business */ $options[] = array("name" => __('Business Template', 'woothemes'), "icon" => "layout", "type" => "heading"); $options[] = array('name' => __('"Business" Setup', 'woothemes'), 'type' => 'subheading'); $options[] = array("name" => __('Business Page Template', 'woothemes'), "desc" => "", "id" => $shortname . "_woo_biz_notice", "std" => sprintf(__('Below you can control settings for the Business page template. Please refer to <a href="%s">documentation</a> on how to setup the page template. You can add slider posts with the <strong><em>Slides</em></strong> custom post type.'), 'http://www.woothemes.com/support/theme-documentation/canvas/'), "type" => "info"); $options[] = array("name" => __('Disable Footer Widgets', 'woothemes'), "desc" => __('Disable the footer widgets on this template.', 'woothemes'), "id" => $shortname . "_biz_disable_footer_widgets", "std" => "false", "type" => "checkbox"); $options[] = array("name" => __('Disable Slides Admin Menu', 'woothemes'), "desc" => __('Disable the slides admin menu functionality.', 'woothemes'), "id" => $shortname . "_biz_slides_disable", "std" => "false", "type" => "checkbox"); $options[] = array('name' => __('Featured Slider', 'woothemes'), 'type' => 'subheading'); $options[] = array("name" => __('Featured Slider', 'woothemes'), "desc" => __('Enable the featured slider.', 'woothemes'), "id" => $shortname . "_slider_biz", "std" => "false", "type" => "checkbox"); $options[] = array("name" => __('Full Width Slider', 'woothemes'), "desc" => __('Enable the slider to be full width.', 'woothemes'), "id" => $shortname . "_slider_biz_full", "std" => "false", "type" => "checkbox"); $options[] = array("name" => __('Number of Slides', 'woothemes'), "desc" => __('Select how many slides you would like to show in the slider.', 'woothemes'), "id" => $shortname . "_slider_biz_number", "std" => "10", "type" => "select", "options" => $other_entries_2); if (!empty($slide_groups)) { $options[] = array('name' => __('Slide Group', 'woothemes'), 'desc' => __('Optionally choose to display only slides from a specific slide group.', 'woothemes'), 'id' => $shortname . '_slider_biz_slide_group', 'std' => '0', 'type' => 'select2', 'options' => $slide_groups); } $options[] = array("name" => __('Display Order', 'woothemes'), "desc" => __('Select the order in which you want to show your slides.', 'woothemes'), "id" => $shortname . "_slider_biz_order", "type" => "select2", "std" => "DESC", "options" => array("DESC" => __('Newest first', 'woothemes'), "ASC" => __('Oldest first', 'woothemes'))); $options[] = array("name" => __('Featured Slider Title', 'woothemes'), "desc" => __('Show the page title in slider when using Featured Image as background image.', 'woothemes'), "id" => $shortname . "_slider_biz_title", "std" => "true", 'class' => 'collapsed', "type" => "checkbox"); $options[] = array("name" => __('Featured Slider Title Font Style', 'woothemes'), "desc" => __('Select typography for title (when using image background).', 'woothemes'), "id" => $shortname . "_slider_biz_font_title", "std" => array('size' => '24', 'unit' => 'px', 'face' => 'Arial, sans-serif', 'style' => 'bold', 'color' => '#ffffff'), 'class' => 'hidden last', "type" => "typography"); $options[] = array("name" => __('Featured Slider Content Font Style', 'woothemes'), "desc" => __('Select typography for content text (when using image background).', 'woothemes'), "id" => $shortname . "_slider_biz_font_excerpt", "std" => array('size' => '13', 'unit' => 'px', 'face' => 'Arial, sans-serif', 'style' => 'thin', 'color' => '#cccccc'), "type" => "typography"); $options[] = array("name" => __('Featured Slider Content Overlay', 'woothemes'), "desc" => __('Select the position of the slider content overlay which is shown when using a featured image in the slide post.', 'woothemes'), "id" => $shortname . "_slider_biz_overlay", "type" => "select2", "std" => "bottom", "options" => array("none" => __('None', 'woothemes'), "left" => __('Left', 'woothemes'), "right" => __('Right', 'woothemes'), "bottom" => __('Bottom', 'woothemes'), "center" => __('Center', 'woothemes'), "full" => __('Full', 'woothemes'))); /* Slider Settings */ $options[] = array("name" => __('Slider Settings', 'woothemes'), "icon" => "slider", "type" => "heading"); $options[] = array("name" => __('Slider Settings', 'woothemes'), "desc" => "", "id" => $shortname . "_woo_slider_notice", "std" => __('Below you can control the generic slider settings which will apply to both Business and Magazine templates.', 'woothemes'), "type" => "info"); $options[] = array("name" => __('Auto Start', 'woothemes'), "desc" => __('Set the slider to start sliding automatically. Adjust the speed of sliding underneath.', 'woothemes'), "id" => $shortname . "_slider_auto", "std" => "true", "type" => "checkbox"); $options[] = array("name" => __('Hover Pause', 'woothemes'), "desc" => __('Hovering over slideshow will pause it', 'woothemes'), "id" => $shortname . "_slider_hover", "std" => "false", "type" => "checkbox"); $options[] = array("name" => __('Animation Speed', 'woothemes'), "desc" => __('The time in <b>seconds</b> the animation between frames will take e.g. 0.6', 'woothemes'), "id" => $shortname . "_slider_speed", "std" => 0.6, "type" => "select", "options" => array('0.0', '0.1', '0.2', '0.3', '0.4', '0.5', '0.6', '0.7', '0.8', '0.9', '1.0', '1.1', '1.2', '1.3', '1.4', '1.5', '1.6', '1.7', '1.8', '1.9', '2.0')); $options[] = array("name" => __('Auto Slide Interval', 'woothemes'), "desc" => __('The time in <b>seconds</b> each slide pauses for, before sliding to the next. Only when using Auto Start option above.', 'woothemes'), "id" => $shortname . "_slider_interval", "std" => "4", "type" => "select", "options" => array('1', '2', '3', '4', '5', '6', '7', '8', '9', '10')); $options[] = array("name" => __('Features Slider Effect', 'woothemes'), "desc" => __('Select the effect used when transitioning between posts (default: <strong>slide</strong>).', 'woothemes'), "id" => $shortname . "_slider_effect", "type" => "select2", "std" => "slide", "options" => array("slide" => __('Slide', 'woothemes'), "fade" => __('Fade', 'woothemes'))); $options[] = array("name" => __('Slider Pagination', 'woothemes'), "desc" => __('Enable/disable the display of pagination in the sliders.', 'woothemes'), "id" => $shortname . "_slider_pagination", "std" => "true", "type" => "checkbox"); if (is_woocommerce_activated()) { $options[] = array("name" => __('WooCommerce', 'woothemes'), "icon" => "woocommerce", "type" => "heading"); $options[] = array("name" => __('WooCommerce Page Layout', 'woothemes'), "desc" => __('Select main content and sidebar alignment. Choose between 1, 2 or 3 column layout.', 'woothemes'), "id" => $shortname . "_wc_layout", "std" => "one-col", "type" => "images", "options" => array('one-col' => $images_dir . '1c.png', 'two-col-left' => $images_dir . '2cl.png', 'two-col-right' => $images_dir . '2cr.png', 'three-col-left' => $images_dir . '3cl.png', 'three-col-middle' => $images_dir . '3cm.png', 'three-col-right' => $images_dir . '3cr.png')); $options[] = array("name" => __('Search scope', 'woothemes'), "desc" => __('Select whether you want the search widget to search for products or posts', 'woothemes'), "id" => $shortname . "_header_search_scope", "type" => "select2", "options" => array('products' => __('Products', 'woothemes'), 'posts' => __('Posts', 'woothemes'))); $options[] = array('name' => __('Custom Placeholder', 'woothemes'), 'desc' => __('Upload a custom placeholder to be displayed when there is no product image.', 'woothemes'), 'id' => $shortname . '_placeholder_url', 'std' => '', 'type' => 'upload'); $options[] = array('name' => __('Header Cart Link', 'woothemes'), 'desc' => __('Display a link to the cart in the main navigation', 'woothemes'), 'id' => $shortname . '_header_cart_link', 'std' => 'true', 'type' => 'checkbox'); $options[] = array('name' => __('Header Cart Totals', 'woothemes'), 'desc' => __('Display item and amount totals in the cart in the main navigation', 'woothemes'), 'id' => $shortname . '_header_cart_total', 'std' => 'false', 'type' => 'checkbox'); } /* Portfolio */ if (woo_has_portfolio_items()) { $options[] = array("name" => __('Portfolio', 'woothemes'), "icon" => "portfolio", "type" => "heading"); $options[] = array("name" => __('Portfolio Setup', 'woothemes'), "desc" => "", "id" => $shortname . "_portfolio_notice", "std" => sprintf(__('<strong>Important:</strong> This feature will be removed from the theme in the future and replaced with %s. Please download and install the plugin. <br /><br />Below you can setup and enable/disable the portfolio settings. When modifying the portfolio settings, please visit the <a href="%s">Settings - Permalinks</a> screen to refresh your WordPress URLs.', 'woothemes'), '<a href="http://wordpress.org/plugins/projects-by-woothemes/">' . __('Projects by WooThemes', 'woothemes') . '</a>', admin_url('options-permalink.php')), "type" => "info"); $options[] = array("name" => __('Disable Portfolio', 'woothemes'), "desc" => __('Disable the portfolio functionality.', 'woothemes'), "id" => $shortname . "_portfolio_disable", "std" => "false", "type" => "checkbox"); $options[] = array("name" => __('Enable Single Portfolio Gallery', 'woothemes'), "desc" => __('Enable the gallery feature in the single portfolio page layout.', 'woothemes'), "id" => $shortname . "_portfolio_gallery", "std" => "true", "type" => "checkbox"); $options[] = array("name" => __('Portfolio Items URL Base', 'woothemes'), "desc" => sprintf(__('The base of all portfolio item URLs (visit the %s screen after changing this setting).', 'woothemes'), '<a href="' . admin_url('options-permalink.php') . '">' . __('Settings- Permalinks', 'woothemes') . '</a>'), "id" => $shortname . "_portfolioitems_rewrite", "std" => "portfolio-items", "type" => "text"); $options[] = array("name" => __('Exclude Galleries from the Portfolio Navigation', 'woothemes'), "desc" => __('Optionally exclude portfolio galleries from the portfolio gallery navigation switcher. Place the gallery slugs here, separated by commas <br />(eg: one,two,three)', 'woothemes'), "id" => $shortname . "_portfolio_excludenav", "std" => "", "type" => "text"); $options[] = array("name" => __('Portfolio Thumbnail Dimensions', 'woothemes'), "desc" => __('Enter an integer value i.e. 250 for the image size.', 'woothemes'), "id" => $shortname . "_portfolio_thumb_dimensions", "std" => "", "type" => array(array('id' => $shortname . '_portfolio_thumb_width', 'type' => 'text', 'std' => 210, 'meta' => __('Width', 'woothemes')), array('id' => $shortname . '_portfolio_thumb_height', 'type' => 'text', 'std' => 157, 'meta' => __('Height', 'woothemes')))); $options[] = array("name" => __('Portfolio Galleries Page Layout', 'woothemes'), "desc" => __('Select main content and sidebar alignment. Choose between 1, 2 or 3 column layout.', 'woothemes'), "id" => $shortname . "_portfolio_layout", "std" => "one-col", "type" => "images", "options" => array('one-col' => $images_dir . '1c.png', 'two-col-left' => $images_dir . '2cl.png', 'two-col-right' => $images_dir . '2cr.png', 'three-col-left' => $images_dir . '3cl.png', 'three-col-middle' => $images_dir . '3cm.png', 'three-col-right' => $images_dir . '3cr.png')); $options[] = array("name" => __('Portfolio Single Post Layout', 'woothemes'), "desc" => __('Select main content and sidebar alignment. Choose between 1, 2 or 3 column layout.', 'woothemes'), "id" => $shortname . "_portfolio_layout_single", "std" => "one-col", "type" => "images", "options" => array('one-col' => $images_dir . '1c.png', 'two-col-left' => $images_dir . '2cl.png', 'two-col-right' => $images_dir . '2cr.png', 'three-col-left' => $images_dir . '3cl.png', 'three-col-middle' => $images_dir . '3cm.png', 'three-col-right' => $images_dir . '3cr.png')); $options[] = array("name" => __('Exclude Portfolio Items from Search Results', 'woothemes'), "desc" => __('Exclude portfolio items from results when searching your website.', 'woothemes'), "id" => $shortname . "_portfolio_excludesearch", "std" => "false", "type" => "checkbox"); $options[] = array("name" => __('Portfolio Items Link To', 'woothemes'), "desc" => __('Do the portfolio items link to the lightbox, or to the single portfolio item screen?', 'woothemes'), "id" => $shortname . "_portfolio_linkto", "std" => "lightbox", "type" => "select2", "options" => array('lightbox' => __('Lightbox', 'woothemes'), 'post' => __('Portfolio Item', 'woothemes'))); } /* Dynamic Images */ $options[] = array("name" => __('Dynamic Images', 'woothemes'), "icon" => "image", "type" => "heading"); $options[] = array('name' => __('Resizer Settings', 'woothemes'), 'type' => 'subheading'); $options[] = array("name" => __('Dynamic Image Resizing', 'woothemes'), "desc" => "", "id" => $shortname . "_wpthumb_notice", "std" => __('There are two alternative methods of dynamically resizing the thumbnails in the theme, <strong>WP Post Thumbnail</strong> (default) or <strong>TimThumb</strong>.', 'woothemes'), "type" => "info"); $options[] = array("name" => __('WP Post Thumbnail', 'woothemes'), "desc" => __('Use WordPress post thumbnail to assign a post thumbnail. Will enable the <strong>Featured Image panel</strong> in your post sidebar where you can assign a post thumbnail.', 'woothemes'), "id" => $shortname . "_post_image_support", "std" => "true", "class" => "collapsed", "type" => "checkbox"); $options[] = array("name" => __('WP Post Thumbnail - Dynamic Image Resizing', 'woothemes'), "desc" => __('The post thumbnail will be dynamically resized using native WP resize functionality. <em>(Requires PHP 5.2+)</em>', 'woothemes'), "id" => $shortname . "_pis_resize", "std" => "true", "class" => "hidden", "type" => "checkbox"); $options[] = array("name" => __('WP Post Thumbnail - Hard Crop', 'woothemes'), "desc" => __('The post thumbnail will be cropped to match the target aspect ratio (only used if <em>Dynamic Image Resizing</em> is enabled).', 'woothemes'), "id" => $shortname . "_pis_hard_crop", "std" => "true", "class" => "hidden last", "type" => "checkbox"); $options[] = array("name" => __('TimThumb', 'woothemes'), "desc" => __('This will enable the <a href="http://code.google.com/p/timthumb/">TimThumb</a> (thumb.php) script which dynamically resizes images added through the <strong>custom settings panel</strong> below the post editor. Make sure your themes <em>cache</em> folder is writable.', 'woothemes'), "id" => $shortname . "_resize", "std" => "false", "type" => "checkbox"); $options[] = array("name" => __('Automatic Image Thumbnail', 'woothemes'), "desc" => __('If no thumbnail is specified then the first uploaded image in the post is used.', 'woothemes'), "id" => $shortname . "_auto_img", "std" => "false", "type" => "checkbox"); $options[] = array('name' => __('Thumbnail Settings', 'woothemes'), 'type' => 'subheading'); $options[] = array("name" => __('Thumbnail Dimensions', 'woothemes'), "desc" => __('Enter an integer value i.e. 250 for the desired size which will be used when dynamically creating the images.', 'woothemes'), "id" => $shortname . "_image_dimensions", "std" => "", "type" => array(array('id' => $shortname . '_thumb_w', 'type' => 'text', 'std' => "100", 'meta' => __('Width', 'woothemes')), array('id' => $shortname . '_thumb_h', 'type' => 'text', 'std' => 100, 'meta' => __('Height', 'woothemes')))); $options[] = array("name" => __('Thumbnail Alignment', 'woothemes'), "desc" => __('Select how to align your thumbnails with posts.', 'woothemes'), "id" => $shortname . "_thumb_align", "std" => "alignleft", "type" => "radio", "options" => array("alignleft" => "Left", "alignright" => "Right", "aligncenter" => "Center")); $options[] = array("name" => __('Single Post - Show Thumbnail', 'woothemes'), "desc" => __('Show the thumbnail in the single post page.', 'woothemes'), "id" => $shortname . "_thumb_single", "std" => "false", "type" => "checkbox"); $options[] = array("name" => __('Single Post - Thumbnail Dimensions', 'woothemes'), "desc" => __('Enter an integer value i.e. 250 for the image size.', 'woothemes'), "id" => $shortname . "_image_dimensions", "std" => "", "type" => array(array('id' => $shortname . '_single_w', 'type' => 'text', 'std' => 200, 'meta' => __('Width', 'woothemes')), array('id' => $shortname . '_single_h', 'type' => 'text', 'std' => 200, 'meta' => __('Height', 'woothemes')))); $options[] = array("name" => __('Single Post - Thumbnail Alignment', 'woothemes'), "desc" => __('Select how to align your thumbnails with single posts.', 'woothemes'), "id" => $shortname . "_thumb_align_single", "std" => "alignright", "type" => "radio", "options" => array("alignleft" => "Left", "alignright" => "Right", "aligncenter" => "Center")); $options[] = array("name" => __('Add Featured Image to RSS feed', 'woothemes'), "desc" => __('Add the featured image to your RSS feed', 'woothemes'), "id" => $shortname . "_rss_thumb", "std" => "false", "type" => "checkbox"); $options[] = array("name" => __('Enable Lightbox', 'woothemes'), "desc" => __('Enable the PrettyPhoto lightbox script on images within your website\'s content.', 'woothemes'), "id" => $shortname . "_enable_lightbox", "std" => "false", "type" => "checkbox"); /* Tumblog Settings - will be depreceated. Hide if not already active. */ if (get_option($shortname . '_woo_tumblog_switch') == "true") { $options[] = array("name" => __('Tumblog', 'woothemes'), "icon" => "tumblog", "type" => "heading"); $options[] = array('name' => __('Tumblog Setup', 'woothemes'), 'type' => 'subheading'); $options[] = array("name" => __('Tumblog Functionality', 'woothemes'), "desc" => "", "id" => $shortname . "_woo_tumblog_notice", "std" => sprintf(__('Tumblog will allow you to publish content using the WooTumblog functionality, including the Express for WordPress iPhone App. If you would like to use the iPhone app, you will need to enable XML-RPC publishing under Settings->Writing. Find out more at %s.', 'woothemes'), '<a href="http://express-app.com/" target="_blank">Express-App.com</a>'), "type" => "info"); $options[] = array("name" => __('Enable Tumblog Functionality', 'woothemes'), "desc" => __('Enable Tumblog functionality in Canvas.', 'woothemes'), "id" => $shortname . "_woo_tumblog_switch", "std" => "false", "type" => "checkbox"); $content_option_array = array('taxonomy' => __('Taxonomy', 'woothemes'), 'post_format' => __('Post Formats', 'woothemes')); $options[] = array("name" => __('Tumblog Content Method', 'woothemes'), "desc" => __('Select if you would like to use a Taxonomy of Post Formats to categorize your Tumblog content.', 'woothemes'), "id" => $shortname . "_tumblog_content_method", "std" => "post_format", "type" => "select2", "options" => $content_option_array); $options[] = array("name" => __('Use Custom Tumblog RSS Feed', 'woothemes'), "desc" => __('Replaces the default WordPress RSS feed output with Tumblog RSS output.', 'woothemes'), "id" => $shortname . "_custom_rss", "std" => "true", "type" => "checkbox"); $options[] = array("name" => __('Tumblog Media Widths on the "Magazine" Page Template\'s Grid', 'woothemes'), "desc" => __('The output width for Tumblog media (images, videos, audio) on the "Magazine" page template\'s grid.', 'woothemes'), "id" => $shortname . "_tumblog_magazine_media_width", "std" => "300", "type" => "text"); $options[] = array('name' => __('Content Formats', 'woothemes'), 'type' => 'subheading'); $options[] = array("name" => __('Images Link to', 'woothemes'), "desc" => __('Select where your Tumblog Images will link to when clicked.', 'woothemes'), "id" => $shortname . "_image_link_to", "std" => "post", "type" => "radio", "options" => $options_image_link_to); $options[] = array("name" => __('Tumblog Images Width', 'woothemes'), "desc" => __('The output width for Tumblog image post images.', 'woothemes'), "id" => $shortname . "_tumblog_image_width", "std" => "610", "type" => "text"); $options[] = array("name" => __('Tumblog Content Position: Images', 'woothemes'), "desc" => __('Select where you would like the Tumblog Specific content to be output around the standard content.', 'woothemes'), "id" => $shortname . "_woo_tumblog_images_content", "std" => 'Before', "type" => "select", "options" => $tumblog_options); $options[] = array("name" => __('Tumblog Audio Width', 'woothemes'), "desc" => __('The output width for Tumblog Audio player.', 'woothemes'), "id" => $shortname . "_tumblog_audio_width", "std" => "440", "type" => "text"); $options[] = array("name" => __('Tumblog Content Position: Audio', 'woothemes'), "desc" => __('Select where you would like the Tumblog Specific content to be output around the standard content.', 'woothemes'), "id" => $shortname . "_woo_tumblog_audio_content", "std" => 'Before', "type" => "select", "options" => $tumblog_options); $options[] = array("name" => __('Tumblog Video Width', 'woothemes'), "desc" => __('The output width for Tumblog Videos.', 'woothemes'), "id" => $shortname . "_tumblog_video_width", "std" => "610", "type" => "text"); $options[] = array("name" => __('Tumblog Content Position: Video', 'woothemes'), "desc" => __('Select where you would like the Tumblog Specific content to be output around the standard content.', 'woothemes'), "id" => $shortname . "_woo_tumblog_videos_content", "std" => "Before", "type" => "select", "options" => $tumblog_options); $options[] = array("name" => __('Tumblog Content Position: Quotes', 'woothemes'), "desc" => __('Select where you would like the Tumblog Specific content to be output around the standard content.', 'woothemes'), "id" => $shortname . "_woo_tumblog_quotes_content", "std" => "Before", "type" => "select", "options" => $tumblog_options); } // ENDIF Tumblog section /* Subscribe & Connect */ $options[] = array("name" => __('Subscribe & Connect', 'woothemes'), "type" => "heading", "icon" => "connect"); $options[] = array('name' => __('S&C Setup', 'woothemes'), 'type' => 'subheading'); $options[] = array("name" => __('Enable Subscribe & Connect - Single Post', 'woothemes'), "desc" => sprintf(__('Enable the subscribe & connect area on single posts. You can also add this as a <a href="%s">widget</a> in your sidebar.', 'woothemes'), admin_url('widgets.php')), "id" => $shortname . "_connect", "std" => 'true', "type" => "checkbox"); $options[] = array("name" => __('Subscribe Title', 'woothemes'), "desc" => __('Enter the title to show in your subscribe & connect area.', 'woothemes'), "id" => $shortname . "_connect_title", "std" => '', "type" => "text"); $options[] = array("name" => __('Text', 'woothemes'), "desc" => __('Change the default text in this area.', 'woothemes'), "id" => $shortname . "_connect_content", "std" => '', "type" => "textarea"); $options[] = array("name" => __('Enable Related Posts', 'woothemes'), "desc" => __('Enable related posts in the subscribe area. Uses posts with the same <strong>tags</strong> to find related posts. Note: Will not show in the Subscribe widget.', 'woothemes'), "id" => $shortname . "_connect_related", "std" => 'true', "type" => "checkbox"); $options[] = array('name' => __('Subscribe', 'woothemes'), 'type' => 'subheading'); $options[] = array("name" => __('Subscribe By E-mail ID (Feedburner)', 'woothemes'), "desc" => sprintf(__('Enter your <a href="%s">Feedburner ID</a> for the e-mail subscription form.', 'woothemes'), 'http://www.woothemes.com/tutorials/how-to-find-your-feedburner-id-for-email-subscription/'), "id" => $shortname . "_connect_newsletter_id", "std" => '', "type" => "text"); $options[] = array("name" => __('Subscribe By E-mail to MailChimp', 'woothemes'), "desc" => sprintf(__('If you have a MailChimp account you can enter the <a href="%s" target="_blank">MailChimp List Subscribe URL</a> to allow your users to subscribe to a MailChimp List.', 'woothemes'), 'http://woochimp.heroku.com'), "id" => $shortname . "_connect_mailchimp_list_url", "std" => '', "type" => "text"); $options[] = array('name' => __('Connect', 'woothemes'), 'type' => 'subheading'); $options[] = array("name" => __('Enable RSS', 'woothemes'), "desc" => __('Enable the subscribe and RSS icon.', 'woothemes'), "id" => $shortname . "_connect_rss", "std" => 'true', "type" => "checkbox"); $options[] = array("name" => __('Twitter URL', 'woothemes'), "desc" => __('Enter your <a href="http://www.twitter.com/">Twitter</a> URL e.g. http://www.twitter.com/woothemes', 'woothemes'), "id" => $shortname . "_connect_twitter", "std" => '', "type" => "text"); $options[] = array("name" => __('Facebook URL', 'woothemes'), "desc" => __('Enter your <a href="http://www.facebook.com/">Facebook</a> URL e.g. http://www.facebook.com/woothemes', 'woothemes'), "id" => $shortname . "_connect_facebook", "std" => '', "type" => "text"); $options[] = array("name" => __('YouTube URL', 'woothemes'), "desc" => __('Enter your <a href="http://www.youtube.com/">YouTube</a> URL e.g. http://www.youtube.com/woothemes', 'woothemes'), "id" => $shortname . "_connect_youtube", "std" => '', "type" => "text"); $options[] = array("name" => __('Flickr URL', 'woothemes'), "desc" => __('Enter your <a href="http://www.flickr.com/">Flickr</a> URL e.g. http://www.flickr.com/woothemes', 'woothemes'), "id" => $shortname . "_connect_flickr", "std" => '', "type" => "text"); $options[] = array("name" => __('LinkedIn URL', 'woothemes'), "desc" => __('Enter your <a href="http://www.www.linkedin.com.com/">LinkedIn</a> URL e.g. http://www.linkedin.com/in/woothemes', 'woothemes'), "id" => $shortname . "_connect_linkedin", "std" => '', "type" => "text"); $options[] = array("name" => __('Delicious URL', 'woothemes'), "desc" => __('Enter your <a href="http://www.delicious.com/">Delicious</a> URL e.g. http://www.delicious.com/woothemes', 'woothemes'), "id" => $shortname . "_connect_delicious", "std" => '', "type" => "text"); $options[] = array("name" => __('Google+ URL', 'woothemes'), "desc" => __('Enter your <a href="http://plus.google.com/">Google+</a> URL e.g. https://plus.google.com/104560124403688998123/', 'woothemes'), "id" => $shortname . "_connect_googleplus", "std" => '', "type" => "text"); $options[] = array('name' => __('Dribbble', 'woothemes'), 'desc' => sprintf(__('Enter your %1$s URL e.g. http://dribbble.com/woothemes', 'woothemes'), '<a href="http://dribbble.com/">' . __('Dribbble', 'woothemes') . '</a>'), 'id' => $shortname . '_connect_dribbble', 'std' => '', 'type' => 'text'); $options[] = array('name' => __('Instagram', 'woothemes'), 'desc' => sprintf(__('Enter your %1$s URL e.g. http://instagram.com/woothemes', 'woothemes'), '<a href="http://instagram.com">' . __('Instagram', 'woothemes') . '</a>'), 'id' => $shortname . '_connect_instagram', 'std' => '', 'type' => 'text'); $options[] = array('name' => __('Vimeo', 'woothemes'), 'desc' => sprintf(__('Enter your %1$s URL e.g. http://vimeo.com/woothemes', 'woothemes'), '<a href="http://vimeo.com/">' . __('Vimeo', 'woothemes') . '</a>'), 'id' => $shortname . '_connect_vimeo', 'std' => '', 'type' => 'text'); $options[] = array('name' => __('Pinterest', 'woothemes'), 'desc' => sprintf(__('Enter your %1$s URL e.g. http://pinterest.com/woothemes', 'woothemes'), '<a href="http://pinterest.com/">' . __('Pinterest', 'woothemes') . '</a>'), 'id' => $shortname . '_connect_pinterest', 'std' => '', 'type' => 'text'); /* Contact Template Settings */ $options[] = array('name' => __('Contact Page', 'woothemes'), 'icon' => 'maps', 'type' => 'heading'); $options[] = array('name' => __('Contact Information', 'woothemes'), 'type' => 'subheading'); $options[] = array("name" => __('Contact Information Panel', 'woothemes'), "desc" => __('Enable the contact information panel on your contact page template.', 'woothemes'), "id" => $shortname . "_contact_panel", "std" => "false", "class" => 'collapsed', "type" => "checkbox"); $options[] = array('name' => __('Location Name', 'woothemes'), 'desc' => __('Enter the location name. Example: London Office', 'woothemes'), 'id' => $shortname . '_contact_title', 'std' => '', 'class' => 'hidden', 'type' => 'text'); $options[] = array('name' => __('Location Address', 'woothemes'), 'desc' => __('Enter your company\'s address', 'woothemes'), 'id' => $shortname . '_contact_address', 'std' => '', 'class' => 'hidden', 'type' => "textarea"); $options[] = array('name' => __('Telephone', 'woothemes'), 'desc' => __('Enter your telephone number', 'woothemes'), 'id' => $shortname . '_contact_number', 'std' => '', 'class' => 'hidden', 'type' => 'text'); $options[] = array('name' => __('Fax', 'woothemes'), 'desc' => __('Enter your fax number', 'woothemes'), 'id' => $shortname . '_contact_fax', 'std' => '', 'class' => 'hidden last', 'type' => 'text'); $options[] = array("name" => __('Contact Form E-Mail', 'woothemes'), "desc" => __('Enter your E-mail address to use on the "Contact Form" page Template.', 'woothemes'), "id" => $shortname . "_contactform_email", "std" => "", "type" => "text"); $options[] = array("name" => __('Enable Subscribe and Connect', 'woothemes'), "desc" => __('Enable the subscribe and connect functionality on the contact page template', 'woothemes'), "id" => $shortname . "_contact_subscribe_and_connect", "std" => "false", "type" => "checkbox"); $options[] = array('name' => __('Maps', 'woothemes'), 'type' => 'subheading'); $options[] = array('name' => __('Contact Form Google Maps Coordinates', 'woothemes'), 'desc' => sprintf(__('Enter your Google Map coordinates to display a map on the Contact Form page template. You can get these details from %sGoogle Maps%s', 'woothemes'), '<a href="' . esc_url('http://itouchmap.com/latlong.html') . '" target="_blank">', '</a>'), 'id' => $shortname . '_contactform_map_coords', 'std' => '', 'type' => 'text'); $options[] = array('name' => __('Disable Mousescroll', 'woothemes'), 'desc' => __('Turn off the mouse scroll action for all the Google Maps on the site. This could improve usability on your site.', 'woothemes'), 'id' => $shortname . '_maps_scroll', 'std' => '', 'type' => 'checkbox'); $options[] = array('name' => __('Map Height', 'woothemes'), 'desc' => __('Height in pixels for the maps displayed on Single.php pages.', 'woothemes'), 'id' => $shortname . '_maps_single_height', 'std' => "250", 'type' => 'text'); $options[] = array('name' => __('Default Map Zoom Level', 'woothemes'), 'desc' => __('Set this to adjust the default in the post & page edit backend.', 'woothemes'), 'id' => $shortname . '_maps_default_mapzoom', 'std' => "9", 'type' => 'select2', 'options' => $other_entries); $options[] = array('name' => __('Default Map Type', 'woothemes'), 'desc' => __('Set this to the default rendered in the post backend.', 'woothemes'), 'id' => $shortname . '_maps_default_maptype', 'std' => 'G_NORMAL_MAP', 'type' => 'select2', 'options' => array('G_NORMAL_MAP' => __('Normal', 'woothemes'), 'G_SATELLITE_MAP' => __('Satellite', 'woothemes'), 'G_HYBRID_MAP' => __('Hybrid', 'woothemes'), 'G_PHYSICAL_MAP' => __('Terrain', 'woothemes'))); $options[] = array('name' => __('Map Callout Text', 'woothemes'), 'desc' => __('Text or HTML that will be output when you click on the map marker for your location.', 'woothemes'), 'id' => $shortname . '_maps_callout_text', 'std' => "", 'type' => 'textarea'); /* Projects */ if (class_exists('Projects')) { $options[] = array('name' => __('Projects', 'woothemes'), 'type' => 'heading'); $options[] = array("name" => __('Enable Old Portfolio Look', 'woothemes'), "desc" => __('This alternative design resembles the old Portfolio layout.', 'woothemes'), "id" => $shortname . "_projects_old_look", "std" => "false", "type" => "checkbox"); $options[] = array("name" => __('Galleries Page Layout', 'woothemes'), "desc" => __('Select main content and sidebar alignment. Choose between 1, 2 or 3 column layout.', 'woothemes'), "id" => $shortname . "_projects_layout", "std" => "two-col-left", "type" => "images", "options" => array('one-col' => $images_dir . '1c.png', 'two-col-left' => $images_dir . '2cl.png', 'two-col-right' => $images_dir . '2cr.png', 'three-col-left' => $images_dir . '3cl.png', 'three-col-middle' => $images_dir . '3cm.png', 'three-col-right' => $images_dir . '3cr.png')); $options[] = array("name" => __('Single Project Layout', 'woothemes'), "desc" => __('Select main content and sidebar alignment. Choose between 1, 2 or 3 column layout.', 'woothemes'), "id" => $shortname . "_projects_layout_single", "std" => "two-col-left", "type" => "images", "options" => array('one-col' => $images_dir . '1c.png', 'two-col-left' => $images_dir . '2cl.png', 'two-col-right' => $images_dir . '2cr.png', 'three-col-left' => $images_dir . '3cl.png', 'three-col-middle' => $images_dir . '3cm.png', 'three-col-right' => $images_dir . '3cr.png')); } // Add extra options through function if (function_exists("woo_options_add")) { $options = woo_options_add($options); } if (get_option('woo_template') != $options) { update_option('woo_template', $options); } if (get_option('woo_themename') != $themename) { update_option('woo_themename', $themename); } if (get_option('woo_shortname') != $shortname) { update_option('woo_shortname', $shortname); } if (get_option('woo_manual') != $manualurl) { update_option('woo_manual', $manualurl); } // Woo Metabox Options $woo_metaboxes = array(); if (get_post_type() == 'post' || !get_post_type()) { // TimThumb is enabled in options if (get_option('woo_resize') == 'true') { $woo_metaboxes[] = array('name' => 'image', 'label' => __('Image', 'woothemes'), 'type' => 'upload', 'desc' => __('Upload an image or enter an URL.', 'woothemes')); $woo_metaboxes[] = array('name' => '_image_alignment', 'std' => __('Center', 'woothemes'), 'label' => __('Image Crop Alignment', 'woothemes'), 'type' => 'select2', 'desc' => __('Select crop alignment for resized image', 'woothemes'), 'options' => array('c' => 'Center', 't' => 'Top', 'b' => 'Bottom', 'l' => 'Left', 'r' => 'Right')); } $url = get_template_directory_uri() . '/functions/images/'; $woo_metaboxes[] = array("name" => "layout", "label" => __('Layout', 'woothemes'), "type" => "images", "desc" => __('Select a specific layout for this post/page. Overrides default site layout.', 'woothemes'), "options" => array('' => $url . 'layout-off.png', 'one-col' => $url . '1c.png', 'two-col-left' => $url . '2cl.png', 'two-col-right' => $url . '2cr.png', 'three-col-left' => $url . '3cl.png', 'three-col-middle' => $url . '3cm.png', 'three-col-right' => $url . '3cr.png')); $woo_metaboxes[] = array("name" => "embed", "label" => __('Embed', 'woothemes'), "type" => "textarea", "desc" => __('Enter embed code for use on single posts and with the Video widget.', 'woothemes')); if (get_option('woo_woo_tumblog_switch') == 'true') { $woo_metaboxes[] = array("name" => "video-embed", "label" => __('Tumblog : Embed Code (Videos)', 'woothemes'), "type" => "textarea", "desc" => __('Add embed code for video services like Youtube or Vimeo - Tumblog only.', 'woothemes')); $woo_metaboxes[] = array("name" => "quote-author", "std" => "Unknown", "label" => __('Tumblog : Quote Author', 'woothemes'), "type" => "text", "desc" => __('Enter the name of the Quote Author.', 'woothemes')); $woo_metaboxes[] = array("name" => "quote-url", "std" => "http://", "label" => __('Tumblog : Link to Quote', 'woothemes'), "type" => "text", "desc" => __('Enter the url/web address of the Quote if available.', 'woothemes')); $woo_metaboxes[] = array("name" => "quote-copy", "std" => "Unknown", "label" => __('Tumblog : Quote', 'woothemes'), "type" => "textarea", "desc" => __('Enter the Quote.', 'woothemes')); $woo_metaboxes[] = array("name" => "audio", "std" => "http://", "label" => __('Tumblog : Audio URL', 'woothemes'), "type" => "text", "desc" => __('Enter the url/web address of the Audio file.', 'woothemes')); $woo_metaboxes[] = array("name" => "link-url", "std" => "http://", "label" => __('Tumblog : Link URL', 'woothemes'), "type" => "text", "desc" => __('Enter the url/web address of the Link.', 'woothemes')); } } // End post if (get_post_type() == 'slide' || !get_post_type()) { // TimThumb is enabled in options if (get_option('woo_resize') == 'true') { $woo_metaboxes[] = array("name" => "image", "label" => __('Image', 'woothemes'), "type" => "upload", "desc" => __('Upload an image to be used as background of this slide. (optional)', 'woothemes')); } $woo_metaboxes[] = array("name" => "url", "label" => __('URL', 'woothemes'), "type" => "text", "desc" => __('Enter URL if you want to add a link to the uploaded image. (optional)', 'woothemes')); } // End slide /* "portfolio" Custom Post Type. */ if (get_post_type() == 'portfolio' || !get_post_type()) { // TimThumb is enabled in options if (get_option('woo_resize') == 'true') { $woo_metaboxes[] = array("name" => "portfolio-image", "label" => __('Portfolio Image', 'woothemes'), "type" => "upload", "desc" => __('Upload an image or enter an URL to your portfolio image', 'woothemes')); $woo_metaboxes[] = array("name" => "_image_alignment", "std" => "c", "label" => __('Image Crop Alignment', 'woothemes'), "type" => "select2", "desc" => __('Select crop alignment for resized image', 'woothemes'), "options" => array("c" => __('Center', 'woothemes'), "t" => __('Top', 'woothemes'), "b" => __('Bottom', 'woothemes'), "l" => __('Left', 'woothemes'), "r" => __('Right', 'woothemes'))); } $woo_metaboxes[] = array("name" => "embed", "std" => "", "label" => __('Video Embed Code', 'woothemes'), "type" => "textarea", "desc" => __('Enter the video embed code for your video (YouTube, Vimeo or similar). Will show instead of your image.', 'woothemes')); $woo_metaboxes['lightbox-url'] = array("name" => "lightbox-url", "label" => __('Lightbox URL', 'woothemes'), "type" => "text", "desc" => sprintf(__('Enter an optional URL to show in the %s for this portfolio item.', 'woothemes'), '<a href="http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/">' . __('PrettyPhoto lightbox', 'woothemes') . '</a>')); $woo_metaboxes['testimonial'] = array("name" => "testimonial", "label" => __('Testimonial', 'woothemes'), "type" => "textarea", "desc" => __('Enter a testimonial from your client to be displayed on the single portfolio page', 'woothemes')); $woo_metaboxes['testimonial_author'] = array("name" => "testimonial_author", "label" => __('Testimonial Author', 'woothemes'), "type" => "text", "desc" => __('Enter the name of the author of the testimonial e.g. Joe Bloggs', 'woothemes')); $woo_metaboxes[] = array("name" => "url", "label" => __('URL', 'woothemes'), "type" => "text", "desc" => __('Enter URL of your clients site. (optional)', 'woothemes')); } //End portfolio // Page fields. if (get_post_type() == 'page' || !get_post_type()) { // Create an array of the available "Slide Groups". $slide_pages = array('0' => __('All', 'woothemes')); $terms = get_terms('slide-page'); if (is_array($terms) && count($terms) > 0) { foreach ($terms as $k => $v) { $slide_pages[$v->term_id] = $v->name; } } $woo_metaboxes[] = array("name" => "_slide-page", "std" => "", "label" => __('Slide Group', 'woothemes'), "type" => "select2", "desc" => __('Optionally select a "Slide Group" to show slides from only that "Slide Group".', 'woothemes'), "options" => $slide_pages); } // End slide // Show layout option on all pages if (get_post_type() != 'post' && get_post_type() != 'slide') { $url = get_template_directory_uri() . '/functions/images/'; $woo_metaboxes[] = array("name" => "layout", "label" => __('Layout', 'woothemes'), "type" => "images", "desc" => __('Select a specific layout for this post/page. Overrides default site layout.', 'woothemes'), "options" => array('' => $url . 'layout-off.png', 'one-col' => $url . '1c.png', 'two-col-left' => $url . '2cl.png', 'two-col-right' => $url . '2cr.png', 'three-col-left' => $url . '3cl.png', 'three-col-middle' => $url . '3cm.png', 'three-col-right' => $url . '3cr.png')); } // Add extra metaboxes through function if (function_exists("woo_metaboxes_add")) { $woo_metaboxes = woo_metaboxes_add($woo_metaboxes); } if (get_option('woo_custom_template') != $woo_metaboxes) { update_option('woo_custom_template', $woo_metaboxes); } }
function noelie_on_sale_products() { if (is_woocommerce_activated()) { global $woocommerce_loop; $woocommerce_loop['columns'] = 4; ob_start(); $args = array('post_type' => 'product', 'posts_per_page' => $woocommerce_loop['columns'], 'post_status' => 'publish', 'orderby' => 'date', 'order' => 'ASC', 'meta_query' => array(array('key' => '_sale_price', 'value' => 0, 'compare' => '>', 'type' => 'numeric'))); $loop = new WP_Query($args); echo '<section class="storefront-product-section storefront-on-sale-products">'; echo '<h2 class="section-title">' . __('On Sale', 'storefront') . '</h2>'; ?> <div class="woocommerce columns-<?php echo $woocommerce_loop['columns']; ?> "> <ul class="products"> <?php while ($loop->have_posts()) { $loop->the_post(); ?> <?php wc_get_template_part('content', 'product'); ?> <?php } wp_reset_query(); ?> </ul> </div> <?php echo '</section>'; ob_get_contents(); } }
<?php global $woo_options; ?> <div class="search_main"> <form method="get" class="searchform" action="<?php echo home_url('/'); ?> " > <input type="text" class="field s" name="s" value="<?php _e('Search...', 'woothemes'); ?> " onfocus="if (this.value == '<?php _e('Search...', 'woothemes'); ?> ') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Search...', 'woothemes'); ?> ';}" /> <?php if (isset($woo_options['woo_header_search_scope']) && $woo_options['woo_header_search_scope'] == 'products' && is_woocommerce_activated()) { echo '<input type="hidden" name="post_type" value="product" />'; } ?> <i class="icon-search"></i> </form> <div class="fix"></div> </div>
function woo_display_featured_products() { if (is_woocommerce_activated()) { get_template_part('includes/homepage/featured-products'); } }
function storefront_promoted_products($per_page = '2', $columns = '2', $recent_fallback = true) { if (is_woocommerce_activated()) { if (wc_get_featured_product_ids()) { echo '<h2>' . esc_html__('Featured Products', 'storefront') . '</h2>'; echo storefront_do_shortcode('featured_products', array('per_page' => $per_page, 'columns' => $columns)); } elseif (wc_get_product_ids_on_sale()) { echo '<h2>' . esc_html__('On Sale Now', 'storefront') . '</h2>'; echo storefront_do_shortcode('sale_products', array('per_page' => $per_page, 'columns' => $columns)); } elseif ($recent_fallback) { echo '<h2>' . esc_html__('New In Store', 'storefront') . '</h2>'; echo storefront_do_shortcode('recent_products', array('per_page' => $per_page, 'columns' => $columns)); } } }
/** * Optionally display a header cart link next to the navigation menu. * @since 5.1.0 * @return void */ function woo_add_nav_cart_link() { global $woocommerce; $settings = array('header_cart_link' => 'false', 'nav_rss' => 'false'); $settings = woo_get_dynamic_values($settings); $class = 'nav cart fr'; if ('false' == $settings['nav_rss']) { $class .= ' no-rss-link'; } if (is_woocommerce_activated() && 'true' == $settings['header_cart_link']) { ?> <ul class="<?php echo esc_attr($class); ?> "> <li><a class="cart-contents" href="<?php echo esc_url($woocommerce->cart->get_cart_url()); ?> " title="<?php esc_attr_e('View your shopping cart', 'woothemes'); ?> "><?php echo sprintf(_n('%d item', '%d items', $woocommerce->cart->cart_contents_count, 'woothemes'), $woocommerce->cart->cart_contents_count); ?> - <?php echo $woocommerce->cart->get_cart_total(); ?> </a></li> </ul> <?php } }
<?php the_title(); ?> <?php } ?> <?php if (is_category()) { printf(__('Category Archives: %s', 'premier'), '<span>' . single_cat_title('', false) . '</span>'); } elseif (is_woocommerce_activated() && is_product_category()) { single_term_title(); } elseif (is_woocommerce_activated() && is_shop()) { woocommerce_page_title(); } elseif (is_tag()) { printf(__('Tag Archives: %s', 'premier'), '<span>' . single_tag_title('', false) . '</span>'); } elseif (is_author()) { /* Queue the first post, that way we know * what author we're dealing with (if that is the case). */ the_post(); printf(__('Author Archives: %s', 'premier'), '<span class="vcard"><a class="url fn n" href="' . get_author_posts_url(get_the_author_meta("ID")) . '" title="' . esc_attr(get_the_author()) . '" rel="me">' . get_the_author() . '</a></span>'); /* Since we called the_post() above, we need to * rewind the loop back to the beginning that way * we can run the loop properly, in full. */ rewind_posts(); } elseif (is_day()) {
<?php woo_loop_after(); ?> <?php woo_pagenav(); ?> </section><!--/.blog-posts --> <?php } ?> <?php if (is_woocommerce_activated() && apply_filters('upstart_homepage_featured_products', true)) { ?> <section class="featured-products content-container-fullwidth-nopadding"> <h1 class="section-title"><?php _e('Featured Products', 'woothemes'); ?> </h1> <?php $featured_products_per_page = apply_filters('upstart_homepage_featured_products_per_page', $per_page = 12); echo do_shortcode('[featured_products per_page="' . $featured_products_per_page . '"]'); ?> </section> <?php } ?>
function superstore_infinite_scroll_js() { if (!is_woocommerce_activated()) { return; } global $woo_options; if (isset($woo_options['woocommerce_archives_infinite_scroll']) && 'true' == $woo_options['woocommerce_archives_infinite_scroll'] && (is_shop() || is_post_type_archive('product') || is_tax(get_object_taxonomies('product')))) { ?> <script> if ( ! navigator.userAgent.match(/(iPod|iPhone|iPad|Android)/)) { var infinite_scroll = { loading: { img: "<?php echo get_template_directory_uri(); ?> /images/ajax-loader.gif", msgText: "<?php _e('Loading the next set of products...', 'woothemes'); ?> ", finishedMsg: "<?php _e('All products loaded.', 'woothemes'); ?> " }, "nextSelector":".pagination a.next", "navSelector":".pagination", "itemSelector":"#main .product", "contentSelector":"#main ul.products" }; jQuery( infinite_scroll.contentSelector ).infinitescroll( infinite_scroll ); } </script> <?php } }