예제 #1
0
/** 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>
예제 #2
0
<?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>
예제 #3
0
/** 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">