/** * * @TODO document * */ function get_pro_call() { global $pl_section_factory; $usections = $pl_section_factory->unavailable_sections; ?> <div id="vpro_billboard" class="vpro-billboard"> <div class="vpro-billboard-pad"> <div class="vpro_billboard_height fix"> <a class="vpro_thumb" href="<?php echo VPRO_TOUR . '?ref=le-admin'; ?> "><img src="<?php echo PL_IMAGES; ?> /pro-thumb.png" alt="<?php echo VPRO_NAME; ?> " /></a> <div class="vpro_desc"> <strong style="font-size: 1.2em">You Are Using PageLines Lite Edition</strong><br/> <strong>PageLines Lite</strong> is the <strong>free version</strong> of <?php echo VPRO_NAME; ?> .<br/> Upgrade to the Pro edition for more sections & options, no credit link, enhanced social & SEO, support and <a href="http://www.pagelines.com/tour?ref=le-admin">more...</a><br/> <?php $features_js = 'onClick="jQuery(\'.vpro-billboard\').find(\'.whatsmissing\').fadeToggle();"'; $pro_buttons = OptEngine::superlink(__('Why Upgrade? ↓', 'pagelines'), 'grey', 'left', '#', $features_js); $target = 'target="_blank"'; $pro_buttons .= OptEngine::superlink(__('PageLines Tour', 'pagelines'), 'grey', 'left', VPRO_TOUR . '?ref=le-admin', $target); $pro_buttons .= OptEngine::superlink(__('Upgrade Now →', 'pagelines'), 'blue', 'left', VPRO_PRICING . '?ref=le-admin', $target); printf('<div class="pro_buttons fix">%s</div>', $pro_buttons); ?> </div> </div> <div class="whatsmissing"> <h3> Why You'll Love the Professional or Developer edition... </h3> <p> When you upgrade you get 30+ pro drag & drop sections, 200+ CMS options, SEO and social enhancements and way, way more. </p> <p> The pro version way more control options. For advanced users, there is also a Developer version that supports "integrations" and WP "multisite"... To learn more see the <a href="http://www.pagelines.com/pricing?ref=le-admin">pricing page</a> or <a href="http://www.pagelines.com/tour?ref=le-admin">PageLines tour</a>... </p> <p> <strong>Some specifics:</strong> </p> <?php if (isset($usections) && is_array($usections)) { ?> <p class="mod"><strong>Professional Sections In Pro Version</strong><br/> <?php $list_sections = array(); foreach ($usections as $unavailable_section) { $list_sections[] = $unavailable_section->name; } echo join(' · ', $list_sections); ?> </p> <?php } ?> <?php $unavailable_section_areas = get_unavailable_section_areas(); if (isset($unavailable_section_areas) && is_array($unavailable_section_areas)) { ?> <p class="mod"><strong>New Templates and Template Areas</strong> (i.e. places to put sections)<br/> <?php foreach ($unavailable_section_areas as $unavailable_section_area_name) { ?> <?php echo $unavailable_section_area_name; if ($unavailable_section_area_name !== end($unavailable_section_areas)) { echo ' · '; } ?> <?php } ?> </p> <?php } ?> <p class="mod"><strong>New Settings & Options</strong><br/> <?php $list = array(); foreach (get_option_array(true) as $optionset) { foreach ($optionset as $oid => $o) { if (isset($o['version']) && $o['version'] == 'pro') { $list[] = $o['title']; } } } echo join(' · ', $list); ?> </p> </div> </div> </div> <?php }
/** * * @TODO document * */ function posts_metapanel($type, $mode = 'meta') { $option_engine = new OptEngine(PAGELINES_SPECIAL); $handle = 'postsTabs' . $type; // Zero Out Tabs $this->tabs = array(); do_global_meta_options($mode); $special_template = new PageLinesTemplate($type); $special_template->load_section_optionator($mode, $type); ob_start(); ?> <script type="text/javascript"> jQuery(document).ready(function() { <?php printf('var %1$s = jQuery("#%1$s").tabs({cookie: { name: "htabs-%2$s" }, fx: { opacity: "toggle", duration: 150 }});', $handle, $type); ?> }); </script> <div id="<?php echo $handle; ?> " class="plist-nav fix"> <ul class="fix plist"> <?php if (count($this->tabs) != 1) { ?> <lh class="hlist-header">Select Settings Panel</lh> <?php foreach ($this->tabs as $tab => $t) { ?> <li> <a class="<?php echo $tab; ?> metapanel-tab <?php if (!$t->active && $type != 'default') { echo 'inactive-tab'; } ?> " href="#<?php echo $tab; ?> "> <span class="metatab_pad fix"> <span class="metatab_icon" style="background: transparent url(<?php echo $t->icon; ?> ) no-repeat 0 0;display: block;"> <?php if (!$t->active && $type != 'default') { printf('<span class="tab_inactive">inactive</span>'); } echo substr($t->name, 0, 17); ?> </span> </span> </a> </li> <?php } ?> <?php } else { ?> <lh class="hlist-header"><?php echo ucfirst($mode); ?> Settings</lh> <?php } ?> </ul> <?php foreach ($this->tabs as $tab => $t) { ?> <div id="<?php echo $tab; ?> " class="posts_tab_content"> <div class="posts_tab_content_pad"> <div class="metatab_title" style="background: url(<?php echo $t->icon; ?> ) no-repeat 10px 13px;" > <?php echo $t->name; if (!$t->active && $type != 'default') { echo OptEngine::superlink(__('Inactive On Template', 'pagelines'), 'black', 'right', admin_url('admin.php?page=pagelines_templates')); } elseif ($type == 'default') { echo OptEngine::superlink(__('Sitewide Defaults', 'pagelines'), null, 'right'); } ?> </div> <?php foreach ($t->options as $oid => $o) { $o['special'] = $type; $o['scontrol'] = $mode; $o['clone_id'] = isset($t->clone_id) ? $t->clone_id : 1; $option_engine->option_engine($oid, $o); } ?> </div> </div> <?php } ?> </div> <?php return ob_get_clean(); }
/** * Draw a list of extended items */ function extension_banner($text, $click = '', $button_text = 'Add Some →') { if ($click != '') { $thebutton = OptEngine::superlink($button_text, 'blue', 'install_now iblock', $click); $button = sprintf('<br/><br/>%s', $thebutton); } else { $button = ''; } // The banner return sprintf('<div class="install-control fix"><span class="banner-text">%s</span>%s</div>', $text, $button); }
/** * * @TODO document * */ function load_tabs($type, $tabs, $hide_tabs = false, $post_ID = null, $user = null) { ?> <div class="mp_panel fix <?php if ($hide_tabs) { echo 'hide_tabs'; } ?> "> <div class="mp_panel_pad fix"> <div class="pagelines_metapanel_options"> <div class="pagelines_metapanel_options_pad"> <?php foreach ($tabs as $tab => $t) { ?> <div id="<?php echo $tab; ?> " class="pagelines_metatab"> <div class="metatab_title" style="background: url(<?php echo $t->icon; ?> ) no-repeat 10px 13px;" > <?php echo $t->name; if (isset($post_ID) && !$t->active) { echo OptEngine::superlink(__('Inactive On Template', 'pagelines'), 'black', 'right', admin_url('admin.php?page=pagelines_templates')); } ?> </div> <?php $this->load_engine($type, $t->options, $post_ID, $user); ?> </div> <?php } ?> </div> </div> </div> </div> <?php }