Пример #1
0
<?php

$conf = op_get_var($config, 'page_thumbnails');
?>
<label class="form-title"><?php 
_e('Page Thumbnail', OP_SN);
?>
</label>
<p class="op-micro-copy"><?php 
_e('Select the landing page for this stage of your launch funnel. The user will be redirected here', OP_SN);
?>
</p>
<?php 
op_thumb_gallery('op[funnel_pages]' . $field_name . '[page_thumbnails][active_thumbnail_preset]', op_get_var($conf, 'active_thumbnail_preset'), 'page_thumbs');
op_upload_field('op[funnel_pages]' . $field_name . '[page_thumbnails][active_thumbnail]' . $field_ext, op_get_var($conf, 'active_thumbnail'));
?>

<label class="form-title"><?php 
_e('Coming Soon Thumbnail', OP_SN);
?>
</label>
<p class="op-micro-copy"><?php 
_e('This page contains your launch content, video or training to add value as part of the launch process', OP_SN);
?>
</p>
<?php 
op_thumb_gallery('op[funnel_pages]' . $field_name . '[page_thumbnails][inactive_thumbnail_preset]', op_get_var($conf, 'inactive_thumbnail_preset'), 'page_thumbs');
op_upload_field('op[funnel_pages]' . $field_name . '[page_thumbnails][inactive_thumbnail]' . $field_ext, op_get_var($conf, 'inactive_thumbnail'));
Пример #2
0
_e('Upload a Banner Image', OP_SN);
?>
</label>
    <p class="op-micro-copy"><?php 
_e('Upload a header image');
?>
</p>
    <?php 
op_upload_field('op[sections][header_logo_setup][bgimg]', op_default_option('header_logo_setup', 'bgimg'));
?>
    
    <div class="clear"></div>
    <label for="op_sections_header_logo_setup_repeatbgimg" class="form-title"><?php 
_e('Upload Repeating Header Image', OP_SN);
?>
</label>
    <p class="op-micro-copy"><?php 
_e('This would normally be a gradient.  Upload a repeating header background image which will be tiled horizontally on your header.  We recommend you use a gradient of your choice which is 1px by 250px or the same height as the banner image above if you have uploaded one', OP_SN);
?>
</p>
    <?php 
op_upload_field('op[sections][header_logo_setup][repeatbgimg]', op_default_option('header_logo_setup', 'repeatbgimg'));
?>
    <label><?php 
_e('or Choose a header background colour', OP_SN);
?>
</label>
	<?php 
op_color_picker('op[sections][header_logo_setup][bgcolor]', op_default_attr('header_logo_setup', 'bgcolor'), 'op_header_logo_setup');
?>
</div>
Пример #3
0
</label>
	<?php 
op_text_field('op[sections][flowplayer_license][license_key]', op_default_option('flowplayer_license', 'license_key'));
?>

	<label for="op_sections_flowplayer_license_js_file" class="form-title"><?php 
_e('HTML5 commercial version file (JS)', OP_SN);
?>
</label>
    <?php 
op_upload_field('op[sections][flowplayer_license][js_file]', op_default_option('flowplayer_license', 'js_file'));
?>

    <label for="op_sections_flowplayer_license_swf_file" class="form-title"><?php 
_e('Flash commercial version file (SWF)', OP_SN);
?>
</label>
    <?php 
op_upload_field('op[sections][flowplayer_license][swf_file]', op_default_option('flowplayer_license', 'swf_file'));
?>

    <label for="op_sections_flowplayer_license_custom_logo" class="form-title"><?php 
_e('Custom logo', OP_SN);
?>
</label>
    <?php 
op_upload_field('op[sections][flowplayer_license][custom_logo]', op_default_option('flowplayer_license', 'custom_logo'));
?>

    <div class="clear"></div>
</div>
Пример #4
0
_e('Upload a Banner Image', 'optimizepress');
?>
</label>
    <p class="op-micro-copy"><?php 
_e('Recommended if you don\'t have a logo. Upload a header image up to 975px in width with any graphics on it, and we\'ll throw that on instead.', 'optimizepress');
?>
</p>
    <?php 
op_upload_field('op[sections][blog_header][bgimg]', op_default_option('blog_header', 'bgimg'));
?>
    
    
    <label for="op_sections_blog_header_repeatbgimg" class="form-title"><?php 
_e('Upload Repeating Header Background Image', 'optimizepress');
?>
</label>
    <p class="op-micro-copy"><?php 
_e('This would normally be a gradient. Upload a repeating header background image which will be tiled horizontally on your header.  We recommend you use a gradient of your choice which is 1px by 250px or the same height as the banner image above if you have uploaded one', 'optimizepress');
?>
</p>
    <?php 
op_upload_field('op[sections][blog_header][repeatbgimg]', $repeatbgimg);
?>
    <label><?php 
_e('or Choose a header background colour', 'optimizepress');
?>
</label>
	<?php 
op_color_picker('op[sections][blog_header][bgcolor]', $bgcolor, 'op_blog_header_bgcolor');
?>
</div>
Пример #5
0
<div class="op-bsw-grey-panel-content op-bsw-grey-panel-no-sidebar cf" id="op_page_layout_landing_bg">
    <label for="op_header_layout_logo" class="form-title"><?php 
_e('Background Image', 'optimizepress');
?>
</label>
    <p class="op-micro-copy"><?php 
_e('Upload a image to use as the background for your page.', 'optimizepress');
?>
</p>
    <?php 
op_upload_field('op[landing_bg][image]', op_default_page_option('landing_bg', 'image'));
?>
</div>
Пример #6
0
?>
</label>
                    <?php 
echo op_slider_picker($fieldname . '[inset_shadow_opacity]', op_get_var($button, 'inset_shadow_opacity', 50), 'op_assets_submit_button_inset_shadow_opacity_2', 0, 100, '%');
?>
                </div>
            </div>
        </div>
    </div>
    <div class="button-option-style button-option-style-7">
        <label class?"form-title"><?php 
_e('Button Image', OP_SN);
?>
</label>
        <?php 
op_upload_field($fieldname . '[image]', op_get_var($button, 'image'));
?>
    </div>
</div>
<?php 
if (1 == op_get_var($button, 'type')) {
    ?>
<script type="text/javascript">
;(function($){
    /*
    * This is a fix for missing ready.promise() on jQuery 1.7.2
    */
    $.Deferred(function(defer) {
        $(defer.resolve);
        $.ready.promise = defer.promise;
    });
Пример #7
0
}
?>
            </select>



            <label for="op_header_layout_nav_bar_below_logo" class="form-title"><?php 
_e('Upload Small Navigation Bar Logo (optional)', OP_SN);
?>
</label>
            <p class="op-micro-copy"><?php 
_e('If you want to show a small logo in your navigation bar, upload it here. Ensure the logo is in transparent PNG format and no larger than 100x40px', OP_SN);
?>
</p>
		    <?php 
op_upload_field('op[header_layout][nav_bar_below][logo]', op_default_page_option('header_layout', 'nav_bar_below', 'logo'));
?>

	    <label for="op_header_layout_nav_bar_below_font" class="form-title"><?php 
_e('Select Navigation Bar Font (optional)', OP_SN);
?>
</label>
            <p class="op-micro-copy"><?php 
_e('If you would like to change the font for this navigation menu, you may change these settings below.', OP_SN);
?>
</p>
			<?php 
$font_family = isset($header_layout['nav_bar_below']['font_family']) ? $header_layout['nav_bar_below']['font_family'] : op_default_option($header_layout['nav_bar_below'], 'font_family');
$font_weight = isset($header_layout['nav_bar_below']['font_weight']) ? $header_layout['nav_bar_below']['font_weight'] : op_default_option($header_layout['nav_bar_below'], 'font_weight');
$font_size = isset($header_layout['nav_bar_below']['font_size']) ? $header_layout['nav_bar_below']['font_size'] : op_default_option($header_layout['nav_bar_below'], 'font_size');
$font_shadow = isset($header_layout['nav_bar_below']['font_shadow']) ? $header_layout['nav_bar_below']['font_shadow'] : op_default_option($header_layout['nav_bar_below'], 'font_shadow');
Пример #8
0
<div class="op-bsw-grey-panel-content op-bsw-grey-panel-no-sidebar cf">
    <label for="op_favicon" class="form-title"><?php 
_e('Upload your favicon', OP_SN);
?>
</label>
    <p class="op-micro-copy"><?php 
_e('Favicons should be 16px by 16px and in .ico format. You can easily convert images into .ico format using <a href="http://iconverticons.com/online/" target="_blank">http://iconverticons.com/online/</a>.', OP_SN);
?>
</p>
    <?php 
op_upload_field('op[sections][favicon]', op_default_option('favicon'));
?>
    <div class="clear"></div>
</div>
Пример #9
0
?>
" />

        <label for="<?php 
echo $fieldid;
?>
placeholder" class="form-title"><?php 
_e('Placeholder:', 'optimizepress');
?>
</label>
        <p class="op-micro-copy"><?php 
_e('Select an image to use as a placeholder in your video', 'optimizepress');
?>
</p>
        <?php 
op_upload_field($fieldname . '[placeholder]', $fields['placeholder']);
?>

        <div class="op-checkbox-container">
        	<input type="checkbox" name="<?php 
echo $fieldname;
?>
[hide_controls]" id="<?php 
echo $fieldid;
?>
hide_controls"<?php 
echo $fields['hide_controls'] == 'Y' ? ' checked="checked"' : '';
?>
 value="Y" />
    		<label for="<?php 
echo $fieldid;
Пример #10
0
?>
</option>
                    <option value="url"<?php 
echo !$file ? ' selected="selected"' : '';
?>
><?php 
_e('URL', 'optimizepress');
?>
</option>
                </select>
                <div class="op-type op-type-file<?php 
echo !$file ? ' op-disabled-type' : '';
?>
">
                	<?php 
op_upload_field($fieldname . '[file][]', op_get_var($item, 'upload_img'));
?>
                </div>
                <div class="op-type op-type-url<?php 
echo $file ? ' op-disabled-type' : '';
?>
">
	                <label for="<?php 
echo $id;
?>
imgurl_<?php 
echo $index;
?>
" class="form-title"><?php 
_e('URL:', 'optimizepress');
?>
Пример #11
0
        <?php 
op_upload_field($fieldname . '[file]', op_default_attr($section_name, $tab, $name, 'upload_img'));
?>
        <label for="<?php 
echo $id;
?>
imgurl" class="form-title"><?php 
_e('Hosted elsewhere? Paste the link below', 'optimizepress');
?>
</label>
        <input type="text" name="<?php 
echo $fieldname;
?>
[imgurl]" id="<?php 
echo $id;
?>
imgurl" value="<?php 
echo op_default_attr($section_name, $tab, $name, 'imgurl');
?>
" />
        
        <label for="<?php 
echo $id;
?>
href" class="form-title"><?php 
_e('Where do you wish this advertisement to link to?', 'optimizepress');
?>
</label>
        <input type="text" name="<?php 
echo $fieldname;
Пример #12
0
echo op_font_visual_dropdown($tmp_id . 'font');
echo op_font_style_dropdown($tmp_id . '[style]', '', $tmp_id . 'style');
echo op_font_style_checkbox($tmp_id . '[style_checkbox_text]', '', $tmp_id . 'style_checkbox_text');
echo op_font_style_checkbox($tmp_id . '[style_checkbox_subtext]', '', $tmp_id . 'style_checkbox_subtext');
echo op_font_spacing_dropdown($tmp_id . '[spacing]', '', $tmp_id . 'spacing');
echo op_font_shadow_dropdown($tmp_id . '[shadow]', '', $tmp_id . 'shadow');
?>
        <div id="op_dummy_wysiwyg">
        <?php 
$GLOBALS['op_disable_asset_link'] = true;
op_tiny_mce('', 'opassetswysiwyg');
$GLOBALS['op_disable_asset_link'] = false;
?>
        </div>
        <div id="op_dummy_media_container"><?php 
op_upload_field('op_dummy_media');
?>
</div>
    </div>
</div>
<script type="text/javascript">
    if (!("autofocus" in document.createElement("input"))) {
        document.getElementById("op_assets_filter").focus();
    }
</script>
<script type="text/javascript" src="<?php 
echo is_ssl() ? 'https' : 'http';
?>
://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load('webfont','1');
Пример #13
0
op_color_picker('someField[borderBottomColor]', '', 'op_section_row_options_borderBottomColor');
?>
            <a href="#reset" class="reset-link">Reset</a>
            </div>
        </div>

        <label><?php 
_e('Row background image', OP_SN);
?>
</label>
        <p class="op-micro-copy"><?php 
_e('Choose an image to use as the row background', OP_SN);
?>
</p>
        <?php 
op_upload_field('op_row_background');
?>
        <br />
        <p class="op-micro-copy"><?php 
_e('Choose how you would like the background image displayed', OP_SN);
?>
</p>
        <select class="op_row_bg_options" id="op_row_bg_options" name="op_bg_options">
            <option value="center"><?php 
_e('Center (center your background image)', OP_SN);
?>
</option>
            <option value="cover"><?php 
_e('Cover/Stretch (stretch your background image to fit)', OP_SN);
?>
</option>
Пример #14
0
<div id="export_layout_category_new_container"<?php 
echo $class2;
?>
>
    <input type="text" name="export_layout_category_new" id="export_layout_category_new" value="" />
    <input type="button" class="button" value="<?php 
_e('Go', 'optimizepress');
?>
" id="export_layout_category_new_submit" />
    <div class="op-waiting"><img class="op-bsw-waiting op-show-waiting op-hidden" alt="" src="images/wpspin_light.gif" /></div>
    <span class="create-link"><br /><?php 
printf(__('%1$sSelect a current one%2$s', 'optimizepress'), '<a href="#" id="export_layout_category_select">', '</a>');
?>
</span>
</div>

<label for="export_layout_image" class="form-title"><?php 
_e('Placeholder:', 'optimizepress');
?>
</label>
<?php 
op_upload_field('export_layout_image', '', false, 'file', true);
?>
<br />
<input type="button" name="export_layout_submit" id="export_layout_submit" value="<?php 
_e('Generate ZIP', 'optimizepress');
?>
" />
<div class="op-waiting op-hidden"><img class="op-bsw-waiting op-show-waiting" alt="" src="images/wpspin_light.gif" /></div>
<div id="op_export_content" class="op-export-content"></div>
Пример #15
0
    function display_settings($section_name, $config = array(), $return = false)
    {
        if (isset($_GET['page']) && $_GET['page'] != 'optimizepress') {
            $id = 'op_' . $section_name . '_';
            $name = 'op[' . $section_name . ']';
            /*if(defined('OP_PAGEBUILDER')){
            			$messages = array(
            				'Customize the SEO settings for this page. These options will override any options set in the global OptimizePress SEO settings',
            				'Set the title for your page. this will show in your visitors\' browser and is also important for SEO.',
            				'Set the description for this page. Some search engines will pull this information to show next to your site listing in their search results',
            				'Set the individual keywords for this page. Each keyword should be separated with a comma. E.g. keyword 1, keyword 2 etc',
            			);
            		} else {*/
            $messages = array(__('Customize the SEO settings for this page.', OP_SN), __('Set the site wide title for your blog.', OP_SN), __('Set the default site wide description for your site.  Some search engines will pull this information to show next to your site listing in their search results', OP_SN), __('Set the default site wide keywords for your site.', OP_SN), __('Image must be minimum of 200x200px', OP_SN));
            /*}*/
            ?>
    <div class="op-bsw-grey-panel-content op-bsw-grey-panel-no-sidebar">
	    <div class="entry-content">
        	<p><?php 
            _e($messages[0], OP_SN);
            ?>
</p>
            <div>
            	<label for="<?php 
            echo $id;
            ?>
title" class="form-title"><?php 
            _e('Meta Title', OP_SN);
            ?>
</label>
	            <p class="op-micro-copy"><?php 
            _e($messages[1], OP_SN);
            ?>
</p>
	            <input type="text" name="<?php 
            echo $name;
            ?>
[title]" id="<?php 
            echo $id;
            ?>
title" value="<?php 
            echo $this->default_attr($section_name, 'title');
            ?>
" />
            </div>
            <div>
            	<label for="<?php 
            echo $id;
            ?>
description" class="form-title"><?php 
            _e('Meta Description', OP_SN);
            ?>
</label>
	            <p class="op-micro-copy"><?php 
            _e($messages[2], OP_SN);
            ?>
</p>
	            <textarea name="<?php 
            echo $name;
            ?>
[description]" id="<?php 
            echo $id;
            ?>
description" cols="40" rows="5"><?php 
            echo stripslashes($this->default_attr($section_name, 'description'));
            ?>
</textarea>
            </div>
            <div>
	            <label for="<?php 
            echo $id;
            ?>
title" class="form-title"><?php 
            _e('Meta Keywords', OP_SN);
            ?>
</label>
    	        <p class="op-micro-copy"><?php 
            _e($messages[3], OP_SN);
            ?>
</p>
    	        <input type="text" name="<?php 
            echo $name;
            ?>
[keywords]" id="<?php 
            echo $id;
            ?>
keywords" value="<?php 
            echo $this->default_attr($section_name, 'keywords');
            ?>
" />
            </div>
            
            <div>
	            <label for="<?php 
            echo $id;
            ?>
ogtitle" class="form-title"><?php 
            _e('Facebook Title', OP_SN);
            ?>
</label>
    	        <p class="op-micro-copy"><?php 
            //_e($messages[3],OP_SN)
            ?>
</p>
    	        <input type="text" name="<?php 
            echo $name;
            ?>
[ogtitle]" id="<?php 
            echo $id;
            ?>
ogtitle" value="<?php 
            echo $this->default_attr($section_name, 'ogtitle');
            ?>
" />
            </div>
            
            <div>
	            <label for="<?php 
            echo $id;
            ?>
ogdescription" class="form-title"><?php 
            _e('Facebook Description', OP_SN);
            ?>
</label>
    	        <p class="op-micro-copy"><?php 
            //_e($messages[3],OP_SN)
            ?>
</p>
    	        <input type="text" name="<?php 
            echo $name;
            ?>
[ogdescription]" id="<?php 
            echo $id;
            ?>
ogdescription" value="<?php 
            echo $this->default_attr($section_name, 'ogdescription');
            ?>
" />
            </div>
            
            <div>
	            <label for="<?php 
            echo $id;
            ?>
ogimage" class="form-title"><?php 
            _e('Facebook Image', OP_SN);
            ?>
</label>
    	        <p class="op-micro-copy"><?php 
            _e($messages[4], OP_SN);
            ?>
</p>
    	        <?php 
            op_upload_field('op[seo][ogimage]', $this->default_attr($section_name, 'ogimage'));
            ?>
            </div>
    	</div>
    </div>
	<?php 
        }
    }
Пример #16
0
    echo $field['name'];
    ?>
</label>
    <?php 
    if (!empty($field['help'])) {
        echo '<p class="op-micro-copy">' . __($field['help'], OP_SN) . '</p>';
    }
    if (isset($field['font_html'])) {
        $name .= '][value';
    }
    switch ($field['type']) {
        case 'textarea':
            echo '<textarea name="' . $fieldname . '[' . $name . ']" id="' . $id . $name . '">' . $field['value'] . '</textarea>';
            break;
        case 'image':
            op_upload_field($fieldname . '[' . $name . ']', $field['value']);
            break;
        case 'wysiwyg':
            op_tiny_mce($field['value'], $id . $name, array('textarea_name' => $fieldname . '[' . $name . ']'));
            // adding normal wp_editor
            $editor_settings = array('textarea_name' => $fieldname . '[' . $name . ']', 'tinymce' => array('theme_advanced_disable' => 'spellchecker, fullscreen, wp_help, charmap, pasteword, pastetext, undo, redo, wp_adv, wp_more'), 'quicktags' => false);
            //wp_editor($field['value'], $id.$name, $editor_settings);
            break;
        default:
            echo '<input type="text" name="' . $fieldname . '[' . $name . ']" id="' . $id . $name . '" value="' . $field['value'] . '" />';
            break;
    }
    op_get_var_e($field, 'font_html');
    ?>
</div>
<?php 
Пример #17
0
        global $wpdb;
        $post_id = OP_PAGEBUILDER_ID;
        $results = $wpdb->get_results("SELECT meta_value as page_thumbnail FROM `{$wpdb->prefix}postmeta` WHERE post_id = " . $post_id . " AND meta_key = '_optimizepress_page_thumbnail'");
        $page_thumbnail = '';
        if (!empty($results)) {
            $page_thumbnail = $results[0]->page_thumbnail;
        }
        if (!isset($page_thumbnail_preset)) {
            $page_thumbnail_preset = '';
        }
        ?>
				<?php 
        op_thumb_gallery('op[page][thumbnail_preset]', $page_thumbnail_preset, 'page_thumbs');
        ?>
				<?php 
        op_upload_field('op[page][thumbnail]', $page_thumbnail);
        ?>
			</div>
    	</div>
    </div>
	</div>
	<?php 
    }
    ?>
	<div class="op-bsw-grey-panel section-<?php 
    echo $class . ($no_content ? ' op-bsw-grey-panel-no-content' : '');
    ?>
">
		<div class="op-bsw-grey-panel-header cf">
			<h3><?php 
    echo $no_content ? $section['title'] : '<a href="#">' . $section['title'] . '</a>';
Пример #18
0
<?php

if (isset($elements) && is_array($elements)) {
    foreach ($elements as $el => $info) {
        if (isset($info['title'])) {
            echo '
	<label class="form-title">' . $info['title'] . '</label>';
        }
        if (isset($info['description'])) {
            echo '
	<p class="op-micro-copy">' . $info['description'] . '</p>';
        }
        if (isset($info['type'])) {
            if ($info['type'] == 'image') {
                echo op_upload_field($fieldname . '[' . $el . ']', op_default_page_option($opt_array, $el), true);
            } else {
                if ($info['type'] == 'select') {
                    ?>
				<select name="<?php 
                    echo $fieldname . '[' . $el . ']';
                    ?>
" id="<?php 
                    echo $fieldid . $el;
                    ?>
">
					<?php 
                    foreach ($info['values'] as $key => $value) {
                        ?>
						<option value="<?php 
                        echo $key;
                        ?>