* @var boolean
*/
public $override;
+ /**
+ * Flag to Hide title
+ *
+ * @var boolean
+ */
+ public $hide_title;
+ /**
+ * Flag to Hide widget border
+ *
+ * @var boolean
+ */
+ public $hide_border;
+ /**
+ * Flag to Hide pb caption
+ *
+ * @var boolean
+ */
+ public $hide_pbcap;
/**
* Custom template
*
* @var string
*/
public $custom_template;
+
+ /**
+ * Newsletter Button text color
+ *
+ * @var string
+ */
+ public $color_btn_newsletter;
+
+ /**
+ * Newsletter Button color
+ *
+ * @var string
+ */
+ public $color_btn_newsletter_bg;
+
+ /**
+ * Newsletter text
+ *
+ * @var string
+ */
+ public $newsletter_text;
+
+ /**
+ * Newsletter msg text color
+ *
+ * @var string
+ */
+ public $color_newsletter_text;
+
function __construct()
{
$this->__table = 'civicrm_wci_widget';
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Override default template', array('domain' => 'org.civicrm.wci')) ,
'required' => false,
+ ) ,
+ 'hide_title' => array(
+ 'name' => 'hide_title',
+ 'type' => CRM_Utils_Type::T_BOOLEAN,
+ 'title' => ts('Hide title, if 1.', array('domain' => 'org.civicrm.wci')) ,
+ 'required' => false,
+ ) ,
+ 'hide_border' => array(
+ 'name' => 'hide_border',
+ 'type' => CRM_Utils_Type::T_BOOLEAN,
+ 'title' => ts('Hide widget border, if 1.', array('domain' => 'org.civicrm.wci')) ,
+ 'required' => false,
+ ) ,
+ 'hide_pbcap' => array(
+ 'name' => 'hide_pbcap',
+ 'type' => CRM_Utils_Type::T_BOOLEAN,
+ 'title' => ts('Hide pb caption, if 1.', array('domain' => 'org.civicrm.wci')) ,
+ 'required' => false,
) ,
'custom_template' => array(
'name' => 'custom_template',
'title' => ts('Widget custom template', array('domain' => 'org.civicrm.wci')) ,
'required' => false,
) ,
+
+ 'color_btn_newsletter' => array(
+ 'name' => 'color_btn_newsletter',
+ 'type' => CRM_Utils_Type::T_STRING,
+ 'title' => ts('Newsletter Button text color', array('domain' => 'org.civicrm.wci')) ,
+ 'required' => true,
+ 'maxlength' => 10,
+ ) ,
+ 'color_btn_newsletter_bg' => array(
+ 'name' => 'color_btn_newsletter_bg',
+ 'type' => CRM_Utils_Type::T_STRING,
+ 'title' => ts('Newsletter Button color', array('domain' => 'org.civicrm.wci')) ,
+ 'required' => true,
+ 'maxlength' => 10,
+ ) ,
+ 'newsletter_text' => array(
+ 'name' => 'newsletter_text',
+ 'type' => CRM_Utils_Type::T_STRING,
+ 'title' => ts('Newsletter text', array('domain' => 'org.civicrm.wci')) ,
+ 'required' => true,
+ 'maxlength' => 64,
+ ) ,
+ 'color_newsletter_text' => array(
+ 'name' => 'color_newsletter_text',
+ 'type' => CRM_Utils_Type::T_STRING,
+ 'title' => ts('Newsletter text color', array('domain' => 'org.civicrm.wci')) ,
+ 'required' => true,
+ 'maxlength' => 10,
+ ) ,
);
}
return self::$_fields;
'color_button_bg' => 'color_button_bg',
'style_rules' => 'style_rules',
'override' => 'override',
+ 'hide_title' => 'hide_title',
+ 'hide_border' => 'hide_border',
+ 'hide_pbcap' => 'hide_pbcap',
'custom_template' => 'custom_template',
);
}