本文整理汇总了PHP中wpex_get_mod函数的典型用法代码示例。如果您正苦于以下问题:PHP wpex_get_mod函数的具体用法?PHP wpex_get_mod怎么用?PHP wpex_get_mod使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wpex_get_mod函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: wpex_remove_cpt_slug
function wpex_remove_cpt_slug($post_link, $post, $leavename)
{
// Theme post types
$post_types = array('portfolio', 'staff', 'testimonials');
// If not part of the theme post types return default post link
if (!in_array($post->post_type, $post_types) || 'publish' != $post->post_status) {
return $post_link;
}
// Loop through post types and remove the current slug
foreach ($post_types as $post_type) {
if ('portfolio' == $post_type) {
$slug = wpex_get_mod('portfolio_slug', 'portfolio-item');
}
if ('staff' == $post_type) {
$slug = wpex_get_mod('staff_slug', 'staff-member');
}
if ('testimonials' == $post_type) {
$slug = wpex_get_mod('testimonials_slug', 'testimonial');
}
// Remove current slug
$post_link = str_replace('/' . $slug . '/', '/', $post_link);
}
// Return new post link without slug
return $post_link;
}
开发者ID:VanessaGarcia-Freelance,项目名称:TheEmporiumGroup,代码行数:25,代码来源:remove-posttype-slugs.php
示例2: localize
/**
* Localize scripts
*
* @since 2.1.0
*/
public function localize($array)
{
// Add lightbox settings to array
$array['iLightbox'] = array('auto' => wpex_get_mod('lightbox_auto', false), 'skin' => wpex_global_obj('lightbox_skin'), 'path' => 'horizontal', 'controls' => array('arrows' => wpex_get_mod('lightbox_arrows', true), 'thumbnail' => wpex_get_mod('lightbox_thumbnails', true), 'fullscreen' => wpex_get_mod('lightbox_fullscreen', true), 'mousewheel' => wpex_get_mod('lightbox_mousewheel', false)), 'effects' => array('loadedFadeSpeed' => 50, 'fadeSpeed' => 500), 'show' => array('title' => wpex_get_mod('lightbox_titles', true), 'speed' => 200), 'hide' => array('speed' => 200), 'overlay' => array('blur' => true, 'opacity' => 0.9), 'social' => array('start' => true, 'show' => 'mouseenter', 'hide' => 'mouseleave', 'buttons' => false));
// Return array
return $array;
}
开发者ID:iq007,项目名称:MadScape,代码行数:12,代码来源:ilightbox.php
示例3: remove_slugs
/**
* Remove slugs from the post types
*
* @since 2.0.0
*/
public function remove_slugs($post_link, $post, $leavename)
{
// If not part of the theme post types return default post link
if (!in_array($post->post_type, $this->post_types) || 'publish' != $post->post_status) {
return $post_link;
}
// Get the post type slug
if ('portfolio' == $post->post_type) {
$slug = wpex_get_mod('portfolio_slug', 'portfolio-item');
$slug = $slug ? $slug : 'portfolio-item';
} elseif ('staff' == $post->post_type) {
$slug = wpex_get_mod('staff_slug');
$slug = $slug ? $slug : 'staff-member';
} elseif ('testimonials' == $post->post_type) {
$slug = wpex_get_mod('testimonials_slug', 'testimonial');
$slug = $slug ? $slug : 'testimonial';
} else {
$slug = '';
}
// Remove current slug
if ($slug) {
$post_link = str_replace('/' . $slug . '/', '/', $post_link);
}
// Return new post link without slug
return $post_link;
}
开发者ID:iq007,项目名称:MadScape,代码行数:31,代码来源:remove-post-type-slugs.php
示例4: display_sidebar
/**
* Alter main sidebar to display bbpress_sidebar sidebar
*
* @access public
* @since 2.1.0
*/
public function display_sidebar($sidebar)
{
if (is_bbpress() && wpex_get_mod('bbpress_custom_sidebar', true)) {
$sidebar = 'bbpress_sidebar';
}
return $sidebar;
}
开发者ID:iq007,项目名称:MadScape,代码行数:13,代码来源:bbpress.php
示例5: generate
/**
* Generates the CSS output
*
* @since 2.0.0
*/
public static function generate($output)
{
// Define main variables
$css = '';
// Fix for Fonts In the Visual Composer
if (wpex_global_obj('vc_is_inline')) {
$css .= '.wpb_row .fa:before { box-sizing:content-box!important; -moz-box-sizing:content-box!important; -webkit-box-sizing:content-box!important; }';
}
// Fixes for full-width layout when custom background is added
if ('full-width' == wpex_global_obj('main_layout') && (wpex_get_mod('background_color') || wpex_get_mod('background_image'))) {
$css .= '.wpex-sticky-header-holder{background:none;}';
}
// Remove header border if custom color is set
if (wpex_get_mod('header_background')) {
$css .= '.is-sticky #site-header{border-color:transparent;}';
}
// Overlay Header font size
if (wpex_global_obj('has_overlay_header') && ($font_size = get_post_meta(wpex_global_obj('post_id'), 'wpex_overlay_header_font_size', true))) {
$css .= '#site-navigation, #site-navigation .dropdown-menu a{font-size:' . intval($font_size) . 'px;}';
}
/*-----------------------------------------------------------------------------------*/
/* - Return CSS
/*-----------------------------------------------------------------------------------*/
if (!empty($css)) {
$output .= '/*ADVANCED STYLING CSS*/' . $css;
}
// Return output css
return $output;
}
开发者ID:iq007,项目名称:MadScape,代码行数:34,代码来源:advanced-styling.php
示例6: wpseo_breadcrumb_links
/**
* Filter the ancestors of the yoast seo breadcrumbs
* Adds the portfolio, staff, testimonials and blog links
*
* @version 3.3.0
*/
static function wpseo_breadcrumb_links($links)
{
global $post;
$new_breadcrumb = '';
// Loop through items
$types = array('portfolio', 'staff', 'testimonials', 'post');
foreach ($types as $type) {
if (is_singular($type)) {
if ('post' == $type) {
$type = 'blog';
}
$page_id = wpex_parse_obj_id(wpex_get_mod($type . '_page'), 'page');
if ($page_id) {
$page_title = get_the_title($page_id);
$page_permalink = get_permalink($page_id);
if ($page_permalink && $page_title) {
$new_breadcrumb[] = array('url' => $page_permalink, 'text' => $page_title);
}
}
}
}
// End foreach loop
// Combine new crumb
if ($new_breadcrumb) {
array_splice($links, 1, -2, $new_breadcrumb);
}
// Return links
return $links;
}
开发者ID:iq007,项目名称:MadScape,代码行数:35,代码来源:yoast.php
示例7: generate
/**
* Generates the CSS output
*
* @since 2.0.0
*/
public static function generate($output)
{
// Define main variables
$css = '';
/*-----------------------------------------------------------------------------------*/
/* - Logo Max Widths
/*-----------------------------------------------------------------------------------*/
// Desktop
if ($width = wpex_get_mod('logo_max_width')) {
$css .= '@media only screen and (min-width: 960px) {
#site-logo img {
max-width: ' . wpex_sanitize_data($width, 'px_pct') . ';
}
}';
}
// Tablet Portrait
if ($width = wpex_get_mod('logo_max_width_tablet_portrait')) {
$css .= '@media only screen and (min-width: 768px) and (max-width: 959px) {
#site-logo img {
max-width: ' . wpex_sanitize_data($width, 'px_pct') . ';
}
}';
}
// Phone
if ($width = wpex_get_mod('logo_max_width_phone')) {
$css .= '@media only screen and (max-width: 767px) {
#site-logo img {
max-width: ' . wpex_sanitize_data($width, 'px_pct') . ';
}
}';
}
/*-----------------------------------------------------------------------------------*/
/* - Other
/*-----------------------------------------------------------------------------------*/
// Fixes for full-width layout when custom background is added
if ('full-width' == wpex_global_obj('main_layout') && (wpex_get_mod('background_color') || wpex_get_mod('background_image'))) {
$css .= '.wpex-sticky-header-holder{background:none;}';
}
// Fix for Fonts In the Visual Composer
if (wpex_global_obj('vc_is_inline')) {
$css .= '.wpb_row .fa:before { box-sizing:content-box!important; -moz-box-sizing:content-box!important; -webkit-box-sizing:content-box!important; }';
}
// Remove header border if custom color is set
if (wpex_get_mod('header_background')) {
$css .= '.is-sticky #site-header{border-color:transparent;}';
}
// Overlay Header font size
if (wpex_global_obj('has_overlay_header') && ($font_size = get_post_meta(wpex_global_obj('post_id'), 'wpex_overlay_header_font_size', true))) {
$css .= '#site-navigation, #site-navigation .dropdown-menu a{font-size:' . intval($font_size) . 'px;}';
}
/*-----------------------------------------------------------------------------------*/
/* - Return CSS
/*-----------------------------------------------------------------------------------*/
if (!empty($css)) {
$output .= '/*ADVANCED STYLING CSS*/' . $css;
}
// Return output css
return $output;
}
开发者ID:VanessaGarcia-Freelance,项目名称:TheEmporiumGroup,代码行数:64,代码来源:advanced-styling.php
示例8: wpex_post_layout
/**
* Sets the correct layout for posts
*
* @since Total 1.0.0
*/
function wpex_post_layout($post_id = '')
{
// Get ID if not defined
$post_id = $post_id ? $post_id : wpex_get_the_id();
// Define variables
$class = 'right-sidebar';
$meta = get_post_meta($post_id, 'wpex_post_layout', true);
// Check meta first to override and return (prevents filters from overriding meta)
if ($meta) {
return $meta;
}
// Singular Page
if (is_page()) {
// Blog template
if (is_page_template('templates/blog.php')) {
$class = wpex_get_mod('blog_archives_layout', 'right-sidebar');
}
// Landing Page
if (is_page_template('templates/landing-page.php')) {
$class = 'full-width';
} elseif (is_attachment()) {
$class = 'full-width';
} else {
$class = wpex_get_mod('page_single_layout', 'right-sidebar');
}
} elseif (is_singular('post')) {
$class = wpex_get_mod('blog_single_layout', 'right-sidebar');
} elseif (is_singular('attachment')) {
$class = 'full-width';
} elseif (is_home()) {
$class = wpex_get_mod('blog_archives_layout', 'right-sidebar');
} elseif (is_search()) {
$class = wpex_get_mod('search_layout', 'right-sidebar');
} elseif (is_category()) {
$class = wpex_get_mod('blog_archives_layout', 'right-sidebar');
$term = get_query_var('cat');
$term_data = get_option("category_{$term}");
if ($term_data) {
if (!empty($term_data['wpex_term_layout'])) {
$class = $term_data['wpex_term_layout'];
}
}
} elseif (wpex_is_blog_query()) {
$class = wpex_get_mod('blog_archives_layout', 'right-sidebar');
} elseif (is_404()) {
$class = 'full-width';
} else {
$class = 'right-sidebar';
}
// Class should never be empty
if (empty($class)) {
$class = 'right-sidebar';
}
// Apply filters for child theme editing
$class = apply_filters('wpex_post_layout_class', $class);
// Return correct classname
return $class;
}
开发者ID:iq007,项目名称:MadScape,代码行数:63,代码来源:post-layout.php
示例9: wpex_overlay_style
function wpex_overlay_style($style = '')
{
$style = $style ? $style : get_post_type();
if ('portfolio' == $style) {
$style = wpex_get_mod('portfolio_entry_overlay_style');
} elseif ('staff' == $style) {
$style = wpex_get_mod('staff_entry_overlay_style');
}
return apply_filters('wpex_overlay_style', $style);
}
开发者ID:VanessaGarcia-Freelance,项目名称:TheEmporiumGroup,代码行数:10,代码来源:overlays.php
示例10: register
/**
* Registers the custom taxonomy
*
* @since 2.0.0
*/
public static function register()
{
$name = wpex_get_mod('post_series_labels');
$name = $name ? $name : esc_html__('Post Series', 'total');
$slug = wpex_get_mod('post_series_slug');
$slug = $slug ? $slug : 'post-series';
// Apply filters
$args = apply_filters('wpex_taxonomy_post_series_args', array('labels' => array('name' => $name, 'singular_name' => $name, 'menu_name' => $name, 'search_items' => esc_html__('Search', 'total'), 'popular_items' => esc_html__('Popular', 'total'), 'all_items' => esc_html__('All', 'total'), 'parent_item' => esc_html__('Parent', 'total'), 'parent_item_colon' => esc_html__('Parent', 'total'), 'edit_item' => esc_html__('Edit', 'total'), 'update_item' => esc_html__('Update', 'total'), 'add_new_item' => esc_html__('Add New', 'total'), 'new_item_name' => esc_html__('New', 'total'), 'separate_items_with_commas' => esc_html__('Separate with commas', 'total'), 'add_or_remove_items' => esc_html__('Add or remove', 'total'), 'choose_from_most_used' => esc_html__('Choose from the most used', 'total')), 'public' => true, 'show_in_nav_menus' => true, 'show_ui' => true, 'show_tagcloud' => true, 'hierarchical' => true, 'rewrite' => array('slug' => $slug), 'query_var' => true));
// Register the taxonomy
register_taxonomy('post_series', array('post'), $args);
}
开发者ID:iq007,项目名称:MadScape,代码行数:16,代码来源:post-series.php
示例11: get_current_skin
/**
* Returns the current skin
*
* @since 1.6.3
*/
public function get_current_skin()
{
// Check URL
if (!empty($_GET['theme_skin'])) {
return $_GET['theme_skin'];
}
// Apply filters
$skin = apply_filters('wpex_active_skin', wpex_get_mod('theme_skin', 'base'));
// Sanitize and return
return $skin ? $skin : 'base';
}
开发者ID:iq007,项目名称:MadScape,代码行数:16,代码来源:skins.php
示例12: post_meta
/**
* The function responsible for creating the actual meta box.
*
* @since 1.0.0
*/
public function post_meta($post)
{
// Disable on footer builder
$footer_builder_page = wpex_get_mod('footer_builder_page_id');
if ('page' == get_post_type($post->ID) && $footer_builder_page == $post->ID) {
return;
}
// Add metabox
$obj = get_post_type_object($post->post_type);
add_meta_box('wpex-metabox', $obj->labels->singular_name . ' ' . esc_html__('Settings', 'total'), array($this, 'display_meta_box'), $post->post_type, 'normal', 'high');
}
开发者ID:iq007,项目名称:MadScape,代码行数:16,代码来源:metabox.php
示例13: active_skin
/**
* Returns active lightbox skin
*
* @since 2.1.0
*/
public static function active_skin()
{
// Get skin from Customizer setting
$skin = wpex_get_mod('lightbox_skin', 'minimal');
// Sanitize
$skin = $skin ? $skin : 'minimal';
// Apply filters
$skin = apply_filters('wpex_lightbox_skin', $skin);
// Return
return $skin;
}
开发者ID:VanessaGarcia-Freelance,项目名称:TheEmporiumGroup,代码行数:16,代码来源:ilightbox.php
示例14: __construct
/**
* Start things up
*
* @since 1.6.0
*/
public function __construct()
{
// Get options
$this->options = wpex_get_mod('login_page_design', array('enabled' => true, 'logo' => '', 'logo_height' => '', 'background_color' => '', 'background_img' => '', 'background_style' => '', 'form_background_color' => '', 'form_background_opacity' => '', 'form_text_color' => '', 'form_top' => '', 'form_border_radius' => ''));
// Add actions
add_action('admin_menu', array($this, 'add_page'));
add_action('admin_init', array($this, 'register_settings'));
add_action('admin_enqueue_scripts', array($this, 'scripts'));
add_action('admin_print_styles-' . WPEX_ADMIN_PANEL_HOOK_PREFIX . '-admin-login', array($this, 'admin_styles'), 40);
add_action('login_head', array($this, 'output_css'));
add_action('login_headerurl', array($this, 'logo_link'));
}
开发者ID:VanessaGarcia-Freelance,项目名称:TheEmporiumGroup,代码行数:17,代码来源:custom-login.php
示例15: wpex_wcmenucart_menu_item
function wpex_wcmenucart_menu_item()
{
// Vars
global $woocommerce;
$icon_style = wpex_get_mod('woo_menu_icon_style', 'drop-down');
$custom_link = wpex_get_mod('woo_menu_icon_custom_link');
$header_style = wpex_global_obj('header_style');
// URL
if ('custom-link' == $icon_style && $custom_link) {
$url = esc_url($custom_link);
} else {
$cart_id = woocommerce_get_page_id('cart');
if (function_exists('icl_object_id')) {
$cart_id = icl_object_id($cart_id, 'page');
}
$url = get_permalink($cart_id);
}
// Cart total
$display = wpex_get_mod('woo_menu_icon_display', 'icon_count');
if ('icon_total' == $display) {
$cart_extra = WC()->cart->get_cart_total();
$cart_extra = str_replace('amount', 'wcmenucart-details', $cart_extra);
} elseif ('icon_count' == $display) {
$cart_extra = '<span class="wcmenucart-details count">' . WC()->cart->cart_contents_count . '</span>';
} else {
$cart_extra = '';
}
// Cart Icon
$cart_icon = '<span class="fa fa-shopping-cart"></span><span class="wcmenucart-text">' . _x('Shop', 'Navbar Cart Text For Vertical Nav', 'wpex') . '</span>';
$cart_icon = apply_filters('wpex_menu_cart_icon_html', $cart_icon);
ob_start();
?>
<a href="<?php
echo $url;
?>
" class="wcmenucart" title="<?php
_e('Your Cart', 'wpex');
?>
">
<span class="link-inner">
<span class="wcmenucart-count"><?php
echo $cart_icon;
echo $cart_extra;
?>
</span>
</span>
</a>
<?php
return ob_get_clean();
}
开发者ID:VanessaGarcia-Freelance,项目名称:TheEmporiumGroup,代码行数:52,代码来源:woocommerce-helpers.php
示例16: generate
/**
* Generates the CSS output
*
* @since 2.0.0
*/
public function generate($output)
{
// Get custom accent
$custom_accent = wpex_get_mod('accent_color');
// Return if accent color is empty or equal to default
if (!$custom_accent || $this->default_accent == $custom_accent) {
return $output;
}
// Define css var
$css = '';
// Get arrays
$texts = $this->arrays('texts');
$backgrounds = $this->arrays('backgrounds');
$borders = $this->arrays('borders');
// Texts
if (!empty($texts)) {
$css .= implode(',', $texts) . '{color:' . $custom_accent . ';}';
}
// Backgrounds
if (!empty($backgrounds)) {
$css .= implode(',', $backgrounds) . '{background-color:' . $custom_accent . ';}';
}
// Borders
if (!empty($borders)) {
foreach ($borders as $key => $val) {
if (is_array($val)) {
$css .= $key . '{';
foreach ($val as $key => $val) {
$css .= 'border-' . $val . '-color:' . $custom_accent . ';';
}
$css .= '}';
} else {
$css .= $val . '{border-color:' . $custom_accent . ';}';
}
}
}
// Return CSS
if (!empty($css)) {
$output .= '/*ACCENT COLOR*/' . $css;
}
// Return output css
return $output;
}
开发者ID:iq007,项目名称:MadScape,代码行数:48,代码来源:accent-color.php
示例17: wpex_toggle_bar_classes
/**
* Returns correct togglebar classes
*
* @since Total 1.0.0
*/
function wpex_toggle_bar_classes()
{
// Add default classes
$classes = array('clr');
// Add animation classes
if ($animation = wpex_get_mod('toggle_bar_animation', 'fade')) {
$classes[] = 'toggle-bar-' . $animation;
}
// Add visibility classes
if ($visibility = wpex_get_mod('toggle_bar_visibility', 'always-visible')) {
$classes[] = $visibility;
}
// Apply filters for child theming
$classes = apply_filters('wpex_toggle_bar_active', $classes);
// Turn classes into space seperated string
$classes = implode(' ', $classes);
// Return classes
return $classes;
}
开发者ID:VanessaGarcia-Freelance,项目名称:TheEmporiumGroup,代码行数:24,代码来源:togglebar.php
示例18: __construct
/**
* Start things up
*
* @since 3.0.0
*/
public function __construct()
{
// Give values to vars
$this->customizer_dir_uri = WPEX_FRAMEWORK_DIR_URI . 'customizer/';
$this->customizer_dir = WPEX_FRAMEWORK_DIR . 'customizer/';
// Check if the customizer admin panel is enabled
$this->admin_enabled = wpex_get_mod('customizer_panel_enable', true);
// Add admin panel if enabled
if (is_admin() && $this->admin_enabled) {
add_action('admin_menu', array($this, 'add_admin_page'), 40);
add_action('admin_init', array($this, 'admin_options'));
add_action('admin_print_styles-' . WPEX_ADMIN_PANEL_HOOK_PREFIX . '-customizer', array($this, 'admin_styles'), 40);
}
// Create an array of registered theme customizer panels
$this->panels = apply_filters('wpex_customizer_panels', array('general' => array('title' => __('General Theme Options', 'wpex')), 'layout' => array('title' => __('Layout', 'wpex')), 'typography' => array('title' => __('Typography', 'wpex')), 'togglebar' => array('title' => __('Toggle Bar', 'wpex'), 'is_section' => true), 'topbar' => array('title' => __('Top Bar', 'wpex'), 'is_section' => true), 'header' => array('title' => __('Header', 'wpex')), 'navbar' => array('title' => __('Navbar', 'wpex'), 'is_section' => true), 'mobile_menu' => array('title' => __('Mobile Menu', 'wpex'), 'is_section' => true), 'sidebar' => array('title' => __('Sidebar', 'wpex'), 'is_section' => true), 'blog' => array('title' => __('Blog', 'wpex')), 'portfolio' => array('title' => __('Portfolio', 'wpex'), 'condition' => WPEX_PORTFOLIO_IS_ACTIVE), 'staff' => array('title' => __('Staff', 'wpex'), 'condition' => WPEX_STAFF_IS_ACTIVE), 'testimonials' => array('title' => __('Testimonials', 'wpex'), 'condition' => WPEX_TESTIMONIALS_IS_ACTIVE, 'is_section' => true), 'woocommerce' => array('title' => __('WooCommerce', 'wpex'), 'condition' => WPEX_WOOCOMMERCE_ACTIVE), 'callout' => array('title' => __('Callout', 'wpex'), 'is_section' => true), 'footer_widgets' => array('title' => __('Footer Widgets', 'wpex'), 'is_section' => true), 'footer_bottom' => array('title' => __('Footer Bottom', 'wpex'), 'is_section' => true), 'visual_composer' => array('title' => __('Visual Composer', 'wpex'), 'is_section' => true, 'condition' => WPEX_VC_ACTIVE)));
// Get enabled panels
$this->enabled_panels = get_option('wpex_customizer_panels', $this->panels);
// Add sections (stores all sections in array if not already saved in DB)
if (!$this->sections) {
$this->add_sections();
}
// Add custom controls and callbacks
add_action('customize_register', array($this, 'controls_callbacks'));
// Remove core panels and sections
add_action('customize_register', array($this, 'remove_core_sections'), 11);
// Add theme customizer sections and panels
add_action('customize_register', array($this, 'add_customizer_panels_sections'), 40);
// Adds CSS for customizer custom controls
add_action('customize_controls_print_styles', array($this, 'customize_controls_print_styles'));
// Include Typography & Styling Classes
require_once WPEX_FRAMEWORK_DIR . 'customizer/settings/typography.php';
// Get inline CSS cache - humm, not sure if I really want to add this
// Could cause issues for people and they don't know what's up
//$this->inline_css_cache = get_option( 'wpex_customizer_inline_css_cache' );
// Add inline CSS to header = Run Last to make sure it overrides custom CSS
add_action('wpex_head_css', array($this, 'add_inline_css'), 999);
// Reset CSS cache
add_action('customize_save_after', array($this, 'reset_inline_css_cache'));
add_action('switch_theme', array($this, 'reset_inline_css_cache'));
if (!empty($_GET['wpex_clear_customizer_cache'])) {
$this->reset_inline_css_cache();
}
}
开发者ID:VanessaGarcia-Freelance,项目名称:TheEmporiumGroup,代码行数:48,代码来源:customizer.php
示例19: __construct
/**
* Start things up
*
* @since 1.6.0
*/
public function __construct()
{
// Update vars
$this->vc_theme_mode = wpex_get_mod('visual_composer_theme_mode', true);
$this->remove_vc_design_options = apply_filters('wpex_remove_vc_design_options', true);
// Include helper functions and classes
require_once WPEX_FRAMEWORK_DIR . 'visual-composer/vc-helpers.php';
// Override editor logo
add_filter('vc_nav_front_logo', array($this, 'nav_logo'));
// Remove design options tab
if ($this->remove_vc_design_options) {
add_filter('vc_settings_page_show_design_tabs', '__return_false');
delete_option('wpb_js_use_custom');
}
// Add actions
add_action('wp_enqueue_scripts', array($this, 'load_composer_front_css'), 0);
add_action('wp_enqueue_scripts', array($this, 'load_remove_styles'));
add_action('admin_menu', array(__CLASS__, 'remove_welcome'), 999);
add_action('wp_footer', array($this, 'remove_footer_scripts'));
add_action('admin_enqueue_scripts', array($this, 'admin_scripts'));
add_action('admin_init', array($this, 'disable_updater'), 99);
add_action('init', array($this, 'init'), 20);
add_action('wpex_head_css', array($this, 'vc_css_ids'));
// Add filters
add_filter('vc_font_container_get_allowed_tags', array($this, 'font_container_tags'));
add_filter('vc_font_container_get_fonts_filter', array($this, 'font_container_fonts'));
// Remove actions
remove_action('vc_activation_hook', 'vc_page_welcome_set_redirect');
remove_action('init', 'vc_page_welcome_redirect');
// Register accent colors
add_filter('wpex_accent_texts', array($this, 'accent_texts'));
add_filter('wpex_accent_borders', array($this, 'accent_borders'));
add_filter('wpex_accent_backgrounds', array($this, 'accent_backgrounds'));
// Add new shortcode param
add_shortcode_param('vcex_textarea_html', array($this, 'vcex_textarea_html'));
// Extend the Visual Composer (add new modules)
if (wpex_get_mod('extend_visual_composer', true)) {
add_action('after_setup_theme', array($this, 'map_custom_shortcodes'));
}
}
开发者ID:VanessaGarcia-Freelance,项目名称:TheEmporiumGroup,代码行数:45,代码来源:vc-config.php
示例20: the_content
<?php
}
?>
<div class="entry-content entry clr">
<?php
// Output page content
the_content();
?>
<?php
// Output page pagination
wp_link_pages(array('before' => '<div class="page-links clr">', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>'));
?>
</div><!-- .entry-content -->
<?php
// Get social sharing template part
get_template_part('partials/social', 'share');
?>
</article><!-- #post -->
<?php
// Display comments if enabled
if (wpex_get_mod('page_comments')) {
comments_template();
}
开发者ID:iq007,项目名称:MadScape,代码行数:30,代码来源:page-single-layout.php
注:本文中的wpex_get_mod函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论