<?php
return array(
	"title" => __("Popular Posts",THEME_ADMIN_DOMAIN),
	"shortcode" => 'popular_posts',
	"type" => 'self-closing',
	"options" => array(
		array(
			"name" => __("Count",THEME_ADMIN_DOMAIN),
			"desc" => "",
			"id" => "count",
			"default" => '4',
			"min" => 0,
			"max" => 30,
			"step" => "1",
			"type" => "range"
		),
		array(
			"name" => __("Thumbnail",THEME_ADMIN_DOMAIN),
			"id" => "thumbnail",
			"default" => true,
			"type" => "toggle"
		),
		array(
			"name" => __("Lightbox",THEME_ADMIN_DOMAIN),
			"id" => "lightbox",
			"default" => true,
			"type" => "toggle"
		),
		array(
			"name" => __("Extra infomation type",THEME_ADMIN_DOMAIN),
			"id" => "extra",
			"default" => 'desc',
			"options" => array(
				"time" => __('Time',THEME_ADMIN_DOMAIN),
				"desc" => __('Description',THEME_ADMIN_DOMAIN),
				"both" => __('Time and Description',THEME_ADMIN_DOMAIN),
				"none" => __('None',THEME_ADMIN_DOMAIN),
			),
			"type" => "select",
		),
		array(
			"name" => __("Length of Description",THEME_ADMIN_DOMAIN),
			"desc" => "",
			"id" => "desc_length",
			"default" => '80',
			"min" => 0,
			"max" => 200,
			"step" => "1",
			"type" => "range"
		),
		array(
			"name" => __("Category (optional)",THEME_ADMIN_DOMAIN),
			"id" => "cat",
			"default" => array(),
			"target" => 'cat',
			"chosen" => true,
			"prompt" => __("Select Categories..",THEME_ADMIN_DOMAIN),
			"type" => "multiselect",
		),
		array(
			"name" => __("Posts (optional)",THEME_ADMIN_DOMAIN),
			"desc" => __("The specific posts you want to display",THEME_ADMIN_DOMAIN),
			"id" => "posts",
			"default" => array(),
			"chosen" => true,
			"target" => 'post',
			"prompt" => __("Select Posts..",THEME_ADMIN_DOMAIN),
			"type" => "multiselect",
		),
		array(
			"name" => __("Author (optional)",THEME_ADMIN_DOMAIN),
			"id" => "author",
			"default" => array(),
			"target" => 'author',
			"chosen" => true,
			"prompt" => __("Select Authors..",THEME_ADMIN_DOMAIN),
			"type" => "multiselect",
		),
		array(
			"name" => __("Offset",THEME_ADMIN_DOMAIN),
			"desc" => __("Number of post to displace or pass over.",THEME_ADMIN_DOMAIN),
			"id" => "offset",
			"default" => '0',
			"min" => 0,
			"max" => 10,
			"step" => "1",
			"type" => "range"
		),
	),
);
