Exemplo n.º 1
0
 public static function setControls()
 {
     $controls = parent::setControls();
     $controls["link_blank"] = array("name" => "filter_link_blank", "desc" => __("Open links in new window", "faf"), "type" => "checkbox", "default" => "1");
     $controls["link_tracker"] = array("name" => "filter_link_tracker", "desc" => __("Run filter through click tracker (URL of tracker)", "faf"), "type" => "text");
     return $controls;
 }
Exemplo n.º 2
0
 protected static function setControls()
 {
     $controls = parent::setControls();
     $controls["filter_value"]["desc"] = __("Keywords:", "faf");
     // different description
     return $controls;
 }
Exemplo n.º 3
0
 protected static function setControls()
 {
     $controls = parent::setControls();
     $controls["image_local"] = array("name" => "filter_image_local", "desc" => __("Save images locally", "faf"), "type" => "checkbox", "default" => "1");
     $controls["image_remove_excerpt"] = array("name" => "filter_image_remove_excerpt", "desc" => __("Remove images from excerpt", "faf"), "type" => "checkbox", "default" => "1");
     $controls["image_size_box"] = array("name" => "faf_image_resize", "desc" => __("Resize image to", "faf"), "type" => "image_size_box", "default" => "medium");
     $controls["image_process_select"] = array("name" => "faf_image_process_select", "desc" => __("Images to process", "faf"), "type" => "text");
     $controls["image_remove_unselected"] = array("name" => "faf_image_remove", "desc" => __("Remove unselected images", "faf"), "type" => "checkbox");
     $controls["image_set_featured"] = array("name" => "faf_image_featured", "desc" => __("Set featured image", "faf"), "type" => "checkbox");
     return $controls;
 }
Exemplo n.º 4
0
 public static function setControls()
 {
     $controls = parent::setControls();
     $controls["filter_value"]["desc"] = __("Keyword", "faf");
     $controls["categories"] = array("name" => "faf_filter_categories", "desc" => __("Categories", "faf"), "type" => "categories_box");
     return $controls;
 }
Exemplo n.º 5
0
 protected static function setControls()
 {
     if (!is_plugin_active("post-expirator/post-expirator.php")) {
         $controls["expirator_error"] = array("name" => "expire_need", "desc" => __("This filter needs <a href='http://wordpress.org/extend/plugins/post-expirator/' target='_blank'>Post expirator</a> plugin to function", "faf"), "type" => "expire_need_expirator");
         return $controls;
     }
     $controls = parent::setControls();
     $controls["expire_method"] = array("name" => "filter_expire_method", "desc" => __("Set expire-time:", "faf"), "type" => "radio", "default" => "setdate", "options" => array("postdate" => __("From post date", "faf"), "setdate" => __("From feed update", "faf")));
     $controls["expire_time"] = array("name" => "filter_expire_time", "desc" => __("Time", "faf"), "type" => "expire_time_box", "default" => array(1, 'm'));
     $controls["expire_how"] = array("name" => "filter_expire_how", "desc" => __("How to expire", "faf"), "type" => "expire_how_box", "default" => "draft");
     return $controls;
 }
Exemplo n.º 6
0
 protected static function setControls()
 {
     $controls = parent::setControls();
     $controls["html_allow_styles"] = array("name" => "filter_allow_styles", "desc" => __("Keep HTML-Styles and Headings"), "type" => "checkbox");
     $controls["html_allow_images"] = array("name" => "filter_allow_images", "desc" => __("Keep Images"), "type" => "checkbox");
     $controls["html_allow_links"] = array("name" => "filter_allow_links", "desc" => __("Keep Links"), "type" => "checkbox");
     $controls["html_allow_custom"] = array("name" => "filter_allow_custom", "desc" => __("Keep custom tags:"), "type" => "text");
     return $controls;
 }