Exemple #1
0
 function get_options()
 {
     //$content_fields = op_optin_default_fields();
     $fields = array('title' => array('name' => __('Title', 'optimizepress'), 'help' => __('Enter the title to be displayed at the top of the content area', 'optimizepress'), 'default' => __('The perfect way to convert your traffic into sales', 'optimizepress')), 'paragraph' => array('name' => __('Content', 'optimizepress'), 'help' => __('Enter the sub title/message text above your submit button', 'optimizepress'), 'type' => 'wysiwyg', 'default' => __('Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.<br />Epsum factorial non deposit quid pro quo hic escorol. Olypian quarrels et gorilla congolium sic ad nauseum.', 'optimizepress'), 'disable_font' => true), 'submit_button' => array('name' => __('Submit Button', 'optimizepress'), 'help' => __('Enter the text for the button on your feature area', 'optimizepress'), 'default' => __('Take The Tour...', 'optimizepress'), 'disable_font' => true), 'link_url' => array('name' => __('Button Link URL', 'optimizepress'), 'disable_font' => true));
     $img_fields = array('image' => array('name' => __('Image', 'optimizepress'), 'help' => __('Enter the URL to the image', 'optimizepress'), 'default' => '', 'type' => 'image', 'disable_font' => true));
     $vid_opts = array('values' => array('type' => 'video', 'width' => '580', 'height' => '325'));
     $styles = array(1 => array('content' => array('module' => 'content_fields', 'title' => __('Content', 'optimizepress'), 'mod_options' => array('fields' => $fields), 'template' => array($this, 'content_fields'), 'before' => '<div class="twelve columns">', 'after' => '</div>'), 'image' => array('module' => 'content_fields', 'mod_options' => array('fields' => $img_fields), 'template' => array($this, 'content_fields'), 'before' => '<div class="twelve featured-image columns">', 'after' => '</div>')), 2 => array('content' => array('module' => 'content_fields', 'mod_options' => array('fields' => $fields), 'before' => '<div class="nine columns">', 'after' => '</div>'), 'video' => array('module' => 'video', 'mod_options' => $vid_opts, 'before' => '<div class="fifteen columns video-panel">', 'after' => '</div>')), 3 => array('optin' => array('module' => 'signup_form', 'before' => '<div class="nine columns">', 'after' => '</div>'), 'image' => array('module' => 'content_fields', 'mod_options' => array('fields' => $img_fields), 'before' => '<div class="twelve columns featured-image offset-by-two">', 'after' => '</div>')), 4 => array('optin' => array('module' => 'signup_form', 'before' => '<div class="nine columns">', 'after' => '</div>'), 'video' => array('module' => 'video', 'mod_options' => $vid_opts, 'before' => '<div class="fifteen columns video-panel">', 'after' => '</div>')), 5 => array('image' => array('module' => 'content_fields', 'mod_options' => array('fields' => $img_fields), 'before' => '<div class="twelve featured-image columns">', 'after' => '</div>'), 'content' => array('module' => 'content_fields', 'mod_options' => array('fields' => $fields), 'before' => '<div class="twelve columns">', 'after' => '</div>')), 6 => array('video' => array('module' => 'video', 'mod_options' => $vid_opts, 'before' => '<div class="fifteen columns video-panel">', 'after' => '</div>'), 'content' => array('module' => 'content_fields', 'mod_options' => array('fields' => $fields), 'before' => '<div class="nine columns">', 'after' => '</div>')), 7 => array('image' => array('module' => 'content_fields', 'mod_options' => array('fields' => $img_fields), 'before' => '<div class="twelve columns featured-image">', 'after' => '</div>'), 'optin' => array('module' => 'signup_form', 'before' => '<div class="nine columns offset-by-two">', 'after' => '</div>')), 8 => array('video' => array('module' => 'video', 'mod_options' => $vid_opts, 'before' => '<div class="fifteen columns video-panel">', 'after' => '</div>'), 'optin' => array('module' => 'signup_form', 'before' => '<div class="nine columns">', 'after' => '</div>')), 9 => array('content' => array('module' => 'content_fields', 'mod_options' => array('fields' => array('title' => array('name' => __('Title', 'optimizepress'), 'help' => __('Enter the title to be displayed at the top of the content area', 'optimizepress'), 'default' => __('The perfect way to convert your traffic into sales', 'optimizepress')), 'subtitle' => array('name' => __('Sub Title', 'optimizepress'), 'help' => __('Enter the sub title to be displayed at the top of the content area', 'optimizepress'), 'default' => __('The perfect way to convert your traffic into sales', 'optimizepress'))))), 'image' => array('module' => 'content_fields', 'mod_options' => array('fields' => array('image' => array('name' => __('Image', 'optimizepress'), 'help' => __('Enter the URL to the image', 'optimizepress'), 'default' => OP_PAGES_URL . 'global/images/marketing-sites/screenies.png', 'type' => 'image', 'disable_font' => true))))), 10 => array('content' => array('module' => 'content_fields', 'mod_options' => array('fields' => $fields))), 11 => array('content_large' => array('module' => 'live_editor', 'module_type' => 'page')));
     //1,6,2,7,3,8,4,9,5,10
     $this->options = isset($styles[$this->style]) ? $styles[$this->style] : array();
     if ($this->style != 11) {
         $this->options = array_merge(array('liveeditor_above' => array('module' => 'live_editor', 'module_type' => 'page')), $this->options, array('liveeditor_below' => array('module' => 'live_editor', 'module_type' => 'page')));
     }
     foreach ($this->options as $name => $options) {
         op_mod($options['module'], op_get_var($options, 'module_type', 'blog'));
         if (!isset($options['template'])) {
             if ($this->options[$name]['module'] == 'content_fields') {
                 $this->options[$name]['template'] = array($this, 'content_fields');
             } elseif ($this->options[$name]['module'] == 'signup_form') {
                 $this->options[$name]['template'] = array($this, 'optin_box');
                 $this->options[$name]['mod_options'] = array('disable' => 'color_scheme', 'content_fields' => op_optin_default_fields());
                 $this->options[$name]['mod_options']['submit_button_config'] = array('defaults' => array('content' => __('Get Started', 'optimizepress')));
             } elseif ($this->options[$name]['module'] == 'video') {
                 $this->options[$name]['template'] = array($this, 'video_placeholder');
             }
         }
     }
 }
Exemple #2
0
 function get_options($style)
 {
     $vid_opts = array(array('values' => array('type' => 'video', 'width' => '540', 'height' => '350')), array('values' => array('type' => 'video', 'width' => '850', 'height' => '500')));
     $styles = array('A' => array('video' => array('module' => 'video', 'mod_options' => $vid_opts[0], 'before' => '<div class="fourteen columns">', 'after' => '</div>'), 'optin' => array('module' => 'signup_form', 'before' => '<div class="nine columns offset-by-one">', 'after' => '</div>')), 'B' => array('title' => array('module' => 'content_fields', 'mod_options' => array('fields' => array('title' => array('name' => __('Title', 'optimizepress'), 'default' => __('Sell Your Product or Service Like A Pro With OptimizePress!', 'optimizepress'), 'element' => 'h1', 'type' => 'wysiwyg'))), 'before' => '<div class="twentyfour columns">', 'after' => '</div>'), 'video' => array('module' => 'video', 'mod_options' => $vid_opts[0], 'before' => '<div class="fourteen columns">', 'after' => '</div>'), 'optin' => array('module' => 'signup_form', 'mod_options' => array('ignore_fields' => array('title')), 'before' => '<div class="nine columns offset-by-one">', 'after' => '</div>')), 'C' => array('video' => array('module' => 'video', 'mod_options' => $vid_opts[1], 'before' => '<div class="twentytwo columns offset-by-one">', 'after' => '</div>'), 'optin' => array('module' => 'signup_form', 'mod_options' => array('ignore_fields' => array('title', 'form_header')), 'before' => '<div class="twentyfour columns">', 'after' => '</div>')), 'D' => array('video' => array('module' => 'video', 'mod_options' => $vid_opts[1], 'before' => '<div class="twentytwo columns offset-by-one">', 'after' => '</div>'), 'optin' => array('module' => 'signup_form', 'mod_options' => array('ignore_fields' => array('title', 'form_header')), 'before' => '<div class="twentyfour columns">', 'after' => '</div>')), 'E' => array('video' => array('module' => 'video', 'mod_options' => $vid_opts[1], 'before' => '<div class="twentytwo columns offset-by-one">', 'after' => '</div>'), 'optin' => array('module' => 'signup_form', 'mod_options' => array('disable_name' => true, 'ignore_fields' => array('title', 'form_header', 'name_default')), 'before' => '<div class="twenty columns offset-by-two">', 'after' => '</div>')), 'F' => array('video' => array('module' => 'video', 'mod_options' => $vid_opts[1], 'before' => '<div class="twentytwo columns offset-by-one">', 'after' => '</div>'), 'optin' => array('module' => 'signup_form', 'mod_options' => array('disable_name' => true, 'ignore_fields' => array('title', 'form_header', 'name_default')), 'before' => '<div class="twenty columns offset-by-two">', 'after' => '</div>')), 'G' => array('video' => array('module' => 'video', 'mod_options' => array('values' => array('type' => 'video', 'width' => 512, 'height' => 350))), 'content' => array('module' => 'content_fields', 'mod_options' => array('fields' => array('quote' => array('name' => __('Quote', 'optimizepress'), 'default' => __('&quot;The expert industry has been shrouded in myth and mystery for far too long. Now Brendon Burchard, one of our most innovative and powerful leaders, reveals exactly how we—authors, speakers, coaches, consultants, seminar leaders&quot;', 'optimizepress'), 'disable_font' => true), 'author' => array('name' => __('Quote Author', 'optimizepress'), 'default' => __('Jack Canfield, New York Times best-selling author of The Success Principles and originator of the Chicken Soup for the Soul&reg; series', 'optimizepress'), 'disable_font' => true))), 'template' => array($this, 'blockquote')), 'content2' => array('module' => 'content_fields', 'mod_options' => array('fields' => array('title' => array('name' => __('Title', 'optimizepress'), 'default' => __('Sell Anything With OptimizePress', 'optimizepress'), 'type' => 'wysiwyg'), 'content' => array('name' => __('Content', 'optimizepress'), 'type' => 'wysiwyg', 'default' => __('Order on Amazon.com via the button below, thenforward your Amazon receipt to this email: gifts@millionairemessenger.com<br />When you email your receipt to that email, you will also receive these FREE GIFTS:<br />1) 3 in-depth and invaluable training videos on how to make a million dollars as an advice expert, create lucrative how-to websites, and follow a simple 12-step roadmap to succeeding.2) The Guru Guidebook and templates on how to identify your message, select your topic, and create lucrative advice and how-to products.', 'optimizepress')), 'button_1_url' => array('name' => __('Button 1 URL', 'optimizepress'), 'default' => '#', 'disable_font' => true), 'button_1_text' => array('name' => __('Button 1 Text', 'optimizepress'), 'default' => __('Order On Amazon Now', 'optimizepress'), 'disable_font' => true), 'button_2_url' => array('name' => __('Button 2 URL', 'optimizepress'), 'default' => '#', 'disable_font' => true), 'button_2_text' => array('name' => __('Button 2 Text', 'optimizepress'), 'default' => __('Order On B&amp;N Now', 'optimizepress'), 'disable_font' => true))), 'before' => '<div class="nine columns offset-by-one">', 'after' => '</div>', 'template' => array($this, 'content_template_fb'))), 'H' => array('content_large' => array('module' => 'live_editor', 'module_type' => 'page')));
     $style = isset($styles[$style]) ? $style : 'A';
     $this->style = $style;
     $this->options = $styles[$style];
     if ($style != 'H') {
         $this->options = array_merge(array('liveeditor_above' => array('module' => 'live_editor', 'module_type' => 'page')), $this->options, array('liveeditor_below' => array('module' => 'live_editor', 'module_type' => 'page')));
     }
     foreach ($this->options as $name => $options) {
         op_mod($options['module'], op_get_var($options, 'module_type', 'blog'));
         if (!isset($options['template'])) {
             if ($this->options[$name]['module'] == 'content_fields') {
                 $this->options[$name]['template'] = array($this, 'content_fields');
             } elseif ($this->options[$name]['module'] == 'signup_form') {
                 $this->options[$name]['template'] = array($this, 'optin_box');
                 $mod_options = op_get_var($options, 'mod_options', array());
                 $mod_options['disable'] = 'color_scheme';
                 if (!isset($mod_options['content_fields'])) {
                     $mod_options['content_fields'] = op_optin_default_fields();
                 }
                 $mod_options['submit_button_config'] = array('defaults' => array('content' => __('Get Started', 'optimizepress')));
                 $this->options[$name]['mod_options'] = $mod_options;
             } elseif ($this->options[$name]['module'] == 'video') {
                 $this->options[$name]['template'] = array($this, 'video_placeholder');
             }
         }
     }
     $this->options['template'] = array($this, 'style_template');
 }
Exemple #3
0
    function styles_array()
    {
        $content_fields = op_optin_default_fields();
        $styles = array('video_optin' => array('title' => __('Video &amp; Signup Form', OP_SN), 'options' => array('video' => array('module' => 'video', 'title' => __('Video', OP_SN)), 'signup_form' => array('module' => 'signup_form', 'title' => __('Optin Form', OP_SN), 'mod_options' => array('disable' => 'color_scheme|on_off_switch|content|submit_button', 'add_wrapper' => false), 'use_content' => 'content', 'use_button' => 'submit_button'), 'content' => array('module' => 'content_fields', 'title' => __('Content', OP_SN), 'mod_options' => array('fields' => $content_fields)), 'submit_button' => array('module' => 'submit_button', 'title' => __('Submit Button', OP_SN)))), 'video_content' => array('title' => __('Video &amp; Content', OP_SN), 'options' => array('video' => array('module' => 'video', 'title' => __('Video', OP_SN)), 'content' => array('module' => 'content_fields', 'title' => __('Content', OP_SN), 'mod_options' => array('fields' => array('title' => array('name' => __('Title', OP_SN), 'help' => __('Enter the title to be displayed at the top of the content area', OP_SN)), 'form_header' => array('name' => __('Sub Title', OP_SN), 'help' => __('Enter the sub title/message text above your submit button', OP_SN)), 'footer_note' => array('name' => __('Footer Text', OP_SN), 'help' => __('Enter the message below the submit button (HTML allowed)', OP_SN)), 'submit_button' => array('name' => __('Submit Button', OP_SN), 'help' => __('Enter the text for the button on your feature area', OP_SN)), 'link_url' => __('Button Link URL', OP_SN)))))), 'image_hover_optin' => array('title' => __('Rollover Image &amp; Signup Form', OP_SN), 'options' => array('image_fields' => array('module' => 'content_fields', 'title' => __('Images', OP_SN), 'mod_options' => array('fields' => array('image' => array('name' => __('Image', OP_SN), 'help' => __('Enter the image for your homepage feature area.  This will be shown when the page is loaded', OP_SN)), 'hover_image' => array('name' => __('Hover Image', OP_SN), 'help' => __('Enter the hover/rollover image for the homepage feature area.  This will be shown when the user hovers over the original image with their mouse.  We recommend keeping both images the same size/dimensions', OP_SN)))), 'template' => array($this, 'hover_image')), 'signup_form' => array('module' => 'signup_form', 'title' => __('Optin Form', OP_SN), 'mod_options' => array('disable' => 'color_scheme|on_off_switch|content|submit_button', 'add_wrapper' => false), 'use_content' => 'content', 'use_button' => 'submit_button'), 'content' => array('module' => 'content_fields', 'title' => __('Content', OP_SN), 'mod_options' => array('fields' => $content_fields)), 'submit_button' => array('module' => 'submit_button', 'title' => __('Submit Button', OP_SN)))), 'html_content' => array('title' => __('HTML Content', OP_SN), 'options' => array('content' => array('module' => 'content_fields', 'title' => __('Content', OP_SN), 'mod_options' => array('fields' => array('content' => array('name' => __('HTML Content', OP_SN), 'type' => 'wysiwyg', 'help' => __('Enter HTML content to show in your homepage feature area.', OP_SN)))), 'template' => array($this, 'html_content'))), 'config' => array('before' => '
<div class="featured-panel html-version">
	<div class="content-width cf">')));
        return $styles;
    }
 function get_options()
 {
     //$content_fields = op_optin_default_fields();
     $vid_opts = array('values' => array('type' => 'video', 'width' => '540', 'height' => '350'));
     op_mod('signup_form');
     $style = array('title_logo' => array('module' => 'content_fields', 'mod_options' => array('fields' => array('title' => array('name' => __('Logo', 'optimizepress'), 'default' => $this->global_imgs . 'logo_default.png', 'element' => 'h1', 'type' => 'image'))), 'template' => array($this, 'content_fields')), 'content' => array('module' => 'content_fields', 'mod_options' => array('fields' => array('title' => array('name' => __('Title', 'optimizepress'), 'default' => __('Discover How You Can Build Pages Just Like This In Seconds...', 'optimizepress')), 'content' => array('name' => __('Content', 'optimizepress'), 'default' => __('Your high impact sub-headline or call to action text would be placed here.  Enter your name and email below for instant access', 'optimizepress'), 'type' => 'wysiwyg', 'disable_font' => true))), 'before' => '<div>', 'after' => '</div>', 'template' => array($this, 'content_fields')), 'optin' => array('module' => 'signup_form', 'mod_options' => array('disable' => array('color_scheme'), 'ignore_fields' => array('title', 'form_header', 'footer_note'), 'content_fields' => op_optin_default_fields(), 'submit_button_config' => array('defaults' => array('content' => __('Get Started', 'optimizepress')))), 'template' => array($this, 'optin_box'), 'before' => '<div>', 'after' => '</div>'), 'footer_note' => array('module' => 'content_fields', 'mod_options' => array('fields' => array('footer_note' => array('name' => __('Footer Note', 'optimizepress'), 'default' => __('We value your privacy. Your information will never be shared or sold.', 'optimizepress'), 'wrap' => '<p class="secure-icon"><img src="' . op_page_img('secure.png', true, 'global') . '" alt="secure" width="16" height="15"> %s</p>'))), 'template' => array($this, 'content_fields')), 'template' => array($this, 'style_template'));
     //1,6,2,7,3,8,4,9,5,10
     $this->options = $style;
 }
Exemple #5
0
    function add_lightbox()
    {
        if (!defined('OP_LIVEEDITOR')) {
            $options = op_get_var($this->_options, 'op_lightbox_', array());
            $type = op_get_var($options, 'type');
            $content = '';
            if ($type == 'html') {
                $content = op_get_var($options, 'html_content', array());
                $content = op_get_var($content, 'content');
            } else {
                op_mod('signup_form');
                $mod_opts = array('disable' => 'color_scheme|on_off_switch', 'content_fields' => op_optin_default_fields(), 'submit_button_config' => array('default_button' => '<button class="button-style-2 button-style-2-orange" type="submit"><span>%1$s</span></button>'));
                $optin = op_get_var($options, 'optin_form');
                $output = op_mod('signup_form')->output(array('lightbox', 'optin_form'), $mod_opts, $optin, true);
                $tpl = '
{title}
{form_header}
{form_open}
	{hidden_elems}
	{name_input}
	{email_input}
	{extra_fields}
	{submit_button}
	{footer_note}
{form_close}';
                $wrap = array('title' => '<h1>%s</h1>', 'form_header' => '<h2>%s</h2>');
                $content = op_optin_box($mod_opts, $output, $optin, $tpl, $wrap);
            }
            ?>
		<div id="epicbox-overlay"></div>
		<div id="epicbox" class="sell-box-1">
			<a href="#" class="close"></a>
			<div class="epicbox-content">
				<div class="epicbox-scroll">
                	<?php 
            echo $content;
            ?>
				</div>
			</div>
		</div>
		<?php 
        }
    }
Exemple #6
0
    function get_options()
    {
        //$content_fields = op_optin_default_fields();
        $vid_opts = array('values' => array('type' => 'video', 'width' => '540', 'height' => '350'));
        $styles = array(1 => array('video' => array('module' => 'video', 'mod_options' => $vid_opts, 'before' => '<div class="fourteen columns">', 'after' => '</div>'), 'content' => array('module' => 'content_fields', 'title' => __('Content', OP_SN), 'mod_options' => array('fields' => array()), 'template' => array($this, 'vid_list_1'), 'before' => '<div class="ten columns">', 'after' => '</div>')), 2 => array('video' => array('module' => 'video', 'mod_options' => $vid_opts, 'before' => '<div class="fourteen columns">', 'after' => '</div>'), 'content' => array('module' => 'content_fields', 'mod_options' => array('fields' => array()), 'template' => array($this, 'vid_list_2'), 'before' => '<div class="ten columns">', 'after' => '</div>')), 3 => array('video' => array('module' => 'video', 'mod_options' => $vid_opts, 'before' => '<div class="fourteen columns">', 'after' => '</div>'), 'content' => array('module' => 'content_fields', 'mod_options' => array('fields' => array('paragraph' => array('name' => __('Content', OP_SN), 'help' => __('Enter the content for your feature area', OP_SN), 'type' => 'wysiwyg', 'default' => __('Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.', OP_SN), 'disable_font' => true))), 'before' => '<div class="ten columns">', 'after' => '</div>')), 4 => array('video' => array('module' => 'video', 'mod_options' => $vid_opts, 'before' => '<div class="fourteen columns">', 'after' => '</div>'), 'content' => array('module' => 'content_fields', 'mod_options' => array('fields' => array()), 'template' => array($this, 'vid_list_3'), 'before' => '<div class="ten columns">', 'after' => '</div>')), 5 => array('video' => array('module' => 'video', 'mod_options' => $vid_opts, 'before' => '<div>', 'after' => '</div>')), 6 => array('content' => array('module' => 'content_fields', 'mod_options' => array('fields' => array('subtitle' => array('title' => __('Title', OP_SN), 'help' => __('Enter the title to be displayed at the top of the content area', OP_SN), 'default' => __('Launch Videos', OP_SN)))), 'before' => '<div class="row cf">
					<div class="twentytwo columns offset-by-one cf">
						<div class="eleven columns alpha">', 'after' => '
						</div>
						<div class="eleven columns omega">
							<div class="social-buttons">
								<a href="https://twitter.com/share" class="twitter-share-button">Tweet</a>
								<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
								<fb:like send="false" width="220" show_faces="false"></fb:like>	
							</div>
						</div>
					</div>
				</div>', 'template' => array($this, 'content_template_fb')), 'video' => array('module' => 'video', 'mod_options' => array('values' => array('type' => 'video', 'width' => '860', 'height' => '470')), 'before' => '
				<div class="row cf">
					<div class="twentytwo offset-by-one columns">', 'after' => '
					</div>
				</div>')), 7 => array('content_large' => array('module' => 'live_editor', 'module_type' => 'page')));
        //1,6,2,7,3,8,4,9,5,10
        $this->options = isset($styles[$this->style]) ? $styles[$this->style] : array();
        if ($this->style != 7) {
            $this->options = array_merge(array('liveeditor_above' => array('module' => 'live_editor', 'module_type' => 'page')), $this->options, array('liveeditor_below' => array('module' => 'live_editor', 'module_type' => 'page')));
        }
        foreach ($this->options as $name => $options) {
            op_mod($options['module'], op_get_var($options, 'module_type', 'blog'));
            if (!isset($options['template'])) {
                if ($this->options[$name]['module'] == 'content_fields') {
                    $this->options[$name]['template'] = array($this, 'content_fields');
                } elseif ($this->options[$name]['module'] == 'signup_form') {
                    $this->options[$name]['template'] = array($this, 'optin_box');
                    $this->options[$name]['mod_options'] = array('disable' => 'color_scheme', 'content_fields' => op_optin_default_fields());
                    $this->options[$name]['mod_options']['submit_button_config'] = array('defaults' => array('content' => __('Get Started', OP_SN)));
                } elseif ($this->options[$name]['module'] == 'video') {
                    $this->options[$name]['template'] = array($this, 'video_placeholder');
                }
            }
        }
    }
Exemple #7
0
 function _get_fields($config = array())
 {
     $content_fields = op_optin_default_fields();
     if (isset($config['content_fields'])) {
         $content_fields = $config['content_fields'];
     }
     return $content_fields;
 }
 function get_options($style)
 {
     //$content_fields = op_optin_default_fields();
     $vid_opts = array(array('values' => array('type' => 'video', 'width' => '540', 'height' => '350')), array('values' => array('type' => 'video', 'width' => '340', 'height' => '200')));
     $big_content = 'YToxOntpOjA7YToyOntzOjk6InJvd19jbGFzcyI7czozODoicm93IG9uZS1jb2wgZml4ZWQtd2lkdGggY2YgdWktc29ydGFibGUiO3M6NzoiY29sdW1ucyI7YToxOntpOjA7YToyOntzOjk6ImNvbF9jbGFzcyI7czo4OiJvbmUgY29scyI7czo4OiJlbGVtZW50cyI7YTo0OntpOjA7czoxMDU6IltoZWFkbGluZSBzdHlsZT1cIjE1XCIgYWxpZ249XCJjZW50ZXJcIl1IZXJlXCdzIGEgU2FtcGxlIEludGVybmV0IE1hcmtldGluZyBTdHlsZSBTcXVlZXplIFBhZ2VbL2hlYWRsaW5lXSI7aToxO3M6MjE4OiJbaGVhZGxpbmUgc3R5bGU9XCIxXCIgZm9udF9zaXplPVwiNDBcIiBmb250X2ZvbnQ9XCJBcmlhbFwiIGZvbnRfc3R5bGU9XCJib2xkXCIgZm9udF9jb2xvcj1cIiNDQjJEMDdcIiBhbGlnbj1cImNlbnRlclwiXUdldCBGcmVlLCBJbnN0YW50IEFjY2VzcyB0byB0aGUgVG9wIEZvdXIgQ2xpZW50LUdldHRpbmcgU3lzdGVtcyBmb3IgUGVyc29uYWwgVHJhaW5lcnPigKZbL2hlYWRsaW5lXSI7aToyO3M6MjE6IltkaXZpZGVyIHN0eWxlPVwiN1wiXSI7aTozO3M6NDU1OiJbdGV4dF9ibG9jayBzdHlsZT1cInN0eWxlXzEucG5nXCIgYWxpZ249XCJsZWZ0XCIgd2lkdGg9XCI1NDBcIl08c3Ryb25nPkdldCB0aGUgIyAxIEZBU1RFU1Qgd2F5IHRvIGdldHRpbmcgYWxsIHRoZSBmaXRuZXNzIGNsaWVudHMgeW91IGNhbiBoYW5kbGUgd2l0aG91dCBzcGVuZGluZyBhIGRpbWUgb24gYWR2ZXJ0aXNpbmcuPC9zdHJvbmc+DQoNCkhpIEknbSBCZWRyb3MgS2V1aWxpYW4sIHRoYXQncyBtZSBpbiB0aGUgcGljdHVyZSwgYW5kIHRoZSB2aWRlbyB5b3UncmUgYWJvdXQgdG8gd2F0Y2ggaXMgZnJvbSBteSAkMSwwMDAgcGVyIHBlcnNvbiBmaXRuZXNzIGJ1c2luZXNzLg0KDQpQbHVzLCBJJ2xsIGVtYWlsIHlvdSBteSB3ZWVrbHkgUFQgUHJvZml0cyBOZXdzbGV0dGVyIHBhY2tlZCB3aXRoIGN1dHRpbmcgZWRnZSBpZGVhcywgdGFjdGljcywgYW5kIHN0cmF0ZWdpZXMuWy90ZXh0X2Jsb2NrXSI7fX19fX0=';
     $default_title = __('Get Free, Instant Access to the Top Four Client-Getting Systems for Personal Trainers&hellip;', OP_SN);
     $default_title2 = __('Get Free, Instant Access to the Top Four Client-Getting Systems for Personal Trainers&hellip;', OP_SN);
     $default_subtitle = __('Get the # 1 FASTEST way to getting all the fitness clients you can handle without spending a dime on advertising.', OP_SN);
     $default_content = __('Hi I\'m Bedros Keuilian, that\'s me in the picture, and the video you\'re about to watch is from my $1,000 per person fitness business. Plus, I\'ll email you my weekly PT Profits Newsletter packed with cutting edge ideas, tactics, and strategies.', OP_SN);
     $default_content_2 = __('Hi I\'m Bedros Keuilian, that\'s me in the picture, and the video you\'re about to watch is from my $1,000 per person fitness business. Plus, I\'ll email you my weekly PT Profits Newsletter packed with cutting edge ideas, tactics, and strategies.', OP_SN);
     $optin_fields = array('title' => array('name' => __('Title', OP_SN), 'help' => __('Enter a title to be displayed above your optin form', OP_SN), 'default' => __('Sell Anything With OptimizePress', OP_SN)), 'subtitle' => array('name' => __('Sub Title', OP_SN), 'help' => __('Enter a sub title to be displayed above your optin form', OP_SN), 'default' => __('Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh.', OP_SN)), 'form_header' => array('name' => __('Form Header', OP_SN), 'help' => __('Enter a call to action for your form - tell the visitor what to do (e.g. Complete the form below&hellip;)', OP_SN), 'default' => __('Get This Report Now Free', OP_SN)), 'footer_note' => array('name' => __('Footer Security Note', OP_SN), 'help' => __('Enter your security or spam notice here to reassure your visitors their details will be safe with you', OP_SN), 'default' => __('Your information is 100% secure with us and will never be shared', OP_SN)), 'name_default' => array('name' => __('Name Default Value', OP_SN), 'help' => __('Enter the default text for the Name input field', OP_SN), 'default' => __('Enter Your Name...', OP_SN)), 'email_default' => array('name' => __('Email Default Value', OP_SN), 'help' => __('Enter the default text for the Email input field', OP_SN), 'default' => __('Enter Your Email...', OP_SN)));
     $content = array('title' => array('fields' => array('title' => array('type' => 'wysiwyg', 'name' => __('Title', OP_SN), 'default' => $default_title, 'unautop' => true))), 'title2' => array('fields' => array('title' => array('name' => __('Title', OP_SN), 'default' => $default_title2, 'element' => 'h1', 'type' => 'wysiwyg', 'unautop' => true))), 'title3' => array('fields' => array('title' => array('name' => __('Title', OP_SN), 'default' => $default_title2, 'element' => 'h2'))), 'subtitle' => array('fields' => array('subtitle' => array('name' => __('Sub Title', OP_SN), 'default' => $default_title2))), 'content' => array('fields' => array('content' => array('name' => __('Content', OP_SN), 'type' => 'wysiwyg', 'default' => $default_content_2, 'disable_font' => true))), 'image' => array('fields' => array('image' => array('type' => 'image', 'name' => __('Image File', OP_SN), 'default' => 'http://placehold.it/300x320', 'disable_font' => true))), 'arrow_text' => array('module' => 'content_fields', 'mod_options' => array('fields' => array('title' => array('name' => __('Title', OP_SN), 'default' => __('Get Free Access Now', OP_SN), 'element' => 'h3'))), 'after_element' => '<img src="' . $this->global_imgs . 'featured-panel/free-access-now-red-arrows.png" alt="" width="209" height="92" />', 'before' => '<div class="get-access-now">', 'after' => '</div>'));
     $styles = array('A' => array('title' => array('module' => 'content_fields', 'mod_options' => $content['title'], 'before' => '<div class="twentyfour columns">', 'after' => '</div>'), 'video' => array('module' => 'video', 'mod_options' => $vid_opts[0], 'before' => '<div class="fifteen columns">', 'after' => '</div>'), 'content' => array('module' => 'content_fields', 'mod_options' => array('fields' => array('subtitle' => array('default' => $default_subtitle, 'name' => __('Title', OP_SN)), 'content' => array('type' => 'wysiwyg', 'default' => $default_content, 'name' => __('Content', OP_SN), 'disable_font' => true))), 'before' => '<div class="nine columns">', 'after' => '</div>'), 'optin' => array('module' => 'signup_form', 'before' => '<div class="twenty columns offset-by-two">', 'after' => '</div>', 'mod_options' => array('disable_name' => true, 'ignore_fields' => array('title', 'form_header', 'name_default')))), 'B' => array('title' => array('module' => 'content_fields', 'mod_options' => $content['title'], 'before' => '<div class="twentyfour columns">', 'after' => '</div>'), 'video' => array('module' => 'video', 'mod_options' => $vid_opts[0], 'before' => '<div class="fourteen columns">', 'after' => '</div>'), 'optin' => array('module' => 'signup_form', 'before' => '<div class="nine columns offset-by-one">', 'after' => '</div>')), 'C' => array('title' => array('module' => 'content_fields', 'mod_options' => $content['title'], 'before' => '<div class="twentyfour columns">', 'after' => '</div>'), 'video' => array('module' => 'video', 'mod_options' => $vid_opts[0], 'before' => '<div class="fifteen columns">', 'after' => '</div>'), 'content' => array('module' => 'content_fields', 'mod_options' => array('fields' => array('subtitle' => array('default' => $default_subtitle, 'name' => __('Title', OP_SN)), 'content' => array('type' => 'wysiwyg', 'default' => $default_content_2, 'name' => __('Content', OP_SN), 'disable_font' => true))), 'before' => '<div class="nine columns">', 'after' => '</div>'), 'optin' => array('module' => 'signup_form', 'mod_options' => array('ignore_fields' => array('title', 'form_header')), 'before' => '<div class="twentyfour columns">', 'after' => '</div>')), 'D' => array('content' => array('module' => 'live_editor', 'module_type' => 'page', 'mod_options' => array('one_col' => true, 'default_layout' => $big_content), 'before' => '<div class="fourteen columns content">', 'after' => '</div>'), 'video' => array('module' => 'video', 'mod_options' => $vid_opts[1]), 'optin' => array('module' => 'signup_form', 'mod_options' => array('ignore_fields' => array('title'))), 'arrow_text' => $content['arrow_text']), 'E' => array('content' => array('module' => 'live_editor', 'module_type' => 'page', 'mod_options' => array('one_col' => true, 'default_layout' => $big_content), 'before' => '<div class="fourteen columns content">', 'after' => '</div>'), 'video' => array('module' => 'video', 'mod_options' => $vid_opts[1]), 'optin' => array('module' => 'signup_form', 'mod_options' => array('ignore_fields' => array('title'))), 'arrow_text' => $content['arrow_text']), 'F' => array('title' => array('module' => 'content_fields', 'mod_options' => $content['title2']), 'video' => array('module' => 'video', 'mod_options' => $vid_opts[0]), 'optin' => array('module' => 'signup_form')), 'G' => array('title' => array('module' => 'content_fields', 'mod_options' => $content['title'], 'before' => '<div class="twentyfour columns">', 'after' => '</div>'), 'image' => array('module' => 'content_fields', 'mod_options' => array('fields' => array('image' => array('type' => 'image', 'name' => __('Image File', OP_SN), 'default' => $this->global_imgs . 'feature-img.jpg', 'disable_font' => true))), 'after_element' => '<img src="' . $this->global_imgs . 'feature-img-arrows.jpg" alt="feature-img" width="204" height="414" />', 'before' => '<div class="thirteen columns">', 'after' => '</div>'), 'optin' => array('module' => 'signup_form')), 'H' => array('title' => array('module' => 'content_fields', 'mod_options' => $content['title2'], 'before' => '<div class="fourteen columns">', 'after' => '</div>'), 'image1' => array('module' => 'content_fields', 'mod_options' => $content['image'], 'before' => '<div class="eight columns offset-by-two">', 'after' => '</div>'), 'optin' => array('module' => 'signup_form', 'mod_options' => array('theme' => '1', 'disable_name' => true, 'ignore_fields' => array('title', 'subtitle', 'footer_note', 'name_default'), 'content_fields' => $optin_fields), 'before' => '<div class="twentyfour columns">', 'after' => '</div>'), 'content' => array('module' => 'live_editor', 'module_type' => 'page', 'mod_options' => array('one_col' => true, 'default_layout' => 'YToxOntpOjA7YToyOntzOjk6InJvd19jbGFzcyI7czozODoicm93IG9uZS1jb2wgZml4ZWQtd2lkdGggY2YgdWktc29ydGFibGUiO3M6NzoiY29sdW1ucyI7YToxOntpOjA7YToyOntzOjk6ImNvbF9jbGFzcyI7czo4OiJvbmUgY29scyI7czo4OiJlbGVtZW50cyI7YToyOntpOjA7czoyMTg6IltoZWFkbGluZSBzdHlsZT1cIjFcIiBmb250X3NpemU9XCI0MFwiIGZvbnRfZm9udD1cIkFyaWFsXCIgZm9udF9zdHlsZT1cImJvbGRcIiBmb250X2NvbG9yPVwiI0NCMkQwN1wiIGFsaWduPVwiY2VudGVyXCJdR2V0IEZyZWUsIEluc3RhbnQgQWNjZXNzIHRvIHRoZSBUb3AgRm91ciBDbGllbnQtR2V0dGluZyBTeXN0ZW1zIGZvciBQZXJzb25hbCBUcmFpbmVyc+KAplsvaGVhZGxpbmVdIjtpOjE7czo0NTU6Ilt0ZXh0X2Jsb2NrIHN0eWxlPVwic3R5bGVfMS5wbmdcIiBhbGlnbj1cImxlZnRcIiB3aWR0aD1cIjU0MFwiXTxzdHJvbmc+R2V0IHRoZSAjIDEgRkFTVEVTVCB3YXkgdG8gZ2V0dGluZyBhbGwgdGhlIGZpdG5lc3MgY2xpZW50cyB5b3UgY2FuIGhhbmRsZSB3aXRob3V0IHNwZW5kaW5nIGEgZGltZSBvbiBhZHZlcnRpc2luZy48L3N0cm9uZz4NCg0KSGkgSSdtIEJlZHJvcyBLZXVpbGlhbiwgdGhhdCdzIG1lIGluIHRoZSBwaWN0dXJlLCBhbmQgdGhlIHZpZGVvIHlvdSdyZSBhYm91dCB0byB3YXRjaCBpcyBmcm9tIG15ICQxLDAwMCBwZXIgcGVyc29uIGZpdG5lc3MgYnVzaW5lc3MuDQoNClBsdXMsIEknbGwgZW1haWwgeW91IG15IHdlZWtseSBQVCBQcm9maXRzIE5ld3NsZXR0ZXIgcGFja2VkIHdpdGggY3V0dGluZyBlZGdlIGlkZWFzLCB0YWN0aWNzLCBhbmQgc3RyYXRlZ2llcy5bL3RleHRfYmxvY2tdIjt9fX19fQ=='), 'before' => '<div class="fourteen columns content">', 'after' => '</div>'), 'image2' => array('module' => 'content_fields', 'mod_options' => $content['image']), 'optin2' => array('module' => 'signup_form', 'mod_options' => array('theme' => '2', 'disable_name' => true, 'ignore_fields' => array('title', 'subtitle', 'name_default'), 'content_fields' => $optin_fields))), 'I' => array('title' => array('module' => 'content_fields', 'mod_options' => $content['title2'], 'before' => '<div class="twentyfour columns">', 'after' => '</div>'), 'content' => array('module' => 'content_fields', 'mod_options' => array('fields' => array_merge($content['subtitle']['fields'], $content['content']['fields'])), 'before' => '<div class="fourteen columns content-area">', 'after' => '</div>'), 'video' => array('module' => 'video', 'mod_options' => array('values' => array('type' => 'video', 'width' => '340', 'height' => '200'))), 'optin' => array('module' => 'signup_form', 'mod_options' => array('theme' => '1', 'disable_name' => true, 'ignore_fields' => array('name_default'), 'content_fields' => $optin_fields), 'before' => '<div class="nine columns">', 'after' => '</div>'), 'optin2' => array('module' => 'signup_form', 'mod_options' => array('theme' => '2', 'disable_name' => true, 'ignore_fields' => array('title', 'subtitle', 'name_default'), 'content_fields' => $optin_fields), 'before' => '<div class="twentyfour columns the-long-form">', 'after' => '</div>')), 'J' => array('content_large' => array('module' => 'live_editor', 'module_type' => 'page')));
     //1,6,2,7,3,8,4,9,5,10
     $style = isset($styles[$style]) ? $style : 'A';
     $this->style = $style;
     $this->options = $styles[$style];
     if ($style != 'J') {
         $this->options = array_merge(array('liveeditor_above' => array('module' => 'live_editor', 'module_type' => 'page')), $this->options, array('liveeditor_below' => array('module' => 'live_editor', 'module_type' => 'page')));
     }
     foreach ($this->options as $name => $options) {
         op_mod($options['module'], op_get_var($options, 'module_type', 'blog'));
         if (!isset($options['template'])) {
             if ($this->options[$name]['module'] == 'content_fields') {
                 $this->options[$name]['template'] = array($this, 'content_fields');
             } elseif ($this->options[$name]['module'] == 'signup_form') {
                 $this->options[$name]['template'] = array($this, 'optin_box');
                 $mod_options = op_get_var($options, 'mod_options', array());
                 $mod_options['disable'] = 'color_scheme';
                 if (!isset($mod_options['content_fields'])) {
                     $mod_options['content_fields'] = op_optin_default_fields();
                 }
                 $mod_options['submit_button_config'] = array('defaults' => array('content' => __('Get Started', OP_SN)));
                 $this->options[$name]['mod_options'] = $mod_options;
             } elseif ($this->options[$name]['module'] == 'video') {
                 $this->options[$name]['template'] = array($this, 'video_placeholder');
             }
         }
     }
     $this->options['template'] = array($this, 'style_template');
 }