Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class WMD_LiveShortcodes_Engine_Shortcode_Fundraising extends WMD_LiveShortcodes_Engine_Shortcode {
- //required
- var $tag = 'fundraiser_panel';
- //optional
- var $title = 'Fundraiser panel tests';
- var $description = 'this is the best shortcode ever';
- var $group_title = 'Fundraiser';
- var $group_description = 'best group ever';
- function css($shortcode) {
- return '<style type="text/css">.buttonx {background: pink; }</style>';
- }
- //sets options form for shortcode
- function options() {
- $args = array(
- 'button_name' => array(
- 'option_name' => 'text',
- 'title' => 'Button Label',
- 'description' => 'This will be visible as button label',
- 'default_value' => 'Click here',
- 'required' => true
- ),
- 'button_link' => array(
- 'option_name' => 'textarea',
- 'title' => 'Button Label',
- 'description' => 'This will be visible as button label',
- 'default_value' => 'Click here',
- 'required' => true
- ),
- 'button_color' => array(
- 'option_name' => 'select',
- 'title' => 'Button Label',
- 'description' => 'This will be visible as button label',
- 'default_value' => 'Click here',
- 'required' => true
- ),
- 'test' => array(
- 'option_name' => 'test',
- 'title' => 'Button Label',
- 'description' => 'This will be visible as button label',
- 'default_value' => 'Click here',
- 'required' => true
- ),
- );
- $this->options_engine->the_options($args);
- }
- }
- $wmd_live_shortcodes_engine_shortcodes['fundraising'] = new WMD_LiveShortcodes_Engine_Shortcode_Fundraising;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement