Example #1
0
    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 
    }
Example #2
0
        /*---------------------------------------------------------------------------------
        		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
        		-----------------------------------------------------------------------------------*/
        vc_map(array("name" => __("Video Gallery", 'js_composer'), "description" => 'Video custom post type', "base" => "fav-video-gallery", 'category' => "By Favethemes", "class" => "", 'admin_enqueue_js' => "", 'admin_enqueue_css' => "", "icon" => "icon-video-gallery", "params" => array(array("param_name" => "playlist_title", "type" => "textfield", "value" => "", "heading" => __("Optional - custom title for this playlist:", 'js_composer'), "description" => ""), array("param_name" => "post_from", "type" => "dropdown", "value" => array('Featured Videos' => 'featured', 'Category Videos' => 'category_videos'), "heading" => __("Posts to display in slider:", 'js_composer'), "description" => __("Display featured videos from all categories or Videos from specific category", 'js_composer'), "save_always" => true), array("param_name" => "category_id", "type" => "dropdown", "value" => fave_get_video_category_id_array(), "heading" => __("Category filter:", 'js_composer'), "dependency" => array("element" => "post_from", "value" => array("category_videos"))), 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" => "offset", "type" => "textfield", "value" => __("", 'js_composer'), "heading" => __("Offset posts:", 'js_composer'), "description" => ""), array("param_name" => "posts_limit", "type" => "textfield", "value" => __("10", 'js_composer'), "heading" => __("Limit post number:", 'js_composer'), "description" => "add -1 for all posts to show", "save_always" => true), 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'))));
        /*---------------------------------------------------------------------------------
              Gallery Custom Post Type Module 1
          -----------------------------------------------------------------------------------*/
        vc_map(array("name" => __("Gallery Module 1", 'js_composer'), "description" => 'Gallery custom post type', "base" => "fav-gallery-module-1", 'category' => "By Favethemes", "class" => "", 'admin_enqueue_js' => "", 'admin_enqueue_css' => "", "icon" => "icon-gallery-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_gallery_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")), "save_always" => true), array("param_name" => "title_style", "type" => "dropdown", "value" => array('- default style -' => ''), "heading" => __("Title style:", 'js_composer'), "description" => ""), 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" => "image_size", "type" => "dropdown", "value" => array('370 x 278' => '370_278', '570 x 428' => '570_428'), "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'))));
        /*---------------------------------------------------------------------------------
          Gallery Module 2
          -----------------------------------------------------------------------------------*/
        vc_map(array("name" => __("Gallery Module 2", 'js_composer'), "description" => 'Gallery custom post type, Carousel', "base" => "fav-gallery-module-2", 'category' => "By Favethemes", "class" => "", 'admin_enqueue_js' => "", 'admin_enqueue_css' => "", "icon" => "icon-gallery-module-2", "params" => array(array("param_name" => "category_id", "type" => "dropdown", "value" => fave_get_gallery_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'))));
        /*---------------------------------------------------------------------------------
          Gallery Module 3
          -----------------------------------------------------------------------------------*/
        vc_map(array("name" => __("Gallery Module 3", 'js_composer'), "description" => 'Gallery custom post type', "base" => "fav-gallery-module-3", 'category' => "By Favethemes", "class" => "", 'admin_enqueue_js' => "", 'admin_enqueue_css' => "", "icon" => "icon-gallery-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_gallery_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'))));
        /*---------------------------------------------------------------------------------
              Custom Post Gallery Module
          -----------------------------------------------------------------------------------*/
        vc_map(array("name" => __("Custom Post Gallery", 'js_composer'), "description" => 'Gallery custom post type', "base" => "fav-custom-post-gallery", 'category' => "By Favethemes", "class" => "", 'admin_enqueue_js' => "", 'admin_enqueue_css' => "", "icon" => "icon-custom-post-gallery", "params" => array(array("param_name" => "gallery_title", "type" => "textfield", "value" => "", "heading" => __("Optional - custom title for this gallery:", 'js_composer'), "description" => ""), array("param_name" => "post_from", "type" => "dropdown", "value" => array('Featured Posts' => 'featured', 'Category Posts' => 'category_posts'), "heading" => __("Posts to display in slider:", 'js_composer'), "description" => __("Display featured posts from all categories or posts from specific category", 'js_composer'), "save_always" => true), array("param_name" => "category_id", "type" => "dropdown", "value" => fave_get_gallery_category_id_array(), "heading" => __("Category filter:", 'js_composer'), "dependency" => array("element" => "post_from", "value" => array("category_posts"))), 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" => "offset", "type" => "textfield", "value" => __("", 'js_composer'), "heading" => __("Offset posts:", 'js_composer'), "description" => ""), array("param_name" => "posts_limit", "type" => "textfield", "value" => __("10", 'js_composer'), "heading" => __("Limit post number:", 'js_composer'), "description" => "add -1 for all posts to show", "save_always" => true), 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'))));
    }
}
// End Class_exists