Exemple #1
0
 /**
  * Define shortcode settings.
  *
  * @return  void
  */
 public function element_items()
 {
     $this->items = array('content' => array(array('name' => __('Element Title', IGPBL), 'id' => 'el_title', 'type' => 'text_field', 'class' => 'input-sm', 'std' => __('', IGPBL), 'role' => 'title', 'tooltip' => __('Set title for current element for identifying easily', IGPBL)), array('name' => __('Data', IGPBL), 'id' => 'qr_content', 'type' => 'text_area', 'class' => 'input-sm', 'std' => 'http://www.innogears.com', 'tooltip' => __('Add the data for the Qr box', IGPBL), 'exclude_quote' => '1'), array('name' => __('Image ALT Text', IGPBL), 'id' => 'qr_alt', 'type' => 'text_field', 'class' => 'input-sm', 'std' => __('Wordpress themes from www.innogears.com', IGPBL), 'tooltip' => __('Image ALT Text', IGPBL))), 'styling' => array(array('type' => 'preview'), array('name' => __('Container Style', IGPBL), 'id' => 'qr_container_style', 'type' => 'select', 'class' => 'input-sm', 'std' => IG_Pb_Helper_Type::get_first_option(IG_Pb_Helper_Type::get_qr_container_style()), 'options' => IG_Pb_Helper_Type::get_qr_container_style(), 'tooltip' => __('Select Container Style', IGPBL)), array('name' => __('Alignment', IGPBL), 'id' => 'qr_alignment', 'type' => 'select', 'class' => 'input-sm', 'std' => IG_Pb_Helper_Type::get_first_option(IG_Pb_Helper_Type::get_text_align()), 'options' => IG_Pb_Helper_Type::get_text_align(), 'tooltip' => __('Setting position: right, left, center, inherit parent style', IGPBL)), array('name' => __('QR Code Sizes', IGPBL), 'id' => 'qrcode_sizes', 'type' => 'text_append', 'type_input' => 'number', 'class' => 'input-mini', 'std' => '150', 'append' => 'px', 'validate' => 'number', 'tooltip' => __('Set size of QR code', IGPBL))));
 }