function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0) { global $_wp_nav_menu_max_depth; $_wp_nav_menu_max_depth = $depth > $_wp_nav_menu_max_depth ? $depth : $_wp_nav_menu_max_depth; $indent = $depth ? str_repeat("\t", $depth) : ''; ob_start(); $item_id = esc_attr($item->ID); if (empty($item->favemenutype[0])) { $fave_item_menutype = NULL; } else { $fave_item_menutype = esc_attr($item->favemenutype[0]); } $removed_args = array('action', 'customlink-tab', 'edit-menu-item', 'menu-item', 'page-tab', '_wpnonce'); $original_title = ''; if ('taxonomy' == $item->type) { $original_title = get_term_field('name', $item->object_id, $item->object, 'raw'); if (is_wp_error($original_title)) { $original_title = false; } } elseif ('post_type' == $item->type) { $original_object = get_post($item->object_id); $original_title = get_the_title($original_object->ID); } $classes = array('menu-item menu-item-depth-' . $depth, 'menu-item-' . esc_attr($item->object), 'menu-item-edit-' . (isset($_GET['edit-menu-item']) && $item_id == $_GET['edit-menu-item'] ? 'active' : 'inactive')); $title = $item->title; if (!empty($item->_invalid)) { $classes[] = 'menu-item-invalid'; /* translators: %s: title of menu item which is invalid */ $title = sprintf(__('%s (Invalid)', 'cubell'), $item->title); } elseif (isset($item->post_status) && 'draft' == $item->post_status) { $classes[] = 'pending'; /* translators: %s: title of menu item in draft status */ $title = sprintf(__('%s (Pending)', 'cubell'), $item->title); } $title = !isset($item->label) || '' == $item->label ? $title : $item->label; $submenu_text = ''; if (0 == $depth) { $submenu_text = 'style="display: none;"'; } ?> <li id="menu-item-<?php echo esc_attr($item_id); ?> " class="<?php echo implode(' ', $classes); ?> "> <dl class="menu-item-bar"> <dt class="menu-item-handle"> <span class="item-title"><span class="menu-item-title"><?php echo esc_html($title); ?> </span> <span class="is-submenu" <?php echo esc_attr($submenu_text); ?> >sub item</span></span> <span class="item-controls"> <span class="item-type"><?php echo esc_html($item->type_label); ?> </span> <span class="item-order hide-if-js"> <a href="<?php echo wp_nonce_url(add_query_arg(array('action' => 'move-up-menu-item', 'menu-item' => $item_id), remove_query_arg($removed_args, admin_url('nav-menus.php'))), 'move-menu_item'); ?> " class="item-move-up"><abbr title="<?php esc_attr_e('Move up', 'magzilla'); ?> ">↑</abbr></a> | <a href="<?php echo wp_nonce_url(add_query_arg(array('action' => 'move-down-menu-item', 'menu-item' => $item_id), remove_query_arg($removed_args, admin_url('nav-menus.php'))), 'move-menu_item'); ?> " class="item-move-down"><abbr title="<?php esc_attr_e('Move down', 'magzilla'); ?> ">↓</abbr></a> </span> <a class="item-edit" id="edit-<?php echo esc_attr($item_id); ?> " title="<?php esc_attr_e('Edit Menu Item', 'magzilla'); ?> " href="<?php echo isset($_GET['edit-menu-item']) && $item_id == $_GET['edit-menu-item'] ? admin_url('nav-menus.php') : add_query_arg('edit-menu-item', $item_id, remove_query_arg($removed_args, admin_url('nav-menus.php#menu-item-settings-' . $item_id))); ?> "><?php _e('Edit Menu Item', 'magzilla'); ?> </a> </span> </dt> </dl> <div class="menu-item-settings" id="menu-item-settings-<?php echo esc_attr($item_id); ?> "> <?php if ('custom' == $item->type) { ?> <p class="field-url description description-wide"> <label for="edit-menu-item-url-<?php echo esc_attr($item_id); ?> "> <?php _e('URL', 'magzilla'); ?> <br /> <input type="text" id="edit-menu-item-url-<?php echo esc_attr($item_id); ?> " class="widefat code edit-menu-item-url" name="menu-item-url[<?php echo esc_attr($item_id); ?> ]" value="<?php echo esc_attr($item->url); ?> " /> </label> </p> <?php } ?> <p class="description description-thin"> <label for="edit-menu-item-title-<?php echo esc_attr($item_id); ?> "> <?php _e('Navigation Label', 'magzilla'); ?> <br /> <input type="text" id="edit-menu-item-title-<?php echo esc_attr($item_id); ?> " class="widefat edit-menu-item-title" name="menu-item-title[<?php echo esc_attr($item_id); ?> ]" value="<?php echo esc_attr($item->title); ?> " /> </label> </p> <p class="description description-thin"> <label for="edit-menu-item-attr-title-<?php echo esc_attr($item_id); ?> "> <?php _e('Title Attribute', 'magzilla'); ?> <br /> <input type="text" id="edit-menu-item-attr-title-<?php echo esc_attr($item_id); ?> " class="widefat edit-menu-item-attr-title" name="menu-item-attr-title[<?php echo esc_attr($item_id); ?> ]" value="<?php echo esc_attr($item->post_excerpt); ?> " /> </label> </p> <p class="field-link-target description"> <label for="edit-menu-item-target-<?php echo esc_attr($item_id); ?> "> <input type="checkbox" id="edit-menu-item-target-<?php echo esc_attr($item_id); ?> " value="_blank" name="menu-item-target[<?php echo esc_attr($item_id); ?> ]"<?php checked($item->target, '_blank'); ?> /> <?php _e('Open link in a new window/tab', 'magzilla'); ?> </label> </p> <p class="field-css-classes description description-thin"> <label for="edit-menu-item-classes-<?php echo esc_attr($item_id); ?> "> <?php _e('CSS Classes (optional)', 'magzilla'); ?> <br /> <input type="text" id="edit-menu-item-classes-<?php echo esc_attr($item_id); ?> " class="widefat code edit-menu-item-classes" name="menu-item-classes[<?php echo esc_attr($item_id); ?> ]" value="<?php echo esc_attr(implode(' ', $item->classes)); ?> " /> </label> </p> <p class="field-xfn description description-thin"> <label for="edit-menu-item-xfn-<?php echo esc_attr($item_id); ?> "> <?php _e('Link Relationship (XFN)', 'magzilla'); ?> <br /> <input type="text" id="edit-menu-item-xfn-<?php echo esc_attr($item_id); ?> " class="widefat code edit-menu-item-xfn" name="menu-item-xfn[<?php echo esc_attr($item_id); ?> ]" value="<?php echo esc_attr($item->xfn); ?> " /> </label> </p> <?php if ($depth == 0) { ?> <p class="field-favemenutype description description-thin"> <label for="edit-menu-item-favemenutype-<?php echo esc_attr($item_id); ?> ">Magazilla Megamenu Type</label> <select id="edit-menu-item-favemenutype-<?php echo esc_attr($item_id); ?> " name="menu-item-favemenutype[<?php echo esc_attr($item_id); ?> ]"> <option value="1" <?php if ($fave_item_menutype == '1' || $fave_item_menutype == NULL) { echo 'selected="selected"'; } ?> >Disable</option> <?php //if ( $item->object == 'category' || $item->object == 'page' ) { ?> <option value="3" <?php if ($fave_item_menutype == '3') { echo 'selected="selected"'; } ?> >Category/Posts Megamenu</option> <?php //} ?> <option value="2" <?php if ($fave_item_menutype == '2') { echo 'selected="selected"'; } ?> >Text Columns Megamenu</option> </select> </p> <p class="field-favemegamenu description description-thin"> <label for="edit-menu-item-favemegamenu-<?php echo esc_attr($item_id); ?> ">Show Category Megamenu</label> <select id="edit-menu-item-favemegamenu-<?php echo esc_attr($item_id); ?> " name="menu-item-favemegamenu[<?php echo esc_attr($item_id); ?> ]"> <?php $fave_mega_menu_cat = get_post_meta($item->ID, 'fave_mega_menu_cat', true); ?> <?php $fave_category_tree = array_merge(array(' - Select Category - ' => ''), fave_get_category_id_array(false)); ?> <?php foreach ($fave_category_tree as $category => $category_id) { echo '<option value="' . $category_id . '"' . selected($fave_mega_menu_cat, $category_id, false) . '>' . $category . '</option>'; } ?> </select> </p> <p class="field-nav_no_of_posts description description-thin"> <label for="edit-menu-item-nav_no_of_posts-<?php echo esc_attr($item_id); ?> "> <?php _e('Number of posts to show', 'magzilla'); ?> <br /> <select id="edit-menu-item-nav_no_of_posts-<?php echo esc_attr($item_id); ?> " name="menu-item-nav_no_of_posts[<?php echo esc_attr($item_id); ?> ]"> <?php for ($i = 4; $i <= 20; $i++) { ?> <option value="<?php echo $i; ?> " <?php selected($item->nav_no_of_posts, $i); ?> ><?php echo $i; ?> </option> <?php } ?> </select> </label> </p> <?php } ?> <p class="field-description description description-wide"> <label for="edit-menu-item-description-<?php echo esc_attr($item_id); ?> "> <?php _e('Description', 'magzilla'); ?> <br /> <textarea id="edit-menu-item-description-<?php echo esc_attr($item_id); ?> " class="widefat edit-menu-item-description" rows="3" cols="20" name="menu-item-description[<?php echo esc_attr($item_id); ?> ]"><?php echo esc_html($item->description); // textarea_escaped ?> </textarea> <span class="description"><?php _e('The description will be displayed in the menu if the current theme supports it. ', 'magzilla'); ?> </span> </label> </p> <p class="field-move hide-if-no-js description description-wide"> <label> <span><?php _e('Move', 'magzilla'); ?> </span> <a href="#" class="menus-move-up"><?php _e('Up one', 'magzilla'); ?> </a> <a href="#" class="menus-move-down"><?php _e('Down one', 'magzilla'); ?> </a> <a href="#" class="menus-move-left"></a> <a href="#" class="menus-move-right"></a> <a href="#" class="menus-move-top"><?php _e('To the top', 'magzilla'); ?> </a> </label> </p> <div class="menu-item-actions description-wide submitbox"> <?php if ('custom' != $item->type && $original_title !== false) { ?> <p class="link-to-original"> <?php printf(__('Original: %s', 'magzilla'), '<a href="' . esc_attr($item->url) . '">' . esc_html($original_title) . '</a>'); ?> </p> <?php } ?> <a class="item-delete submitdelete deletion" id="delete-<?php echo esc_attr($item_id); ?> " href="<?php echo wp_nonce_url(add_query_arg(array('action' => 'delete-menu-item', 'menu-item' => $item_id), admin_url('nav-menus.php')), 'delete-menu_item_' . $item_id); ?> "><?php _e('Remove', 'magzilla'); ?> </a> <span class="meta-sep hide-if-no-js"> | </span> <a class="item-cancel submitcancel hide-if-no-js" id="cancel-<?php echo esc_attr($item_id); ?> " href="<?php echo esc_url(add_query_arg(array('edit-menu-item' => $item_id, 'cancel' => time()), admin_url('nav-menus.php'))); ?> #menu-item-settings-<?php echo esc_attr($item_id); ?> "><?php _e('Cancel', 'magzilla'); ?> </a> </div> <input class="menu-item-data-db-id" type="hidden" name="menu-item-db-id[<?php echo esc_attr($item_id); ?> ]" value="<?php echo esc_attr($item_id); ?> " /> <input class="menu-item-data-object-id" type="hidden" name="menu-item-object-id[<?php echo esc_attr($item_id); ?> ]" value="<?php echo esc_attr($item->object_id); ?> " /> <input class="menu-item-data-object" type="hidden" name="menu-item-object[<?php echo esc_attr($item_id); ?> ]" value="<?php echo esc_attr($item->object); ?> " /> <input class="menu-item-data-parent-id" type="hidden" name="menu-item-parent-id[<?php echo esc_attr($item_id); ?> ]" value="<?php echo esc_attr($item->menu_item_parent); ?> " /> <input class="menu-item-data-position" type="hidden" name="menu-item-position[<?php echo esc_attr($item_id); ?> ]" value="<?php echo esc_attr($item->menu_order); ?> " /> <input class="menu-item-data-type" type="hidden" name="menu-item-type[<?php echo esc_attr($item_id); ?> ]" value="<?php echo esc_attr($item->type); ?> " /> </div><!-- .menu-item-settings--> <ul class="menu-item-transport"></ul> <?php $output .= ob_get_clean(); }
function fave_homepage_loop_filter_metabox($object, $box) { $fave_meta = fave_get_post_meta($object->ID); $categories = fave_get_category_id_array(true); $sort = fave_get_sort(); $author_filter = fave_create_array_authors(); ?> <?php if (!empty($categories)) { ?> <div class="favethemes_meta_control"> <p class="fave-inline-block-wrap"><span class="fave_meta_title"><?php _e('Category Filter:', 'magzilla'); ?> </span></p> <div class="fave-inline-block-wrap"> <ul class="next-hide"> <p><select name="fave[category_id]" class="fave-dropdown widefat"> <?php foreach ($categories as $name => $id) { ?> <option value="<?php echo $id; ?> " <?php selected($id, $fave_meta['category_id']); ?> ><?php echo $name; ?> </option> <?php } ?> </select></p> </ul> </div> </div> <?php } ?> <div class="favethemes_meta_control"> <p class="fave-inline-block-wrap"><span class="fave_meta_title"><?php _e('Multiple categories filter:', 'magzilla'); ?> </span></p> <div class="fave-inline-block-wrap"> <input class="fave-input-text-backend-small" type="text" name="fave[category_ids]" value="<?php echo $fave_meta['category_ids']; ?> " /> </div> <p class="fave-inline-block-wrap fave-meta-des"><?php _e('- To filter multiple categories, enter here the category IDs separated by commas (example: 3,7,15)', 'magzilla'); ?> </p> </div> <div class="favethemes_meta_control"> <p class="fave-inline-block-wrap"><span class="fave_meta_title"><?php _e('Filter by tag slug:', 'magzilla'); ?> </span></p> <div class="fave-inline-block-wrap"> <input class="fave-input-text-backend-small" type="text" name="fave[tag_slug]" value="<?php echo $fave_meta['tag_slug']; ?> " /> </div> <p class="fave-inline-block-wrap fave-meta-des"><?php _e('- To filter multiple tag slug, enter here the tag slugs separated by commas (example: tag1,tag2,tag3)', 'magzilla'); ?> </p> </div> <?php if (!empty($sort)) { ?> <div class="favethemes_meta_control"> <p class="fave-inline-block-wrap"><span class="fave_meta_title"><?php _e('Sort Order:', 'magzilla'); ?> </span></p> <div class="fave-inline-block-wrap"> <ul> <p><select name="fave[sort]" class="fave-dropdown widefat"> <?php foreach ($sort as $val => $title) { ?> <option value="<?php echo $val; ?> " <?php selected($val, $fave_meta['sort']); ?> ><?php echo $title['title']; ?> </option> <?php } ?> </select></p> </ul> </div> </div> <?php } ?> <?php if (!empty($author_filter)) { ?> <div class="favethemes_meta_control"> <p class="fave-inline-block-wrap"><span class="fave_meta_title"><?php _e('Author Filter:', 'magzilla'); ?> </span></p> <div class="fave-inline-block-wrap"> <ul class="next-hide"> <p><select name="fave[autors_id]" class="fave-dropdown widefat"> <?php foreach ($author_filter as $name => $id) { ?> <option value="<?php echo $id; ?> " <?php selected($id, $fave_meta['autors_id']); ?> ><?php echo $name; ?> </option> <?php } ?> </select></p> </ul> </div> </div> <?php } ?> <div class="favethemes_meta_control"> <p class="fave-inline-block-wrap"><span class="fave_meta_title"><?php _e('Featured Posts:', 'magzilla'); ?> </span></p> <div class="fave-inline-block-wrap"> <ul class="next-hide"> <p><select name="fave[featured_posts]" class="fave-dropdown widefat"> <option value="" <?php selected('', $fave_meta['featured_posts']); ?> ><?php _e('- Any -', 'magzilla'); ?> </option> <option value="no" <?php selected('no', $fave_meta['featured_posts']); ?> ><?php _e('Exclude', 'magzilla'); ?> </option> <option value="yes" <?php selected('yes', $fave_meta['featured_posts']); ?> ><?php _e('Include', 'magzilla'); ?> </option> </select></p> </ul> </div> <p class="fave-inline-block-wrap fave-meta-des"><?php _e('- You can make a post featured by clicking featured post checkbox while add/edit post', 'magzilla'); ?> </p> </div> <div class="favethemes_meta_control"> <p class="fave-inline-block-wrap"><span class="fave_meta_title"><?php _e('Posts Per Page:', 'magzilla'); ?> </span></p> <div class="fave-inline-block-wrap"> <input class="fave-input-text-backend-small" type="text" name="fave[posts_limit]" value="<?php echo $fave_meta['posts_limit']; ?> " /> </div> <p class="fave-inline-block-wrap fave-meta-des"><?php _e(' - ex: 8; a integer number, used to display the number of posts per page', 'magzilla'); ?> </p> </div> <div class="favethemes_meta_control"> <p class="fave-inline-block-wrap"><span class="fave_meta_title"><?php _e('Offset Posts:', 'magzilla'); ?> </span></p> <div class="fave-inline-block-wrap"> <input class="fave-input-text-backend-small" type="text" name="fave[offset]" value="<?php echo $fave_meta['offset']; ?> " /> </div> </div> <div class="favethemes_meta_control"> <p class="fave-inline-block-wrap"><span class="fave_meta_title"><?php _e('Posts Excerpt:', 'magzilla'); ?> </span></p> <div class="fave-inline-block-wrap"> <ul> <p><select name="fave[posts_excerpt]" class="fave-dropdown widefat"> <option value="enable" <?php selected('enable', $fave_meta['posts_excerpt']); ?> ><?php _e('Enable', 'magzilla'); ?> </option> <option value="disable" <?php selected('disable', $fave_meta['posts_excerpt']); ?> ><?php _e('Disbale', 'magzilla'); ?> </option> </select></p> </ul> </div> </div> <div class="favethemes_meta_control"> <p class="fave-inline-block-wrap"><span class="fave_meta_title"><?php _e('Pagination Style:', 'magzilla'); ?> </span></p> <div class="fave-inline-block-wrap"> <ul> <p><select name="fave[pagination_style]" class="fave-dropdown widefat"> <option value="" <?php selected('', $fave_meta['pagination_style']); ?> ><?php _e('- No -', 'magzilla'); ?> </option> <option value="numeric" <?php selected('numeric', $fave_meta['pagination_style']); ?> ><?php _e('Numeric', 'magzilla'); ?> </option> <option value="prev-next" <?php selected('prev-next', $fave_meta['pagination_style']); ?> ><?php _e('Prev/Next page links', 'magzilla'); ?> </option> <option value="load-more" <?php selected('load-more', $fave_meta['pagination_style']); ?> ><?php _e('Load More Button', 'magzilla'); ?> </option> <!-- <option value="infinite-scroll" <?php selected('infinite-scroll', $fave_meta['pagination_style']); ?> ><?php _e('Infinite Scroll', 'magzilla'); ?> </option> --> </select></p> </ul> </div> </div> <?php }
/*--------------------------------------------------------------------------------- Module 6 -----------------------------------------------------------------------------------*/ vc_map(array("name" => __("Module 6", 'js_composer'), "description" => '', "base" => "fav-module-6", 'category' => "By Favethemes", "class" => "", 'admin_enqueue_js' => "", 'admin_enqueue_css' => "", "icon" => "icon-module-6", "params" => array(array("param_name" => "category_id", "type" => "dropdown", "value" => fave_get_category_id_array(), "heading" => __("Category filter:", 'js_composer'), "description" => ""), array("param_name" => "category_ids", "type" => "textfield", "value" => '', "heading" => __("Multiple categories filter:", 'js_composer'), "description" => "To filter multiple categories, enter here the category IDs separated by commas (example: 4,21,15 )"), array("param_name" => "tag_slug", "type" => "textfield", "value" => '', "heading" => __("Filter by tag slug:", 'js_composer'), "description" => "To filter multiple tag slug, enter here the tag slugs separated by commas (example: tag1,tag2,tag3)"), array("param_name" => "sort", "type" => "dropdown", "value" => array('- Latest -' => '', 'Random posts Today' => 'random_today', 'Random posts from last 7 Day' => 'random_7_day', 'Alphabetical A -> Z' => 'alphabetical_order', 'Popular (all time)' => 'popular', 'Highest rated (reviews)' => 'review_high', 'Random Posts' => 'random_posts', 'Most Commented' => 'comment_count'), "heading" => __("Sort order:", 'js_composer'), "description" => ""), array("param_name" => "autors_id", "type" => "dropdown", "value" => fave_create_array_authors(), "heading" => "Autors Filter:", "description" => ""), array("param_name" => "featured_posts", "type" => "dropdown", "value" => array('- Any -' => '', 'Exclude' => 'no', 'Include' => 'yes'), "heading" => __("Featured Posts:", 'js_composer'), "description" => __("You can make a post featured by clicking featured post checkbox while add/edit post", 'js_composer')), array("param_name" => "hide_title", "type" => "dropdown", "value" => array('- Show title -' => 'show_title', 'Hide title' => 'hide_title'), "heading" => __("Hide block title:", 'js_composer'), "description" => "", "save_always" => true), array("param_name" => "posts_limit", "type" => "textfield", "value" => __("6", 'js_composer'), "heading" => __("Limit post number:", 'js_composer'), "description" => "", "save_always" => true), array("param_name" => "offset", "type" => "textfield", "value" => __("", 'js_composer'), "heading" => __("Offset posts:", 'js_composer'), "description" => ""), array("type" => "colorpicker", "heading" => __("Header color", 'js_composer'), "param_name" => "header_color", "value" => '', "description" => __("Choose a custom header color for this block", 'js_composer')), array("type" => "colorpicker", "heading" => __("Header text color", 'js_composer'), "param_name" => "header_text_color", "value" => '', "description" => __("Choose a custom header color for this block", 'js_composer')), array("type" => "colorpicker", "heading" => __("Header text top border color", 'js_composer'), "param_name" => "header_border_color", "value" => '', "description" => __("Choose a custom color for block title border top", 'js_composer')), array("param_name" => "custom_title", "type" => "textfield", "value" => "", "heading" => __("Optional - custom title for this block:", 'js_composer'), "description" => ""), array("param_name" => "custom_url", "type" => "textfield", "value" => "", "heading" => __("Optional - custom url for this block (when the module title is clicked):", 'js_composer'), "description" => ""), array("param_name" => "title_style", "type" => "dropdown", "value" => array('- default style -' => ''), "heading" => __("Title style:", 'js_composer'), "description" => ""), array("param_name" => "show_child_cat", "type" => "dropdown", "value" => array('- Hide -' => '', 'Show 1 category' => '1', 'Show 2 categories' => '2', 'Show 3 categories' => '3', 'Show 4 categories' => '4', 'Show 5 categories' => '5', 'Show 6 categories' => '6', 'Show 7 categories' => '7', 'Show 8 categories' => '8', 'Show all' => 'all'), "heading" => __("Show child categories menu:", 'js_composer'), "description" => "This will show a menu at the top of the block that contains the child categories of the selected category. It only works when you're using a single category filter form the dropdown. It doss't work with multiple categories IDs", "dependency" => array("element" => "hide_title", "value" => array("show_title"))), array("param_name" => "excerpt_limit", "type" => "textfield", "value" => "170", "heading" => __("Excerpt Limit:", 'js_composer'), "description" => __("How much characters want to show as excerpt: default 150", 'js_composer'), "save_always" => true), array("param_name" => "image_size", "type" => "dropdown", "value" => array('370 x 277' => '370_277', '570 x 427' => '570_427'), "heading" => __("Image Size:", 'js_composer'), "description" => "", "save_always" => true), array("param_name" => "read_more", "type" => "dropdown", "value" => array('- Show -' => 'true', 'Hide' => 'false'), "heading" => __("Hide Continue Reading:", 'js_composer'), "description" => "", "save_always" => true), array("param_name" => "module_meta", "type" => "dropdown", "value" => array('Disable' => 'false', 'Enable' => 'true'), "heading" => __("Enable/Disable module level meta settings:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "author_name", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Author Name:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "time_diff", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Time Difference:", 'js_composer'), "description" => "Enable or Disable Human Readable time difference", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_date", "type" => "dropdown", "value" => array('No' => '0', 'Yes' => '1'), "heading" => __("Post Date:", 'js_composer'), "description" => "will only work when time difference will be disable", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_time", "type" => "dropdown", "value" => array('No' => '0', 'Yes' => '1'), "heading" => __("Post Time:", 'js_composer'), "description" => "will only work when time difference will be disable", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_view_count", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Post Views Count:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_comment_count", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Post Comments Count:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "module_bg", "type" => "colorpicker", "value" => '', "heading" => __("Background Color:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Design Options'), array("param_name" => "module_padding", "type" => "textfield", "value" => '', "heading" => __("Padding:", 'js_composer'), "description" => "Add padding top right bottom left. Example 10px 10px 10px 10px", "save_always" => true, "group" => 'Design Options')))); /*--------------------------------------------------------------------------------- Module 7 -----------------------------------------------------------------------------------*/ vc_map(array("name" => __("Module 7", 'js_composer'), "description" => '', "base" => "fav-module-7", 'category' => "By Favethemes", "class" => "", 'admin_enqueue_js' => "", 'admin_enqueue_css' => "", "icon" => "icon-module-7", "params" => array(array("param_name" => "module_7_type", "type" => "dropdown", "value" => array(' 3 Columns ' => 'three_columns', '2 Columns ( recommend when use sidebar )' => 'two_columns', ' 1 Columns ' => 'one_columns'), "heading" => __("With or Without Sidebar:", 'js_composer'), "description" => __("If you select Visual Composer + Sidebar template then choose With Sidebar option", "js_composer"), "save_always" => true), array("param_name" => "category_id", "type" => "dropdown", "value" => fave_get_category_id_array(), "heading" => __("Category filter:", 'js_composer'), "description" => ""), array("param_name" => "category_ids", "type" => "textfield", "value" => '', "heading" => __("Multiple categories filter:", 'js_composer'), "description" => "To filter multiple categories, enter the category IDs separated by commas (example: 4,21,15)"), array("param_name" => "tag_slug", "type" => "textfield", "value" => '', "heading" => __("Filter by tag slug:", 'js_composer'), "description" => "To filter multiple tag slug, enter here the tag slugs separated by commas (example: tag1,tag2,tag3)"), array("param_name" => "sort", "type" => "dropdown", "value" => array('- Latest -' => '', 'Random posts Today' => 'random_today', 'Random posts from last 7 Day' => 'random_7_day', 'Alphabetical A -> Z' => 'alphabetical_order', 'Popular (all time)' => 'popular', 'Highest rated (reviews)' => 'review_high', 'Random Posts' => 'random_posts', 'Most Commented' => 'comment_count'), "heading" => __("Sort order:", 'js_composer'), "description" => ""), array("param_name" => "autors_id", "type" => "dropdown", "value" => fave_create_array_authors(), "heading" => "Autors Filter:", "description" => ""), array("param_name" => "featured_posts", "type" => "dropdown", "value" => array('- Any -' => '', 'Exclude' => 'no', 'Include' => 'yes'), "heading" => __("Featured Posts:", 'js_composer'), "description" => __("You can make a post featured by clicking featured post checkbox while add/edit post", 'js_composer')), array("param_name" => "hide_title", "type" => "dropdown", "value" => array('- Show title -' => 'show_title', 'Hide title' => 'hide_title'), "heading" => __("Hide block title:", 'js_composer'), "description" => "", "save_always" => true), array("param_name" => "posts_limit", "type" => "textfield", "value" => __("6", 'js_composer'), "heading" => __("Limit post number:", 'js_composer'), "description" => "", "save_always" => true), array("param_name" => "offset", "type" => "textfield", "value" => __("", 'js_composer'), "heading" => __("Offset posts:", 'js_composer'), "description" => ""), array("type" => "colorpicker", "heading" => __("Header color", 'js_composer'), "param_name" => "header_color", "value" => '', "description" => __("Choose a custom header color for this block", 'js_composer')), array("type" => "colorpicker", "heading" => __("Header text color", 'js_composer'), "param_name" => "header_text_color", "value" => '', "description" => __("Choose a custom header color for this block", 'js_composer')), array("type" => "colorpicker", "heading" => __("Header text top border color", 'js_composer'), "param_name" => "header_border_color", "value" => '', "description" => __("Choose a custom color for block title border top", 'js_composer')), array("param_name" => "custom_title", "type" => "textfield", "value" => "", "heading" => __("Optional - custom title for this block:", 'js_composer'), "description" => ""), array("param_name" => "custom_url", "type" => "textfield", "value" => "", "heading" => __("Optional - custom url for this block (when the module title is clicked):", 'js_composer'), "description" => ""), array("param_name" => "title_style", "type" => "dropdown", "value" => array('- default style -' => ''), "heading" => __("Title style:", 'js_composer'), "description" => ""), array("param_name" => "show_child_cat", "type" => "dropdown", "value" => array('- Hide -' => '', 'Show 1 category' => '1', 'Show 2 categories' => '2', 'Show 3 categories' => '3', 'Show 4 categories' => '4', 'Show 5 categories' => '5', 'Show 6 categories' => '6', 'Show 7 categories' => '7', 'Show 8 categories' => '8', 'Show all' => 'all'), "heading" => __("Show child categories menu:", 'js_composer'), "description" => "This will show a menu at the top of the block that contains the child categories of the selected category. It only works when you're using a single category filter form the dropdown. It doss't work with multiple categories IDs", "dependency" => array("element" => "hide_title", "value" => array("show_title"))), array("param_name" => "image_size", "type" => "dropdown", "value" => array('370 x 277' => '370_277', '570 x 427' => '570_427'), "heading" => __("Image Size:", 'js_composer'), "description" => "", "save_always" => true), array("param_name" => "module_space", "type" => "dropdown", "value" => array('- With Space -' => '', 'Without Space' => 'row-no-padding'), "heading" => __("Space:", 'js_composer'), "description" => "", "save_always" => true), array("param_name" => "module_meta", "type" => "dropdown", "value" => array('Disable' => 'false', 'Enable' => 'true'), "heading" => __("Enable/Disable module level meta settings:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "author_name", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Author Name:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "time_diff", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Time Difference:", 'js_composer'), "description" => "Enable or Disable Human Readable time difference", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_date", "type" => "dropdown", "value" => array('No' => '0', 'Yes' => '1'), "heading" => __("Post Date:", 'js_composer'), "description" => "will only work when time difference will be disable", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_time", "type" => "dropdown", "value" => array('No' => '0', 'Yes' => '1'), "heading" => __("Post Time:", 'js_composer'), "description" => "will only work when time difference will be disable", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_view_count", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Post Views Count:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_comment_count", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Post Comments Count:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "text_align", "type" => "dropdown", "value" => array('Left Align' => '', 'Center Align' => 'text-center'), "heading" => __("Text Align:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Design Options'), array("param_name" => "module_bg", "type" => "colorpicker", "value" => '', "heading" => __("Background Color:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Design Options'), array("param_name" => "module_padding", "type" => "textfield", "value" => '', "heading" => __("Padding:", 'js_composer'), "description" => "Add padding top right bottom left. Example 10px 10px 10px 10px", "save_always" => true, "group" => 'Design Options')))); /*--------------------------------------------------------------------------------- Module 8 -----------------------------------------------------------------------------------*/ vc_map(array("name" => __("Module 8", 'js_composer'), "description" => '', "base" => "fav-module-8", 'category' => "By Favethemes", "class" => "", 'admin_enqueue_js' => "", 'admin_enqueue_css' => "", "icon" => "icon-module-8", "params" => array(array("param_name" => "category_id", "type" => "dropdown", "value" => fave_get_category_id_array(), "heading" => __("Category filter:", 'js_composer'), "description" => ""), array("param_name" => "category_ids", "type" => "textfield", "value" => '', "heading" => __("Multiple categories filter:", 'js_composer'), "description" => "To filter multiple categories, enter the category IDs separated by commas (example: 4,21,15)"), array("param_name" => "tag_slug", "type" => "textfield", "value" => '', "heading" => __("Filter by tag slug:", 'js_composer'), "description" => "To filter multiple tag slug, enter here the tag slugs separated by commas (example: tag1,tag2,tag3)"), array("param_name" => "sort", "type" => "dropdown", "value" => array('- Latest -' => '', 'Random posts Today' => 'random_today', 'Random posts from last 7 Day' => 'random_7_day', 'Alphabetical A -> Z' => 'alphabetical_order', 'Popular (all time)' => 'popular', 'Highest rated (reviews)' => 'review_high', 'Random Posts' => 'random_posts', 'Most Commented' => 'comment_count'), "heading" => __("Sort order:", 'js_composer'), "description" => ""), array("param_name" => "autors_id", "type" => "dropdown", "value" => fave_create_array_authors(), "heading" => "Autors Filter:", "description" => ""), array("param_name" => "featured_posts", "type" => "dropdown", "value" => array('- Any -' => '', 'Exclude' => 'no', 'Include' => 'yes'), "heading" => __("Featured Posts:", 'js_composer'), "description" => __("You can make a post featured by clicking featured post checkbox while add/edit post", 'js_composer')), array("param_name" => "hide_title", "type" => "dropdown", "value" => array('- Show title -' => 'show_title', 'Hide title' => 'hide_title'), "heading" => __("Hide block title:", 'js_composer'), "description" => "", "save_always" => true), array("param_name" => "hide_meta", "type" => "dropdown", "value" => array('- Show Meta -' => 'show_meta', 'Hide Meta' => 'hide_meta'), "heading" => __("Hide Posts Meta:", 'js_composer'), "description" => "", "save_always" => true), array("param_name" => "posts_limit", "type" => "textfield", "value" => __("9", 'js_composer'), "heading" => __("Limit post number:", 'js_composer'), "description" => "", "save_always" => true), array("param_name" => "offset", "type" => "textfield", "value" => __("", 'js_composer'), "heading" => __("Offset posts:", 'js_composer'), "description" => ""), array("type" => "colorpicker", "heading" => __("Header color", 'js_composer'), "param_name" => "header_color", "value" => '', "description" => __("Choose a custom header color for this block", 'js_composer')), array("type" => "colorpicker", "heading" => __("Header text color", 'js_composer'), "param_name" => "header_text_color", "value" => '', "description" => __("Choose a custom header color for this block", 'js_composer')), array("type" => "colorpicker", "heading" => __("Header text top border color", 'js_composer'), "param_name" => "header_border_color", "value" => '', "description" => __("Choose a custom color for block title border top", 'js_composer')), array("param_name" => "custom_title", "type" => "textfield", "value" => "", "heading" => __("Optional - custom title for this block:", 'js_composer'), "description" => ""), array("param_name" => "custom_url", "type" => "textfield", "value" => "", "heading" => __("Optional - custom url for this block (when the module title is clicked):", 'js_composer'), "description" => ""), array("param_name" => "title_style", "type" => "dropdown", "value" => array('- default style -' => ''), "heading" => __("Title style:", 'js_composer'), "description" => ""), array("param_name" => "slider_post_row", "type" => "dropdown", "value" => array('2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6'), "heading" => __("Post to Show:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Carousel Settings'), array("param_name" => "slider_auto", "type" => "dropdown", "value" => array('No' => 'false', 'Yes' => 'true'), "heading" => __("Auto Play:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Carousel Settings'), array("param_name" => "stop_on_hover", "type" => "dropdown", "value" => array('Yes' => 'true', 'No' => 'false'), "heading" => __("Stop on Mouse Hover:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Carousel Settings'), array("param_name" => "navigation", "type" => "dropdown", "value" => array('Yes' => 'true', 'No' => 'false'), "heading" => __("Navigation:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Carousel Settings'), array("param_name" => "touch_drag", "type" => "dropdown", "value" => array('Yes' => 'true', 'No' => 'false'), "heading" => __("Touch Drag:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Carousel Settings'), array("param_name" => "slide_loop", "type" => "dropdown", "value" => array('No' => 'false', 'Yes' => 'true'), "heading" => __("Loop:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Carousel Settings'), array("param_name" => "rewind_nav", "type" => "dropdown", "value" => array('Yes' => 'true', 'No' => 'false'), "heading" => __("Rewind Nav:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Carousel Settings'), array("param_name" => "lazy_load", "type" => "dropdown", "value" => array('Yes' => 'true', 'No' => 'false'), "heading" => __("Lazy Load:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Carousel Settings'), array("param_name" => "module_meta", "type" => "dropdown", "value" => array('Disable' => 'false', 'Enable' => 'true'), "heading" => __("Enable/Disable module level meta settings:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "author_name", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Author Name:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "time_diff", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Time Difference:", 'js_composer'), "description" => "Enable or Disable Human Readable time difference", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_date", "type" => "dropdown", "value" => array('No' => '0', 'Yes' => '1'), "heading" => __("Post Date:", 'js_composer'), "description" => "will only work when time difference will be disable", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_time", "type" => "dropdown", "value" => array('No' => '0', 'Yes' => '1'), "heading" => __("Post Time:", 'js_composer'), "description" => "will only work when time difference will be disable", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_view_count", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Post Views Count:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_comment_count", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Post Comments Count:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "text_align", "type" => "dropdown", "value" => array('Left Align' => '', 'Center Align' => 'text-center'), "heading" => __("Text Align:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Design Options'), array("param_name" => "module_bg", "type" => "colorpicker", "value" => '', "heading" => __("Background Color:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Design Options'), array("param_name" => "module_padding", "type" => "textfield", "value" => '', "heading" => __("Padding:", 'js_composer'), "description" => "Add padding top right bottom left. Example 10px 10px 10px 10px", "save_always" => true, "group" => 'Design Options')))); /*--------------------------------------------------------------------------------- Module 9 -----------------------------------------------------------------------------------*/ vc_map(array("name" => __("Module 9", 'js_composer'), "description" => '', "base" => "fav-module-9", 'category' => "By Favethemes", "class" => "", 'admin_enqueue_js' => "", 'admin_enqueue_css' => "", "icon" => "icon-module-9", "params" => array(array("param_name" => "module_9_type", "type" => "dropdown", "value" => array('- Full Width Template -' => 'full_width', 'Sidebar Template' => 'sidebar_template'), "heading" => __("Select where you want to use this module:", 'js_composer'), "description" => "", "save_always" => true), array("param_name" => "category_id", "type" => "dropdown", "value" => fave_get_category_id_array(), "heading" => __("Category filter:", 'js_composer'), "description" => ""), array("param_name" => "category_ids", "type" => "textfield", "value" => '', "heading" => __("Multiple categories filter:", 'js_composer'), "description" => "To filter multiple categories, enter the category IDs separated by commas (example: 4,21,15)"), array("param_name" => "tag_slug", "type" => "textfield", "value" => '', "heading" => __("Filter by tag slug:", 'js_composer'), "description" => "To filter multiple tag slug, enter here the tag slugs separated by commas (example: tag1,tag2,tag3)"), array("param_name" => "sort", "type" => "dropdown", "value" => array('- Latest -' => '', 'Random posts Today' => 'random_today', 'Random posts from last 7 Day' => 'random_7_day', 'Alphabetical A -> Z' => 'alphabetical_order', 'Popular (all time)' => 'popular', 'Highest rated (reviews)' => 'review_high', 'Random Posts' => 'random_posts', 'Most Commented' => 'comment_count'), "heading" => __("Sort order:", 'js_composer'), "description" => ""), array("param_name" => "autors_id", "type" => "dropdown", "value" => fave_create_array_authors(), "heading" => "Autors Filter:", "description" => ""), array("param_name" => "featured_posts", "type" => "dropdown", "value" => array('- Any -' => '', 'Exclude' => 'no', 'Include' => 'yes'), "heading" => __("Featured Posts:", 'js_composer'), "description" => __("You can make a post featured by clicking featured post checkbox while add/edit post", 'js_composer')), array("param_name" => "hide_title", "type" => "dropdown", "value" => array('- Show title -' => 'show_title', 'Hide title' => 'hide_title'), "heading" => __("Hide block title:", 'js_composer'), "description" => "", "save_always" => true), array("param_name" => "posts_limit", "type" => "textfield", "value" => __("10", 'js_composer'), "heading" => __("Limit post number:", 'js_composer'), "description" => "", "save_always" => true), array("param_name" => "offset", "type" => "textfield", "value" => __("", 'js_composer'), "heading" => __("Offset posts:", 'js_composer'), "description" => ""), array("type" => "colorpicker", "heading" => __("Header color", 'js_composer'), "param_name" => "header_color", "value" => '', "description" => __("Choose a custom header color for this block", 'js_composer')), array("type" => "colorpicker", "heading" => __("Header text color", 'js_composer'), "param_name" => "header_text_color", "value" => '', "description" => __("Choose a custom header color for this block", 'js_composer')), array("type" => "colorpicker", "heading" => __("Header text top border color", 'js_composer'), "param_name" => "header_border_color", "value" => '', "description" => __("Choose a custom color for block title border top", 'js_composer')), array("param_name" => "custom_title", "type" => "textfield", "value" => "", "heading" => __("Optional - custom title for this block:", 'js_composer'), "description" => ""), array("param_name" => "custom_url", "type" => "textfield", "value" => "", "heading" => __("Optional - custom url for this block (when the module title is clicked):", 'js_composer'), "description" => ""), array("param_name" => "title_style", "type" => "dropdown", "value" => array('- default style -' => ''), "heading" => __("Title style:", 'js_composer'), "description" => ""), array("param_name" => "module_space", "type" => "dropdown", "value" => array('- With Space -' => '', 'Without Space' => 'row-no-padding'), "heading" => __("Space:", 'js_composer'), "description" => "", "save_always" => true), array("param_name" => "module_meta", "type" => "dropdown", "value" => array('Disable' => 'false', 'Enable' => 'true'), "heading" => __("Enable/Disable module level meta settings:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "author_name", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Author Name:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "time_diff", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Time Difference:", 'js_composer'), "description" => "Enable or Disable Human Readable time difference", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_date", "type" => "dropdown", "value" => array('No' => '0', 'Yes' => '1'), "heading" => __("Post Date:", 'js_composer'), "description" => "will only work when time difference will be disable", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_time", "type" => "dropdown", "value" => array('No' => '0', 'Yes' => '1'), "heading" => __("Post Time:", 'js_composer'), "description" => "will only work when time difference will be disable", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_view_count", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Post Views Count:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_comment_count", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Post Comments Count:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "module_bg", "type" => "colorpicker", "value" => '', "heading" => __("Background Color:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Design Options'), array("param_name" => "module_padding", "type" => "textfield", "value" => '', "heading" => __("Padding:", 'js_composer'), "description" => "Add padding top right bottom left. Example 10px 10px 10px 10px", "save_always" => true, "group" => 'Design Options')))); if (is_plugin_active('favethemes-theme-functionality/favethemes-theme-functionality.php')) { /*--------------------------------------------------------------------------------- Video Custom Post Module 1 -----------------------------------------------------------------------------------*/ vc_map(array("name" => __("Video Module 1", 'js_composer'), "description" => 'Video custom post type', "base" => "fav-video-module-1", 'category' => "By Favethemes", "class" => "", 'admin_enqueue_js' => "", 'admin_enqueue_css' => "", "icon" => "icon-video-module-1", "params" => array(array("param_name" => "module_7_type", "type" => "dropdown", "value" => array(' 3 Columns ' => 'three_columns', '2 Columns ( recommend when use sidebar )' => 'two_columns', ' 1 Column ' => 'one_columns'), "heading" => __("With or Without Sidebar:", 'js_composer'), "description" => __("If you select Visual Composer + Sidebar template then choose With Sidebar option", "js_composer"), "save_always" => true), array("param_name" => "category_id", "type" => "dropdown", "value" => fave_get_video_category_id_array(), "heading" => __("Category filter:", 'js_composer'), "description" => ""), array("param_name" => "sort", "type" => "dropdown", "value" => array('- Latest -' => '', 'Random posts Today' => 'random_today', 'Random posts from last 7 Day' => 'random_7_day', 'Alphabetical A -> Z' => 'alphabetical_order', 'Popular (all time)' => 'popular', 'Random Posts' => 'random_posts', 'Most Commented' => 'comment_count'), "heading" => __("Sort order:", 'js_composer'), "description" => ""), array("param_name" => "autors_id", "type" => "dropdown", "value" => fave_create_array_authors(), "heading" => "Autors Filter:", "description" => ""), array("param_name" => "featured_posts", "type" => "dropdown", "value" => array('- Any -' => '', 'Exclude' => 'no', 'Include' => 'yes'), "heading" => __("Featured Posts:", 'js_composer'), "description" => __("You can make a post featured by clicking featured post checkbox while add/edit post", 'js_composer')), array("param_name" => "hide_title", "type" => "dropdown", "value" => array('- Show title -' => 'show_title', 'Hide title' => 'hide_title'), "heading" => __("Hide block title:", 'js_composer'), "description" => "", "save_always" => true), array("param_name" => "posts_limit", "type" => "textfield", "value" => __("6", 'js_composer'), "heading" => __("Limit post number:", 'js_composer'), "description" => "", "save_always" => true), array("param_name" => "offset", "type" => "textfield", "value" => __("", 'js_composer'), "heading" => __("Offset posts:", 'js_composer'), "description" => ""), array("type" => "colorpicker", "heading" => __("Header color", 'js_composer'), "param_name" => "header_color", "value" => '', "description" => __("Choose a custom header color for this block", 'js_composer')), array("type" => "colorpicker", "heading" => __("Header text color", 'js_composer'), "param_name" => "header_text_color", "value" => '', "description" => __("Choose a custom header color for this block", 'js_composer')), array("type" => "colorpicker", "heading" => __("Header text top border color", 'js_composer'), "param_name" => "header_border_color", "value" => '', "description" => __("Choose a custom color for block title border top", 'js_composer')), array("param_name" => "custom_title", "type" => "textfield", "value" => "", "heading" => __("Optional - custom title for this block:", 'js_composer'), "description" => ""), array("param_name" => "custom_url", "type" => "textfield", "value" => "", "heading" => __("Optional - custom url for this block (when the module title is clicked):", 'js_composer'), "description" => ""), array("param_name" => "show_child_cat", "type" => "dropdown", "value" => array('- Hide -' => '', 'Show 1 category' => '1', 'Show 2 categories' => '2', 'Show 3 categories' => '3', 'Show 4 categories' => '4', 'Show 5 categories' => '5', 'Show 6 categories' => '6', 'Show 7 categories' => '7', 'Show 8 categories' => '8', 'Show all' => 'all'), "heading" => __("Show child categories menu:", 'js_composer'), "description" => "This will show a menu at the top of the block that contains the child categories of the selected category. It only works when you're using a single category filter form the dropdown. It doss't work with multiple categories IDs", "dependency" => array("element" => "hide_title", "value" => array("show_title"))), array("param_name" => "title_style", "type" => "dropdown", "value" => array('- default style -' => ''), "heading" => __("Title style:", 'js_composer'), "description" => ""), array("param_name" => "image_size", "type" => "dropdown", "value" => array('370 x 208' => '370_208', '570 x 320' => '570_320'), "heading" => __("Image Size:", 'js_composer'), "description" => "", "save_always" => true), array("param_name" => "pagination", "type" => "dropdown", "value" => array('- No -' => '', 'Next/Prev' => 'prev-next', 'Numeric' => 'numeric', 'Load More' => 'load-more', 'Infinite Scroll' => 'infinite-scroll'), "heading" => __("Pagination:", 'js_composer'), "description" => ""), array("param_name" => "module_space", "type" => "dropdown", "value" => array('- With Space -' => '', 'Without Space' => 'row-no-padding'), "heading" => __("Space:", 'js_composer'), "description" => "", "save_always" => true), array("param_name" => "module_meta", "type" => "dropdown", "value" => array('Disable' => 'false', 'Enable' => 'true'), "heading" => __("Enable/Disable module level meta settings:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "author_name", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Author Name:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "time_diff", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Time Difference:", 'js_composer'), "description" => "Enable or Disable Human Readable time difference", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_date", "type" => "dropdown", "value" => array('No' => '0', 'Yes' => '1'), "heading" => __("Post Date:", 'js_composer'), "description" => "will only work when time difference will be disable", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_time", "type" => "dropdown", "value" => array('No' => '0', 'Yes' => '1'), "heading" => __("Post Time:", 'js_composer'), "description" => "will only work when time difference will be disable", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_view_count", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Post Views Count:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_comment_count", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Post Comments Count:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "text_align", "type" => "dropdown", "value" => array('Left Align' => '', 'Center Align' => 'text-center'), "heading" => __("Text Align:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Design Options'), array("param_name" => "module_bg", "type" => "colorpicker", "value" => '', "heading" => __("Background Color:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Design Options'), array("param_name" => "module_padding", "type" => "textfield", "value" => '', "heading" => __("Padding:", 'js_composer'), "description" => "Add padding top right bottom left. Example 10px 10px 10px 10px", "save_always" => true, "group" => 'Design Options')))); /*--------------------------------------------------------------------------------- Video Module 2 -----------------------------------------------------------------------------------*/ vc_map(array("name" => __("Video Module 2", 'js_composer'), "description" => 'Video custom post type, Carousel', "base" => "fav-video-module-2", 'category' => "By Favethemes", "class" => "", 'admin_enqueue_js' => "", 'admin_enqueue_css' => "", "icon" => "icon-video-module-2", "params" => array(array("param_name" => "category_id", "type" => "dropdown", "value" => fave_get_video_category_id_array(), "heading" => __("Category filter:", 'js_composer'), "description" => ""), array("param_name" => "sort", "type" => "dropdown", "value" => array('- Latest -' => '', 'Random posts Today' => 'random_today', 'Random posts from last 7 Day' => 'random_7_day', 'Alphabetical A -> Z' => 'alphabetical_order', 'Popular (all time)' => 'popular', 'Random Posts' => 'random_posts', 'Most Commented' => 'comment_count'), "heading" => __("Sort order:", 'js_composer'), "description" => ""), array("param_name" => "autors_id", "type" => "dropdown", "value" => fave_create_array_authors(), "heading" => "Autors Filter:", "description" => ""), array("param_name" => "featured_posts", "type" => "dropdown", "value" => array('- Any -' => '', 'Exclude' => 'no', 'Include' => 'yes'), "heading" => __("Featured Posts:", 'js_composer'), "description" => __("You can make a post featured by clicking featured post checkbox while add/edit post", 'js_composer')), array("param_name" => "hide_title", "type" => "dropdown", "value" => array('- Show title -' => 'show_title', 'Hide title' => 'hide_title'), "heading" => __("Hide block title:", 'js_composer'), "description" => "", "save_always" => true), array("param_name" => "hide_meta", "type" => "dropdown", "value" => array('- Show Meta -' => 'show_meta', 'Hide Meta' => 'hide_meta'), "heading" => __("Hide Posts Meta:", 'js_composer'), "description" => "", "save_always" => true), array("param_name" => "posts_limit", "type" => "textfield", "value" => __("9", 'js_composer'), "heading" => __("Limit post number:", 'js_composer'), "description" => "", "save_always" => true), array("param_name" => "offset", "type" => "textfield", "value" => __("", 'js_composer'), "heading" => __("Offset posts:", 'js_composer'), "description" => ""), array("type" => "colorpicker", "heading" => __("Header color", 'js_composer'), "param_name" => "header_color", "value" => '', "description" => __("Choose a custom header color for this block", 'js_composer')), array("type" => "colorpicker", "heading" => __("Header text color", 'js_composer'), "param_name" => "header_text_color", "value" => '', "description" => __("Choose a custom header color for this block", 'js_composer')), array("type" => "colorpicker", "heading" => __("Header text top border color", 'js_composer'), "param_name" => "header_border_color", "value" => '', "description" => __("Choose a custom color for block title border top", 'js_composer')), array("param_name" => "custom_title", "type" => "textfield", "value" => "", "heading" => __("Optional - custom title for this block:", 'js_composer'), "description" => ""), array("param_name" => "custom_url", "type" => "textfield", "value" => "", "heading" => __("Optional - custom url for this block (when the module title is clicked):", 'js_composer'), "description" => ""), array("param_name" => "title_style", "type" => "dropdown", "value" => array('- default style -' => ''), "heading" => __("Title style:", 'js_composer'), "description" => ""), array("param_name" => "slider_post_row", "type" => "dropdown", "value" => array('2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6'), "heading" => __("Post to Show:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Carousel Settings'), array("param_name" => "slider_auto", "type" => "dropdown", "value" => array('No' => 'false', 'Yes' => 'true'), "heading" => __("Auto Play:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Carousel Settings'), array("param_name" => "stop_on_hover", "type" => "dropdown", "value" => array('Yes' => 'true', 'No' => 'false'), "heading" => __("Stop on Mouse Hover:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Carousel Settings'), array("param_name" => "navigation", "type" => "dropdown", "value" => array('Yes' => 'true', 'No' => 'false'), "heading" => __("Navigation:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Carousel Settings'), array("param_name" => "touch_drag", "type" => "dropdown", "value" => array('Yes' => 'true', 'No' => 'false'), "heading" => __("Touch Drag:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Carousel Settings'), array("param_name" => "slide_loop", "type" => "dropdown", "value" => array('No' => 'false', 'Yes' => 'true'), "heading" => __("Loop:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Carousel Settings'), array("param_name" => "rewind_nav", "type" => "dropdown", "value" => array('Yes' => 'true', 'No' => 'false'), "heading" => __("Rewind Nav:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Carousel Settings'), array("param_name" => "lazy_load", "type" => "dropdown", "value" => array('Yes' => 'true', 'No' => 'false'), "heading" => __("Lazy Load:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Carousel Settings'), array("param_name" => "module_meta", "type" => "dropdown", "value" => array('Disable' => 'false', 'Enable' => 'true'), "heading" => __("Enable/Disable module level meta settings:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "author_name", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Author Name:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "time_diff", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Time Difference:", 'js_composer'), "description" => "Enable or Disable Human Readable time difference", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_date", "type" => "dropdown", "value" => array('No' => '0', 'Yes' => '1'), "heading" => __("Post Date:", 'js_composer'), "description" => "will only work when time difference will be disable", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_time", "type" => "dropdown", "value" => array('No' => '0', 'Yes' => '1'), "heading" => __("Post Time:", 'js_composer'), "description" => "will only work when time difference will be disable", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_view_count", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Post Views Count:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_comment_count", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Post Comments Count:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "text_align", "type" => "dropdown", "value" => array('Left Align' => '', 'Center Align' => 'text-center'), "heading" => __("Text Align:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Design Options'), array("param_name" => "module_bg", "type" => "colorpicker", "value" => '', "heading" => __("Background Color:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Design Options'), array("param_name" => "module_padding", "type" => "textfield", "value" => '', "heading" => __("Padding:", 'js_composer'), "description" => "Add padding top right bottom left. Example 10px 10px 10px 10px", "save_always" => true, "group" => 'Design Options')))); /*--------------------------------------------------------------------------------- Video Module 3 -----------------------------------------------------------------------------------*/ vc_map(array("name" => __("Video Module 3", 'js_composer'), "description" => 'Video custom post type', "base" => "fav-video-module-3", 'category' => "By Favethemes", "class" => "", 'admin_enqueue_js' => "", 'admin_enqueue_css' => "", "icon" => "icon-video-module-3", "params" => array(array("param_name" => "module_9_type", "type" => "dropdown", "value" => array('- Full Width Template -' => 'full_width', 'Sidebar Template' => 'sidebar_template'), "heading" => __("Select where you want to use this module:", 'js_composer'), "description" => "", "save_always" => true), array("param_name" => "category_id", "type" => "dropdown", "value" => fave_get_video_category_id_array(), "heading" => __("Category filter:", 'js_composer'), "description" => ""), array("param_name" => "sort", "type" => "dropdown", "value" => array('- Latest -' => '', 'Random posts Today' => 'random_today', 'Random posts from last 7 Day' => 'random_7_day', 'Alphabetical A -> Z' => 'alphabetical_order', 'Popular (all time)' => 'popular', 'Random Posts' => 'random_posts', 'Most Commented' => 'comment_count'), "heading" => __("Sort order:", 'js_composer'), "description" => ""), array("param_name" => "autors_id", "type" => "dropdown", "value" => fave_create_array_authors(), "heading" => "Autors Filter:", "description" => ""), array("param_name" => "featured_posts", "type" => "dropdown", "value" => array('- Any -' => '', 'Exclude' => 'no', 'Include' => 'yes'), "heading" => __("Featured Posts:", 'js_composer'), "description" => __("You can make a post featured by clicking featured post checkbox while add/edit post", 'js_composer')), array("param_name" => "hide_title", "type" => "dropdown", "value" => array('- Show title -' => 'show_title', 'Hide title' => 'hide_title'), "heading" => __("Hide block title:", 'js_composer'), "description" => "", "save_always" => true), array("param_name" => "posts_limit", "type" => "textfield", "value" => __("10", 'js_composer'), "heading" => __("Limit post number:", 'js_composer'), "description" => "", "save_always" => true), array("param_name" => "offset", "type" => "textfield", "value" => __("", 'js_composer'), "heading" => __("Offset posts:", 'js_composer'), "description" => ""), array("type" => "colorpicker", "heading" => __("Header color", 'js_composer'), "param_name" => "header_color", "value" => '', "description" => __("Choose a custom header color for this block", 'js_composer')), array("type" => "colorpicker", "heading" => __("Header text color", 'js_composer'), "param_name" => "header_text_color", "value" => '', "description" => __("Choose a custom header color for this block", 'js_composer')), array("type" => "colorpicker", "heading" => __("Header text top border color", 'js_composer'), "param_name" => "header_border_color", "value" => '', "description" => __("Choose a custom color for block title border top", 'js_composer')), array("param_name" => "custom_title", "type" => "textfield", "value" => "", "heading" => __("Optional - custom title for this block:", 'js_composer'), "description" => ""), array("param_name" => "custom_url", "type" => "textfield", "value" => "", "heading" => __("Optional - custom url for this block (when the module title is clicked):", 'js_composer'), "description" => ""), array("param_name" => "title_style", "type" => "dropdown", "value" => array('- default style -' => ''), "heading" => __("Title style:", 'js_composer'), "description" => ""), array("param_name" => "module_space", "type" => "dropdown", "value" => array('- With Space -' => '', 'Without Space' => 'row-no-padding'), "heading" => __("Space:", 'js_composer'), "description" => "", "save_always" => true), array("param_name" => "module_meta", "type" => "dropdown", "value" => array('Disable' => 'false', 'Enable' => 'true'), "heading" => __("Enable/Disable module level meta settings:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "author_name", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Author Name:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "time_diff", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Time Difference:", 'js_composer'), "description" => "Enable or Disable Human Readable time difference", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_date", "type" => "dropdown", "value" => array('No' => '0', 'Yes' => '1'), "heading" => __("Post Date:", 'js_composer'), "description" => "will only work when time difference will be disable", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_time", "type" => "dropdown", "value" => array('No' => '0', 'Yes' => '1'), "heading" => __("Post Time:", 'js_composer'), "description" => "will only work when time difference will be disable", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_view_count", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Post Views Count:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "post_comment_count", "type" => "dropdown", "value" => array('Yes' => '1', 'No' => '0'), "heading" => __("Post Comments Count:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Post Meta Settings'), array("param_name" => "module_bg", "type" => "colorpicker", "value" => '', "heading" => __("Background Color:", 'js_composer'), "description" => "", "save_always" => true, "group" => 'Design Options'), array("param_name" => "module_padding", "type" => "textfield", "value" => '', "heading" => __("Padding:", 'js_composer'), "description" => "Add padding top right bottom left. Example 10px 10px 10px 10px", "save_always" => true, "group" => 'Design Options')))); /*--------------------------------------------------------------------------------- Video Custom Post video Gallery Module