本文整理匯總了PHP中op_get_var函數的典型用法代碼示例。如果您正苦於以下問題:PHP op_get_var函數的具體用法?PHP op_get_var怎麽用?PHP op_get_var使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了op_get_var函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: get_style
function get_style()
{
/*
* Shared settings and properties
*/
$config = array('settings' => array('membership' => 'YjowOw==', 'theme' => 'YToyOntzOjQ6InR5cGUiO3M6NzoibGFuZGluZyI7czozOiJkaXIiO3M6MToiMiI7fQ==', 'header_layout' => 'YjowOw==', 'feature_area' => 'YTozOntzOjQ6InR5cGUiO2k6MTtzOjc6ImVuYWJsZWQiO3M6MToiWSI7czo4OiJzZXR0aW5ncyI7YTo1OntzOjEwOiJ0aXRsZV9sb2dvIjthOjE6e3M6NToidGl0bGUiO3M6MDoiIjt9czo3OiJjb250ZW50IjthOjI6e3M6NToidGl0bGUiO3M6MDoiIjtzOjc6ImNvbnRlbnQiO3M6MDoiIjt9czo1OiJvcHRpbiI7YTo0OntzOjc6ImVuYWJsZWQiO3M6MToiTiI7czo5OiJmb3JtX2h0bWwiO2E6MjM6e3M6MTA6ImVtYWlsX2RhdGEiO3M6MDoiIjtzOjEzOiJlbWFpbF9hZGRyZXNzIjtzOjA6IiI7czoxMjoicmVkaXJlY3RfdXJsIjtzOjA6IiI7czoxMjoiZXh0cmFfZmllbGRzIjtzOjA6IiI7czoxODoiZW1haWxfZXh0cmFfZmllbGRzIjtzOjA6IiI7czoxMToiZW1haWxfb3JkZXIiO3M6MDoiIjtzOjEwOiJuYW1lX29yZGVyIjtzOjA6IiI7czo0OiJodG1sIjtzOjA6IiI7czoxMDoibmV3X3dpbmRvdyI7czowOiIiO3M6MTI6ImRpc2FibGVfbmFtZSI7czowOiIiO3M6ODoibmFtZV9ib3giO3M6MDoiIjtzOjk6ImVtYWlsX2JveCI7cz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R5bGUiO3M6Njoibm9ybWFsIjtzOjU6ImNvbG9yIjtzOjQ6IiM0NDQiO31zOjI6Img0IjthOjQ6e3M6NDoic2l6ZSI7czoyOiIxNyI7czo0OiJmb250IjtzOjE1OiJTb3VyY2UgU2FucyBQcm8iO3M6NToic3R5bGUiO3M6Njoibm9ybWFsIjtzOjU6ImNvbG9yIjtzOjQ6IiM0NDQiO31zOjI6Img1IjthOjQ6e3M6NDoic2l6ZSI7czoyOiIxNyI7czo0OiJmb250IjtzOjE1OiJTb3VyY2UgU2FucyBQcm8iO3M6NToic3R5bGUiO3M6Njoibm9ybWFsIjtzOjU6ImNvbG9yIjtzOjQ6IiM0NDQiO31zOjI6Img2IjthOjQ6e3M6NDoic2l6ZSI7czoyOiIxNyI7czo0OiJmb250IjtzOjE1OiJTb3VyY2UgU2FucyBQcm8iO3M6NToic3R5bGUiO3M6Njoibm9ybWFsIjtzOjU6ImNvbG9yIjtzOjQ6IiM0NDQiO319czoxNDoiY29sb3JfZWxlbWVudHMiO2E6Njp7czoxNzoiZm9vdGVyX3RleHRfY29sb3IiO3M6MDoiIjtzOjE3OiJmb290ZXJfbGlua19jb2xvciI7czowOiIiO3M6MjM6ImZvb3Rlcl9saW5rX2hvdmVyX2NvbG9yIjtzOjA6IiI7czoxODoiZmVhdHVyZV90ZXh0X2NvbG9yIjtzOjA6IiI7czoxODoiZmVhdHVyZV9saW5rX2NvbG9yIjtzOjA6IiI7czoyNDoiZmVhdHVyZV9saW5rX2hvdmVyX2NvbG9yIjtzOjA6IiI7fX0=', 'color_scheme_advanced' => 'YjowOw==', 'mobile_redirect' => 'YjowOw==', 'seo' => 'YjowOw==', 'scripts' => 'YjowOw==', 'fb_share' => 'YjowOw==', 'lightbox' => 'YjowOw==', 'exit_redirect' => 'YjowOw==', 'one_time_offer' => 'YjowOw==', 'launch_gateway' => 'YjowOw==', 'launch_funnel' => 'YjowOw==', 'landing_bg' => 'YToxOntzOjU6ImltYWdlIjtzOjA6IiI7fQ=='), 'settings_images' => 'YTowOnt9');
/*
* Custom settings and properties
*/
switch ($this->style) {
case 'A':
$config['settings']['size_color'] = 'YTozOntzOjk6ImJveF93aWR0aCI7czozOiIzMDAiO3M6MTU6ImJveF9jb2xvcl9zdGFydCI7czo3OiIjZjlmOWY5IjtzOjEzOiJib3hfY29sb3JfZW5kIjtzOjc6IiNkYWRhZGEiO30=';
$config['layouts'] = 'YToxOntzOjQ6ImJvZHkiO2E6MTp7aTowO2E6NDp7czo5OiJyb3dfY2xhc3MiO3M6MjY6InJvdyBvbmUtY29sIGNmIHVpLXNvcnRhYmxlIjtzOjk6InJvd19zdHlsZSI7czowOiIiO3M6MTQ6InJvd19kYXRhX3N0eWxlIjtzOjA6IiI7czo4OiJjaGlsZHJlbiI7YToxOntpOjA7YToyOntzOjk6ImNvbF9jbGFzcyI7czoxNToib25lIGNvbHVtbiBjb2xzIjtzOjg6ImNoaWxkcmVuIjthOjQ6e2k6MDthOjQ6e3M6NDoidHlwZSI7czo3OiJlbGVtZW50IjtzOjY6Im9iamVjdCI7czoxNjU6IltpbWFnZXMgc3R5bGU9IjAiIGltYWdlPSJ7b3BfZmlsZW5hbWU9IndwLWNvbnRlbnQvdXBsb2Fkcy8yMDEzLzEwL1NhbXBsZUxvZ28tRGFyay5wbmcifSIgd2lkdGg9IjI2MyIgYWxpZ249ImNlbnRlciIgdG9wX21hcmdpbj0iMCIgYm90dG9tX21hcmdpbj0iNTAiIGZ1bGxfd2lkdGg9IlkiXSI7czoxMzoiZWxlbWVudF9jbGFzcyI7czoyMDoiZWxlbWVudC1jb250YWluZXIgY2YiO3M6MTg6ImVsZW1lbnRfZGF0YV9zdHlsZSI7czowOiIiO31pOjE7YTo0OntzOjQ6InR5cGUiO3M6NzoiZWxlbWVudCI7czo2OiJvYmplY3QiO3M6MTI4OiJbaGVhZGxpbmUgc3R5bGU9IjEiIGZvbnRfY29sb3I9IiMwMDAwMDAiIGFsaWduPSJjZW50ZXIiXURpc2NvdmVyIEhvdyBZb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R052Ym5ObFkzUmxkSFZ5SUdGa2FYQnBjMk5wYm1jZ1pXeHBkQzRnUkc5dVpXTWdkbVZzSUc1MWJtTWdibTl1SUd4aFkzVnpJSFpsYm1WdVlYUnBjeUJqYjIxdGIyUnZMZz09Wy9vcHRpbl9ib3hfZmllbGRdW29wdGluX2JveF9maWVsZCBuYW1lPSJwcml2YWN5Il1XZSB2YWx1ZSB5b3VyIHByaXZhY3kgYW5kIHdvdWxkIG5ldmVyIHNwYW0geW91Wy9vcHRpbl9ib3hfZmllbGRdW29wdGluX2JveF9maWVsZCBuYW1lPSJ0b3BfY29sb3IiXXVuZGVmaW5lZFsvb3B0aW5fYm94X2ZpZWxkXVtvcHRpbl9ib3hfYnV0dG9uIHR5cGU9IjAiIGJ1dHRvbl9iZWxvdz0iWSJdR2V0IEluc3RhbnQgQWNjZXNzIVsvb3B0aW5fYm94X2J1dHRvbl0gWy9vcHRpbl9ib3hdIjtzOjEzOiJlbGVtZW50X2NsYXNzIjtzOjIwOiJlbGVtZW50LWNvbnRhaW5lciBjZiI7czoxODoiZWxlbWVudF9kYXRhX3N0eWxlIjtzOjA6IiI7fX19fX19fQ==';
$config['images'] = 'YToxOntzOjQ3OiJ3cC1jb250ZW50L3VwbG9hZHMvMjAxMy8xMC9TYW1wbGVMb2dvLUxpZ2h0LnBuZyI7czoyMDoiU2FtcGxlTG9nby1MaWdodC5wbmciO30=';
break;
default:
return;
}
/*
* Fixing image paths, switching {op_filename:"wp-content/uploads/10/SampleLogo-Dark.png"} with
* path to real file location (inside of page image collection)
*/
$config = $this->fix_image_paths($config, trailingslashit(OP_PAGES_URL . 'landing/2/styles'));
$settings = op_get_var($config, 'settings', array());
$settings = base64_encode(serialize($settings));
$this->config->settings = $settings;
$this->config->layouts = op_get_var($config, 'layouts', array());
op_page_set_saved_settings($this->config, array());
}
示例2: output
function output($section_name, $config, $button_atts, $return = false)
{
$default = array('type' => 1, 'image' => '', 'location' => null, 'content' => '', 'element_type' => 'a', 'href' => '', 'new_window' => '', 'cc' => '', 'align' => 'center', 'text' => '', 'text_size' => 20, 'text_color' => null, 'text_font' => null, 'text_bold' => 'N', 'text_underline' => 'N', 'text_italic' => 'N', 'text_letter_spacing' => null, 'subtext_panel' => 'N', 'subtext' => '', 'subtext_size' => 15, 'subtext_color' => null, 'subtext_font' => null, 'subtext_bold' => 'N', 'subtext_underline' => 'N', 'subtext_italic' => 'N', 'subtext_letter_spacing' => null, 'text_shadow_panel' => 'N', 'text_shadow_vertical' => 0, 'text_shadow_horizontal' => 0, 'text_shadow_color' => null, 'text_shadow_blur' => 0, 'styling_width' => 63, 'styling_height' => 23, 'styling_border_color' => null, 'styling_border_size' => 0, 'styling_border_radius' => 0, 'styling_border_opacity' => 100, 'styling_gradient' => 'N', 'styling_shine' => 'N', 'styling_gradient_start_color' => null, 'styling_gradient_end_color' => null, 'drop_shadow_panel' => 'N', 'drop_shadow_vertical' => 0, 'drop_shadow_horizontal' => 0, 'drop_shadow_blur' => 0, 'drop_shadow_spread' => 0, 'drop_shadow_color' => null, 'drop_shadow_opacity' => 100, 'inset_shadow_panel' => 'N', 'inset_shadow_vertical' => 0, 'inset_shadow_horizontal' => 0, 'inset_shadow_blur' => 0, 'inset_shadow_spread' => 0, 'inset_shadow_color' => null, 'inset_shadow_opacity' => 100);
if (isset($config['defaults'])) {
$default = wp_parse_args($config['defaults'], $default);
}
$button_atts = wp_parse_args($button_atts, $default);
$type = op_get_var($button_atts, 'type', 0);
$content = op_get_var($button_atts, 'content');
switch ($type) {
case '1':
case '7':
$button_atts['text'] = $content;
$button_atts['element_type'] = 'button';
$out = call_user_func_array(array('OptimizePress_Default_Assets', 'button_' . $type), array($button_atts, $content));
break;
// case '7':
// $out = sprintf('<button type="submit" class="image-button"><img src="%1$s" alt="%2$s" /></button>', op_get_var($button_atts, 'image'), $content);
// break;
// case '7':
// $out = sprintf('<button type="submit" class="image-button"><img src="%1$s" alt="%2$s" /></button>', op_get_var($button_atts, 'image'), $content);
// break;
default:
$out = sprintf(op_get_var($config, 'default_button', '<button type="submit" class="default-button"><span>%1$s</span></button>'), $content);
break;
}
if ($return) {
return $out;
}
echo $out;
}
示例3: get_options
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');
}
}
}
}
示例4: save_settings
function save_settings($section_name, $config = array(), $op, $return = false)
{
$data = array('enabled' => op_get_var($op, 'enabled', 'N'), 'url' => op_get_var($op, 'url'), 'code' => op_get_var($op, 'code'));
if ($return) {
return $data;
}
$this->update_option($section_name, $data);
}
示例5: save_settings
function save_settings($section_name, $config = array(), $op, $return = false)
{
$data = array('like_url' => op_get_var($op, 'like_url'));
if ($return) {
return $data;
}
$this->update_option($section_name, $data);
}
示例6: __construct
function __construct()
{
if (defined('OP_PAGEBUILDER_ID')) {
$this->_page_id = OP_PAGEBUILDER_ID;
} elseif (is_admin() && op_get_var($_GET, 'page') == OP_SN . '-page-builder' && isset($_GET['page_id'])) {
$this->_page_id = $_GET['page_id'];
}
}
示例7: output
function output($section_name, $config, $op, $return = false)
{
if ($return) {
return $op;
}
$style = op_get_current_item($this->_get_styles(), op_get_var($op, 'style'));
echo '
<div class="post-promo-box post-promo-' . $style . '">' . implode("\n", op_get_var($op, 'fields', array())) . '</div>';
}
示例8: save_settings
function save_settings($section_name, $config = array(), $op, $return = false)
{
$time = op_get_var($op, 'time', array());
$data = array('enabled' => op_get_var($op, 'enabled', 'N'), 'url' => op_get_var($op, 'url'), 'time' => array('days' => op_get_var($time, 'days'), 'hours' => op_get_var($time, 'hours'), 'minutes' => op_get_var($time, 'minutes'), 'seconds' => op_get_var($time, 'seconds')));
if ($return) {
return $data;
}
$this->update_option($section_name, $data);
}
示例9: saveTheme
/**
* Save form data
* @param array $data
* @return void
*/
public function saveTheme($data)
{
// Frontend
op_update_option('op_external_theme_css', op_get_var($data, 'external_theme_css'));
op_update_option('op_external_theme_js', op_get_var($data, 'external_theme_js'));
// Backend
op_update_option('op_le_external_theme_css', op_get_var($data, 'le_external_theme_css'));
op_update_option('op_le_external_theme_js', op_get_var($data, 'le_external_theme_js'));
}
示例10: check_redirect
function check_redirect()
{
$options = op_page_option('mobile_redirect');
$url = op_get_var($options, 'url');
if (op_get_var($options, 'enabled', 'N') == 'Y' && !empty($url)) {
if ($this->is_mobile()) {
header('Location: ' . $url);
exit;
}
}
}
示例11: output
function output($section_name, $config, $op, $return = false)
{
$id = rtrim($this->get_fieldid($section_name), '_');
$id = ltrim($id, 'op_');
$one_col = op_get_var($config, 'one_col', false);
$add_class = op_get_var($config, 'container_class');
if (!empty($add_class)) {
$add_class = ' ' . $add_class;
}
$default = op_get_var($config, 'default_layout', array());
if (!is_array($default)) {
$default = unserialize(base64_decode($default));
}
return op_page_layout($id, false, $id . '_area', 'editable-area' . $add_class, $default, $one_col);
}
示例12: hover_image
function hover_image($content)
{
$content = op_get_var($content, 'content', array());
$image = op_get_var($content, 'image');
$hover_image = op_get_var($content, 'hover_image');
$html = '';
if ($image != '') {
$html = '
<div class="op-hover-image">
<img src="' . $image . '" alt=""' . ($hover_image != '' ? ' class="normal"' : '') . ' />' . ($hover_image != '' ? '
<img src="' . $hover_image . '" class="hover" alt="" />' : '') . '
</div>';
}
return $html;
}
示例13: save_content_layout
function save_content_layout($op)
{
global $wpdb;
$layout = op_get_var($op, 'option');
if ($layout == 'current') {
return;
}
$content_layout = array();
if ($layout != 'blank') {
if ($result = $wpdb->get_var($wpdb->prepare("SELECT layout FROM `{$wpdb->prefix}optimizepress_predefined_layouts` WHERE id=%d", $layout))) {
$content_layout = unserialize(base64_decode($result));
}
}
op_page_update_layout($content_layout, 'body');
}
示例14: save_settings
function save_settings($section_name, $config = array(), $op, $return = false)
{
global $wpdb;
$gateway = op_get_var($op, 'gateway_override', array());
$data = array('enabled' => op_get_var($op, 'enabled', 'N'), 'funnel_id' => op_get_var($op, 'funnel_id'), 'gateway_override' => array('enabled' => op_get_var($gateway, 'enabled', 'N'), 'redirect' => op_get_var($gateway, 'redirect'), 'code' => op_get_var($gateway, 'code')));
$entry = $wpdb->get_col($wpdb->prepare("SELECT page_id FROM `{$wpdb->prefix}optimizepress_launchfunnels_pages` WHERE `page_id` = %s AND `funnel_id` = %s", OP_PAGEBUILDER_ID, $data['funnel_id']));
if (!$entry) {
$wpdb->query($wpdb->prepare("DELETE FROM `{$wpdb->prefix}optimizepress_launchfunnels_pages` WHERE `page_id` = %s", OP_PAGEBUILDER_ID));
if ($data['enabled'] == 'Y') {
$insert = array('funnel_id' => $data['funnel_id'], 'page_id' => OP_PAGEBUILDER_ID);
$wpdb->insert($wpdb->prefix . 'optimizepress_launchfunnels_pages', $insert);
}
}
if ($return) {
return $data;
}
update_post_meta(OP_PAGEBUILDER_ID, '_' . OP_SN . '_launch_funnel', maybe_serialize($data));
$this->update_option($section_name, $data);
}
示例15: get_options
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');
}
}
}
}