/** * Register Gravity Forms action box type * @return none */ function mab_gforms_register_action_box_type($disabled = false) { $status = $disabled ? 'disabled' : 'enabled'; $description = $disabled ? 'This action box type requires the <a href="http://www.gravityforms.com/" target="_blank">Gravity Forms plugin</a> to be installed and activated.<br />Build complex, powerful contact forms in just minutes. Gravity Forms + Magic Action Box = Awesomeness' : 'Build complex, powerful contact forms in just minutes. Gravity Forms + Magic Action Box = Awesomeness'; $title = 'Gravity Forms'; $boxType = array('type' => MAB_GFORMS_TYPE, 'name' => $title, 'description' => $description, 'status' => $status); mab_register_action_box($boxType); }
/** * Register Contact Form 7 action box type * @return none */ function mab_cf7_register_action_box_type($disabled = false) { $status = $disabled ? 'disabled' : 'enabled'; $description = $disabled ? 'This plugin requires the <a href="http://wordpress.org/extend/plugins/contact-form-7/" target="_blank">Contact Form 7 plugin</a> to be installed and activated.<br />Make it easy for visitors to contact you right away. Integrates with the awesome Contact Form 7 plugin.' : 'Make it easy for visitors to contact you right away. Integrates with the awesome Contact Form 7 plugin.'; $title = 'Contact Form 7'; $boxType = array('type' => MAB_CF7_TYPE, 'name' => $title, 'description' => $description, 'status' => $status); mab_register_action_box($boxType); }
function mab_rbox_init() { $status = 'disabled'; $upgrade = sprintf(__('<em><small>(Available in <a href="%s" target="_blank">Magic Action Box Pro</a>)</small></em><br />'), 'http://www.magicactionbox.com/features/?pk_campaign=LITE&pk_kwd=addScreen'); $description = $upgrade . __('Use this box type to display a different random action box on every page load.', 'mab'); $title = __('Random Box', 'mab'); $boxType = array('type' => MAB_RBOX_TYPE, 'name' => $title, 'description' => $description, 'status' => $status); mab_register_action_box($boxType); }