本文整理汇总了PHP中WPBakeryVisualComposer::config方法的典型用法代码示例。如果您正苦于以下问题:PHP WPBakeryVisualComposer::config方法的具体用法?PHP WPBakeryVisualComposer::config怎么用?PHP WPBakeryVisualComposer::config使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WPBakeryVisualComposer
的用法示例。
在下文中一共展示了WPBakeryVisualComposer::config方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: outputTeaser
public function outputTeaser()
{
wp_enqueue_script('wpb_jscomposer_teaser_js');
wp_localize_script('wpb_jscomposer_teaser_js', 'i18nVcTeaser', array('empty_title' => __('Empty title', "js_composer"), 'text_label' => __('Text', "js_composer"), 'image_label' => __('Image', "js_composer"), 'title_label' => __('Title', "js_composer"), 'link_label' => __('Link', "js_composer"), 'text_text' => __('Text', "js_composer"), 'text_excerpt' => __('Excerpt', "js_composer"), 'text_custom' => __('Custom', "js_composer"), 'image_featured' => __('Featered', "js_composer"), 'image_custom' => __('Custom', "js_composer"), 'link_label_text' => __('Link text', "js_composer"), 'no_link' => __('No link', "js_composer"), 'link_post' => __('Link to post', "js_composer"), 'link_big_image' => __('Link to big image', "js_composer"), 'add_custom_image' => __('Add custom image', "js_composer")));
$output = '<div class="vc-teaser-switch"><label><input type="checkbox" name="' . self::$meta_data_name . '[enable]" value="1" id="vc-teaser-checkbox"' . ($this->getTeaserData('enable') === '1' ? ' checked="true"' : '') . '> ' . __('Enable custom teaser', "js_composer") . '</label></div>';
$output .= '<input type="hidden" name="' . self::$meta_data_name . '[data]" class="vc-teaser-data-field" value="' . htmlspecialchars($this->getTeaserData('data')) . '">';
$output .= '<div class="vc-teaser-constructor-hint">';
$output .= '<p>' . __('Here you can customize teaser block design. It will be used instead of default settings in "Posts Grid" or "Carousel" content elements.', 'js_composer') . '</p>';
$output .= '</div>';
$output .= '<div class="vc-teaser-constructor">';
$output .= '<div class="vc-toolbar"></div>';
$output .= '<div class="clear vc-teaser-list"></div>';
$output .= '<div class="vc_teaser_loading_block" style="display: none;">';
$output .= '<img src="' . get_site_url() . '/wp-admin/images/wpspin_light.gif" /></div>';
$output .= '<div class="vc-teaser-footer"><label>Background color</label><br/><input type="text" name="' . self::$meta_data_name . '[bgcolor]" value="' . htmlspecialchars($this->getTeaserData('bgcolor')) . '" class="vc-teaser-bgcolor"></div>';
$output .= '</div>';
require_once WPBakeryVisualComposer::config('COMPOSER') . 'templates/teaser.html.php';
echo $output;
}
示例2: output
public function output($post = null)
{
$output = $this->getNavBar()->getElementsModal();
$output .= $this->getNavBar()->output();
$output .= '
<div class="metabox-composer-content">
<div id="wpb-convert-message">
<div class="messagebox_text"><p>' . __('Your page layout was created with previous Visual Composer version. Before converting your layout to the new version, make sure to <a target="_blank" href="http://kb.wpbakery.com/index.php?title=Update_Visual_Composer_from_3.4_to_3.5">read this page</a>.', LANGUAGE_ZONE) . '</p>
<div class="wpb-convert-buttons">
<a class="wpb_convert button" id="wpb-convert"><i class="icon"></i>' . __('Convert to new version', LANGUAGE_ZONE) . '</a>
</div>
</div>
</div>
<div class="vc_loading_block" style="display: none;">
<img src="' . get_site_url() . '/wp-admin/images/wpspin_light.gif" /> ' . __("Loading, please wait...", LANGUAGE_ZONE) . '
</div>
<div id="visual_composer_content" class="wpb_main_sortable main_wrapper"></div>
<div id="wpb-empty-blocks">
<h2>' . __("No content yet! You should add some...", LANGUAGE_ZONE) . '</h2>
<table class="helper-block">
<tr>
<td><span>1</span></td>
<td><p> ' . __("This is a visual preview of your page. Currently, you don't have any content elements. Click or drag the button <a href='#' class='add-element-to-layout'><i class='icon'></i> Add element</a> on the top to add content elements on your page. Alternatively add <a href='#' class='add-text-block-to-content' parent-container='#visual_composer_content'><i class='icon'></i> Text block</a> with single click.", LANGUAGE_ZONE) . '</p></td>
</tr>
</table>
<table class="helper-block">
<tr>
<td><span>2</span></td><td><p class="one-line"> ' . __("Click the pencil icon on the content elements to change their properties.", LANGUAGE_ZONE) . '</p></td>
</tr>
<tr>
<td colspan="2">
<div class="edit-picture"></div>
</td>
</tr>
</table>
</div>
</div>
<div id="container-helper-block" style="display: none;">' . $this->getContainerHelper() . '</div>';
?>
<script type="text/javascript">
var vc_user_mapper = <?php
echo json_encode(WPBMap::getUserShortCodes());
?>
,
vc_mapper = <?php
echo json_encode(WPBMap::getShortCodes());
?>
;
</script>
<?php
$wpb_vc_status = get_post_meta($post->ID, '_wpb_vc_js_status', true);
$wpb_post_custom_css = get_post_meta($post->ID, '_wpb_post_custom_css', true);
if ($wpb_vc_status == "" || !isset($wpb_vc_status)) {
$wpb_vc_status = 'false';
}
$output .= '<input type="hidden" id="wpb_custom_post_css_field" name="wpb_vc_post_custom_css" value="' . htmlspecialchars($wpb_post_custom_css) . '" />';
$output .= '<input type="hidden" id="wpb_vc_js_status" name="wpb_vc_js_status" value="' . $wpb_vc_status . '" />';
$output .= '<input type="hidden" id="wpb_vc_loading" name="wpb_vc_loading" value="' . __("Loading, please wait...", LANGUAGE_ZONE) . '" />';
$output .= '<input type="hidden" id="wpb_vc_loading_row" name="wpb_vc_loading_row" value="' . __("Crunching...", LANGUAGE_ZONE) . '" />';
$output .= '<input type="hidden" id="wpb_vc_js_interface_version" name="wpb_vc_js_interface_version" value="' . vc_get_initerface_version() . '" />';
echo $output;
require_once WPBakeryVisualComposer::config('COMPOSER') . 'templates/media_editor.php';
require_once WPBakeryVisualComposer::config('COMPOSER') . 'lib/params/loop/templates.html';
require_once WPBakeryVisualComposer::config('COMPOSER') . 'lib/params/options/templates.html';
}
示例3: echo
?>
<input type="hidden" id="user-id" name="user_ID" value="<?php
echo (int) $user_ID;
?>
" />
<input type="hidden" id="hiddenaction" name="action" value="<?php
echo esc_attr($form_action);
?>
" />
<input type="hidden" id="originalaction" name="originalaction" value="<?php
echo esc_attr($form_action);
?>
" /> <input type="hidden" id="post_author" name="post_author" value="<?php
echo esc_attr($this->post->post_author);
?>
" />
<input type="hidden" id="referredby" name="referredby" value="<?php
echo esc_url(wp_get_referer());
?>
" />
<?php
if (wp_is_mobile()) {
wp_enqueue_script('jquery-touch-punch');
}
require_once WPBakeryVisualComposer::config('COMPOSER') . 'lib/params/loop/templates.html';
require_once WPBakeryVisualComposer::config('COMPOSER') . 'lib/params/options/templates.html';
?>
<div id="vc-elements-p" style="display: none;"></div>
</div>
<?php
require_once $this->adminFile('admin-footer.php');