当前位置: 首页>>代码示例>>PHP>>正文


PHP wpl_global::load_js_template方法代码示例

本文整理汇总了PHP中wpl_global::load_js_template方法的典型用法代码示例。如果您正苦于以下问题:PHP wpl_global::load_js_template方法的具体用法?PHP wpl_global::load_js_template怎么用?PHP wpl_global::load_js_template使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在wpl_global的用法示例。


在下文中一共展示了wpl_global::load_js_template方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: defined

/** no direct access * */
defined('_WPLEXEC') or die('Restricted access');
if ($type == 'attachments' and !$done_this) {
    _wpl_import('libraries.items');
    $extentions = explode(',', $options['ext_file']);
    $ext_str = '';
    foreach ($extentions as $extention) {
        $ext_str .= $extention . '|';
    }
    // remove last |
    $ext_str = substr($ext_str, 0, -1);
    $ext_str = rtrim($ext_str, ';');
    $max_size = $options['file_size'];
    // Load Handlebars Templates
    echo wpl_global::load_js_template('dbst-wizard-attachment');
    ?>
<div class="attach-btn-wp">
	<div class="wpl-button button-1 button-upload">
		<span><?php 
    echo __('Select files', WPL_TEXTDOMAIN);
    ?>
</span>
		<!-- The file input field used as target for the file upload widget -->
		<input id="attachment_upload" type="file" name="files[]" multiple>
	</div>
	<div class="field-desc">
		<?php 
    echo __('To attach files click on the "Select files" button.', WPL_TEXTDOMAIN);
    ?>
	</div>
开发者ID:amankatoch,项目名称:wp-plugin,代码行数:30,代码来源:attachments.php

示例2: defined

<?php

/** no direct access * */
defined('_WPLEXEC') or die('Restricted access');
if ($type == 'addon_video' and !$done_this) {
    _wpl_import('libraries.items');
    $ext_str = trim(str_replace(',', '|', $options['ext_file']), '|,; ');
    $max_size = $options['file_size'];
    $vid_embed_items = wpl_items::get_items($item_id, 'video', $this->kind, 'video_embed', 1);
    $vid_embed_count = 1;
    // Load Handlebars Templates
    echo wpl_global::load_js_template('dbst-wizard-videos');
    ?>

<div class="video-tabs-wp" id="video-tabs">
	<ul>
		<li class="active"><a id="embed-tab" href="#embed" onclick="video_select_tab(0); return false;"><?php 
    echo __('Embed code', WPL_TEXTDOMAIN);
    ?>
</a></li>
		<?php 
    if (wpl_settings::get('video_uploader')) {
        ?>
		<li><a id="uploader-tab" href="#uploader" onclick="video_select_tab(1); return false;"><?php 
        echo __('Video uploader', WPL_TEXTDOMAIN);
        ?>
</a></li>
		<?php 
    }
    ?>
	</ul>
开发者ID:gvh1993,项目名称:project-vvvh,代码行数:31,代码来源:addon_video.php

示例3: defined

/** no direct access * */
defined('_WPLEXEC') or die('Restricted access');
if ($type == 'gallery' and !$done_this) {
    _wpl_import('libraries.items');
    $extentions = explode(',', $options['ext_file']);
    $ext_str = '';
    foreach ($extentions as $extention) {
        $ext_str .= $extention . '|';
    }
    // remove last |
    $ext_str = substr($ext_str, 0, -1);
    $ext_str = rtrim($ext_str, ';');
    $max_size = $options['file_size'];
    // Load Handlebars Templates
    echo wpl_global::load_js_template('dbst-wizard-gallery');
    ?>
<div class="video-tabs-wp" id="gallery-tabs-wp-container">
	<ul>
        <li id="wpl_gallery_uploader_tab" onclick="wpl_gallery_select_tab('wpl_gallery_uploader_tab', 'wpl_gallery_uploader'); return false;" class="active"><a href="#wpl_gallery_uploader"><?php 
    echo __('Image uploader', WPL_TEXTDOMAIN);
    ?>
</a></li>
		<li id="wpl_gallery_external_tab" onclick="wpl_gallery_select_tab('wpl_gallery_external_tab', 'wpl_gallery_external'); return false;"><a href="#wpl_gallery_external"><?php 
    echo __('External images', WPL_TEXTDOMAIN);
    ?>
</a></li>
	</ul>
</div>

<div class="gallary-btn-wp">
开发者ID:amankatoch,项目名称:wp-plugin,代码行数:30,代码来源:gallery.php


注:本文中的wpl_global::load_js_template方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。