コード例 #1
0
 /**
  * Module settings field
  * 
  * @since 1.0.0
  * @access public
  * @return array
  */
 public function fields()
 {
     return apply_filters('tf_page_featured_image_fields', array('image_size' => array('type' => 'select', 'label' => __('Image Size', 'themify-flow'), 'options' => tf_get_image_sizes_list()), 'image_dimension' => array('type' => 'multi', 'label' => __('Dimensions', 'themify-flow'), 'fields' => array('image_width' => array('type' => 'text', 'class' => 'tf_input_width_20', 'wrapper' => 'no', 'description' => 'x'), 'image_height' => array('type' => 'text', 'class' => 'tf_input_width_20', 'wrapper' => 'no', 'description' => 'px')))));
 }
コード例 #2
0
 /**
  * Module settings field
  * 
  * @since 1.0.0
  * @access public
  * @return array
  */
 public function fields()
 {
     return apply_filters('tf_element_featured_image_fields', array('image_size' => array('type' => 'select', 'label' => __('Image Size', 'themify-flow'), 'options' => tf_get_image_sizes_list()), 'image_dimension' => array('type' => 'multi', 'label' => __('Dimensions', 'themify-flow'), 'fields' => array('image_width' => array('type' => 'text', 'class' => 'tf_input_width_20', 'wrapper' => 'no', 'description' => 'x'), 'image_height' => array('type' => 'text', 'class' => 'tf_input_width_20', 'wrapper' => 'no', 'description' => 'px'))), 'image_link_to_post' => array('type' => 'radio', 'label' => __('Link to post', 'themify-flow'), 'options' => array(array('name' => 'Yes', 'value' => 'yes', 'selected' => true), array('name' => 'No', 'value' => 'no'))), 'display_inline_block' => array('type' => 'checkbox', 'label' => __('Display Inline', 'themify-flow'), 'text' => __('Display this module inline (float left)', 'themify-flow'))));
 }