Beispiel #1
0
 public function add_meta_box_testimonials_widget()
 {
     require_once 'lib/metabox.class.php';
     $fields = array(array('name' => __('Title', 'testimonials-widget'), 'id' => 'testimonials-widget-title', 'type' => 'text', 'desc' => ''), array('name' => __('Email', 'testimonials-widget'), 'id' => 'testimonials-widget-email', 'type' => 'text', 'desc' => ''), array('name' => __('Company', 'testimonials-widget'), 'id' => 'testimonials-widget-company', 'type' => 'text', 'desc' => ''), array('name' => __('URL', 'testimonials-widget'), 'id' => 'testimonials-widget-url', 'type' => 'text', 'desc' => ''));
     $fields = apply_filters('testimonials_widget_meta_box', $fields);
     $meta_box = redrokk_metabox_class::getInstance('testimonialswidget', array('title' => __('Testimonial Data', 'testimonials-widget'), 'description' => '', '_object_types' => 'testimonials-widget', 'priority' => 'high', '_fields' => $fields));
 }
 /**
  *
  *
  * @SuppressWarnings(PHPMD.UnusedLocalVariable)
  */
 public static function add_meta_box_testimonials_widget()
 {
     $fields = array(array('name' => esc_html__('Author', 'testimonials-widget'), 'id' => 'testimonials-widget-author', 'type' => 'text', 'desc' => esc_html__('Use when the testimonial title is not the authors\' name.', 'testimonials-widget')), array('name' => esc_html__('Job Title', 'testimonials-widget'), 'id' => 'testimonials-widget-title', 'type' => 'text', 'desc' => ''), array('name' => esc_html__('Location', 'testimonials-widget'), 'id' => 'testimonials-widget-location', 'type' => 'text', 'desc' => ''), array('name' => esc_html__('Company', 'testimonials-widget'), 'id' => 'testimonials-widget-company', 'type' => 'text', 'desc' => ''), array('name' => esc_html__('Email', 'testimonials-widget'), 'id' => 'testimonials-widget-email', 'type' => 'text', 'desc' => esc_html__('If an email is provided, but not an image, a Gravatar icon will be attempted to be loaded.', 'testimonials-widget')), array('name' => esc_html__('URL', 'testimonials-widget'), 'id' => 'testimonials-widget-url', 'type' => 'text', 'desc' => ''));
     $fields = apply_filters('tw_meta_box', $fields);
     $meta_box = redrokk_metabox_class::getInstance(self::ID, array('title' => esc_html__('Testimonial Data', 'testimonials-widget'), 'description' => '', '_object_types' => 'testimonials-widget', 'priority' => 'high', '_fields' => $fields));
 }
 /**
  *
  *
  * @SuppressWarnings(PHPMD.UnusedLocalVariable)
  */
 public static function add_meta_box_testimonials_widget()
 {
     $fields = array(array('name' => esc_html__('Job Title', 'testimonials-widget'), 'id' => 'testimonials-widget-title', 'type' => 'text', 'desc' => ''), array('name' => esc_html__('Location', 'testimonials-widget'), 'id' => 'testimonials-widget-location', 'type' => 'text', 'desc' => ''), array('name' => esc_html__('Email', 'testimonials-widget'), 'id' => 'testimonials-widget-email', 'type' => 'text', 'desc' => ''), array('name' => esc_html__('Company', 'testimonials-widget'), 'id' => 'testimonials-widget-company', 'type' => 'text', 'desc' => ''), array('name' => esc_html__('URL', 'testimonials-widget'), 'id' => 'testimonials-widget-url', 'type' => 'text', 'desc' => ''));
     $fields = apply_filters('testimonials_widget_meta_box', $fields);
     $meta_box = redrokk_metabox_class::getInstance(self::ID, array('title' => esc_html__('Testimonial Data', 'testimonials-widget'), 'description' => '', '_object_types' => 'testimonials-widget', 'priority' => 'high', '_fields' => $fields));
 }