/**
  * Returns field definition arrays.
  * 
  * Pass an empty string to the parameter for meta box options. 
  * 
  * @return      array
  */
 public function get($sFieldIDPrefix = '', $sUnitType = 'category')
 {
     $_aFields = array(array('field_id' => $sFieldIDPrefix . 'button_id', 'type' => 'select', 'title' => __('Select Button', 'amazon-auto-links'), 'class' => array('fieldrow' => 'button-select-row'), 'tip' => sprintf(__('Select the button for the <code>%1$s</code> parameter of the Item Format option.', 'amazon-auto-links'), '%button%'), 'description' => array(sprintf(__('Buttons can be created from <a href="%1$s">this screen</a>.', 'amazon-auto-links'), add_query_arg(array('post_type' => AmazonAutoLinks_Registry::$aPostTypes['button']), admin_url('edit.php')))), 'label' => $this->_getActiveButtonLabels(), 'after_field' => "<div style='margin: 3em 3em 3em 0; width:100%;'>" . "<div style='margin-left: auto; margin-right: auto; '>" . AmazonAutoLinks_PluginUtility::getButton('__button_id__', '', false) . "</div>" . "</div>"), array('field_id' => $sFieldIDPrefix . 'button_type', 'type' => 'radio', 'title' => __('Button Type', 'amazon-auto-links'), 'label' => array(0 => __('Link to the product page.', 'amazon-auto-links'), 1 => __('Add to cart.', 'amazon-auto-links')), 'default' => 1));
     return $_aFields;
 }
 /**
  * 
  * @callback        filter      cell_{post type slug}_{column slug}
  */
 public function cell_aal_button_preview($sCell, $iPostID)
 {
     return $sCell . AmazonAutoLinks_PluginUtility::getButton($iPostID);
 }
 /**
  * Returns field definition arrays.
  * 
  * Pass an empty string to the parameter for meta box options. 
  * 
  * @return      array
  */
 public function get($sFieldIDPrefix = '', $sUnitType = 'category')
 {
     $_aFields = array(array('field_id' => $sFieldIDPrefix . 'button_preview', 'type' => '_preview_button', 'show_title_column' => false, 'attributes' => array('name' => ''), 'before_field' => "<div style='margin: 3em 3em 3em 0; width:100%;'>" . "<div style='margin-left: auto; margin-right: auto; '>" . AmazonAutoLinks_PluginUtility::getButton(isset($_GET['post']) ? $_GET['post'] : 0) . "</div>" . "</div>"));
     return $_aFields;
 }