function registerbgGradient($key, $target) { $code = '<h5 class="sub-styler-title">' . __('Set Background Gradient', 'ioa') . '<i class="angle-downicon- ioa-front-icon"></i></h5><div class="sub-styler-section clearfix"><a class="set-rad-gradient button-default" href="">' . __('Apply', 'ioa') . '</a> '; $code .= getIOAInput(array("label" => __("Use Background Gradient", 'ioa'), "name" => $key . "_gradient_dir", "default" => "no", "type" => "select", "description" => "", "length" => 'small', "options" => array("horizontal" => __("Horizontal", 'ioa'), "vertical" => __("Vertical", 'ioa'), "diagonaltl" => __("Diagonal Top Left", 'ioa'), "diagonalbr" => __("Diagonal Bottom Right", 'ioa')), "class" => ' hasGradient dir ', "data" => array("target" => $target, "property" => "removable"))); $code .= getIOAInput(array("label" => __("Select Start Background Color for title area", 'ioa'), "name" => $key . "_grstart", "default" => " << ", "type" => "colorpicker", "description" => " ", "length" => 'small', "alpha" => false, "class" => ' hasGradient grstart no_listen ', "data" => array("target" => $target, "property" => "background-image"))); $code .= getIOAInput(array("label" => __("Select Start Background Color for title area", 'ioa'), "name" => $key . "_grend", "default" => " << ", "type" => "colorpicker", "description" => " ", "length" => 'small', "alpha" => false, "class" => ' hasGradient grend no_listen ', "data" => array("target" => $target, "property" => "background-image"))); return $code . '</div>'; }
function custom_html_wrap() { global $post; $tag = $this->params['id']; $custom = get_post_meta($post->ID, $tag, true); echo '<input type="hidden" name="' . $tag . '" id="' . $tag . '" value="' . wp_create_nonce($tag) . '" />'; $i = 0; $fields = $this->params['inputs']; foreach ($fields as $field) { if (get_post_meta($post->ID, $field['name'], true) != "") { $field['value'] = get_post_meta($post->ID, $field['name'], true); } echo getIOAInput($field); } }
if (is_dir($ffpath . '/' . $value) && $value != '..' && $value != '.') { $font_faces[] = $value; } } $ffont = ''; global $super_options; if (get_option(SN . '_font_face_font')) { $ffont = get_option(SN . '_font_face_font'); } echo getIOAInput(array("label" => "Select the Font To Support ", "name" => "font_face_name", "length" => "small", "default" => '', "type" => "select", "description" => "", "options" => $font_faces, "value" => $ffont)); ?> </div> <div class="fontdeck hide clearfix"> <h5>Font Deck Fonts</h5> <?php $font_deck_project_id = ''; if (get_option(SN . '_font_deck_project_id')) { $font_deck_project_id = get_option(SN . '_font_deck_project_id'); } $font_deck_name = ''; if (get_option(SN . '_font_deck_name')) { $font_deck_name = get_option(SN . '_font_deck_name'); } echo getIOAInput(array("label" => "Project ID", "name" => "font_deck_id", "length" => "small", "default" => '', "type" => "text", "description" => "", "value" => $font_deck_project_id)); echo getIOAInput(array("label" => "Font Name", "name" => "font_deck_name", "length" => "small", "default" => '', "type" => "text", "description" => "", "value" => $font_deck_name)); ?> </div> </div> </div> </body> </html>
public function getHeadBuilder($data) { global $super_options, $post; $hl = array(); ?> <!-- PREFFIX - hcon --> <div class="ioahead-delete-message"> <p><?php _e('Are you sure you want to Reset ', 'ioa'); ?> </p> <a href="yes" class="button-save"><?php _e('Yes', 'ioa'); ?> </a> <a href="no" class="button-save"><?php _e('No', 'ioa'); ?> </a> </div> <div class="hcon-toolbar clearfix"> <a href="" class="save-header-data"><?php _e('Save', 'ioa'); ?> </a> <a href="<?php echo admin_url() . "/admin.php?page=hcons&resetheader=true"; ?> " class="delete-header-data"><?php _e('Reset', 'ioa'); ?> </a> <?php if (isset($_GET['page']) && $_GET['page'] == "hcons") { ?> <a href="" class='button-save ioa-quick-tour' id="ioa-intro-trigger"><?php _e('Quick Tour', 'ioa'); ?> </a> <?php } ?> </div> <div id="header_constructor" data-url="<?php echo admin_url() . "/admin.php?page=hcons"; ?> "> <div class="hcon-head clearfix"> <div class="sidebar-head"> <h6><?php _e('Available Components', 'ioa'); ?> </h6> </div> <div class="main-head"> </div> </div> <div class="hcon-body clearfix"> <div class="hcon-sidebar"> <div class="components-area"> <?php $widgets = $data[1]; $wc = array(); if (isset($widgets)) { foreach ($widgets as $widget) { foreach ($widget['data'] as $holder) { if (isset($holder['elements'])) { foreach ($holder['elements'] as $el) { $wc[$el['val']] = $el['name']; } } } } } ?> <ul id="hcon-comps" class='clearfix' <?php if (isset($_GET['page']) && $_GET['page'] == 'hcons') { echo "data-step='1'"; } ?> <?php if (isset($_GET['page']) && $_GET['page'] == 'hcons') { echo "data-intro='" . __("All Head Components are available here, to use drop them in the area you want to show. If components are not showing make sure that area eye button is active", 'ioa') . "'"; } ?> data-position='top' > <?php $list = $data[0]; ?> <li data-val="text" class="text" data-align="default" data-margin="0:0:0:0"><?php _e('Text', 'ioa'); ?> <a href="" class="hcon-edit ioa-front-icon pencil-2icon-"></a><i class="ioa-front-icon cancel-2icon- delete-hcon"></i></li> <li data-val="top-menu" class="top-menu" data-align="default" data-margin="0:0:0:0"><?php _e('Menu 2', 'ioa'); ?> <a href="" class="hcon-edit ioa-front-icon pencil-2icon-"></a><i class="ioa-front-icon cancel-2icon- delete-hcon"></i></li> <li data-val="tagline" class="tagline" data-align="default" data-margin="0:0:0:0"><?php _e('Tagline', 'ioa'); ?> <a href="" class="hcon-edit ioa-front-icon pencil-2icon-"></a><i class="ioa-front-icon cancel-2icon- delete-hcon"></i></li> <li data-val="social" class="social" data-align="default" data-margin="0:0:0:0" data-link="false"><?php _e('Social Icons', 'ioa'); ?> <a href="" class="hcon-edit ioa-front-icon pencil-2icon-"></a><i class="ioa-front-icon cancel-2icon- delete-hcon"></i></li> <li data-val="wpml" class="wpml" data-align="default" data-margin="0:0:0:0"><?php _e('WPML Selector', 'ioa'); ?> <a href="" class="hcon-edit ioa-front-icon pencil-2icon-"></a><i class="ioa-front-icon cancel-2icon- delete-hcon"></i></li> <li data-val="main-menu" class="main-menu" data-align="default" data-margin="0:0:0:0"><?php _e('Menu 1', 'ioa'); ?> <a href="" class="hcon-edit ioa-front-icon pencil-2icon-"></a><i class="ioa-front-icon cancel-2icon- delete-hcon"></i></li> <li data-val="logo" class="logo" data-align="default" data-margin="0:0:0:0"><?php _e('Logo', 'ioa'); ?> <a href="" class="hcon-edit ioa-front-icon pencil-2icon-"></a><i class="ioa-front-icon cancel-2icon- delete-hcon"></i></li> <li data-val="search" class="search" data-align="default" data-margin="0:0:0:0"><?php _e('Search Bar', 'ioa'); ?> <a href="" class="hcon-edit ioa-front-icon pencil-2icon-"></a><i class="ioa-front-icon cancel-2icon- delete-hcon"></i></li> </ul> </div> </div> <div class="hcon-main-body" <?php if (isset($_GET['page']) && $_GET['page'] == 'hcons') { echo "data-step='5'"; } ?> <?php if (isset($_GET['page']) && $_GET['page'] == 'hcons') { echo "data-intro='" . __('To Hide a area click on eye button , to remove a component drag it back to components holder. Vertical Space adds padding to areas.', 'ioa') . '"'; } ?> data-position='top'> <?php $default_filler_left = array("val" => "logo", "align" => "default", "margin" => "0:0:0:0", "name" => "Logo"); $default_filler_right = array("val" => "main-menu", "align" => "default", "margin" => "0:0:0:0", "name" => "Menu 1"); $default_filler_right1 = array("val" => "search", "align" => "default", "margin" => "6:0:0:0", "name" => "Search Bar"); $temp_w = array(); if (!isset($widgets) || count($widgets) == 0) { $widgets = array(); } else { foreach ($widgets as $w) { $temp_w[$w['container']] = $w; } } $default_widgets = array("top-area" => array("position" => "static", "container" => "top-area", 'data' => array(array('align' => 'left', 'elements' => array()), array('align' => 'center', 'elements' => array()), array('align' => 'right', 'elements' => array()))), "menu-area" => array("height" => "", "position" => "static", "container" => "menu-area", 'data' => array(array('align' => 'left', 'elements' => array($default_filler_left)), array('align' => 'center', 'elements' => array()), array('align' => 'right', 'elements' => array($default_filler_right1, $default_filler_right)))), "top-full-area" => array("position" => "static", "container" => "top-full-area", 'data' => array(array('align' => 'left', 'elements' => array()), array('align' => 'center', 'elements' => array()), array('align' => 'right', 'elements' => array())))); $widgets = array_merge($default_widgets, $temp_w); $index = 2; $msg = ''; foreach ($widgets as $widget) { $w = 'static'; if (isset($widget['position'])) { $w = $widget['position']; } $e = 'on'; if (isset($widget['eye'])) { $e = $widget['eye']; } switch ($widget['container']) { case 'top-area': $msg = __("This area represents the top bar, The area has dark background and compact styling that other areas. ", 'ioa'); $index = 2; break; case 'menu-area': $msg = __("This area represents the main menu area, By default this area shows in front end and usually this is the most active one. ", 'ioa'); $index = 3; break; case 'top-full-area': $msg = __("This area represents the bottom header area , it is separarted by a border. It is useful when you want to add divider between logo and menu areas. ", 'ioa'); $index = 4; break; } ?> <div class="hcon-widget clearfix" data-val="<?php echo $widget['container']; ?> " data-eye="<?php echo $e; ?> "data-position="<?php echo $widget['position']; ?> "> <div class="clearfix"> <span class="label"><?php echo $widget['container']; ?> </span> <span class="height"> <?php _e('Vertical Space', 'ioa'); ?> <input type="text" value="<?php if (isset($widget['height'])) { echo $widget['height']; } ?> " class="container_height">px</span> </div> <div class="hcon-widget-body clearfix" <?php if (isset($_GET['page']) && $_GET['page'] == 'hcons') { echo "data-step='{$index}'"; } ?> <?php if (isset($_GET['page']) && $_GET['page'] == 'hcons') { echo "data-intro='" . $msg . "'"; } ?> data-position='top'> <a href="" class=" ioa-front-icon eye-3icon- eye <?php if ($e == "on") { echo 'active'; } ?> "></a> <?php foreach ($widget['data'] as $holder) { $def = 'one_third'; if ($holder['align'] == "full") { $def = 'full-area'; } ?> <div class="<?php echo $def; ?> " data-align='<?php echo $holder['align']; ?> '> <div class="visual-ui"><?php echo strtoupper(str_replace("_", " ", $holder['align'])); ?> </div> <div class="container"> <?php if (isset($holder['elements'])) { foreach ($holder['elements'] as $el) { ?> <div class="hcon-block" class="<?php echo $el['val']; ?> " data-link="<?php if (isset($el['link'])) { echo $el['link']; } ?> " data-text='<?php if (isset($el['text'])) { echo stripslashes($el['text']); } ?> ' data-align='<?php echo $el['align']; ?> ' data-margin='<?php echo $el['margin']; ?> ' data-val='<?php echo $el['val']; ?> '><?php echo stripslashes($el['name']); ?> <a class="hcon-edit ioa-front-icon pencil-2icon-" href=""></a> <i class="ioa-front-icon cancel-2icon- delete-hcon"></i> </div><?php } } ?> </div> </div> <?php } ?> </div> </div> <?php } ?> </div> </div> </div> <div class="hide"> <div class="honc-widgets-settings"> <div class="text-block hide"> <?php echo getIOAInput(array("label" => __("Enter Text", 'ioa'), "name" => "hcon_w_txt", "default" => "0", "type" => "textarea", "description" => "This will appear in text widget", "length" => 'medium')); ?> </div> <div class="social-block hide"> <?php echo getIOAInput(array("label" => __("Open Social Icons in new Window", 'ioa'), "name" => "hcon_s_w", "default" => "false", "type" => "select", "options" => array("false" => "No", "true" => "Yes"), "description" => "This will appear in text widget", "length" => 'medium')); echo getIOAInput(array("label" => __("Tick Social Icons to show", 'ioa'), "name" => "hcon_w_twitter", "default" => "", "type" => "checkbox", "description" => "This will appear in text widget", "length" => 'medium', "options" => array("linkedin" => "Linkedin", "blogger" => "Blogger", "facebook" => "Facebook", "twitter" => "Twitter", "github" => "Github", "flickr" => "Flickr", "vimeo" => "Vimeo", "youtube" => "Youtube", "google-plus" => "Google+", "pinterest" => "Pinterest", "tumblr" => "Tumblr", "dribbble" => "Dribbble", "stumbleupon" => "Stumbleupon", "lastfm" => "Lastfm", "rdio" => "Rdio", "spotify" => "Spotify", "instagram" => "Instagram", "dropbox" => "Dropbox", "evernote" => "Evernote", "flattr" => "Flattr", "skype" => "Skype", "soundcloud" => "Soundcloud", "picasa" => "Picasa", "behance" => "Behance", "smashing" => "Smashing"))); ?> <div class="social-links"> <?php echo getIOAInput(array("label" => __("Enter Blogger link", 'ioa'), "name" => "hcon_blogger", "default" => "#", "type" => "text", "description" => "This will appear in text widget", "length" => 'medium')); echo getIOAInput(array("label" => __("Enter linkedin link", 'ioa'), "name" => "hcon_linkedin", "default" => "https://www.linkedin.com/", "type" => "text", "description" => "This will appear in text widget", "length" => 'medium')); echo getIOAInput(array("label" => __("Enter Twitter link", 'ioa'), "name" => "hcon_twitter", "default" => "https://twitter.com/", "type" => "text", "description" => "This will appear in text widget", "length" => 'medium')); echo getIOAInput(array("label" => __("Enter facebook link", 'ioa'), "name" => "hcon_facebook", "default" => "https://facebook.com/", "type" => "text", "description" => "This will appear in text widget", "length" => 'medium')); echo getIOAInput(array("label" => __("Enter github link", 'ioa'), "name" => "hcon_github", "default" => "https://www.github.com/", "type" => "text", "description" => "This will appear in text widget", "length" => 'medium')); echo getIOAInput(array("label" => __("Enter flickr link", 'ioa'), "name" => "hcon_flickr", "default" => "http://flickr.com/", "type" => "text", "description" => "This will appear in text widget", "length" => 'medium')); echo getIOAInput(array("label" => __("Enter vimeo link", 'ioa'), "name" => "hcon_vimeo", "default" => "https://vimeo.com", "type" => "text", "description" => "This will appear in text widget", "length" => 'medium')); echo getIOAInput(array("label" => __("Enter youtube link", 'ioa'), "name" => "hcon_youtube", "default" => "https://youtube.com", "type" => "text", "description" => "This will appear in text widget", "length" => 'medium')); echo getIOAInput(array("label" => __("Enter google+ link", 'ioa'), "name" => "hcon_google-plus", "default" => "https://plus.google.com/", "type" => "text", "description" => "This will appear in text widget", "length" => 'medium')); echo getIOAInput(array("label" => __("Enter pinterest link", 'ioa'), "name" => "hcon_pinterest", "default" => "https://pinterest.com/", "type" => "text", "description" => "This will appear in text widget", "length" => 'medium')); echo getIOAInput(array("label" => __("Enter tumblr link", 'ioa'), "name" => "hcon_tumblr", "default" => "https://tumblr.com/", "type" => "text", "description" => "This will appear in text widget", "length" => 'medium')); echo getIOAInput(array("label" => __("Enter dribbble link", 'ioa'), "name" => "hcon_dribbble", "default" => "http://dribbble.com/", "type" => "text", "description" => "This will appear in text widget", "length" => 'medium')); echo getIOAInput(array("label" => __("Enter stumbleupon link", 'ioa'), "name" => "hcon_stumbleupon", "default" => "http://www.stumbleupon.com/", "type" => "text", "description" => "This will appear in text widget", "length" => 'medium')); echo getIOAInput(array("label" => __("Enter lastfm link", 'ioa'), "name" => "hcon_lastfm", "default" => "http://www.last.fm/", "type" => "text", "description" => "This will appear in text widget", "length" => 'medium')); echo getIOAInput(array("label" => __("Enter rdio link", 'ioa'), "name" => "hcon_rdio", "default" => "http://www.rdio.com/", "type" => "text", "description" => "This will appear in text widget", "length" => 'medium')); echo getIOAInput(array("label" => __("Enter spotify link", 'ioa'), "name" => "hcon_spotify", "default" => "https://www.spotify.com/", "type" => "text", "description" => "This will appear in text widget", "length" => 'medium')); echo getIOAInput(array("label" => __("Enter instagram link", 'ioa'), "name" => "hcon_instagram", "default" => "http://instagram.com/", "type" => "text", "description" => "This will appear in text widget", "length" => 'medium')); echo getIOAInput(array("label" => __("Enter dropbox link", 'ioa'), "name" => "hcon_dropbox", "default" => "https://www.dropbox.com/", "type" => "text", "description" => "This will appear in text widget", "length" => 'medium')); echo getIOAInput(array("label" => __("Enter evernote link", 'ioa'), "name" => "hcon_evernote", "default" => "https://evernote.com/", "type" => "text", "description" => "This will appear in text widget", "length" => 'medium')); echo getIOAInput(array("label" => __("Enter flattr link", 'ioa'), "name" => "hcon_flattr", "default" => "http://flattr.com/", "type" => "text", "description" => "This will appear in text widget", "length" => 'medium')); echo getIOAInput(array("label" => __("Enter skype link", 'ioa'), "name" => "hcon_skype", "default" => "skype:your.user.name?call", "type" => "text", "description" => "This will appear in text widget", "length" => 'medium')); echo getIOAInput(array("label" => __("Enter soundcloud link", 'ioa'), "name" => "hcon_soundcloud", "default" => "https://soundcloud.com/", "type" => "text", "description" => "This will appear in text widget", "length" => 'medium')); echo getIOAInput(array("label" => __("Enter picasa link", 'ioa'), "name" => "hcon_picasa", "default" => "http://picasa.google.co.in/", "type" => "text", "description" => "This will appear in text widget", "length" => 'medium')); echo getIOAInput(array("label" => __("Enter behance link", 'ioa'), "name" => "hcon_behance", "default" => "http://www.behance.net/", "type" => "text", "description" => "This will appear in text widget", "length" => 'medium')); echo getIOAInput(array("label" => __("Enter smashing link", 'ioa'), "name" => "hcon_smashing", "default" => "http://www.smashingmagazine.com/", "type" => "text", "description" => "This will appear in text widget", "length" => 'medium')); ?> </div></div> <?php echo getIOAInput(array("label" => __("Alignment", 'ioa'), "name" => "hcon_w_align", "default" => "default", "type" => "select", "description" => "This is the tooltip", "options" => array("default" => __("Default", 'ioa'), "lb" => __("New Line", 'ioa'), "forceleft" => __("New Line Left", 'ioa'), "forceright" => __("New Line Right", 'ioa'), "left" => __("Left", 'ioa'), "right" => __("Right", 'ioa')), "value" => "default", "length" => 'medium')); echo getIOAInput(array("label" => __("Top Margin", 'ioa'), "name" => "hcon_w_tm", "default" => "0", "type" => "text", "description" => "This is the tooltip", "value" => "0", "length" => 'medium')); echo getIOAInput(array("label" => __("Right Margin", 'ioa'), "name" => "hcon_w_rm", "default" => "0", "type" => "text", "description" => "This is the tooltip", "value" => "0", "length" => 'medium')); echo getIOAInput(array("label" => __("Bottom Margin", 'ioa'), "name" => "hcon_w_bm", "default" => "0", "type" => "text", "description" => "This is the tooltip", "value" => "0", "length" => 'medium')); echo getIOAInput(array("label" => __("Left Margin", 'ioa'), "name" => "hcon_w_lm", "default" => "0", "type" => "text", "description" => "This is the tooltip", "value" => "0", "length" => 'medium')); ?> </div> <div class="hcon-block"></div> </div> <?php }
static function widgetArea() { global $radunits, $post, $super_options; ?> <div id="rad_sidebar" class="clearfix"> <div id="top-rad-bar" class='clearfix'> <div class="skeleton rad-tabs-holder"> <a href="" class="rad-publish-button">Publish</a> <h2 class="rad-title"><?php _e('Page Builder', 'ioa'); ?> </h2> <div class="rad-panel-toolbar clearfix"> <a href="" class="toggle-rad-state maximize-builder ioa-front-icon resize-full-2icon- parent_tip"><small class="rad_tooltip rtop">Toggle Fullscreen mode</small></a> </div> <div class="ioa-admin-menu-wrap clearfix"> <a href="" class="ioa-admin-menu ioa-front-icon cog-2icon-"></a> <ul class="ioa-admin-submenu"> <li><a href="" class="rad-clear-all"><?php _e('Clear All !', 'ioa'); ?> </a></li> <li><a href="" class="import-old-backup"><?php _e('Import Old Back', 'ioa'); ?> </a></li> <li><a href="" class="rad-css-section-toggle"><?php _e('Custom CSS For Page', 'ioa'); ?> </a></li> <li><a href="" class="save-template"><?php _e('Save As Template', 'ioa'); ?> </a></li> <!-- <li><a href="" class="toolbar-button save-revision"><?php _e('Save As Revision', 'ioa'); ?> </a></li> --> <li><a href="<?php echo get_edit_post_link($post->ID); ?> " class="toolbar-button export-templates "><?php _e('Export Page', 'ioa'); ?> </a></li> <li><a href="" class="toolbar-button import-page-templates"><?php _e('Import', 'ioa'); ?> </a></li> <li><a href="" class="rad-undo"><?php _e('Undo', 'ioa'); ?> </a></li> <li><a href="" class="rad-redo"><?php _e('Redo', 'ioa'); ?> </a></li> </ul> </div> <div class="save-menu"> <div class="save-template-lightbox"> <h4><?php _e('Enter Template Title', 'ioa'); ?> </h4> <a href="" class="close-icon ioa-front-icon cancel-circled-2icon-"></a> <div class="template-panel clearfix"> <input type="text" id="rad-template-title"> <a href="" class="button-save save-rad-template"><?php _e('Save Template', 'ioa'); ?> </a> </div> </div> </div> </div> </div> <div class='page-import-area clearfix'> <?php echo getIOAInput(array('noname' => true, "label" => __("Copy and Paste Contents of the RAD Export File", 'ioa'), "name" => "import_rad_page", "default" => "", "type" => "textarea", "description" => "", "length" => "long")); ?> <a href="" class="button-default import-rad-page"><?php _e('Import Page', 'ioa'); ?> </a> </div> <div class='rad-custom-css clearfix'> <?php $page_css = get_post_meta($post->ID, 'rad_custom_css', true); echo getIOAInput(array("label" => __("Add Custom CSS for the Page here.", 'ioa'), "name" => "rad_custom_css", "default" => "", "type" => "textarea", "description" => "", "length" => "long", "value" => $page_css)); ?> <a href="" class="button-default rad-css-section-toggle"><?php _e('Done', 'ioa'); ?> </a> </div> </div> <?php }
static function generateRADContainer($values = array(), $id = '', $layout = 'full', $widgets = array(), $clone = false, $force_value = false) { global $radunits; if ($clone) { $id = '{ID}'; echo '<script type="text/template" id="RADContainerView">'; } ?> <div id="<?php echo $id; ?> " class="rad_page_container <?php echo $layout; ?> clearfix" data-type='rad_page_container'> <div class="container-toolbar clearfix"> <a href="" class="container-move"><i class="ioa-front-icon resize-full-alt-1icon-"></i> <span class="c-tip"> <small class='ioa-front-icon up-dir-1icon-'></small><?php _e('Drag to Sort the Column or drop it in another row.', 'ioa'); ?> </span></a> <div class="container-layout"> <?php echo getIOAInput(array("label" => "", "name" => "component_layout", "default" => "100%", "type" => "select", "description" => "", "options" => array("full" => "100%", "four_fifth" => "80%", "three_fourth" => "75%", "two_third" => "66%", "one_half" => "50%", "one_third" => "33%", "one_fourth" => "25%", "one_fifth" => "20%"), "value" => $layout, "data" => array("attr" => "component_layout_holder"))); ?> <span class="c-tip"> <small class='ioa-front-icon up-dir-1icon-'></small><?php _e('Select the Column Width', 'ioa'); ?> </span> </div> <a href="" class="container-clone"><i class='ioa-front-icon docsicon-'></i> <span class="c-tip"> <small class='ioa-front-icon up-dir-1icon-'></small><?php _e('Duplicate Column', 'ioa'); ?> </span></a> <a href="" class="container-delete"><i class='ioa-front-icon cancel-1icon-'></i><span class="c-tip"> <small class='ioa-front-icon up-dir-1icon-'></small><?php _e('Delete Column', 'ioa'); ?> </span></a> <a href="" class="container-edit"><i class='ioa-front-icon pencil-2icon-'></i><span class="c-tip"> <small class='ioa-front-icon up-dir-1icon-'></small><?php _e('Edit Column settings', 'ioa'); ?> </span></a> </div> <div class="container-content clearfix"> <?php foreach ($widgets as $key => $widget) { $widget_data = $widget; $f = false; if (is_array($force_value)) { $f = $widget['data']; } $l = 'full'; if (isset($widget['layout'])) { $l = $widget['layout']; } $widget['type'] = str_replace('-', '_', $widget['type']); $unit = $radunits['rad_text_widget']; if (isset($radunits[$widget['type']])) { $unit = $radunits[$widget['type']]; } if (isset($widget['id'])) { $widget_data['id'] = $widget['id']; } RADMarkup::generateRADWidget($unit->data, $widget_data, $widget_data['id'], $l, false, $f); } ?> </div> <?php if (is_array($force_value)) { echo '<div class="save-data">'; foreach ($force_value as $key => $value) { echo '<textarea name="' . $value['name'] . '">' . stripslashes($value['value']) . '</textarea>'; } echo '</div>'; } ?> </div> <?php if ($clone) { echo "</script>"; } }
function ioa_live_builder_data() { if (!is_rad_editable()) { return; } wp_reset_query(); global $radunits, $post; ?> <div class="ioa-message"> <div class="ioa-message-body clearfix"> <div class="ioa-icon-area"> <i class="ioa-front-icon checkicon-"></i> </div> <div class="ioa-info-area"> <h3 class='msg-title'>Settings Saved !</h3> <p class='msg-text'>Options Panel Settings were saved at 11 PM</p> </div> </div> </div> <div class="save-template-lightbox"> <h4><?php _e('Enter Template Title', 'ioa'); ?> </h4> <a href="" class="close-icon ioa-front-icon cancel-circled-2icon-"></a> <div class="template-panel clearfix"> <input type="text" id="rad-template-title"> <a href="" class="button-save save-rad-template"><?php _e('Save Template', 'ioa'); ?> </a> </div> </div> <div class='page-import-area clearfix'> <?php echo getIOAInput(array("label" => __("Copy and Paste Contents of the RAD Export File", 'ioa'), "name" => "import_rad_page", "default" => "", "type" => "textarea", "description" => "", "length" => "long")); ?> <a href="" class="button-default import-rad-page"><?php _e('Import Page', 'ioa'); ?> </a> </div> <div class="rad-lightbox"> <div class="rad-l-head"> <h4><?php _e('Text Widget[Edit mode]', 'ioa'); ?> </h4> </div> <div class="rad-l-body clearfix"> <div class="component-opts"> </div> </div> <div class="rad-l-footer clearfix"> <a href="" class="button-hprimary" id="save-l-data" ><?php _e('Save Changes', 'ioa'); ?> </a><a href="" class="button-hprimary" id="close-l" ><?php _e('Close', 'ioa'); ?> </a> </div> </div> <div class="rad-w-editor"> <div class="rad-w-editor-body"> <div class="r-w-editor-area clearfix"> <?php $settings = array('wpautop' => true, 'media_buttons' => true, 'textarea_name' => 'rad_wp_editor', 'textarea_rows' => 15, 'textarea_columns' => 4, 'tinymce' => array('theme_advanced_buttons1' => 'bold,italic,underline,blockquote,|,bullist ,numlist , link,unlink, ioabutton', 'theme_advanced_buttons2' => '', 'theme_advanced_buttons3' => '', 'theme_advanced_buttons4' => '', 'content_css' => get_stylesheet_directory_uri() . '/sprites/stylesheets/custom-editor-style.css'), 'tabindex' => '', 'editor_class' => " rad-editor", 'teeny' => false, 'dfw' => false, 'quicktags' => true); wp_editor('', 'rad_wp_editor', $settings); ?> </div> </div> <div class="rad-w-editor-footer clearfix"> <a href="" class="button set-rad-w-editor">Done</a> <a href="" class="button cancel-rad-w-editor">Cancel</a> </div> </div> <a href="" class="trigger-live-editor flash-2icon- ioa-front-icon"></a> <?php RADLiveMarkup::generateRADSection(array(), '', array(), true); RADLiveMarkup::generateRADContainer(array(), '', 'full', array(), true); RADLiveMarkup::generateRADWidget(); RADLiveMarkup::generateRADSectionDrop(); RADLiveMarkup::generateRADContainerDrop(); RADLiveBuilder::initJS(); ?> <script type='text/javascript'> var rad_builder_data = { <?php $settings = array(); foreach ($radunits as $key => $widget) { if ($key == 'rad_page_container_80') { $key = 'rad_page_container'; } if ($widget->getCommonKey() != "") { $settings[$widget->getCommonKey()] = $key . ' :{ inputs : [ ' . $widget->createWidgetIOAInputs() . '], styles:[' . $widget->createWidgetIOAStyles() . '] }'; } else { $settings[$key] = $key . ' : { inputs : [ ' . $widget->createWidgetIOAInputs() . '] , styles:[' . $widget->createWidgetIOAStyles() . '] }'; } } array_unique($settings); echo join(',', $settings); ?> } var rad_rich_fields = ['text_data','meta_value','rad_tab','gallery_images']; var rad_sections = {<?php echo join(",", RADLiveBuilder::getValues()); ?> }; var ajaxurl = "<?php echo admin_url('admin-ajax.php'); ?> "; var RAD_Live_Version = 1.53; </script> <?php }
/** * Main Body for the Panel */ function panelmarkup() { global $themename, $ioa_options, $super_options; ?> <div class="ioa_panel_wrap"> <!-- Panel Wrapper --> <span class="waiting"></span> <div class=" clearfix"> <!-- Panel --> <div class="option-panel-top-bar clearfix"> <div class="ioa_branding_text"> <?php if (trim($super_options[SN . '_cbrand_text']) != "") { echo "<p id='cbrand_text'>" . $super_options[SN . '_cbrand_text'] . "</p>"; } else { echo "<p id='cbrand_text'>" . 'Theme Admin' . "</p>"; } ?> </div> <div class="option-panel-right-area clearfix"> <div class="options-search-bar clearfix"> <input type="text" id="options-search" placeholder="<?php _e('Search Option...'); ?> " /> <i class="ioa-front-icon ioa-search-icon search-2icon-"></i> </div> <div class="search-close-wrap clearfix"> <a href="" class="close-options-search ioa-front-icon cancel-3icon-"></a> </div> <div class="button-panel clearfix"> <input name='save' type='submit' value='<?php _e('Save Changes', 'ioa'); ?> ' class='button-save options-panel-save' /> <div class="ioa-admin-menu-wrap clearfix"> <a href="" class="ioa-admin-menu ioa-front-icon cog-2icon-"></a> <ul class="ioa-admin-submenu"> <li><a href="<?php echo admin_url() . 'admin.php?page=ioa&ioa_reset=true'; ?> "><?php _e('Reset', 'ioa'); ?> </a></li> <li><a href="" class='ioa-import-lightbox-trigger'><?php _e('Import Settings', 'ioa'); ?> </a></li> <li><a href="<?php echo admin_url() . "admin.php?page=ioa"; ?> " class="export-options-panel-settings"><?php _e('Export Settings', 'ioa'); ?> </a></li> </ul> </div> </div> </div> </div> <div id="option-panel-tabs" class="clearfix option-panel-tabs fullscreen" data-shortname="<?php echo SN; ?> "> <!-- Options Panel --> <div class="ioa_sidenav_wrap"> <?php if ($super_options[SN . '_cbrand_toggle'] == "true") { ?> <?php if ($super_options[SN . '_cbrand_logo'] != "") { echo "<img id='cbrand_logo' src='" . $super_options[SN . '_cbrand_logo'] . "' alt='admin-branding'/>"; } ?> <?php } ?> <ul id="" class="ioa_sidenav clearfix"> <!-- Side Menu --> <?php foreach ($ioa_options as $value) { if ($value['type'] == "section") { ?> <li> <a class='clearfix' href="#<?php echo str_replace(" ", "", $value['name']); ?> " id="menu_<?php echo str_replace(" ", "", $value['name']); ?> "> <i class="entypo <?php if (isset($value['icon'])) { echo $value['icon']; } else { echo 'cd'; } ?> "></i> <span><?php echo $value['name']; ?> </span> </a> </li> <?php } } ?> </ul> <!-- End of Side Menu --> </div> <div id="panel-wrapper" class="clearfix"> <h2>Search Results</h2> <form method="post" enctype="multipart/form-data" action="<?php echo admin_url() . 'admin.php?page=ioa'; ?> " class="clearfix" id="ioa_option_form" > <?php $newoptions = $ioa_options; // php 4.4 fix $sidemenu_Flag = true; foreach ($newoptions as $value) { if (!isset($value['desc'])) { $value['desc'] = ''; } switch ($value['type']) { case "open": $sidemenu_Flag = true; $str = "<ul class='clearfix'>"; foreach ($value['tabs'] as $tab) { $key = str_replace(" ", "_", trim($tab)); $str .= "<li><a href='#{$key}'>" . $tab . "</a><span class='tip'></span></li>"; } $str .= "</ul> "; echo $str; break; case "close": $description = ''; ?> </div></div></div> <?php break; case 'include': include $value['std']; break; case 'custom': echo $value['std']; break; case 'text': echo getIOAInput(array("label" => $value['name'], "name" => $value['id'], "default" => '', "type" => "text", "description" => $value['desc'], "length" => 'medium', "value" => $super_options[$value['id']])); break; case 'header_module': $h = new IOAHeaderConstructor(); $h->getHeadBuilder(); break; case 'installer_module': $i = new IOAInstaller(); $i->panelmarkup(); break; case 'upload': echo getIOAInput(array("label" => $value['name'], "name" => $value['id'], "default" => '', "type" => "upload", "description" => $value['desc'], "length" => 'medium', "value" => $super_options[$value['id']], "button" => $value['button'], "title" => $value['title'], "class" => "has-input-button")); break; case 'colorpicker': if (!isset($value['default'])) { $value['default'] = ''; } echo getIOAInput(array("label" => $value['name'], "name" => $value['id'], "default" => $value['default'], "type" => "colorpicker", "description" => $value['desc'], "length" => 'medium', "value" => $super_options[$value['id']])); break; case 'slider': echo getIOAInput(array("label" => $value['name'], "name" => $value['id'], "value" => $super_options[$value['id']], "max" => $value['max'], "suffix" => $value['suffix'], "default" => $value['std'], "type" => "slider", "steps" => 1, "description" => $value['desc'], "length" => 'medium')); break; case 'textarea': $buttons = ''; $after_input = ''; if (isset($value['after_input'])) { $after_input = $value['after_input']; } if (isset($value['buttons'])) { $buttons = $value['buttons']; } echo getIOAInput(array("label" => $value['name'], "name" => $value['id'], "default" => '', "type" => "textarea", "description" => $value['desc'], "length" => 'medium', "value" => $super_options[$value['id']], "buttons" => $buttons, "after_input" => $after_input)); break; case 'select': $opts = array("label" => $value['name'], "name" => $value['id'], "default" => $value['std'], "type" => "select", "description" => $value['desc'], "options" => $value['options'], "value" => $super_options[$value['id']]); if (isset($value['optgroup'])) { $opts['optgroup'] = true; } echo getIOAInput($opts); break; case "radio": echo getIOAInput(array("label" => $value['name'], "name" => $value['id'], "default" => $value['std'], "type" => "radio", "description" => $value['desc'], "options" => $value['options'], "value" => $super_options[$value['id']])); break; case "toggle": echo getIOAInput(array("label" => $value['name'], "name" => $value['id'], "default" => $value['std'], "type" => "toggle", "description" => $value['desc'], "value" => $super_options[$value['id']])); break; case "section": ?> <div class="ioa_section" id="<?php echo str_replace(" ", "", $value['name']); $section_name = str_replace(" ", "", $value['name']); ?> " ><!-- Start of the section --> <div class="ioa_options"> <!-- Start of ioa option --> <?php break; case "information": echo "<div class='subpanel clearfix'>"; ?> <?php break; case "subtitle": echo "<div class='ioa_subpanel' id=" . trim(str_replace(" ", "_", $value['name'])) . " ><div> "; break; case "close_subtitle": $sidemenu_Flag = false; ?> <span class="ioa-top-panel clearfix"> <input name="save" type="submit" value="<?php _e('Save changes', 'ioa'); ?> " class="button-save options-panel-save" /> <span class="ajax_icon"></span> </span> <?php echo "</div></div>"; break; } } ?> <input type="hidden" name="action" value="save" /> <input type="hidden" name="verfication" id="verficiation" value="<?php echo md5(THEMENAME); ?> " /> </form> <form method="post" class="reset-form"> <input type="hidden" name="action" value="reset" /> </form> </div> </div> <!-- End of Options Panel --> </div> <!-- End of Panel --> </div> <!-- End of Panel Wrapper --> <div class="ioa-import-lightbox clearfix"> <div class="rad-l-body"> <?php // Import Lightbox require_once HPATH . "/adv_mods/importex.php"; ?> </div> <a href="" class="button-save close-ioa-import-lightbox"><?php _e('Close', 'ioa'); ?> </a> </div> <?php }
</iframe> </div> <div class="font_listener"> <?php foreach ($f as $font) { $val = $font['default_font']; if (isset($super_options[SN . $font['default_class']])) { $val = $super_options[SN . $font['default_class']]; } echo getIOAInput(array("label" => $font['label'], "name" => SN . $font['default_class'], "default" => SN . $font['default_font'], "type" => "select", "description" => "", "options" => $google_webfonts, "value" => $val)); if (isset($font['fontWeight']) && $font['fontWeight']) { $w = ''; if (isset($super_options[SN . $font['default_class'] . '_w'])) { $w = $super_options[SN . $font['default_class'] . '_w']; } echo getIOAInput(array("label" => str_replace('Font', 'Font Weight values separated by comma(ex 100,200)', $font['label']), "name" => SN . $font['default_class'] . '_w', "default" => '', "type" => "text", "description" => "", "value" => $w)); } if (isset($font['subset']) && $font['subset']) { $s = ''; if (isset($super_options[SN . $font['default_class'] . '_s'])) { $s = $super_options[SN . $font['default_class'] . '_s']; } echo getIOAInput(array("label" => str_replace('Font', 'Font Subsets separated by comma(ex latin,greek-ext,greek,vietnamese,latin-ext,cyrillic)', $font['label']), "name" => SN . $font['default_class'] . '_s', "default" => '', "type" => "text", "description" => "", "value" => $s)); } } ?> </div>
function ioa_panel_markup($post) { // Use nonce for verification wp_nonce_field('ioa_panel_markup', 'ioa_panel_markup_nonce'); global $super_options, $google_webfonts, $ioa_sidebars; $ioa_options = get_post_meta($post->ID, 'ioa_options', true); $show_title = $title_icon = ''; $override_title_style = ''; if (isset($ioa_options['show_title'])) { $show_title = $ioa_options['show_title']; } if (isset($ioa_options['title_icon'])) { $title_icon = $ioa_options['title_icon']; } if (isset($ioa_options['override_title_style'])) { $override_title_style = $ioa_options['override_title_style']; } $tc = $tbc = $tbco = $stc = $stbc = $stbco = ''; if (isset($ioa_options['ioa_custom_title_color'])) { $tc = $ioa_options['ioa_custom_title_color']; } if (isset($ioa_options['ioa_custom_title_bgcolor'])) { $tbc = $ioa_options['ioa_custom_title_bgcolor']; } if (isset($ioa_options['ioa_custom_title_bgcolor-opacity'])) { $tbco = $ioa_options['ioa_custom_title_bgcolor-opacity']; } if (isset($ioa_options['ioa_custom_subtitle_color'])) { $stc = $ioa_options['ioa_custom_subtitle_color']; } if (isset($ioa_options['ioa_custom_subtitle_bgcolor'])) { $stbc = $ioa_options['ioa_custom_subtitle_bgcolor']; } if (isset($ioa_options['ioa_custom_subtitle_bgcolor-opacity'])) { $stbco = $ioa_options['ioa_custom_subtitle_bgcolor-opacity']; } $ttbc = $background_cover = ''; if (isset($ioa_options['ioa_titlearea_bgcolor'])) { $ttbc = $ioa_options['ioa_titlearea_bgcolor']; } if (isset($ioa_options['background_cover'])) { $background_cover = $ioa_options['background_cover']; } $background_animate_time = $background_animate_position = ''; if (isset($ioa_options['background_animate_time'])) { $background_animate_time = $ioa_options['background_animate_time']; } if (isset($ioa_options['background_animate_position'])) { $background_animate_position = $ioa_options['background_animate_position']; } $tbgimage = $tbgposition = $tbgpositionc = $tbgrepeat = ''; if (isset($ioa_options['ioa_titlearea_bgimage'])) { $tbgimage = $ioa_options['ioa_titlearea_bgimage']; } if (isset($ioa_options['ioa_titlearea_bgposition'])) { $tbgposition = $ioa_options['ioa_titlearea_bgposition']; } if (isset($ioa_options['ioa_titlearea_bgpositionc'])) { $tbgpositionc = $ioa_options['ioa_titlearea_bgpositionc']; } if (isset($ioa_options['ioa_titlearea_bgrepeat'])) { $tbgrepeat = $ioa_options['ioa_titlearea_bgrepeat']; } $ttgr_start = $ttgr_end = $tbggradient_use = $tbggradient_dir = ''; if (isset($ioa_options['ioa_titlearea_grstart'])) { $ttgr_start = $ioa_options['ioa_titlearea_grstart']; } if (isset($ioa_options['ioa_titlearea_grend'])) { $ttgr_end = $ioa_options['ioa_titlearea_grend']; } if (isset($ioa_options['titlearea_gradient'])) { $tbggradient_use = $ioa_options['titlearea_gradient']; } if (isset($ioa_options['titlearea_gradient_dir'])) { $tbggradient_dir = $ioa_options['titlearea_gradient_dir']; } $title_font = $subtitle_font = $title_font_size = $title_font_weight = ''; if (isset($ioa_options['title_font'])) { $title_font = $ioa_options['title_font']; } if (isset($ioa_options['subtitle_font'])) { $subtitle_font = $ioa_options['subtitle_font']; } if (isset($ioa_options['title_font_size'])) { $title_font_size = $ioa_options['title_font_size']; } if (isset($ioa_options['title_font_weight'])) { $title_font_weight = $ioa_options['title_font_weight']; } $ta = $ts = $title_effect = $subtitle_effect = $effect_delay = $titlearea_effect = $page_layout = $page_sidebar = ''; if (isset($ioa_options['title_align'])) { $ta = $ioa_options['title_align']; } if (isset($ioa_options['title_vspace'])) { $ts = $ioa_options['title_vspace']; } if (isset($ioa_options['title_effect'])) { $title_effect = $ioa_options['title_effect']; } if (isset($ioa_options['subtitle_effect'])) { $subtitle_effect = $ioa_options['subtitle_effect']; } if (isset($ioa_options['effect_delay'])) { $effect_delay = $ioa_options['effect_delay']; } if (isset($ioa_options['titlearea_effect'])) { $titlearea_effect = $ioa_options['titlearea_effect']; } if (isset($ioa_options['page_layout'])) { $page_layout = $ioa_options['page_layout']; } if (isset($ioa_options['page_sidebar'])) { $page_sidebar = $ioa_options['page_sidebar']; } $blogmeta_enable = $meta_keywords = $meta_description = $seo_title = ''; if (isset($ioa_options['blogmeta_enable'])) { $blogmeta_enable = $ioa_options['blogmeta_enable']; } if (isset($ioa_options['meta_keywords'])) { $meta_keywords = $ioa_options['meta_keywords']; } if (isset($ioa_options['meta_description'])) { $meta_description = $ioa_options['meta_description']; } if (isset($ioa_options['seo_title'])) { $seo_title = $ioa_options['seo_title']; } if ($background_cover == "") { $background_cover = "true"; } if ($page_layout == "") { $page_layout = "full"; if ($post->post_type == "post") { if (isset($super_options[SN . '_post_layout'])) { $page_layout = $super_options[SN . '_post_layout']; } else { $page_layout = "right-sidebar"; } } if ($post->post_type == "page") { if (isset($super_options[SN . '_page_layout']) && $super_options[SN . '_page_layout'] != "") { $page_layout = $super_options[SN . '_page_layout']; } else { $page_layout = "full"; } } } $dominant_bg_color = $dominant_color = $blog_metadata = ''; if (isset($ioa_options['dominant_bg_color'])) { $dominant_bg_color = $ioa_options['dominant_bg_color']; } if (isset($ioa_options['dominant_color'])) { $dominant_color = $ioa_options['dominant_color']; } if (isset($ioa_options['blog_metadata'])) { $blog_metadata = $ioa_options['blog_metadata']; } $featured_media_type = $layered_media_type = $klayered_media_type = ''; if (isset($ioa_options['featured_media_type'])) { $featured_media_type = $ioa_options['featured_media_type']; } if (isset($ioa_options['layered_media_type'])) { $layered_media_type = $ioa_options['layered_media_type']; } if (isset($ioa_options['klayered_media_type'])) { $klayered_media_type = $ioa_options['klayered_media_type']; } $background_image = $featured_media_height = $adaptive_height = $featured_video = $portfolio_image_resize = ''; if (isset($ioa_options['background_image'])) { $background_image = $ioa_options['background_image']; } if (isset($ioa_options['featured_media_height'])) { $featured_media_height = $ioa_options['featured_media_height']; } if (isset($ioa_options['adaptive_height'])) { $adaptive_height = $ioa_options['adaptive_height']; } if (isset($ioa_options['featured_video'])) { $featured_video = $ioa_options['featured_video']; } if (isset($ioa_options['portfolio_image_resize'])) { $portfolio_image_resize = $ioa_options['portfolio_image_resize']; } if ($blogmeta_enable == "") { $blogmeta_enable = $super_options[SN . '_blog_meta_enable']; } $posts_item_limit = $ioa_gallery_data = $posts_item_limit = ''; if (isset($ioa_options['posts_item_limit'])) { $posts_item_limit = $ioa_options['posts_item_limit']; } if ($posts_item_limit == "") { $posts_item_limit = $super_options[SN . '_posts_item_limit']; } $enable_thumbnail = $more_label = $posts_excerpt_limit = $blog_excerpt = $query_filter = ''; if (isset($ioa_options['enable_thumbnail'])) { $enable_thumbnail = $ioa_options['enable_thumbnail']; } if (isset($ioa_options['more_label'])) { $more_label = $ioa_options['more_label']; } if (isset($ioa_options['posts_excerpt_limit'])) { $posts_excerpt_limit = $ioa_options['posts_excerpt_limit']; } if (isset($ioa_options['blog_excerpt'])) { $blog_excerpt = $ioa_options['blog_excerpt']; } if (isset($ioa_options['query_filter'])) { $query_filter = $ioa_options['query_filter']; } if (isset($ioa_options['ioa_gallery_data'])) { $ioa_gallery_data = $ioa_options['ioa_gallery_data']; } $ioa_template_mode = ''; if (isset($ioa_options['ioa_template_mode'])) { $ioa_template_mode = $ioa_options['ioa_template_mode']; } /** * Portfolio Meta Data */ $portfolio_item_limit = $portfolio_enable_thumbnail = $portfolio_more_label = $portfolio_excerpt_limit = $portfolio_excerpt = $portfolio_query_filter = $portfolio_enable_text = ''; if (isset($ioa_options['portfolio_item_limit'])) { $portfolio_item_limit = $ioa_options['portfolio_item_limit']; } if ($portfolio_item_limit == "") { $portfolio_item_limit = $super_options[SN . '_portfolio_item_limit']; } if (isset($ioa_options['portfolio_enable_thumbnail'])) { $portfolio_enable_thumbnail = $ioa_options['portfolio_enable_thumbnail']; } if (isset($ioa_options['portfolio_enable_text'])) { $portfolio_enable_text = $ioa_options['portfolio_enable_text']; } if (isset($ioa_options['portfolio_more_label'])) { $portfolio_more_label = $ioa_options['portfolio_more_label']; } if (isset($ioa_options['portfolio_excerpt_limit'])) { $portfolio_excerpt_limit = $ioa_options['portfolio_excerpt_limit']; } if (isset($ioa_options['portfolio_excerpt'])) { $portfolio_excerpt = $ioa_options['portfolio_excerpt']; } if (isset($ioa_options['portfolio_query_filter'])) { $portfolio_query_filter = $ioa_options['portfolio_query_filter']; } $custom_post_type = $custom_query_filter = $custom_enable_thumbnail = ''; if (isset($ioa_options['custom_post_type'])) { $custom_post_type = $ioa_options['custom_post_type']; } if (isset($ioa_options['custom_query_filter'])) { $custom_query_filter = $ioa_options['custom_query_filter']; } if (isset($ioa_options['custom_enable_thumbnail'])) { $custom_enable_thumbnail = $ioa_options['custom_enable_thumbnail']; } $ioa_custom_posts_item_limit = ''; if (isset($ioa_options['custom_posts_item_limit'])) { $ioa_custom_posts_item_limit = $ioa_options['custom_posts_item_limit']; } if ($ioa_custom_posts_item_limit == "") { $ioa_custom_posts_item_limit = $super_options[SN . '_posts_item_limit']; } ?> <div id="ioa_custom_code" class="clearfix"> <ul class='clearfix'> <?php if ($post->post_type != "testimonial") { ?> <li><a href="#ioa_title_area" data-step='2' data-intro='<?php _e("This is title manager, customize title in any way you like.", 'ioa'); ?> ' data-position='top'><?php _e('Title Area Settings', 'ioa'); ?> </a></li> <li><a href="#ioa_header_layout" data-step='3' data-intro='<?php _e("You can set Page/Post Layout and sidebar from here, default layout is taken from options panel -> layout tab.", 'ioa'); ?> ' data-position='top'><?php _e('Layout Settings', 'ioa'); ?> </a></li> <?php } ?> <li><a href="#ioa_dominant_color" data-step='4' data-intro='<?php _e("Set primary color(background color) and secondary color highlight here. These will show in highlights in templates and single items.", 'ioa'); ?> ' data-position='top'><?php _e('Dominant Color', 'ioa'); ?> </a></li> <?php if ($post->post_type != "testimonial") { ?> <li><a href="#ioa_media" data-step='5' data-intro='<?php _e("Set Featured Media such has image , full width image or gallery here. For featured images be sure to Set Featured Image at top right corner", 'ioa'); ?> ' data-position='top'><?php _e('Media', 'ioa'); ?> </a></li> <li><a href="#ioa_images" data-step='7' data-intro='<?php _e("Add Group of images here, these are used in featured gallery and slider.", 'ioa'); ?> ' data-position='top'><?php _e('Slideshow/Slider Images', 'ioa'); ?> </a></li> <li><a href="#ioa_seo" data-step='8' data-intro='<?php _e("You can Custom SEO settings from here.", 'ioa'); ?> ' data-position='top'><?php _e('SEO Settings', 'ioa'); ?> </a></li> <?php if ($post->post_type == "page") { ?> <li><a href="#ioa_portfolio_settings" data-step='9' data-intro='<?php _e("You can filter and customize portfolio items for a portfolio template from here. For global settings you can set them at Theme Admin -> Portfolio Tab.", 'ioa'); ?> ' data-position='top'><?php _e('Portfolio Settings', 'ioa'); ?> </a></li> <li><a href="#ioa_blog_settings" data-step='10' data-intro='<?php _e("You can filter and customize post items for a blog template from here. For global settings you can set them at Theme Admin -> Blog Tab.", 'ioa'); ?> ' data-position='top'><?php _e('Blog Settings', 'ioa'); ?> </a></li></li> <li><a href="#ioa_customtemplate" data-step='10' data-intro='<?php _e("You can filter and customize custom post items here. Select Custom Post Template in set template to use this panel.", 'ioa'); ?> ' data-position='top'><?php _e('Custom Post Settings', 'ioa'); ?> </a></li></li> <?php } } ?> </ul> <?php if ($post->post_type != "testimonial") { ?> <div id="ioa_title_area"> <h3 class="ioa_panel_heading" data-step='2' data-intro='<?php _e("This Panel consists of font related settings, you can select font,alignment and size. To disable title area you can set Show Title Area to no", 'ioa'); ?> ' data-position='top'> <?php _e('General', 'ioa'); ?> </h3> <div> <?php echo getIOAInput(array("label" => "", "name" => 'ioa_template_mode', "type" => 'hidden', 'default' => 'wp-editor', "value" => $ioa_template_mode)); echo getIOAInput(array("label" => __("Show Title Area", 'ioa'), "name" => "show_title", "default" => "yes", "type" => "select", "description" => " ", "length" => 'medium', "value" => $show_title, "options" => array("yes" => __("Yes", 'ioa'), "no" => __("No", 'ioa')))); echo getIOAInput(array("label" => __("Override Theme's Title Stylings", 'ioa'), "name" => "override_title_style", "default" => "no", "type" => "select", "description" => " ", "length" => 'medium', "value" => $override_title_style, "options" => array("no" => __("No", 'ioa'), "yes" => __("Yes", 'ioa')))); echo getIOAInput(array("label" => __("Set Icon for Title", 'ioa'), "name" => "title_icon", "default" => "", "type" => "text", "description" => " ", "length" => 'medium', "value" => $title_icon, 'addMarkup' => '<a href="" class="button-default icon-maker">' . __('Add Icon', 'ioa') . '</a>', "class" => 'has-input-button')); echo getIOAInput(array("label" => __("Select Title Alignment", 'ioa'), "name" => "title_align", "default" => "left", "type" => "select", "description" => " ", "length" => 'medium', "value" => $ta, "options" => array("left" => __("Left", 'ioa'), "right" => __("Right", 'ioa'), "center" => __("Center", 'ioa')))); echo getIOAInput(array("label" => __("Select Title Vertical Spacing", 'ioa'), "name" => "title_vspace", "default" => "20", "type" => "slider", "description" => " ", "length" => 'medium', "value" => $ts, "max" => "100", "suffix" => "px")); echo getIOAInput(array("label" => __("Select Title Font Size", 'ioa'), "name" => "title_font_size", "default" => "36", "type" => "slider", "description" => " ", "length" => 'medium', "value" => $title_font_size, "max" => "160", "suffix" => "px")); echo getIOAInput(array("label" => __("Enter Font Weight", 'ioa'), "name" => "title_font_weight", "default" => "700", "type" => "text", "description" => " ", "value" => $title_font_weight)); echo getIOAInput(array("label" => __("Select Title font", 'ioa'), "name" => "title_fontfamily", "default" => '', "type" => "select", "description" => "", "options" => $google_webfonts, "value" => $title_font)); if ($post->post_type == "page") { echo getIOAInput(array("label" => __("Select Sub Title font", 'ioa'), "name" => "subtitle_fontfamily", "default" => '', "type" => "select", "description" => "", "options" => $google_webfonts, "value" => $subtitle_font)); } ?> </div> <h3 class="ioa_panel_heading" data-step='2' data-intro='<?php _e("This panel contains background and text color styling of title and subtitle.", 'ioa'); ?> ' data-position='top'> <?php _e('Title ', 'ioa'); if ($post->post_type == "page") { _e('& Subtitle', 'ioa'); } _e(' Stylings', 'ioa'); ?> </h3> <div> <?php echo getIOAInput(array("label" => __("Select Title Color", 'ioa'), "name" => "title_color", "default" => " << ", "type" => "colorpicker", "description" => " ", "alpha" => false, "length" => 'medium', "value" => $tc . " << ")); echo getIOAInput(array("label" => __("Select Title Background Color", 'ioa'), "name" => "title_bgcolor", "default" => " << ", "type" => "colorpicker", "description" => " ", "alpha" => false, "length" => 'medium', "value" => $tbc . " << ")); echo getIOAInput(array("label" => __("Enter Title Background Opacity(Between 0 and 1)", 'ioa'), "name" => "title_bgcolor-opacity", "default" => "1", "type" => "text", "description" => " ", "length" => 'small', "value" => $tbco)); if ($post->post_type == "page") { echo getIOAInput(array("label" => __("Select Sub Title Color", 'ioa'), "name" => "subtitle_color", "default" => " << ", "type" => "colorpicker", "alpha" => false, "description" => " ", "length" => 'medium', "value" => $stc . " << ")); } if ($post->post_type == "page") { echo getIOAInput(array("label" => __("Select Sub Title Background Color", 'ioa'), "name" => "subtitle_bgcolor", "default" => " << ", "type" => "colorpicker", "alpha" => false, "description" => " ", "length" => 'medium', "value" => $stbc . " << ")); } if ($post->post_type == "page") { echo getIOAInput(array("label" => __("Enter Sub Title Background Opacity(Between 0 and 1)", 'ioa'), "name" => "subtitle_bgcolor-opacity", "default" => "1", "type" => "text", "description" => " ", "length" => 'small', "value" => $stbco)); } ?> </div> <h3 class="ioa_panel_heading" data-step='2' data-intro='<?php _e("This panel contains settings to set background image , gradients and colors with all customizable options.", 'ioa'); ?> ' data-position='top'> <?php _e('Background Stylings', 'ioa'); ?> </h3> <div> <?php echo getIOAInput(array("label" => __("Select Background Color for title area", 'ioa'), "name" => "titlearea_bgcolor", "default" => " << ", "type" => "colorpicker", "description" => " ", "length" => 'medium', "alpha" => false, "value" => $ttbc . " << ")); echo getIOAInput(array("label" => __("Enable Full Background Stretch", 'ioa'), "name" => "background_cover", "default" => "", "type" => "select", "value" => $background_cover, "options" => array("", "auto", "contain", "cover"))); echo getIOAInput(array("label" => __("Add Background Image for Title Area", 'ioa'), "name" => "titlearea_bgimage", "default" => "", "type" => "upload", "description" => "", "class" => "has-input-button", "length" => 'medium', "value" => $tbgimage, "title" => __("Use as Background Image", 'ioa'), "std" => "", "button" => __("Add Image", 'ioa'))); echo getIOAInput(array("label" => __("Background Position for Title Area Image", 'ioa'), "name" => "titlearea_bgposition", "default" => "", "type" => "select", "description" => "", "length" => 'medium', "value" => $tbgposition, "options" => array("", "top left", "top right", "bottom left", "bottom right", "center top", "center center", "center bottom", "center left", "center right"))); echo getIOAInput(array("label" => __("Custom Background Position( 0px 0px format )", 'ioa'), "name" => "titlearea_bgpositionc", "default" => "", "type" => "text", "description" => "", "length" => 'medium', "value" => $tbgpositionc)); echo getIOAInput(array("label" => __("Background Repeat for Title Area Image", 'ioa'), "name" => "titlearea_bgrepeat", "default" => "", "type" => "select", "description" => "", "length" => 'medium', "value" => $tbgrepeat, "options" => array("", "repeat", "repeat-x", "repeat-y", "no-repeat"))); echo getIOAInput(array("label" => __("Use Background Gradient", 'ioa'), "name" => "titlearea_gradient", "default" => "no", "type" => "select", "description" => "", "length" => 'medium', "value" => $tbggradient_use, "options" => array("yes" => __("Yes", 'ioa'), "no" => __("No", 'ioa')))); echo getIOAInput(array("label" => __("Use Background Gradient", 'ioa'), "name" => "titlearea_gradient_dir", "default" => "no", "type" => "select", "description" => "", "length" => 'medium', "value" => $tbggradient_dir, "options" => array("horizontal" => __("Horizontal", 'ioa'), "vertical" => __("Vertical", 'ioa'), "diagonaltl" => __("Diagonal Top Left(Not Supported IE8-9)", 'ioa'), "diagonalbr" => __("Diagonal Bottom Right(Not Supported IE8-9)", 'ioa')))); echo getIOAInput(array("label" => __("Select Start Background Color for title area", 'ioa'), "name" => "titlearea_grstart", "default" => " << ", "type" => "colorpicker", "description" => " ", "length" => 'medium', "alpha" => false, "value" => $ttgr_start . " << ")); echo getIOAInput(array("label" => __("Select Start Background Color for title area", 'ioa'), "name" => "titlearea_grend", "default" => " << ", "type" => "colorpicker", "description" => " ", "length" => 'medium', "alpha" => false, "value" => $ttgr_end . " << ")); ?> </div> <h3 class="ioa_panel_heading" data-step='2' data-intro='<?php _e("You can set title, subtitle and title area animation.", 'ioa'); ?> ' data-position='top'> <?php _e('Animation', 'ioa'); ?> </h3> <div> <?php echo getIOAInput(array("label" => __("Title Effect", 'ioa'), "name" => "title_effect", "default" => "none", "type" => "select", "description" => "", "length" => 'medium', "value" => $title_effect, "options" => array("none" => __("None", 'ioa'), "fade" => __("Fade", 'ioa'), "fade-left" => __("Fade From Left", 'ioa'), "fade-right" => __("Fade From Right", 'ioa'), "fade-right" => __("Fade From Right", 'ioa'), "rotate-right" => __("Rotate from Right", 'ioa'), "rotate-left" => __("Rotate from Left", 'ioa'), "scale-in" => __("Scale In", 'ioa'), "scale-out" => __("Scale Out", 'ioa'), "curtain-show" => __("Curtain Show", 'ioa'), "curtain-fade" => __("Curtain Fade", 'ioa')))); if ($post->post_type == "page") { echo getIOAInput(array("label" => __("Sub Title Effect", 'ioa'), "name" => "subtitle_effect", "default" => "none", "type" => "select", "description" => "", "length" => 'medium', "value" => $subtitle_effect, "options" => array("none" => __("None", 'ioa'), "fade" => __("Fade", 'ioa'), "fade-left" => __("Fade From Left", 'ioa'), "fade-right" => __("Fade From Right", 'ioa'), "fade-right" => __("Fade From Right", 'ioa'), "rotate-right" => __("Rotate from Right", 'ioa'), "rotate-left" => __("Rotate from Left", 'ioa'), "scale-in" => __("Scale In", 'ioa'), "scale-out" => __("Scale Out", 'ioa'), "curtain-show" => __("Curtain Show", 'ioa'), "curtain-fade" => __("Curtain Fade", 'ioa')))); } echo getIOAInput(array("label" => __("Enter Background Animation Time in minutes", 'ioa'), "name" => "background_animate_time", "default" => "60", "type" => "text", "description" => " ", "length" => 'small', "value" => $background_animate_time)); echo getIOAInput(array("label" => __("Enter Background Position[Left Top] for animation(ex 9999px 9999px) ", 'ioa'), "name" => "background_animate_position", "default" => "-9999px -9999px", "type" => "text", "description" => " ", "length" => 'small', "value" => $background_animate_position)); echo getIOAInput(array("label" => __("Effect Delay Between Title & Subtitle in seconds", 'ioa'), "name" => "effect_delay", "default" => "0.5", "type" => "text", "description" => "", "length" => 'medium', "value" => $effect_delay)); echo getIOAInput(array("label" => __("Title Area Effect", 'ioa'), "name" => "titlearea_effect", "default" => "none", "type" => "select", "description" => "", "length" => 'medium', "value" => $titlearea_effect, "options" => array("none" => __("None", 'ioa'), "fade" => __("Fade", 'ioa'), "fade-left" => __("Fade From Left", 'ioa'), "fade-right" => __("Fade From Right", 'ioa'), "fade-right" => __("Fade From Right", 'ioa'), "rotate-right" => __("Rotate from Right", 'ioa'), "rotate-left" => __("Rotate from Left", 'ioa'), "scale-in" => __("Scale In", 'ioa'), "scale-out" => __("Scale Out", 'ioa'), "metro" => __("Metro Tile Effect", 'ioa'), "parallex" => __("Parallax Background Image", 'ioa'), "animate-bg" => __("Animated Background Axis", 'ioa')))); ?> </div> </div> <div id="ioa_header_layout"> <h3 class="ioa_panel_heading"> <?php _e('Select Page Layout and Sidebar', 'ioa'); ?> </h3> <div> <ul class="layout-list clearfix"> <li class='full' data-val='full' ></li> <li class='right-sidebar' data-val='right-sidebar' ></li> <li class='left-sidebar' data-val='left-sidebar' ></li> <li class='sticky-right-sidebar' data-val='sticky-right-sidebar' ></li> <li class='sticky-left-sidebar' data-val='sticky-left-sidebar' ></li> <li class='below-title' data-val='below-title' ></li> <li class='above-footer' data-val='above-footer' ></li> </ul> <input type="hidden" class="page_layout" name='page_layout' value="<?php echo $page_layout; ?> "> <hr> <?php echo getIOAInput(array("label" => __("Select Sidebar", 'ioa'), "name" => "page_sidebar", "default" => "Blog Sidebar", "type" => "select", "description" => "", "length" => 'medium', "value" => $page_sidebar, "options" => $ioa_sidebars)); ?> </div> </div> <?php } ?> <div id="ioa_dominant_color"> <h3 class="ioa_panel_heading"> <?php _e('Select Page Layout and Sidebar', 'ioa'); ?> </h3> <div> <?php echo getIOAInput(array("label" => __("Select Primary Highlight Color", 'ioa'), "name" => "dominant_bg_color", "default" => " << ", "type" => "colorpicker", "description" => " ", "length" => 'medium', "alpha" => false, "value" => $dominant_bg_color . " << ")); echo getIOAInput(array("label" => __("Select Secondary Highlight Color", 'ioa'), "name" => "dominant_color", "default" => " << ", "type" => "colorpicker", "description" => " ", "length" => 'medium', "alpha" => false, "value" => $dominant_color . " << ")); ?> </div> </div> <?php if ($post->post_type != "testimonial") { ?> <div id="ioa_media"> <?php if (function_exists('rev_slider_shortcode')) { global $wpdb; $table_db_name = GlobalsRevSlider::$table_sliders; $lsliders = $wpdb->get_results("SELECT * FROM {$table_db_name}", ARRAY_A); $slds = array("none" => "None"); foreach ($lsliders as $slider) { $slds[$slider['alias']] = $slider['title']; } echo getIOAInput(array("label" => __("Select Revolution Layered Slider for Featured Media", 'ioa'), "name" => "layered_media_type", "default" => "none", "type" => "select", "description" => "", "length" => 'medium', "value" => $layered_media_type, "options" => $slds)); } if (function_exists('lsSliders')) { $layered_slds = array("none" => "None"); $lsl = lsSliders(); foreach ($lsl as $slider) { $layered_slds[$slider['id']] = $slider['name']; } echo getIOAInput(array("label" => __("Select Layered Slider for Featured Media", 'ioa'), "name" => "klayered_media_type", "default" => "none", "type" => "select", "description" => "", "length" => 'medium', "value" => $klayered_media_type, "options" => $layered_slds)); } echo getIOAInput(array("label" => __("Select Featured Media Type", 'ioa'), "name" => "featured_media_type", "default" => "image", "type" => "select", "description" => "", "length" => 'medium', "value" => $featured_media_type, "options" => array("none" => __("None", 'ioa'), "image" => __("Featured Image", 'ioa'), "proportional" => __("Proportional Resized Featured Image", 'ioa'), "none-full" => __("Top Featured Image(No Resizing)", 'ioa'), "none-contained" => __("Contained Featured Image(No Resizing)", 'ioa'), "image-full" => __("Full Width Featured Image", 'ioa'), "image-parallex" => __("Full Width Parallex Featured Image", 'ioa'), "video" => __("Video", 'ioa'), "slideshow" => __("Slideshow", 'ioa'), "slideshow-contained" => __("Full Contained Slideshow", 'ioa'), "slider" => __("Slider", 'ioa'), "slider-contained" => __("Full Contained Slider", 'ioa'), "slider-full" => __("Full Width Slider", 'ioa')))); echo getIOAInput(array("label" => __("Enter Featured Video Link", 'ioa'), "name" => "featured_video", "default" => "", "type" => "text", "description" => "", "length" => 'medium', "value" => $featured_video)); echo getIOAInput(array("label" => __("Background Image for Full Featured Media", 'ioa'), "name" => "background_image", "default" => "", "type" => "upload", "description" => "", "length" => 'medium', "value" => $background_image, "class" => 'has-input-button')); echo getIOAInput(array("label" => __("Featured Media Height", 'ioa'), "name" => "featured_media_height", "type" => "slider", "max" => 800, "default" => 450, "value" => $featured_media_height, "suffix" => " px")); echo getIOAInput(array("label" => __("Enable Adaptive Height( doesn't work for parallex media)", 'ioa'), "name" => "adaptive_height", "default" => "false", "type" => "toggle", "length" => 'medium', "value" => $adaptive_height)); ?> </div> <div id="ioa_images" class="clearfix"> <p class="note"> <?php _e(" To Select Multiple Images hold down control key or cmd for MAC. To select in a row in a single click, hold down shift click on first image then click on last image you want.", 'ioa'); ?> </p> <a href="" class="post-ioa-images-generator button-default" data-title="Add Images" data-label="Add" ><?php _e(' Add Images ', 'ioa'); ?> </a> <div class="ioa-image-area clearifx"> <?php if (isset($ioa_gallery_data) && trim($ioa_gallery_data) != "") { $ar = explode(";", stripslashes($ioa_gallery_data)); foreach ($ar as $image) { if ($image != "") { $g_opts = explode("<gl>", $image); ?> <div class='ioa-gallery-item' data-thumbnail='<?php echo $g_opts[1]; ?> ' data-img='<?php echo $g_opts[0]; ?> ' data-alt='<?php echo $g_opts[2]; ?> ' data-title='<?php echo $g_opts[3]; ?> ' data-description='<?php echo $g_opts[4]; ?> ' ><img src='<?php echo $g_opts[1]; ?> ' /> <a class='close ioa-front-icon cancel-2icon-' href=''></a></div> <?php } } } ?> </div> <input type="hidden" name="ioa_gallery_data" class="ioa_gallery_data" id="ioa_gallery_data" value="<?php echo $ioa_gallery_data; ?> " /> </div> <div id="ioa_seo" class="clearfix"> <?php echo getIOAInput(array("label" => __("Meta Keywords for the Page", 'ioa'), "name" => "meta_keywords", "default" => $super_options[SN . '_meta_keywords'], "type" => "text", "description" => "", "length" => 'medium', "value" => $meta_keywords)); echo getIOAInput(array("label" => __("Meta Description for the Page", 'ioa'), "name" => "meta_description", "default" => $super_options[SN . '_meta_description'], "type" => "textarea", "description" => "", "length" => 'medium', "value" => $meta_description)); echo getIOAInput(array("label" => __("Seo Title for the Page", 'ioa'), "name" => "seo_title", "default" => '', "type" => "text", "description" => "", "length" => 'medium', "value" => $seo_title)); ?> </div> <?php if ($post->post_type == "page") { global $ioa_portfolio_slug; ?> <div id="ioa_portfolio_settings" class='ioa-query-box'> <input type="hidden" class="post_type" value="<?php echo $ioa_portfolio_slug; ?> "> <?php echo getIOAInput(array("label" => __("Portfolio Images Resizing", 'ioa'), "name" => "portfolio_image_resize", "default" => "default", "type" => "select", "description" => "", "length" => 'medium', "value" => $portfolio_image_resize, "options" => array("default" => __("Full Width", 'ioa'), "proportional" => __("Proportional", 'ioa'), "none" => __("None", 'ioa')))); echo getIOAInput(array("label" => __("Generate Filters", 'ioa'), "name" => "portfolio_query_filter", "default" => "", "type" => "text", "description" => "", "length" => 'medium', "class" => 'has-input-button', "value" => $portfolio_query_filter, 'addMarkup' => '<a href="" class="button-default query-maker">' . __('Filter Posts', 'ioa') . '</a>')); echo getIOAInput(array("label" => __("Enable lightbox icon on hover (if false link icon will show)", 'ioa'), "name" => "portfolio_enable_thumbnail", "default" => $super_options[SN . '_portfolio_enable_thumbnail'], "type" => "toggle", "length" => 'medium', "value" => $portfolio_enable_thumbnail)); echo getIOAInput(array("label" => __("Enable text description", 'ioa'), "name" => "portfolio_enable_text", "default" => 'false', "type" => "toggle", "length" => 'medium', "value" => $portfolio_enable_text)); echo getIOAInput(array("label" => __("Use wordpress default excerpt", 'ioa'), "name" => "portfolio_excerpt", "default" => $super_options[SN . '_portfolio_excerpt'], "type" => "toggle", "length" => 'medium', "value" => $portfolio_excerpt)); echo getIOAInput(array("label" => __("More Button Label", 'ioa'), "name" => "portfolio_more_label", "default" => $super_options[SN . '_portfolio_more_label'], "type" => "text", "description" => "", "length" => 'medium', "value" => $portfolio_more_label)); echo getIOAInput(array("label" => __("Portfolio Items Limit", 'ioa'), "name" => "portfolio_item_limit", "type" => "slider", "max" => 50, "default" => 6, "value" => $portfolio_item_limit, "suffix" => "Items")); echo getIOAInput(array("label" => __("Portfolio Content Limit", 'ioa'), "name" => "portfolio_excerpt_limit", "type" => "slider", "max" => 800, "default" => $super_options[SN . '_portfolio_excerpt_limit'], "value" => $portfolio_excerpt_limit, "suffix" => " Letters")); ?> </div> <div id="ioa_blog_settings" class="ioa_query_box"> <input type="hidden" class="post_type" value="post"> <?php $pmb = ''; $post_meta_shortcodes = array("post_author" => array("name" => __("Post Author", 'ioa'), "syntax" => '[post_author_posts_link/]'), "post_date" => array("name" => __("Post Date", 'ioa'), "syntax" => '[post_date format=\'l, F d S, Y\'/]'), "post_time" => array("name" => __("Post Time", 'ioa'), "syntax" => '[post_time format=\'g:i a\'/]'), "post_tags" => array("name" => __("Post Tags", 'ioa'), "syntax" => '[post_tags sep=\',\' icon=\'\' /]'), "post_categories" => array("name" => __("Post Categories", 'ioa'), "syntax" => '[post_categories sep=\',\' icon=\'\' /]'), "get" => array("name" => __("Post Meta", 'ioa'), "syntax" => '[get name=\'\' /]'), "post_comments" => array("name" => __("Post Comments", 'ioa'), "syntax" => "[post_comments /]")); foreach ($post_meta_shortcodes as $sh) { $pmb .= " <a class='button-default' href=\"" . $sh['syntax'] . "\">" . $sh['name'] . "</a> "; } echo getIOAInput(array("label" => __("Generate Filters", 'ioa'), "name" => "query_filter", "default" => "", "type" => "text", "description" => "", "length" => 'medium', "class" => 'has-input-button', "value" => $query_filter, 'addMarkup' => '<a href="" class="button-default query-maker">' . __('Filter Posts', 'ioa') . '</a>')); echo getIOAInput(array("label" => __("Blog Templates Posts shortcode Bar", 'ioa'), "name" => "blog_metadata", "default" => $super_options[SN . '_blog_meta'], "type" => "textarea", "description" => "", "length" => 'medium', "value" => $blog_metadata, "after_input" => "<div class='post-meta-panel clearfix'> {$pmb} </div>", "buttons" => " <a href='' class='shortcode-extra-insert'>" . __("Add Posts Info", 'ioa') . "</a>")); echo getIOAInput(array("label" => __("Show Blog Templates Posts shortcode Bar", 'ioa'), "name" => "blogmeta_enable", "default" => "", "type" => "toggle", "length" => 'medium', "value" => $blogmeta_enable)); echo getIOAInput(array("label" => __("Enable lightbox icon on hover (if false link icon will show)", 'ioa'), "name" => "enable_thumbnail", "default" => $super_options[SN . '_enable_thumbnail'], "type" => "toggle", "length" => 'medium', "value" => $enable_thumbnail)); echo getIOAInput(array("label" => __("Use wordpress default excerpt", 'ioa'), "name" => "blog_excerpt", "default" => $super_options[SN . '_blog_excerpt'], "type" => "toggle", "length" => 'medium', "value" => $blog_excerpt)); echo getIOAInput(array("label" => __("More Button Label", 'ioa'), "name" => "more_label", "default" => $super_options[SN . '_more_label'], "type" => "text", "description" => "", "length" => 'medium', "value" => $more_label)); echo getIOAInput(array("label" => __("Blog Posts Items Limit", 'ioa'), "name" => "posts_item_limit", "type" => "slider", "max" => 50, "default" => 6, "value" => $posts_item_limit, "suffix" => "Items")); echo getIOAInput(array("label" => __("Blog Posts Content Limit", 'ioa'), "name" => "posts_excerpt_limit", "type" => "slider", "max" => 800, "default" => $super_options[SN . '_posts_excerpt_limit'], "value" => $posts_excerpt_limit, "suffix" => " Letters")); ?> </div> <div id="ioa_customtemplate" class="ioa_query_box"> <?php $pmb = ''; $post_meta_shortcodes = array("post_author" => array("name" => __("Post Author", 'ioa'), "syntax" => '[post_author_posts_link/]'), "post_date" => array("name" => __("Post Date", 'ioa'), "syntax" => '[post_date format=\'l, F d S, Y\'/]'), "post_time" => array("name" => __("Post Time", 'ioa'), "syntax" => '[post_time format=\'g:i a\'/]'), "post_tags" => array("name" => __("Post Tags", 'ioa'), "syntax" => '[post_tags sep=\',\' icon=\'\' /]'), "post_categories" => array("name" => __("Post Categories", 'ioa'), "syntax" => '[post_categories sep=\',\' icon=\'\' /]'), "get" => array("name" => __("Post Meta", 'ioa'), "syntax" => '[get name=\'\' /]'), "post_comments" => array("name" => __("Post Comments", 'ioa'), "syntax" => "[post_comments /]")); foreach ($post_meta_shortcodes as $sh) { $pmb .= " <a href=\"" . $sh['syntax'] . "\">" . $sh['name'] . "</a> "; } global $registered_posts; $cps = array(); foreach ($registered_posts as $rs) { if ($rs->getPostType() != "testimonial" && $rs->getPostType() != "slider" && $rs->getPostType() != "custompost" && $rs->getPostType() != $ioa_portfolio_slug) { $cps[] = $rs->getPostType(); } } $fitsv = ''; if (isset($cps[0])) { $fitsv = $cps[0]; } ?> <div class="ioa-query-box"> <?php echo getIOAInput(array("label" => __("Select Post Type", 'ioa'), "name" => "custom_post_type", "default" => $fitsv, "type" => "select", "description" => "", "length" => 'medium', "value" => $custom_post_type, "options" => $cps)); echo getIOAInput(array("label" => __("Generate Filters", 'ioa'), "name" => "custom_query_filter", "default" => "", "type" => "text", "description" => "", "length" => 'medium', "class" => 'has-input-button', "value" => $custom_query_filter, 'addMarkup' => '<a href="" class="button-default query-maker">' . __('Filter Posts', 'ioa') . '</a>')); ?> </div> <?php echo getIOAInput(array("label" => __("Enable lightbox icon on hover (if false link icon will show)", 'ioa'), "name" => "custom_enable_thumbnail", "default" => $super_options[SN . '_enable_thumbnail'], "type" => "toggle", "length" => 'medium', "value" => $custom_enable_thumbnail)); echo getIOAInput(array("label" => __("Custom Posts Items Limit", 'ioa'), "name" => "custom_posts_item_limit", "type" => "slider", "max" => 50, "default" => 6, "value" => $ioa_custom_posts_item_limit, "suffix" => "Items")); ?> </div> <?php } ?> <?php } ?> </div> <?php }
public function createStyleMatrix($args) { global $super_options; $code = ''; $websafe_fonts = array("Arial", "Helvetica Neue", "Helvetica", 'Tahoma', "Verdana", "Lucida Grande", "Lucida Sans"); $font_stack = get_option(SN . 'font_stacks'); $registered_fonts = array(); if ($font_stack != "" && is_array($font_stack)) { foreach ($font_stack as $key => $font) { $font_br = explode(';', $font); $registered_fonts[] = $font_br[0]; } } $fn_fonts = array_merge(array("None"), $registered_fonts, $websafe_fonts); $fts = "google"; if (get_option(SN . 'font_selector')) { $fts = get_option(SN . 'font_selector'); } if ($fts == "fontface") { $fontfaces = array("None"); $font = $super_options[SN . '_font_face_font']; if (isset($font) && $font != "") { $fontfaces[] = $font; } $fn_fonts = array_merge($fontfaces, $websafe_fonts); } if ($fts == "fontdeck") { $fontdeck = array("None"); $font = $super_options[SN . '_font_deck_name']; if (isset($font) && $font != "") { $fontdeck[] = $font; } $fn_fonts = array_merge($fontdeck, $websafe_fonts); } foreach ($args as $key => $section) { $code .= '<div class="en-sub-sec" data-search="' . strtolower($key) . '" ><h4 class="engima-styler-title">' . $key . '<a href="" class="en-section-reset">' . __('Reset', 'ioa') . '</a> </h4><div class="enigma-styler-section clearfix">'; foreach ($section as $key => $arg) { $code .= '<div class="en-sub-sec" data-search="' . strtolower($arg['label']) . '"><h5 class="sub-styler-title">' . $arg['label'] . '<a href="" class="en-comp-reset">' . __('Reset', 'ioa') . '</a> </h5><div class="sub-styler-section clearfix">'; $i = 0; foreach ($arg['matrix'] as $key => $value) { $props = explode(',', $value['prop']); $defaults = array(); if (isset($value['default'])) { $defaults = explode(',', $value['default']); } $j = 0; foreach ($props as $prop) { $def = ''; $d = ''; if (isset($defaults[$j])) { $def = $defaults[$j]; $d = $defaults[$j]; } $cls = ''; if (isset($value['sync'])) { $cls = ' sync '; } if (isset($value['dark'])) { $cls = ' sync-dark '; } //div.inner-super-wrapperfont-family //div.inner-super-wrapperfont-family if (isset($this->data[trim($key) . '' . trim($prop)])) { $def = $this->data[trim($key) . '' . trim($prop)]; } switch ($prop) { case 'background-image': $code .= $this->getBackgroundImage($value['label'], $prop, $key); break; case 'font-size': $code .= getIOAInput(array("label" => $value['label'], "name" => "styler" . $i, "default" => $d, "type" => "text", "description" => "", "length" => 'small', "value" => $def, "class" => $cls, "data" => array("target" => $key, "property" => "font-size"))); break; case 'line-height': $code .= getIOAInput(array("label" => $value['label'], "name" => "styler" . $i, "default" => $d, "type" => "text", "description" => "", "length" => 'small', "value" => $def, "class" => $cls, "data" => array("target" => $key, "property" => "line-height"))); break; case 'border-width': case 'border-bottom-width': $code .= getIOAInput(array("label" => $value['label'], "name" => "styler" . $i, "default" => '1px', "type" => "text", "description" => "", "length" => 'small', "value" => $def, "class" => $cls, "data" => array("target" => $key, "property" => $prop))); break; case 'left': case 'right': case 'top': case 'bottom': $code .= getIOAInput(array("label" => $value['label'], "name" => "styler" . $i, "default" => '0px', "type" => "text", "description" => "", "length" => 'small', "value" => $def, "class" => $cls, "data" => array("target" => $key, "property" => $prop))); break; case 'border-style': case 'border-bottom-style': $code .= getIOAInput(array("label" => $value['label'], "name" => "styler" . $i, "default" => $d, "type" => "select", "description" => "", "length" => 'small', "value" => $def, "options" => array('solid', 'dashed', 'dotted'), "class" => $cls, "data" => array("target" => $key, "property" => $prop))); break; case 'font-family': $code .= "<div class='info'> To add More Fonts, Click on Fonts on <strong>Top Menu</strong>. </div>" . getIOAInput(array("label" => $value['label'], "name" => "styler" . $i, "default" => $d, "type" => "select", "description" => "", "length" => 'small', "value" => $def, "options" => $fn_fonts, "class" => $cls . ' font-family-sel ', "data" => array("target" => $key, "property" => "font-family"))); break; case 'font-weight': $code .= getIOAInput(array("label" => $value['label'], "name" => "styler" . $i, "default" => $d, "type" => "text", "description" => "", "length" => 'small', "value" => $def, "class" => $cls, "data" => array("target" => $key, "property" => "font-weight"))); break; case 'parent-background-color': if (isset($this->data[$key . 'background-color'])) { $def = $this->data[$key . 'background-color']; } $code .= getIOAInput(array("label" => "Background Color", "name" => "styler" . $i, "default" => $d, "type" => "colorpicker", "description" => "", "length" => 'small', "value" => $def, "class" => $cls, "data" => array("target" => $key, "property" => "background-color"))); break; default: $code .= getIOAInput(array("label" => $value['label'], "name" => "styler" . $i, "default" => $d, "type" => "colorpicker", "description" => "", "length" => 'small', "value" => $def, "class" => $cls, "data" => array("target" => $key, "property" => $prop))); } $j++; } $i++; } $code .= '</div></div>'; } $code .= '</div></div>'; } return $code; }
public function getOptionsHTML($values = false, $post_name = '') { $markup = ''; $dy = ''; $markup .= "<div class='CP-component-tab clearfix'><div class='inner-slide-body-wrap'>"; foreach ($this->options['inputs'] as $k => $group) { $markup .= "\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t<div id='" . str_replace(" ", "_", $k) . "' class=\"CP-component-body clearfix\"><div class='clearfix inner-body-wrap'>\r\n\t\t\t\t\t"; foreach ($group as $k => $input) { if (is_array($values)) { if (isset($input['name']) && isset($values[$input['name']])) { $input['value'] = $values[$input['name']]; } if (isset($values[$input['name']])) { $input['value'] = $values[$input['name']]; } else { $input['value'] = str_replace("[OBJ]", ucwords($post_name), $input['default']); } } $markup .= getIOAInput($input); } $markup .= "</div></div>"; } $markup .= "</div></div>"; return $markup; }
function getVisualSettings() { $data = $this->data; if (count($data['styles']) == 0) { return ''; } $markup = '<div class="rad-styler" id="rad_style_' . $data['id'] . '"><div class="visual-settings-pane">'; $markup .= '<div class="inner-visual-settings-panel">'; if (isset($data['styles'])) { foreach ($data['styles'] as $k => $group) { $markup .= "\r\n\t\t\t\t\t\t<h3 class='sub-styler-title'>" . $k . " <a href='' class='style-reset'>Reset</a></h3>\r\n\t\t\t\t\t\t<div class=\"rad-styler-section clearfix\">\r\n\t\t\t\t\t"; if (is_array($group)) { foreach ($group as $key => $input) { $input['noname'] = true; $markup .= getIOAInput($input); } } $markup .= "</div>"; } } $markup .= '</div>'; $markup .= '</div></div>'; return $markup; }
/** * Function to create Modules */ function getIOAModule($params) { $value = ''; $v = ''; if (isset($params['value'])) { $v = $params['value']; } $processed_inp = ''; $data_field = getIOAInput(array("label" => "", "name" => $params['name'] . "", 'class' => ' mod_data', "default" => "", "type" => "hidden", "description" => "", "length" => 'medium', "value" => $v)); $values = array(); $setval = ''; if (isset($params['value'])) { $values = explode('[ioa_mod]', $params['value']); } foreach ($values as $key => $value) { if ($value != "") { $inpval = array(); $mods = explode('[inp]', $value); foreach ($mods as $m) { if ($m != "") { $te = explode('[ioas]', $m); if (isset($te[1])) { $inpval[$te[0]] = $te[1]; } } } $setval .= '<div class="ioa_module "> <div class="module_head"> ' . $params['unit'] . ' <a class="pencil-3icon- ioa-front-icon edit-mod" href=""></a> <a href="" class="docsicon- ioa-front-icon clone-mod"></a> <a class="delete-mod" href=""></a> </div> <div class="module_body">'; foreach ($params['inputs'] as $input) { $input['value'] = ''; if (isset($inpval[$input['name']])) { $input['value'] = $inpval[$input['name']]; } $temp = $input; if (isset($temp['class'])) { $temp['class'] .= ' ioa_mod_input '; } else { $temp['class'] = ' ioa_mod_input '; } $setval .= getIOAInput($temp); } $setval .= '</div> </div> '; //prettyPrint($inpval); } } foreach ($params['inputs'] as $input) { $temp = $input; if (isset($temp['class'])) { $temp['class'] .= ' ioa_mod_input '; } else { $temp['class'] = ' ioa_mod_input '; } $processed_inp .= getIOAInput($temp); } $class = ''; $control = ''; if (isset($params['class'])) { $class = $params['class']; } if (isset($params['control'])) { $control = $params['control']; } $markup = '<div class="ioa_module_container ' . $class . ' clearfix"> <div class="ioa_module_container_head clearfix"> <span>' . $params['label'] . '</span> <div class="ioa_module_button_panel clearfix"><a data-restore="' . __('Update Changes', 'ioa') . '" data-save="' . __('Saved', 'ioa') . '" class="button-save save-ioa-module" href="">' . __('Update Changes', 'ioa') . '</a> <a class="button-default add-ioa-module" href="">' . __('Add', 'ioa') . $params['unit'] . '</a> ' . $control . ' </div> </div> <div class="ioa_module_container_body"> <div class="module_list"> ' . $setval . ' </div> <div class="ioa_module hide"> <div class="module_head"> ' . $params['unit'] . ' <a class="edit-mod pencil-3icon- ioa-front-icon" href=""></a><a href="" class="docsicon- ioa-front-icon clone-mod"></a> <a class="delete-mod" href=""></a> </div> <div class="module_body"> ' . $processed_inp . ' </div> </div> ' . $data_field . ' </div> </div>'; return $markup; }
/** * Main Body for the Panel */ function panelmarkup() { global $custom_posts, $helper; ?> <div class="ioa_panel_wrap" data-url="<?php echo admin_url() . "admin.php?page=ioapty"; ?> "> <!-- Panel Wrapper --> <div class=" clearfix"> <!-- Panel --> <div id="option-panel-tabs" class="clearfix fullscreen ioa-tabs" data-shortname="<?php echo SN; ?> "> <!-- Options Panel --> <div class="ioa_sidenav_wrap"> <ul id="" class="ioa_sidenav clearfix"> <!-- Side Menu --> <li> <a href="#cp_slides" id=""> <span><?php _e('General', 'ioa'); ?> </span> </a> </li> <?php if (isset($_GET['edit_id'])) { ?> <li> <a href="#cp_options" id=""> <span><?php _e('Meta Boxes', 'ioa'); ?> </span> </a> </li> <?php } ?> </ul> <!-- End of Side Menu --> </div> <div id="panel-wrapper" class="clearfix custompostsmanager"> <div id="cp_slides"> <?php if (!isset($_GET['edit_id'])) { ?> <div class="create-cp-section clearfix"> <input type="text" placeholder="Enter Post Name (only Letters, _ and numbers)" /> <a href="" class="create_cp_button button-default"> <?php _e('Create Custom Post', 'ioa'); ?> </a> </div> <div class="cp-title-area clearfix"> <h4><?php _e('Existing Custom Posts Elements', 'ioa'); ?> </h4> <div class="filter-media-list clearfix"> <span><?php _e('Sort', 'ioa'); ?> </span> <ul> <li class="<?php if (isset($_GET['qfilter']) && $_GET['qfilter'] == "title") { echo 'active'; } ?> "><a href="<?php echo admin_url() . "admin.php?page=ioapty&qfilter=title"; ?> "><?php _e('Title', 'ioa'); ?> </a></li> <li class="<?php if (isset($_GET['qfilter']) && $_GET['qfilter'] == "date") { echo 'active'; } ?> "><a href="<?php echo admin_url() . "admin.php?page=ioapty&qfilter=date"; ?> "><?php _e('Date', 'ioa'); ?> </a></li> </ul> </div> </div> <div class="ioac-delete-message"> <p><?php _e('Are you sure you want to Delete Post Type ', 'ioa'); ?> <span class="post_type_label"></span></p> <a href="yes" class="button-default"><?php _e('Yes', 'ioa'); ?> </a> <a href="no" class="button-default"><?php _e('No', 'ioa'); ?> </a> </div> <div class="cp-list"> <?php $app_query = ''; if (isset($_GET['qfilter']) && $_GET['qfilter'] == "title") { $app_query = "&order=ASC&orderby=title"; } else { if (isset($_GET['qfilter']) && $_GET['qfilter'] == "date") { $app_query = "&order=ASC&orderby=date"; } } $query = new WP_Query("post_type=custompost&posts_per_page=-1" . $app_query); while ($query->have_posts()) { $query->the_post(); ?> <div class="cp-item clearfix"> <a href="<?php echo admin_url() . "admin.php?page=ioapty&edit_id=" . get_the_ID(); ?> " class="edit-icon pencil-3icon- ioa-front-icon"></a> <h6><?php the_title(); ?> </h6> <a href="<?php echo get_the_ID(); ?> " class="close cancel-circled-2icon- ioa-front-icon"></a> </div> <?php } ?> </div> <?php } else { $post_id = $_GET['edit_id']; ?> <div class="toolbox clearfix"> <a href="" class="button-save save_cp_slides" id=""><?php _e('Save Changes', 'ioa'); ?> </a> <a href="<?php echo admin_url() . "admin.php?page=ioapty"; ?> " class="button-default" id=""><?php _e('Back to Overview Panel', 'ioa'); ?> </a> </div> <?php echo getIOAInput(array("label" => __("Post Type(Should only contain Letters, _ and numbers)", 'ioa'), "name" => "post_type", "default" => "", "type" => "text", "class" => " custom_post_input ", "description" => "", "length" => 'long', "value" => strtolower(str_replace(" ", "_", get_the_title($post_id))))); ?> <?php $ioa_options = get_post_meta($_GET['edit_id'], 'options', true); $w = $helper->getAssocMap($ioa_options, 'value'); echo $custom_posts['default']->getOptionsHTML($w, get_the_title($post_id)); ?> <?php } ?> </div> <?php if (isset($_GET['edit_id'])) { ?> <div id="cp_options" class="clearfix"> <div class="toolbox clearfix"> <a href="" id="add-cp-slides" class="button-default add-cp-slides"> <?php _e('Add Meta Box', 'ioa'); ?> </a> <a href="" class="button-save save_cp_slides" id=""><?php _e('Save Changes', 'ioa'); ?> </a> <a href="<?php echo admin_url() . "admin.php?page=ioapty"; ?> " class="button-default" id=""><?php _e('Back to Overview Panel', 'ioa'); ?> </a> </div> <div class="custom-area-wrap"> <div class="cp-options-pane"> <div class="metaboxes-list clearfix" data-id="<?php echo $_GET['edit_id']; ?> "> <?php $slides = get_post_meta($_GET['edit_id'], 'metaboxes', true); if (is_array($slides)) { foreach ($slides as $key => $slide) { $w = $helper->getAssocMap($slide, 'value'); echo $custom_posts['default']->getHTML($w); } } else { ?> <div class="information clearfix"> <p>This Custom Post Does not container any Metaboxes.</p> </div> <?php } ?> </div> </div> </div> <div class="hide"> <?php $ioa_options = get_post_meta($_GET['edit_id'], 'custom_data', true); //$w = $helper->getAssocMap($ioa_options,'value'); echo $custom_posts['default']->getHTML(); ?> </div> </div> <?php } ?> </div> </div> </div> <?php }
/** * Query Maker Engine */ function ioalistener() { global $ioa_sliders, $post, $super_options, $wpdb, $helper, $portfolio_taxonomy, $ioa_portfolio_slug, $ioa_meta_data; $type = $_REQUEST["type"]; if ($type == "query_engine") { $post_type = $_POST["post_type"]; ?> <div class="query_engine"> <div class="posts-section"> <?php if ($post_type == "post") { $categories = get_categories(); $cats = array(); foreach ($categories as $category) { $cats[$category->slug] = $category->cat_name; } echo getIOAInput(array("label" => __("Select Category(if none is selected all categories will be included)", 'ioa'), "name" => "select_post_cats", "default" => "", "type" => "checkbox", "description" => "", "options" => $cats)); $tags = get_tags(); $t = array(); foreach ($tags as $tag) { $t[$tag->term_id] = $tag->name; } echo getIOAInput(array("label" => __("Select Tags(if none is selected all tags will be included)", 'ioa'), "name" => "select_post_tags", "default" => "", "type" => "checkbox", "description" => "", "options" => $t)); } else { global $registered_posts; if (!isset($registered_posts[$post_type])) { return; } $tax = $registered_posts[$post_type]->getTax(); if ($tax) { foreach ($tax as $t) { $ori = $t; $te = trim(str_replace(" ", "", strtolower(strtolower($t)))); $terms = get_terms($te); $ta = array(); foreach ($terms as $term) { $ta[$term->term_id] = $term->name; } ?> <div class="custom-tax"> <?php echo getIOAInput(array("label" => "", "name" => "taxonomy", "default" => $te, "type" => "hidden")); echo getIOAInput(array("label" => __("Select ", 'ioa') . "{$t}", "name" => "term_" . $te, "default" => "", "type" => "checkbox", "description" => "", "options" => $ta)); ?> </div><?php } } } $order = 'user_nicename'; $user_ids = $wpdb->get_col("SELECT ID FROM {$wpdb->users} ORDER BY {$order}"); $all_authors = array(); foreach ($user_ids as $user_id) { $user = get_userdata($user_id); $all_authors[$user_id] = $user->display_name; } echo getIOAInput(array("label" => __("Select Authors", 'ioa'), "name" => "select_post_auhtors", "default" => "", "type" => "checkbox", "description" => "", "options" => $all_authors)); echo getIOAInput(array("label" => __("Select Order of Posts", 'ioa'), "name" => "order", "default" => "ASC", "type" => "select", "description" => "", "options" => array("ASC" => "Ascending", "DESC" => "Descending"))); echo getIOAInput(array("label" => __("Show Posts by", 'ioa'), "name" => "orderby", "default" => "none", "type" => "select", "description" => "", "options" => array("none" => "None", "ID" => "Post ID", "author" => "Author", "title" => "Title", "date" => "Date", "rand" => "Random", "comment_count" => "Comments"))); echo getIOAInput(array("label" => __("Show Posts by Year(enter year in 4 digits eg:2011)", 'ioa'), "name" => "year", "default" => "", "type" => "text", "description" => "")); echo getIOAInput(array("label" => __("Show Posts by Month(enter year in 2 digits eg:12)", 'ioa'), "name" => "month", "default" => "", "type" => "text", "description" => "")); ?> </div> </div> <?php } elseif ($type == "icons") { ?> <div class="scourge clearfix"> <div class="sc-tabbed-area clearfix"> <ul class="icons-menu clearfix"> <li><a href="#foldericons"><?php _e('Image Icon', 'ioa'); ?> </a></li> <li><a href="#fonticons"><?php _e('Font Icons', 'ioa'); ?> </a></li> </ul> <div class="sc-tabs clearfix"> <div id="foldericons"> <a href="" id="sc-icon-import" class=" button-default" data-title="Add" data-label="Add"><?php _e('Import From Library', 'ioa'); ?> </a> <div class="clearfix"> <div class="preview_pane image-icon-pane clearfix"> <h4><?php _e('Preview', 'ioa'); ?> </h4> <div class="icon-canvas"> <span class="icon-wrap"><img src="" alt="" class=""></span> </div> <div class="icon-opts clearfix"> <h3> General Stylings </h3> <div class="grouping colorpicker-area clearfix"> <?php echo getIOAInput(array("label" => __("Container background", 'ioa'), "name" => "icon_bg", "default" => "0.7 << ffffff", "type" => "colorpicker", "description" => "", "length" => 'small', "alpha" => false, "data" => array("attr" => "background", "element" => "parent"))); ?> </div> <h3> Border Stylings </h3> <div class="grouping colorpicker-area clearfix"> <?php echo getIOAInput(array("label" => __("Border Radius", 'ioa'), "name" => "icon_radius", "default" => "", "type" => "text", "description" => "", "length" => 'small', "data" => array("attr" => "border-radius", "element" => "parent"))); echo getIOAInput(array("label" => __("Border color", 'ioa'), "name" => "icon_brcolor", "default" => "0.7 << ffffff", "type" => "colorpicker", "description" => "", "length" => 'small', "alpha" => false, "data" => array("attr" => "border-color", "element" => "parent"))); echo getIOAInput(array("label" => __("Border Width", 'ioa'), "name" => "icon_border", "default" => "", "type" => "text", "description" => "", "length" => 'small', "data" => array("attr" => "border-width", "element" => "parent"))); ?> </div> <h3> <?php _e('Padding Settings', 'ioa'); ?> </h3> <div class="grouping clearfix"> <?php echo getIOAInput(array("label" => __("Container Horizontal Gap", 'ioa'), "name" => "icon_cwidth", "default" => "", "type" => "text", "description" => "", "length" => 'small', "data" => array("attr" => "padding-h", "element" => "parent"))); echo getIOAInput(array("label" => __("Container Vertical Gap", 'ioa'), "name" => "icon_cheight", "default" => "", "type" => "text", "description" => "", "length" => 'small', "data" => array("attr" => "padding-v", "element" => "parent"))); ?> </div> <h3> <?php _e('Width & Opacity Settings', 'ioa'); ?> </h3> <div class="grouping clearfix"> <?php echo getIOAInput(array("label" => __("Width", 'ioa'), "name" => "icon_width", "default" => "", "type" => "text", "description" => "", "length" => 'small', "data" => array("attr" => "width", "element" => "img"))); echo getIOAInput(array("label" => __("Height", 'ioa'), "name" => "icon_height", "default" => "", "type" => "text", "description" => "", "length" => 'small', "data" => array("attr" => "height", "element" => "img"))); echo getIOAInput(array("label" => __("Opacity", 'ioa'), "name" => "icon_opacity", "default" => "1", "type" => "text", "description" => "", "length" => 'small', "data" => array("attr" => "opacity", "element" => "img"))); echo getIOAInput(array("label" => __("Background Opacity", 'ioa'), "name" => "icon_copacity", "default" => "1", "type" => "text", "description" => "", "length" => 'small', "data" => array("attr" => "opacity", "element" => "parent"))); ?> </div> </div> </div> </div> </div> <div id="fonticons"> <div class="clearfix"> <ul class="parent_dir"> <li> <ul class="child_list clearfix"> <?php $icon_config_file = PATH . '/sprites/fonts/config.json'; $fh = fopen($icon_config_file, 'r'); $theData = fread($fh, filesize($icon_config_file)); fclose($fh); $icons = json_decode($theData, true); $icons = $icons['glyphs']; foreach ($icons as $icon) { ?> <li><i class="ioa-front-icon <?php echo $icon['css'] . 'icon-'; ?> "></i></li> <?php } ?> </ul> </li></ul> <div class="preview_pane clearfix"> <h4><?php _e('Preview', 'ioa'); ?> </h4> <div class="icon-canvas"> <span class="icon-wrap"></span> </div> <div class="icon-opts clearfix"> <h3> <?php _e('General Stylings', 'ioa'); ?> </h3> <div class="grouping colorpicker-area clearfix"> <?php echo getIOAInput(array("label" => __("Icon color", 'ioa'), "name" => "icon_color", "default" => "1 << ffffff", "type" => "colorpicker", "description" => "", "length" => 'small', "alpha" => false, "data" => array("attr" => "color", "element" => "i"))); echo getIOAInput(array("label" => __("Background", 'ioa'), "name" => "icon_bg", "default" => "0.7 << ffffff", "type" => "colorpicker", "description" => "", "length" => 'small', "alpha" => false, "data" => array("attr" => "background", "element" => "parent"))); ?> </div> <h3><?php _e(' Border Related Stylings', 'ioa'); ?> </h3> <div class="grouping colorpicker-area clearfix"> <?php echo getIOAInput(array("label" => __("Border Radius", 'ioa'), "name" => "icon_radius", "default" => "", "type" => "text", "description" => "", "length" => 'small', "data" => array("attr" => "border-radius", "element" => "parent"))); echo getIOAInput(array("label" => __("Border Width", 'ioa'), "name" => "icon_border", "default" => "", "type" => "text", "description" => "", "length" => 'small', "data" => array("attr" => "border-width", "element" => "parent"))); echo getIOAInput(array("label" => __("Border color", 'ioa'), "name" => "icon_brcolor", "default" => "0.7 << ffffff", "type" => "colorpicker", "description" => "", "length" => 'small', "alpha" => false, "data" => array("attr" => "border-color", "element" => "parent"))); ?> </div> <h3><?php _e('Opacity Stylings', 'ioa'); ?> </h3> <div class="grouping clearfix"> <?php echo getIOAInput(array("label" => __("Opacity", 'ioa'), "name" => "icon_opacity", "default" => "1", "type" => "text", "description" => "", "length" => 'small', "data" => array("attr" => "opacity", "element" => "i"))); echo getIOAInput(array("label" => __("Background Opacity", 'ioa'), "name" => "icon_copacity", "default" => "1", "type" => "text", "description" => "", "length" => 'small', "data" => array("attr" => "opacity", "element" => "parent"))); ?> </div> <h3> <?php _e('Size & Padding Settings', 'ioa'); ?> </h3> <div class="grouping clearfix"> <?php echo getIOAInput(array("label" => __("Size", 'ioa'), "name" => "icon_size", "default" => "", "type" => "text", "description" => "", "length" => 'small', "data" => array("attr" => "font-size", "element" => "i"))); echo getIOAInput(array("label" => __("Container Horizontal Gap", 'ioa'), "name" => "icon_cwidth", "default" => "", "type" => "text", "description" => "", "length" => 'small', "data" => array("attr" => "padding-h", "element" => "parent"))); echo getIOAInput(array("label" => __("Container Vertical Gap", 'ioa'), "name" => "icon_cheight", "default" => "", "type" => "text", "description" => "", "length" => 'small', "data" => array("attr" => "padding-v", "element" => "parent"))); ?> </div> </div> </div> </div> </div> </div> </div> </div> <?php } elseif ($type == "simple_icons") { ?> <div class="simple-icons clearfix"> <div class="icon-search-panel clearfix"> <input type="text" class='sicon-search-input' placeholder="Search Icon"> <i class="search-3icon- ioa-front-icon "></i> </div> <ul class="sicon-list clearfix"> <?php $icon_config_file = PATH . '/sprites/fonts/config.json'; $fh = fopen($icon_config_file, 'r'); $theData = fread($fh, filesize($icon_config_file)); fclose($fh); $icons = json_decode($theData, true); $icons = $icons['glyphs']; foreach ($icons as $icon) { ?> <li><i class="ioa-front-icon <?php echo $icon['css'] . 'icon-'; ?> "></i></li> <?php } ?> </ul> </div> <?php } elseif ($type == "IOA_media") { ?> <div class="IOA_api" data-url='<?php echo URL . '/sprites/i'; ?> '> <div class="IOA-api-top-bar clearfix"> <a href="" data-title="Add Image" data-label="Add" class="import-IOA-media-image button-default "> <?php _e('Add Image', 'ioa'); ?> </a> <a href="" class="import-IOA-media-video button-default " > <?php _e('Add Video', 'ioa'); ?> </a> </div> <div class="image-canvas"> <div class="image-IOA-wrap " > <div class="inner-IOA-wrap" ><img src="" alt="" class='preview-image'></div> </div> </div> <div class="image-opts"> <h6>Image Properties</h6> <div class="grouping clearfix"> <?php echo getIOAInput(array("label" => __("Width", 'ioa'), "name" => "image_width", "default" => "", "type" => "text", "description" => "", "length" => 'small', "data" => array("attr" => "width", "element" => "img"))); echo getIOAInput(array("label" => __("Height", 'ioa'), "name" => "image_height", "default" => "", "type" => "text", "description" => "", "length" => 'small', "data" => array("attr" => "height", "element" => "img"))); echo getIOAInput(array("label" => __("Opacity", 'ioa'), "name" => "image_opacity", "default" => "1", "type" => "text", "description" => "", "length" => 'small', "data" => array("attr" => "opacity", "element" => "img"))); ?> </div> <h6><?php __('Select Image Prop', 'ioa'); ?> </h6> <div class="grouping clearfix"> <?php echo getIOAInput(array("label" => __("Select Shadow", 'ioa'), "name" => "shadow", "default" => "", "type" => "select", "description" => "", "options" => array('none' => __('None', 'ioa'), 'shadow-1' => __('Shadow 1', 'ioa'), 'shadow-2' => __('Shadow 2', 'ioa'), 'shadow-3' => __('Shadow 3', 'ioa'), 'shadow-4' => __('Shadow 4', 'ioa'), 'shadow-5' => __('Shadow 5', 'ioa'), 'shadow-6' => __('Shadow 6', 'ioa'), 'shadow-7' => __('Shadow 7', 'ioa')), "length" => 'small', "data" => array("attr" => "shadow", "element" => "prop"))); /* echo getIOAInput( array( "label" => "Select Device" , "name" => "shadow" , "default" => "" , "type" => "select", "description" => "", "options" => array('Phone','Laptop','Mac','Tablet','Browser'), "length" => 'small' , "data" => array("attr" => "prop" , "element" => "prop") ) ); */ echo getIOAInput(array("label" => "Select Glare", "name" => "shadow", "default" => "", "type" => "select", "description" => "", "options" => array('none' => 'None', 'prop-glare-1' => 'Glare 1', 'prop-glare-2' => 'Glare 2', 'prop-glare-3' => 'Glare 3', 'prop-glare-4' => 'Glare 4', 'prop-glare-5' => 'Glare 5', 'prop-glare-6' => 'Glare 6'), "length" => 'small', "data" => array("attr" => "glare", "element" => "prop"))); echo getIOAInput(array("label" => "Select Effect(HTML 5)", "name" => "html5", "default" => "", "type" => "select", "description" => "", "options" => array('none' => 'None', 'reflection' => 'Reflection', 'greyscale' => 'Greyscale', 'sepia' => 'Sepia', 'noise' => 'Noise', 'vintage' => 'Vintage', 'concentrate' => "Concentrate", 'hemingway' => 'Hemingway', 'nostalgia' => 'Nostalgia', 'hermajesty' => 'Hermajesty', 'hazydays' => 'Hazydays', 'glowingsun' => 'Glowingsun', 'oldboot' => 'Old Boot', 'pinhole' => 'Pin Hole', 'jarques' => 'Jarques', 'grungy' => 'Grungy', 'love' => 'Love', 'orangePeel' => 'Orange Peel', 'crossprocess' => 'Cross Process', 'sincity' => 'Sincity', 'clarity' => 'Clarity', 'lomo' => 'Lomo', 'vintage' => 'Vintage', 'sunrise' => 'Sunrise'), "length" => 'small', "data" => array("attr" => "html5", "element" => "prop"))); ?> </div> <h6>Image Container Properties</h6> <div class="grouping clearfix"> <?php echo getIOAInput(array("label" => "Horizontal Gap", "name" => "image_cpwidth", "default" => "", "type" => "text", "description" => "", "length" => 'small', "data" => array("attr" => "padding-h", "element" => "parent"))); echo getIOAInput(array("label" => "Vertical Gap", "name" => "image_cpheight", "default" => "", "type" => "text", "description" => "", "length" => 'small', "data" => array("attr" => "padding-v", "element" => "parent"))); echo getIOAInput(array("label" => "Opacity", "name" => "image_copacity", "default" => "1", "type" => "text", "description" => "", "length" => 'small', "data" => array("attr" => "opacity", "element" => "parent"))); echo getIOAInput(array("label" => "Border Radius", "name" => "image_radius", "default" => "", "type" => "text", "description" => "", "length" => 'small', "data" => array("attr" => "border-radius", "element" => "parent"))); echo getIOAInput(array("label" => "Border Width", "name" => "image_border", "default" => "", "type" => "text", "description" => "", "length" => 'small', "data" => array("attr" => "border-width", "element" => "parent"))); ?> </div> <div class="grouping colorpicker-area clearfix"> <?php echo getIOAInput(array("label" => "Background", "name" => "image_bg", "default" => "1 << ffffff", "type" => "colorpicker", "description" => "", "length" => 'small', "alpha" => false, "data" => array("attr" => "background", "element" => "parent"))); echo getIOAInput(array("label" => "Border color", "name" => "image_brcolor", "default" => "1 << ffffff", "type" => "colorpicker", "description" => "", "length" => 'small', "alpha" => false, "data" => array("attr" => "border-color", "element" => "parent"))); echo getIOAInput(array("label" => "Box Shadow color", "name" => "image_shcolor", "default" => "1 << ffffff", "type" => "colorpicker", "description" => "", "length" => 'small', "alpha" => false, "data" => array("attr" => "box-shadow-color", "element" => "parent"))); ?> </div> <div class="grouping"> <?php echo getIOAInput(array("label" => "Horizontal Shadow Distance", "name" => "image_shh", "default" => "", "type" => "text", "description" => "", "length" => 'small', "data" => array("attr" => "box-shadow-h", "element" => "parent"))); echo getIOAInput(array("label" => "Vertical Shadow Distance", "name" => "image_shv", "default" => "", "type" => "text", "description" => "", "length" => 'small', "data" => array("attr" => "box-shadow-v", "element" => "parent"))); echo getIOAInput(array("label" => "Shadow Blur", "name" => "image_shb", "default" => "", "type" => "text", "description" => "", "length" => 'small', "data" => array("attr" => "box-shadow-b", "element" => "parent"))); ?> </div> </div> </div> <?php } elseif ($type == "IOA_bg") { ?> <div class="background-engine"> <div class="background-head clearfix"> <?php echo getIOAInput(array("label" => "Select Background Mode", "name" => "order", "default" => "Theme's Style", "type" => "select", "description" => "", "options" => array('none' => "Theme's Style", "css" => "Custom Code"))); ?> </div> <div class="bg-preview-mode clearfix"> <div class="bg-overlay"></div> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ea, at officia odit quas aliquam natus tempora modi animi. Suscipit, fuga, nulla tenetur nesciunt temporibus nostrum necessitatibus facere possimus incidunt quaerat animi atque architecto totam provident veniam dolor velit illum sint pariatur optio repellendus aspernatur praesentium recusandae sapiente expedita corrupti eius voluptate eligendi doloremque quibusdam. Voluptatem, modi, illo, quos alias enim vel ipsa hic magni blanditiis illum itaque repellendus numquam sint. Libero, eaque consectetur sit doloremque laudantium. Sit iste totam consectetur.</p> </div> <div class="grouping bg-opts colorpicker-area clearfix"> <h6>Container Settings</h6> <?php echo getIOAInput(array("label" => "Background Color", "name" => "el_bg", "default" => "1 << ffffff", "type" => "colorpicker", "description" => "", "length" => 'small', "alpha" => false, "data" => array("attr" => "background-color", "element" => "el"))); echo getIOAInput(array("label" => "Background Repeat ", "name" => "el_bgrepeat", "default" => "repeat", "type" => "select", "description" => "", "length" => 'small', "options" => array("repeat", "repeat-x", "repeat-y", "no-repeat"), "data" => array("attr" => "background-repeat", "element" => "el"))); echo getIOAInput(array("label" => "Background Position ", "name" => "el_bgposition", "default" => "repeat", "type" => "select", "description" => "", "length" => 'small', "options" => array("top left", "top right", "bottom left", "bottom right", "center top", "center center", "center bottom"), "data" => array("attr" => "background-position", "element" => "el"))); echo getIOAInput(array("label" => "Background Effect", "name" => "el_parallex", "default" => "none", "type" => "select", "description" => "", "length" => 'small', "options" => array("none" => "None", "parallex" => "Paralllex", "sps" => "Particle System", "animate-bg-x" => "Animate Background X axis", "animate-bg-y" => "Animate Background Y axis", "softlight-top" => 'Soft Light At Top', "softlight-bottom" => 'Soft Light At Bottom'), "data" => array("attr" => "parallex", "element" => "el"))); ?> </div> <div class="bg-opts bg-image"> <?php echo getIOAInput(array("label" => "Background Image ", "name" => "el_bgimage", "default" => "", "type" => "upload", "description" => "", "length" => 'small', "data" => array("attr" => "background-image", "element" => "el"))); ?> </div> <div class="grouping bg-opts colorpicker-area clearfix"> <h6>Container Overlay Settings</h6> <?php echo getIOAInput(array("label" => "Background Color", "name" => "ov_bg", "default" => "1 << ffffff", "type" => "colorpicker", "description" => "", "length" => 'small', "alpha" => false, "data" => array("attr" => "background-color", "element" => "ov"))); echo getIOAInput(array("label" => "Background Repeat ", "name" => "ov_bgrepeat", "default" => "repeat", "type" => "select", "description" => "", "length" => 'small', "options" => array("repeat", "repeat-x", "repeat-y", "no-repeat"), "data" => array("attr" => "background-repeat", "element" => "ov"))); echo getIOAInput(array("label" => "Background Position ", "name" => "ov_bgposition", "default" => "repeat", "type" => "select", "description" => "", "length" => 'small', "options" => array("top left", "top right", "bottom left", "bottom right", "center top", "center center", "center bottom"), "data" => array("attr" => "background-position", "element" => "ov"))); echo getIOAInput(array("label" => "Opacity", "name" => "ov_opacity", "default" => "1", "type" => "text", "description" => "", "length" => 'small', "data" => array("attr" => "opacity", "element" => "ov"))); ?> </div> <div class="grouping bg-opts colorpicker-area clearfix"> <?php echo getIOAInput(array("label" => "Background Image ", "name" => "ov_bgimage", "default" => "", "type" => "upload", "description" => "", "length" => 'small', "data" => array("attr" => "background-image", "element" => "ov"))); ?> </div> </div> <?php } elseif ($type == "search") { $q = $_POST['query']; $nos = 4; if (get_option(SN . '_ajax_nos')) { $nos = get_option(SN . '_ajax_nos'); } $query = new WP_Query(array('posts_per_page' => $nos, 's' => $q, 'cache_results' => false, 'no_found_rows' => true, 'post_status' => 'publish')); $output = ''; if ($query->have_posts()) { while ($query->have_posts()) { $query->the_post(); $img = ''; if (function_exists('has_post_thumbnail') && has_post_thumbnail(get_the_ID())) { $id = get_post_thumbnail_id(get_the_ID()); $ar = wp_get_attachment_image_src($id, array(9999, 9999)); $img = $helper->imageDisplay(array("src" => $ar[0], "height" => 50, "width" => 50, "parent_wrap" => false)); } $output .= '<li class="clearfix"><div class="image">' . $img . '</div> <div class="desc '; if (has_post_thumbnail()) { $output .= 'hasImage'; } $output .= ' "><h5><a href="' . get_permalink() . '">' . get_the_title() . '</a></h5><span class="date">' . get_the_date("j M, Y") . __(' in ', 'ioa') . "<strong>" . ucfirst(get_post_type(get_the_ID())) . '</strong></span><a class="more" href="' . get_permalink() . '">' . __('more', 'ioa') . '</a> </div></li>'; } $output .= "<li><a href='" . get_search_link($q) . "' class='view-all'>" . __('View All Results', 'ioa') . "</a></li>"; } else { $output = '<li class="not-found">' . __('No Results Found', 'ioa') . ' </li>'; } echo $output; } elseif ($type == 'posts-timeline') { global $helper, $ioa_meta_data, $super_options; $ioa_meta_data['width'] = 333; $ioa_meta_data['height'] = 230; $months = array("january" => __("January", 'ioa'), "february" => __("February", 'ioa'), "march" => __("March", 'ioa'), "april" => __("April", 'ioa'), "may" => __("May", 'ioa'), "june" => __("June", 'ioa'), "july" => __("July", 'ioa'), "august" => __("August", 'ioa'), "september" => __("September", 'ioa'), "october" => __("October", 'ioa'), "november" => __("November", 'ioa'), "december" => __("December", 'ioa')); $offset = $_POST['offset']; $month = $_POST['month']; $post_id = $_POST['id']; $post_type = $_POST['post_type']; $helper->preparePage($post_id); $ioa_options = get_post_meta($post_id, 'ioa_options', true); if ($ioa_options == "") { $ioa_options = array(); } $ioa_meta_data['query_filter'] = array(); $query_s = ''; if (isset($ioa_options['query_filter'])) { $query_s = $ioa_options['query_filter']; } if (isset($ioa_options['posts_excerpt_limit'])) { $ioa_meta_data['posts_excerpt_limit'] = $ioa_options['posts_excerpt_limit']; } if ($query_s != "") { $gen = array(); $custom_tax = array(); $query_s = explode("&", $query_s); foreach ($query_s as $para) { $p = explode("=", $para); if ($p[0] == "tax_query") { $vals = explode("|", $p[1]); $custom_tax[] = array('taxonomy' => $vals[0], 'field' => 'id', 'terms' => explode(",", $vals[1])); } else { if ($para != "") { $gen[$p[0]] = $p[1]; } } } $gen["tax_query"] = array(array('taxonomy' => 'post_format', 'field' => 'slug', 'terms' => array('post-format-quote', 'post-format-chat', 'post-format-image', 'post-format-audio', 'post-format-status', 'post-format-aside', 'post-format-video', 'post-format-gallery', 'post-format-link'), 'operator' => 'NOT IN')); $gen['offset'] = $offset; $ioa_meta_data['query_filter'] = $gen; } query_posts(array_merge(array("posts_per_page" => 4, "offset" => $offset, "post_type" => $post_type, "tax_query" => array(array('taxonomy' => 'post_format', 'field' => 'slug', 'terms' => array('post-format-quote', 'post-format-chat', 'post-format-image', 'post-format-audio', 'post-format-status', 'post-format-aside', 'post-format-video', 'post-format-gallery', 'post-format-link'), 'operator' => 'NOT IN'))), $ioa_meta_data['query_filter'])); $rs = array(); $count = 0; if (have_posts()) { while (have_posts()) { the_post(); $row = array(); $row["bg"] = ''; $row["c"] = ''; $ioa_options = get_post_meta(get_the_ID(), 'ioa_options', true); if ($ioa_options == "") { $ioa_options = array(); } if (isset($ioa_options['dominant_bg_color'])) { $row["bg"] = $ioa_options['dominant_bg_color']; } if (isset($ioa_options['dominant_color'])) { $row["c"] = $ioa_options['dominant_color']; } $row["start_time"] = get_the_time(); $row["start_date"] = get_the_date("d-n-Y"); $row["ori_date"] = get_the_date(); $f = get_the_date("d-n-Y"); $row["factor"] = $f[2] . $f[1] . $f[0]; $row["id"] = get_the_ID(); if (function_exists('has_post_thumbnail') && has_post_thumbnail()) { $id = get_post_thumbnail_id(); $ar = wp_get_attachment_image_src($id, array(9999, 9999)); $row["image"] = $helper->imageDisplay(array("crop" => "wproportional", "src" => $ar[0], "height" => $ioa_meta_data['height'], "width" => $ioa_meta_data['width'], "link" => get_permalink(), "imageAttr" => "data-link='" . get_permalink() . "' alt='" . get_the_title() . "'")); } if (!isset($ioa_meta_data['posts_excerpt_limit'])) { $ioa_meta_data['posts_excerpt_limit'] = 150; } $row["title"] = get_the_title(); $row["permalink"] = get_permalink(); $row["content"] = $helper->getShortenContent($ioa_meta_data['posts_excerpt_limit'], strip_tags(strip_shortcodes(get_the_excerpt()))); $rs[] = $row; $count++; } } else { echo "<h4 class='post-end'>" . __('End of post', 'ioa') . "</h4>"; return; } $posts = ''; $i = 0; if (isset($rs[0]["start_date"])) { $opts = explode("-", $rs[0]["start_date"]); $transmonth = $months[strtolower(date("F", mktime(0, 0, 0, $opts[1], 1, $opts[2])))]; $month = $opts[1]; } $posts = $posts . " <h4 class='month-label' data-month='{$month}'>" . $transmonth . ' <span class="year">' . $opts[2] . "</span></h4> "; foreach ($rs as $post) { $opts = explode("-", $post["start_date"]); $transmonth = $months[strtolower(date("F", mktime(0, 0, 0, $opts[1], 1, $opts[2])))]; if ($opts[1] != $month) { $month = $opts[1]; $posts = $posts . " <h4 class='month-label' data-month='{$month}'> " . $transmonth . ' <span class="year">' . $opts[2] . "</span></h4> "; } $s_date = $opts[0]; $s_date = str_replace(strtolower(date("F", mktime(0, 0, 0, $opts[1], 1, $opts[2]))), $transmonth, strtolower($s_date)); if ($i % 2 == 0) { $clname = 'left-post'; } else { $clname = "right-post"; } $posts = $posts . " <div class=\"clearfix {$clname} timeline-post\"><span class=\"dot\" ></span><span class=\"tip\"><span class=\"connector\"></span></span>\r\n<h3 class=\"title\"> <a href=\"" . $post['permalink'] . "\"> " . $post['title'] . " </h3> </a><div class=\"image\"><span class='date'>" . $s_date . "</span>"; if (isset($post['image'])) { $posts = $posts . $post['image']; } echo $posts; if ($ioa_meta_data['enable_thumbnail'] != "true") { $helper->getHover(array('format' => 'link', 'link' => $post['permalink'], 'bg' => $post['bg'], 'c' => $post['c'])); } else { $helper->getHover(array('format' => 'image', 'image' => $post['image_url'], 'bg' => $post['bg'], 'c' => $post['c'])); } $posts = "</div>\r\n<div class=\"desc clearfix\">" . $post['content'] . "\r\n</div> <a itemprop='url' href=\"" . $post['permalink'] . "\" class=\"main-button\"> " . __('More', 'ioa') . " </a>\r\n</div>"; $i++; } ?> <?php echo $posts; } elseif ($type == "portfolio_modelie") { global $helper, $ioa_meta_data; $offset = $_POST['offset']; $height = $_POST['height']; $width = $_POST['width']; $id = $_POST['id']; $ioa_options = get_post_meta($id, 'ioa_options', true); if ($ioa_options == "") { $ioa_options = array(); } if (isset($ioa_options['portfolio_item_limit'])) { $ioa_meta_data['portfolio_item_limit'] = $ioa_options['portfolio_item_limit']; } if (!isset($ioa_meta_data['portfolio_item_limit'])) { $ioa_meta_data['portfolio_item_limit'] = $super_options[SN . '_portfolio_item_limit']; } $ioa_meta_data['portfolio_query_filter'] = array(); $portfolio_query_s = $ioa_options['portfolio_enable_thumbnail'] = $ioa_meta_data['portfolio_more_label'] = $ioa_meta_data['portfolio_excerpt_limit'] = $ioa_meta_data['portfolio_excerpt'] = $ioa_meta_data['portfolio_query_filter'] = ''; if (isset($ioa_options['portfolio_enable_thumbnail'])) { $ioa_meta_data['portfolio_enable_thumbnail'] = $ioa_options['portfolio_enable_thumbnail']; } if (isset($ioa_options['portfolio_more_label'])) { $ioa_meta_data['portfolio_more_label'] = $ioa_options['portfolio_more_label']; } if (isset($ioa_options['portfolio_excerpt_limit'])) { $ioa_meta_data['portfolio_excerpt_limit'] = $ioa_options['portfolio_excerpt_limit']; } if (isset($ioa_options['portfolio_excerpt'])) { $ioa_meta_data['portfolio_excerpt'] = $ioa_options['portfolio_excerpt']; } if (isset($ioa_options['portfolio_query_filter'])) { $portfolio_query_s = $ioa_options['portfolio_query_filter']; } if ($portfolio_query_s != "") { $gen = array(); $custom_tax = array(); $portfolio_query_s = explode("&", $portfolio_query_s); foreach ($portfolio_query_s as $para) { $p = explode("=", $para); if ($p[0] == "tax_query") { $vals = explode("|", $p[1]); $custom_tax[] = array('taxonomy' => $vals[0], 'field' => 'id', 'terms' => explode(",", $vals[1])); } else { if ($para != "") { $gen[$p[0]] = $p[1]; } } } $gen["tax_query"] = $custom_tax; $ioa_meta_data['portfolio_query_filter'] = $gen; } if ($ioa_meta_data['portfolio_query_filter'] == "") { $ioa_meta_data['portfolio_query_filter'] = array(); } $opts = array_merge(array('post_type' => $ioa_portfolio_slug, 'posts_per_page' => $ioa_meta_data['portfolio_item_limit'], 'offset' => $offset), $ioa_meta_data['portfolio_query_filter']); query_posts($opts); if (have_posts()) { while (have_posts()) { the_post(); if (function_exists('has_post_thumbnail') && has_post_thumbnail()) { $ioa_meta_data['hasFeaturedImage'] = true; } ?> <?php $dbg = ''; $dc = ''; $ioa_options = get_post_meta(get_the_ID(), 'ioa_options', true); if ($ioa_options == "") { $ioa_options = array(); } if (isset($ioa_options['dominant_bg_color'])) { $dbg = $ioa_options['dominant_bg_color']; } if (isset($ioa_options['dominant_color'])) { $dc = $ioa_options['dominant_color']; } ?> <li data-dbg='<?php echo $dbg; ?> ' data-dc='<?php echo $dc; ?> ' class="post clearfix " style="color:<?php echo $dc; ?> ;"> <span class="loader"></span> <div class="inner-item-wrap"> <?php if ($ioa_meta_data['hasFeaturedImage']) { ?> <div class="image-wrap"> <div class="image" > <?php $id = get_post_thumbnail_id(); $ar = wp_get_attachment_image_src($id, array(9999, 9999)); if ($width > 767) { echo $helper->imageDisplay(array("crop" => "hproportional", "src" => $ar[0], "height" => $height, "width" => 600, "link" => get_permalink(), "imageAttr" => "data-link='" . get_permalink() . "' alt='" . get_the_title() . "'")); } else { echo $helper->imageDisplay(array("crop" => "wproportional", "src" => $ar[0], "height" => $height, "width" => $width, "link" => get_permalink(), "imageAttr" => "data-link='" . get_permalink() . "' alt='" . get_the_title() . "'")); } ?> <div class="hover" <?php echo 'style="background-color:' . $dbg . '"'; ?> > <h2 class=""> <a href="<?php the_permalink(); ?> " class="clearfix" <?php echo 'style="color:' . $dc . '"'; ?> ><?php the_title(); ?> </a></h2> <?php $terms = get_the_terms($post->ID, $portfolio_taxonomy); if ($terms && !is_wp_error($terms)) { $links = array(); foreach ($terms as $term) { $links[] = '<a href="' . get_term_link($term->slug, $portfolio_taxonomy) . '">' . $term->name . '</a>'; } $terms = join(" | ", $links); ?> <p class="tags" <?php echo 'style="color:' . $dc . '"'; ?> > <?php echo $terms; ?> </p> <?php } ?> <a href="<?php the_permalink(); ?> " style='color:<?php echo $dbg; ?> ;background-color:<?php echo $dc; ?> ' class="hover-lightbox ioa-front-icon link-2icon-"></a> </div> </div> </div> <?php } ?> </div> </li> <?php } ?> <li class="load-more-posts clearfix"> <a href="" class="load-more-posts-button" style="line-height:<?php echo $height; ?> px" data-loading="<?php _e('Loading', 'ioa'); ?> " data-default="<?php _e('Load More', 'ioa'); ?> "><?php _e('Load More', 'ioa'); ?> </a> </li> <?php } else { ?> <li class="end-more-posts clearfix" style="line-height:<?php echo $height; ?> px" > <?php _e('No More Posts', 'ioa'); ?> </li> <?php } ?> <?php } elseif ($type == 'options_import') { $theme_options = $_POST['data']; $theme_options = base64_decode($theme_options); $input = json_decode($theme_options, true); foreach ($input as $key => $val) { $data = @unserialize($val["option_value"]); if ($data === false) { $data = $val["option_value"]; } else { $data = unserialize($data); } update_option($val["option_name"], $data); } echo 'done'; } elseif ($type == "portfolio_fullscreen") { global $helper, $ioa_meta_data, $paged; $width = $_POST['width']; $height = $_POST['height']; $id = $_POST['id']; $ioa_options = get_post_meta($id, 'ioa_options', true); if ($ioa_options == "") { $ioa_options = array(); } if (isset($ioa_options['portfolio_item_limit'])) { $ioa_meta_data['portfolio_item_limit'] = $ioa_options['portfolio_item_limit']; } if (!isset($ioa_meta_data['portfolio_item_limit'])) { $ioa_meta_data['portfolio_item_limit'] = $super_options[SN . '_portfolio_item_limit']; } $ioa_meta_data['portfolio_query_filter'] = array(); $portfolio_query_s = $ioa_options['portfolio_enable_thumbnail'] = $ioa_meta_data['portfolio_more_label'] = $ioa_meta_data['portfolio_excerpt_limit'] = $ioa_meta_data['portfolio_excerpt'] = $ioa_meta_data['portfolio_query_filter'] = ''; if (isset($ioa_options['portfolio_enable_thumbnail'])) { $ioa_meta_data['portfolio_enable_thumbnail'] = $ioa_options['portfolio_enable_thumbnail']; } if (isset($ioa_options['portfolio_more_label'])) { $ioa_meta_data['portfolio_more_label'] = $ioa_options['portfolio_more_label']; } if (isset($ioa_options['portfolio_excerpt_limit'])) { $ioa_meta_data['portfolio_excerpt_limit'] = $ioa_options['portfolio_excerpt_limit']; } if (isset($ioa_options['portfolio_excerpt'])) { $ioa_meta_data['portfolio_excerpt'] = $ioa_options['portfolio_excerpt']; } if (isset($ioa_options['portfolio_query_filter'])) { $portfolio_query_s = $ioa_options['portfolio_query_filter']; } if (isset($ioa_options['portfolio_image_resize'])) { $ioa_meta_data['thumb_resize'] = $ioa_options['portfolio_image_resize']; } if ($portfolio_query_s != "") { $gen = array(); $custom_tax = array(); $portfolio_query_s = explode("&", $portfolio_query_s); foreach ($portfolio_query_s as $para) { $p = explode("=", $para); if ($p[0] == "tax_query") { $vals = explode("|", $p[1]); $custom_tax[] = array('taxonomy' => $vals[0], 'field' => 'id', 'terms' => explode(",", $vals[1])); } else { if ($para != "") { $gen[$p[0]] = $p[1]; } } } $gen["tax_query"] = $custom_tax; $ioa_meta_data['portfolio_query_filter'] = $gen; } if ($ioa_meta_data['portfolio_query_filter'] == "") { $ioa_meta_data['portfolio_query_filter'] = array(); } $opts = array_merge(array('post_type' => $ioa_portfolio_slug, 'posts_per_page' => $ioa_meta_data['portfolio_item_limit'], 'paged' => $paged), $ioa_meta_data['portfolio_query_filter']); query_posts($opts); ?> <div class="ioa-gallery seleneGallery" data-effect_type="fade" data-width="<?php echo $width; ?> " data-height="<?php echo $height; ?> " data-duration="5" data-autoplay="true" data-captions="true" data-arrow_control="true" data-thumbnails="true" > <div class="gallery-holder"> <?php if (have_posts()) { while (have_posts()) { the_post(); if (function_exists('has_post_thumbnail') && has_post_thumbnail()) { $ioa_meta_data['hasFeaturedImage'] = true; } ?> <?php $dbg = ''; $dc = ''; $ioa_options = get_post_meta(get_the_ID(), 'ioa_options', true); if ($ioa_options == "") { $ioa_options = array(); } if (isset($ioa_options['dominant_bg_color'])) { $dbg = $ioa_options['dominant_bg_color']; } if (isset($ioa_options['dominant_color'])) { $dc = $ioa_options['dominant_color']; } ?> <?php if ($ioa_meta_data['hasFeaturedImage']) { $id = get_post_thumbnail_id(); $ar = wp_get_attachment_image_src($id, array(9999, 9999)); if (!isset($ioa_meta_data['thumb_resize'])) { $ioa_meta_data['thumb_resize'] = 'default'; } ?> <div class="gallery-item <?php echo $ioa_meta_data['thumb_resize']; ?> " data-thumbnail="<?php $th = wp_get_attachment_image_src($id); echo $th[0]; ?> "> <?php switch ($ioa_meta_data['thumb_resize']) { case 'default': echo $helper->imageDisplay(array("src" => $ar[0], "height" => $height, "width" => $width, "link" => get_permalink(), "imageAttr" => "data-link='" . get_permalink() . "' alt='" . get_the_title() . "'")); break; case 'proportional': echo $helper->imageDisplay(array("crop" => "hproportional", "src" => $ar[0], "height" => $height, "width" => $width, "link" => get_permalink(), "imageAttr" => "data-link='" . get_permalink() . "' alt='" . get_the_title() . "'")); break; case 'none': default: echo "<img src='" . $ar[0] . "' />"; break; } // ?> <div class="gallery-desc" > <h4 class="" <?php echo 'style="color:' . $dc . ';background-color:' . $dbg . '"'; ?> > <a href="<?php the_permalink(); ?> " class="clearfix" ><?php the_title(); ?> </a></h4> <div class="caption" <?php echo 'style="color:' . $dc . ';background-color:' . $dbg . '"'; ?> > <?php if ($ioa_meta_data['portfolio_excerpt'] != "true") { ?> <p> <?php if (!isset($ioa_meta_data['portfolio_excerpt_limit'])) { $ioa_meta_data['portfolio_excerpt_limit'] = 150; } $content = get_the_excerpt(); $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); echo $helper->getShortenContent(150, $content); ?> </p> <?php } else { the_excerpt(); } ?> <a href="<?php the_permalink(); ?> " style='color:<?php echo $dbg; ?> ;background:<?php echo $dc; ?> ' class="hover-link"><?php echo stripslashes($ioa_meta_data['portfolio_more_label']); ?> </a> </div> </div> </div> <?php } ?> <?php } } else { echo '<div class="no-posts-found skeleton auto_align"><h4>' . __('Sorry no posts found', 'ioa') . '</h4></div>'; } ?> </div></div> <?php } elseif ($type == "single_portfolio_modelie") { global $helper, $ioa_meta_data; $height = $_POST['height']; $width = $_POST['width']; $id = $_POST['id']; $gallery_images = ''; $ioa_options = get_post_meta($id, 'ioa_options', true); if ($ioa_options == "") { $ioa_options = array(); } if (isset($ioa_options['ioa_gallery_data'])) { $gallery_images = $ioa_options['ioa_gallery_data']; } ?> <?php if (isset($gallery_images) && trim($gallery_images) != "") { $ar = explode(";", stripslashes($gallery_images)); foreach ($ar as $image) { if ($image != "") { $g_opts = explode("<gl>", $image); ?> <li class=" clearfix " ><span class="loader"></span> <div class="inner-item-wrap"> <div class="image-wrap"> <div class="image" > <?php if ($width > 767) { echo $helper->imageDisplay(array("crop" => "hproportional", "src" => $g_opts[0], "height" => $height, "width" => 600, "parent_wrap" => false, "imageAttr" => " alt='" . get_the_title() . "'")); } else { echo $helper->imageDisplay(array("crop" => "wproportional", "src" => $g_opts[0], "height" => $height, "width" => $width, "parent_wrap" => false, "imageAttr" => " alt='" . get_the_title() . "'")); } ?> </div> </div> </div> </li> <?php } } } } elseif ($type == "single_portfolio_fullscreen") { global $helper, $ioa_meta_data, $paged; $width = $_POST['width']; $height = $_POST['height']; $id = $_POST['id']; $gallery_images = ''; $ioa_options = get_post_meta($id, 'ioa_options', true); if ($ioa_options == "") { $ioa_options = array(); } if (isset($ioa_options['ioa_gallery_data'])) { $gallery_images = $ioa_options['ioa_gallery_data']; } ?> <div class="ioa-gallery seleneGallery" data-effect_type="scroll" data-width="<?php echo $width; ?> " data-height="<?php echo $height; ?> " data-duration="5" data-autoplay="true" data-captions="true" data-arrow_control="true" data-thumbnails="true" > <div class="gallery-holder"> <?php if (isset($gallery_images) && trim($gallery_images) != "") { $ar = explode(";", stripslashes($gallery_images)); foreach ($ar as $image) { if ($image != "") { $g_opts = explode("<gl>", $image); ?> <div class="gallery-item" data-thumbnail="<?php echo $g_opts[1]; ?> "> <?php echo $helper->imageDisplay(array("crop" => "proportional", "src" => $g_opts[0], 'imageAttr' => $g_opts[2], "parent_wrap" => false, "width" => $width, "height" => $height)); ?> <div class="gallery-desc"> <?php if (trim($g_opts[3]) != "") { echo '<h4>' . $g_opts[3] . '</h4>'; } ?> <?php if (trim($g_opts[4]) != "") { echo '<div class="caption">' . $g_opts[4] . '</div>'; } ?> </div> </div> <?php } } } ?> </div></div> <?php } elseif ($type == "portfolio_maerya") { $pid = $_POST['id']; $ajax_post = get_post($pid); ?> <div class="one_half left"> <?php $id = get_post_thumbnail_id($pid); $ar = wp_get_attachment_image_src($id, array(9999, 9999)); echo $helper->imageDisplay(array("src" => $ar[0], "height" => 530, "width" => 530, "link" => get_permalink($pid), "imageAttr" => "")); ?> </div> <div class="one_half left"> <h2><a href="<?php echo get_permalink($pid); ?> "><?php echo $ajax_post->post_title; ?> </a></h2> <div class="desc clearfix"> <div class="clearfix"> <p> <?php $content = $ajax_post->post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); echo $helper->getShortenContent(320, $content); ?> </p> </div> <a href="<?php echo get_permalink($pid); ?> " class="read-more"><?php _e('View the Post', 'ioa'); ?> </a> </div> </div> <?php } elseif ($type == "shortcode") { require_once HPATH . '/shortcode_engine.php'; ?> <ul class="top-shortcodes-menu clearfix"> <?php $i = 0; foreach ($ioa_shortcodes_array as $key => $menu_item) { if ($i == 0) { echo "<li class='active' data-id=" . str_replace(' ', '-', strtolower(trim($key))) . "> <span class='icon-label'>{$key}</span> </li>"; } else { echo "<li data-id=" . str_replace(' ', '-', strtolower(trim($key))) . "> <span class='icon-label'>{$key}</span> </li>"; } $i++; } ?> </ul> <div class="shortcodes-desc-area clearfix"> <?php foreach ($ioa_shortcodes_array as $key => $item) { ?> <div id="<?php echo str_replace(' ', '-', strtolower(trim($key))); ?> "> <?php $opts = array("none" => "None"); foreach ($item['shortcodes'] as $key => $shortcode) { $opts["s-" . str_replace(' ', '-', strtolower(trim($key)))] = $shortcode['name']; } echo getIOAInput(array("label" => __("Select Shortcode", 'ioa'), "name" => "select_shortcode", "default" => "", "type" => "select", "description" => "", "length" => 'medium', "options" => $opts)); ?> <a href="" class="info_shortcode button-default"><?php _e('Help', 'ioa'); ?> </a> </div> <?php } ?> </div> <div id="s-column-maker" class='ex-shortcode-mods'> <h6><?php _e('Click the layout you want, a layout grid will be generated. Once satisfied, click on Insert Column Layout. When you are adding last column select the column with last suffix to ensure proper spacings.', 'ioa'); ?> </h6> <div class="top-bar clearfix"> <a href="full" class='button-default'><?php _e('100%', 'ioa'); ?> </a> <a href="one_half" class='button-default'><?php _e('50%', 'ioa'); ?> </a> <a class="last button-default" href="one_half"><?php _e('50% Last', 'ioa'); ?> </a> <a href="one_fourth" class='button-default'><?php _e('25%', 'ioa'); ?> </a> <a class="last button-default" href="one_fourth"><?php _e('25% Last', 'ioa'); ?> </a> <a href="one_third" class='button-default'><?php _e('33%', 'ioa'); ?> </a> <a class="last button-default" href="one_third"><?php _e('33% Last', 'ioa'); ?> </a> <a href="one_fifth" class='button-default'><?php _e('20%', 'ioa'); ?> </a> <a class="last button-default" href="one_fifth"><?php _e('20% Last', 'ioa'); ?> </a> <a href="three_fourth" class='button-default'><?php _e('75%', 'ioa'); ?> </a> <a class="last button-default" href="three_fourth"><?php _e('75% Last', 'ioa'); ?> </a> <a href="two_third" class='button-default'><?php _e('66%', 'ioa'); ?> </a> <a class="last button-default" href="two_third"><?php _e('66% Last', 'ioa'); ?> </a> <a href="four_fifth" class='button-default'><?php _e('80%', 'ioa'); ?> </a> <a class="last button-default" href="four_fifth"><?php _e('80% Last', 'ioa'); ?> </a> </div> <div class="clearfix"> <a href="" id="column-maker-insert"><?php _e(' Insert Column Layout ', 'ioa'); ?> </a> </div> <div class="column-maker-area clearfix"> </div> </div> <div id="s-pricing_table" class='ex-shortcode-mods clearfix'> <a href="" id="pricingtable-insert"><?php _e(' Insert Table ', 'ioa'); ?> </a> <h4 class="feature-column-head clearfix"><?php _e('Feature Column Input(Click to edit)', 'ioa'); ?> </h4> <div class="feature-column-body clearfix"> <?php echo getIOAInput(array("label" => __("Enable use of Feature Column", 'ioa'), "name" => "feature_column", "default" => "", "type" => "select", "description" => "", "length" => 'medium', "options" => array("true" => "True", "false" => "False"))); echo getIOAInput(array("label" => __("Title", 'ioa'), "name" => "feature_column", "default" => "", "type" => "text", "description" => "", "length" => 'medium', "data" => array("value" => "title"), "class" => ' feature-col ')); echo getIOAInput(array("label" => __("Information below Title", 'ioa'), "name" => "feature_column", "default" => "", "type" => "text", "description" => "", "length" => 'medium', "data" => array("value" => "info"), "class" => ' feature-col ')); echo getIOAInput(array("label" => __("Rows data, separate values by , ", 'ioa'), "name" => "feature_column", "default" => "", "type" => "textarea", "description" => "", "length" => 'medium', "data" => array("value" => "row_data"), "class" => ' feature-col ')); ?> </div> <?php $inputs = array(array("label" => __("Plan Name", 'ioa'), "name" => "plan_name", "default" => "", "value" => "", "type" => "text", "description" => "", "length" => 'medium'), array("label" => __("Plan Price", 'ioa'), "name" => "plan_price", "default" => "", "value" => "", "type" => "text", "description" => "", "length" => 'medium'), array("label" => __("Plan Price Information", 'ioa'), "name" => "plan_price_info", "default" => "", "value" => "", "type" => "text", "description" => "", "length" => 'medium'), array("label" => __("Plan Row Data", 'ioa'), "name" => "row_data", "default" => "", "value" => "", "type" => "text", "description" => "", "length" => 'medium'), array("label" => __("Button Label", 'ioa'), "name" => "button_label", "default" => "", "value" => "", "type" => "text", "description" => "", "length" => 'medium'), array("label" => __("Button Link", 'ioa'), "name" => "button_link", "default" => "", "value" => "", "type" => "text", "description" => "", "length" => 'medium'), array("label" => __("Is Featured Column", 'ioa'), "name" => "featured", "default" => "false", "type" => "select", "description" => "", "length" => 'medium', "options" => array("true" => "True", "false" => "False"))); echo getIOAInput(array('inputs' => $inputs, 'label' => __('Add Column', 'ioa'), 'name' => 'pricing_cols', 'type' => 'module', 'unit' => __('Column', 'ioa'))); ?> </div> <?php foreach ($ioa_shortcodes_array as $key => $item) { ?> <?php foreach ($item['shortcodes'] as $key => $shortcode) { if (isset($shortcode['module'])) { ?> <div id="<?php echo "s-" . str_replace(' ', '-', strtolower(trim($key))); ?> " class='ex-shortcode-mods clearfix'> <a href="" data-applier="<?php echo $shortcode['mod_applier']; ?> " data-parent="<?php echo $shortcode['mod_parent']; ?> " class="add-mod-shortcode"><?php _e('Insert Shortcode', 'ioa'); ?> </a> <?php if (isset($shortcode['parent_input'])) { foreach ($shortcode['parent_input'] as $key => $input) { switch ($input['type']) { case 'select': echo getIOAInput(array("label" => $input['label'], "name" => "parent_val_holder", "default" => "", "type" => "select", "description" => "", "length" => 'medium', "options" => $input['values'], "data" => array("value" => $key), "class" => "parent_val")); break; case 'colorpicker': echo getIOAInput(array("label" => $input['label'], "name" => "parent_val_holder", "default" => "", "value" => $input['values'], "type" => "colorpicker", "description" => "", "length" => 'small', "data" => array("value" => $key), "class" => "parent_val")); break; case 'text': echo getIOAInput(array("label" => $input['label'], "name" => "parent_val_holder", "default" => "", "value" => $input['values'], "type" => "text", "description" => "", "length" => 'medium', "data" => array("value" => $key), "class" => "parent_val")); break; case 'upload': echo getIOAInput(array("label" => $input['label'], "name" => "parent_val_holder", "default" => "", "value" => $input['values'], "type" => "upload", "description" => "", "length" => 'medium', "data" => array("value" => $key), "class" => "parent_val")); break; case 'textarea': echo getIOAInput(array("label" => $input['label'], "name" => "parent_val_holder", "default" => "", "value" => $input['values'], "type" => "textarea", "description" => "", "length" => 'medium', "data" => array("value" => $key), "class" => "parent_val")); break; case 'icon': echo getIOAInput(array("label" => $input['label'], "name" => "parent_val_holder", "default" => "", "value" => $input['values'], "type" => "text", "description" => "", "length" => 'small', "data" => array("value" => $key), "class" => "parent_val", 'addMarkup' => '<a href="" class="button-default icon-maker">' . __('Add Icon', 'ioa') . '</a>')); break; } } } $mod = array(); foreach ($shortcode['module'] as $key => $input) { if (isset($input['values'])) { switch ($input['type']) { case 'select': $mod[] = array("label" => $input['label'], "name" => $key, "default" => "", "type" => "select", "description" => "", "length" => 'medium', "options" => $input['values']); break; case 'upload': $mod[] = array("label" => $input['label'], "name" => $key, "default" => "", "type" => "upload", "description" => "", "length" => 'small', "value" => $input['values']); break; case 'colorpicker': $mod[] = array("label" => $input['label'], "name" => $key, "default" => "", "value" => $input['values'], "type" => "colorpicker", "description" => "", "length" => 'small'); break; case 'text': $mod[] = array("label" => $input['label'], "name" => $key, "default" => "", "value" => $input['values'], "type" => "text", "description" => "", "length" => 'medium'); break; case 'textarea': $mod[] = array("label" => $input['label'], "name" => $key, "default" => "", "value" => $input['values'], "type" => "textarea", "description" => "", "length" => 'medium'); break; case 'icon': $mod[] = array("label" => $input['label'], "name" => $key, "default" => "", "value" => $input['values'], "type" => "text", "description" => "", "length" => 'small', 'addMarkup' => '<a href="" class="button-default icon-maker">' . __('Add Icon', 'ioa') . '</a>'); break; } } } echo getIOAInput(array('inputs' => $mod, 'label' => $shortcode['mod_label'], 'name' => 'mod_data', 'type' => 'module', 'unit' => $shortcode['mod_unit'])); ?> </div> <?php } if (isset($shortcode['inputs'])) { ?> <div id="<?php echo "s-" . str_replace(' ', '-', strtolower(trim($key))); ?> " class='ex-shortcode-mods clearfix'> <a href="" class="add-mod-shortcode"><?php _e('Insert Shortcode', 'ioa'); ?> </a> <?php if (isset($shortcode["content"])) { $l = __("Add Content", 'ioa'); $t = "textarea"; if (isset($shortcode['content_label'])) { $l = $shortcode['content_label']; } if (isset($shortcode['content_type'])) { $t = $shortcode['content_type']; } echo getIOAInput(array("label" => $l, "name" => "shortcodes_content_holder", "default" => "", "value" => "", "type" => $t, "description" => "", "length" => 'medium')); } foreach ($shortcode['inputs'] as $key => $input) { if (isset($input['values'])) { switch ($input['type']) { case 'select': echo getIOAInput(array("label" => $input['label'], "name" => "shortcodes_val_holder", "default" => "", "type" => "select", "description" => "", "length" => 'medium', "options" => $input['values'], "data" => array("value" => $key))); break; case 'colorpicker': echo getIOAInput(array("label" => $input['label'], "name" => "shortcodes_val_holder", "default" => "", "value" => $input['values'], "type" => "colorpicker", "description" => "", "length" => 'medium', "data" => array("value" => $key))); break; case 'text': echo getIOAInput(array("label" => $input['label'], "name" => "shortcodes_val_holder", "default" => "", "value" => $input['values'], "type" => "text", "description" => "", "length" => 'medium', "data" => array("value" => $key))); break; case 'upload': echo getIOAInput(array("label" => $input['label'], "name" => "shortcodes_val_holder", "default" => "", "value" => $input['values'], "type" => "upload", "description" => "", "length" => 'medium', "data" => array("value" => $key))); break; case 'textarea': echo getIOAInput(array("label" => $input['label'], "name" => "shortcodes_val_holder", "default" => "", "value" => $input['values'], "type" => "textarea", "description" => "", "length" => 'medium', "data" => array("value" => $key))); break; case 'icon': echo getIOAInput(array("label" => $input['label'], "name" => "shortcodes_val_holder", "default" => "", "value" => $input['values'], "type" => "text", "description" => "", "length" => 'small', "data" => array("value" => $key), 'addMarkup' => '<a href="" class="button-default icon-maker">' . __('Add Icon', 'ioa') . '</a>')); break; case 'wp_query': echo getIOAInput(array("label" => $input['label'], "name" => "shortcodes_val_holder", "default" => "", "value" => $input['values'], "type" => "text", "description" => "", "length" => 'small', "data" => array("value" => $key), 'addMarkup' => '<a href="" class="button-default query-maker">' . __('Add Filter', 'ioa') . '</a>')); break; } } } ?> </div> <?php } } } ?> <div class="shortcode-help-desk"> <?php foreach ($ioa_shortcodes_array as $key => $item) { ?> <?php foreach ($item['shortcodes'] as $key => $shortcode) { ?> <div class="desc-area <?php echo "s-" . str_replace(' ', '-', strtolower(trim($key))); ?> "> <ul> <li class='clearfix'><strong><?php _e('Syntax', 'ioa'); ?> :</strong> <span class="syntax"><?php echo $shortcode['syntax']; ?> </span></li> <li class='clearfix'><strong><?php _e('Description', 'ioa'); ?> :</strong><span> <?php echo $shortcode['description']; ?> </span></li> <?php if (isset($shortcode['parameters'])) { ?> <li class='clearfix'><strong><?php _e('Options', 'ioa'); ?> : </strong> <ul> <?php foreach ($shortcode['parameters'] as $key => $value) { echo "<li> <strong>{$key} -</strong> <p>{$value}</p> </li>"; } ?> </ul> </li> <?php } ?> </ul> </div> <?php } } ?> </div> <?php } elseif ($type == "gspeed") { $score = -1; if (isset($_POST['score'])) { $score = $_POST['score']; } echo set_transient(SN . '_gspeed', $score, 60 * 60 * 12); } elseif ($type == 'headercons') { $list = $_POST['unused_list']; $data = $_POST['layout']; $post_id = $_POST['id']; $form_array = array($list, $data); update_post_meta($post_id, 'ioaheader_data', $form_array); } elseif ($type == 'delheadercons') { $post_id = $_POST['id']; delete_post_meta($post_id, 'ioaheader_data'); } elseif ($type == "Enigma-styler-add") { $name = $_POST['label']; $key = uniqid(); $table = get_option(SN . 'enigma_hash'); if (!$table || !is_array($table)) { $table = array(); } $table['en' . $key] = $name; update_option(SN . 'enigma_hash', $table); echo 'en' . $key; } elseif ($type == "Enigma-typo") { $font_stacks = json_decode(stripslashes($_POST['fontstack'])); update_option(SN . 'font_stacks', $font_stacks); $font_selector = $_POST['font_selector']; update_option(SN . 'font_selector', $font_selector); $fontface = $_POST['fontface']; update_option(SN . '_font_face_font', $fontface); $font_deck_project_id = $_POST['font_deck_id']; update_option(SN . '_font_deck_project_id', $font_deck_project_id); $font_deck_name = $_POST['font_deck_name']; update_option(SN . '_font_deck_name', $font_deck_name); } elseif ($type == "Enigma-styler") { global $enigma_runtime; $data = $_POST['data']; $template = $_POST['template']; $gc = urldecode($_POST['global_color']); $concave_val = urldecode($_POST['concave_val']); update_option(SN . 'concave_value', $concave_val); $new_data = array(); foreach ($data as $style) { $style = json_decode(stripslashes($style)); if ($style->target != "undefined") { $new_data[] = array("target" => urldecode($style->target), "value" => urldecode($style->value), "name" => urldecode($style->name)); } } $data = $new_data; update_option(SN . '_global_color', $gc); if ($template == "default") { update_option(SN . '_enigma_data', $data); } else { update_option($template, $data); } update_option(SN . '_active_etemplate', $template); $enigma_runtime->createCSSFile(); echo $template; } elseif ($type == "Enigma-active") { $template = $_POST['template']; update_option(SN . '_active_etemplate', $template); } elseif ($type == "Enigma-delete") { $table = get_option(SN . 'enigma_hash'); $key = $_POST['template']; if (!$table || !is_array($table)) { $table = array(); } unset($table[$key]); update_option(SN . 'enigma_hash', $table); update_option(SN . '_active_etemplate', 'default'); echo $key; } elseif ($type == "Enigma-styler-reset") { $template = $_POST['template']; if ($template == "default") { update_option(SN . '_enigma_data', array()); } else { update_option($template, array()); } delete_option(SN . '_global_color'); } elseif ($type == 'Enigma-import') { $data = $_POST['value']; $data = base64_decode($data); $input = json_decode($data, true); $name = str_replace("_", " ", $input[0]); $style = $input[1]; $name = ucwords($name); $key = uniqid(); $table = get_option(SN . 'enigma_hash'); if (!$table || !is_array($table)) { $table = array(); } $table['en' . $key] = $name; update_option(SN . 'enigma_hash', $table); update_option('en' . $key, $style); echo "<option value='en" . $key . "'> {$name} </option>"; } elseif ($type == "visualizer_save") { $data = $_POST['data']; $bgs = $_POST['images']; update_option(SN . 'visualizer_hash', $data); update_option(SN . 'visualizer_images', $bgs); } elseif ($type == "sticky_contact") { $qname = $_POST["name"]; $qemail = $_POST["email"]; $qmsg = $_POST["msg"]; $notify_email = $_POST["notify_email"]; $form_data = "Name : {$qname} \n Email : {$qemail} \n Message : {$qmsg} "; function isEmail($email) { return preg_match("/^[-_.[:alnum:]]+@((([[:alnum:]]|[[:alnum:]][[:alnum:]-]*[[:alnum:]])\\.)+(ad|ae|aero|af|ag|ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|biz|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|com|coop|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|museum|mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw)\$|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\\.){3}([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))\$/i", $email); } if (!defined("PHP_EOL")) { define("PHP_EOL", "\r\n"); } $comments = strip_tags($form_data); if (get_magic_quotes_gpc()) { $comments = stripslashes($comments); } $address = $notify_email; $e_subject = 'You\'ve have a message from ' . $qname; $e_body = $form_data . PHP_EOL . PHP_EOL; $e_content = "\"{$comments}\"" . PHP_EOL . PHP_EOL; $msg = wordwrap($e_body, 70); $headers = "From: {$qemail} " . PHP_EOL; $headers .= "Reply-To: {$notify_email} " . PHP_EOL; $headers .= "MIME-Version: 1.0" . PHP_EOL; $headers .= "Content-type: text/plain; charset=utf-8" . PHP_EOL; $headers .= "Content-Transfer-Encoding: quoted-printable" . PHP_EOL; if (mail($notify_email, $e_subject, $msg, $headers)) { echo "success"; } else { echo 'ERROR!'; } } elseif ($type == "options_save" && current_user_can('edit_pages')) { $new_values = $_POST['values']; foreach ($new_values as $value) { update_option($value["name"], $value["value"]); } } elseif ($type == 'runtime_css') { header('Content-Type: text/css'); echo get_option(SN . '_compiled_css'); } die; }
$pathwp = explode('wp-content', $path); $wp_url = $pathwp[0]; require_once $wp_url . '/wp-load.php'; require_once HPATH . '/classes/ui.php'; $sidebars = ''; if (get_option(SN . '_custom_sidebars')) { $sidebars = get_option(SN . '_custom_sidebars'); } ?> <div id="sidebar_manager"> <?php echo getIOAInput(array("label" => __("Add Sidebar", 'ioa'), "name" => SN . "_enter_svalue", "default" => "", "type" => "text", "description" => "T", "length" => 'medium', "value" => "", 'addMarkup' => "<a href='' class='button-default' id='add-sidebar'>" . __(' Add Sidebar ', 'ioa') . "</a>")); ?> <input type="hidden" name="<?php echo SN . '_custom_sidebars'; ?> " class='custom-sidebars' value='<?php echo $sidebars; ?> ' /> <div class="custom-sidebar-area clearfix"> <?php $sidebars = explode(',', $sidebars); foreach ($sidebars as $s) { if ($s != "") {
<?php /** * Show Container Area Toolbar */ global $ioa_meta_data; if (!isset($ioa_meta_data['playout'])) { $ioa_meta_data['playout'] = 'full'; } ?> <div class="rad_container_toolbar clearfix"> <div class="rad_container_layout"> <?php echo getIOAInput(array("label" => "", "name" => "component_layout", "default" => "100%", "type" => "select", "description" => "", "options" => array("full" => "100%", "four_fifth" => "80%", "three_fourth" => "75%", "two_third" => "66%", "one_half" => "50%", "one_third" => "33%", "one_fourth" => "25%", "one_fifth" => "20%"), "value" => $ioa_meta_data['playout'], "data" => array("attr" => "component_layout_holder"))); ?> </div> <div class="rad_right_panel clearfix"> <a href="" class="container-clone"><i class="ioa-front-icon docsicon-"></i></a> <a href="" class="container-delete"><i class="ioa-front-icon cancel-2icon-"></i></a> <a href="" class="container-edit"><i class="ioa-front-icon edit-1icon-"></i></a> </div> </div> <i class="container-sortable-handle move-2icon- ioa-front-icon"></i>
public function getOptionsHTML($values = false) { $markup = ''; $dy = ''; $markup .= "<div class='slider-component-tab clearfix'><div class='inner-slide-body-wrap'><ul class='clearfix'>"; foreach ($this->options['inputs'] as $k => $group) { $markup .= "<li><a href='#" . str_replace(" ", "_", $k) . "'>" . $k . "</a></li>"; } $markup .= "</ul>"; foreach ($this->options['inputs'] as $k => $group) { $markup .= "\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t<div id='" . str_replace(" ", "_", $k) . "' class=\"slider-component-body clearfix\"><div class='clearfix inner-body-wrap'>\r\n\t\t\t\t\t"; foreach ($group as $k => $input) { if (is_array($values)) { if (isset($input['name']) && isset($values[$input['name']])) { $input['value'] = $values[$input['name']]; } if (isset($values[$input['name'] . '_data'])) { $input['value'] = $values[$input['name'] . '_data']; } } $markup .= getIOAInput($input); } $markup .= "</div></div>"; } $markup .= "</div></div>"; return $markup; }
<?php /** * Show Container Area Toolbar */ global $ioa_meta_data; $layout = 'auto'; ?> <div class="widget-toolbar clearfix"> <!-- <div class="rad_widget_layout"> <?php echo getIOAInput(array("label" => "", "name" => "widget_layout", "default" => "100%", "type" => "select", "description" => "", "options" => array("full" => "100%", "three_fourth" => "75%", "two_third" => "66%", "one_half" => "50%", "one_third" => "33%", "one_fourth" => "25%", "auto" => "Auto"), "value" => $layout, "data" => array("attr" => "component_layout_holder"))); ?> </div> --> <div class="rad_w_right_panel clearfix"> <a href="" class="widget-clone"><i class="ioa-front-icon docsicon-"></i></a> <a href="" class="widget-delete"><i class="ioa-front-icon cancel-2icon-"></i></a> <a href="" class="widget-edit"><i class="ioa-front-icon edit-1icon-"></i></a> <i class="ioa-front-icon move-2icon- rad-widget-handle"></i> </div> </div>