Exemplo n.º 1
0
 static function init()
 {
     $image_sizes = array();
     $image_sizes[] = 'full';
     $image_sizes = array_merge($image_sizes, get_intermediate_image_sizes());
     AdapAutoVCShortcode::$target_param = array(__("Same window", 'adap_sc') => "_self", __("New window", 'adap_sc') => "_blank");
     AdapAutoVCShortcode::$css_animation_param = array("type" => "dropdown", "heading" => __("CSS Animation", 'adap_sc'), "param_name" => "css_animation", "admin_label" => true, "value" => array(__("No", 'adap_sc') => '', __("Top to bottom", 'adap_sc') => "top-to-bottom", __("Bottom to top", 'adap_sc') => "bottom-to-top", __("Left to right", 'adap_sc') => "left-to-right", __("Right to left", 'adap_sc') => "right-to-left", __("Appear from center", 'adap_sc') => "appear"), "description" => __("Select animation type if you want this element to be animated when it enters into the browsers viewport. Note: Works only in modern browsers.", 'adap_sc'));
     AdapAutoVCShortcode::$image_size_param = array('type' => 'dropdown', 'holder' => 'div', 'class' => '', 'heading' => __('Image Size', 'adap_sc'), 'param_name' => 'image_size', 'sch_default' => 'full', 'value' => $image_sizes, 'description' => __('The image size', 'adap_sc'));
     AdapAutoVCShortcode::$orderby_param = array('type' => 'dropdown', 'holder' => 'div', 'class' => '', 'heading' => __('Order By', 'adap_sc'), 'param_name' => 'orderby', 'sch_default' => 'date', 'value' => array('Date' => 'date', 'Date Last Modified' => 'modified', 'Menu Order' => 'menu_order', 'None' => 'none', 'ID' => 'ID', 'Author' => 'author', 'Title' => 'title', 'Name' => 'name', 'Parent' => 'parent', 'Random' => 'rand', 'Popularity (Comment Count)' => 'comment_count'), 'description' => __('The parameter to order by.', 'adap_sc'));
     AdapAutoVCShortcode::$order_param = array('type' => 'dropdown', 'holder' => 'div', 'class' => '', 'heading' => __('Order', 'adap_sc'), 'param_name' => 'order', 'sch_default' => 'DESC', 'value' => array('Descending' => 'DESC', 'Ascending' => 'ASC'), 'description' => __('The direction to apply the ordering.', 'adap_sc'));
 }