-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
17 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
<?php | ||
|
||
class SiteOrigin_Panels_Widget_Call_To_Action extends SiteOrigin_Panels_Widget { | ||
class SiteOrigin_Panels_Widget_Call_To_Action extends SiteOrigin_Panels_Widget { | ||
function __construct() { | ||
parent::__construct( | ||
__('Call To Action (PB)', 'siteorigin-panels'), | ||
__( 'Call To Action (PB)', 'siteorigin-panels' ), | ||
array( | ||
'description' => __('A Call to Action block', 'siteorigin-panels'), | ||
'description' => __( 'A Call to Action block', 'siteorigin-panels' ), | ||
'default_style' => 'simple', | ||
), | ||
array(), | ||
array( | ||
'title' => array( | ||
'type' => 'text', | ||
'label' => __('Title', 'siteorigin-panels'), | ||
'label' => __( 'Title', 'siteorigin-panels' ), | ||
), | ||
'subtitle' => array( | ||
'type' => 'text', | ||
'label' => __('Sub Title', 'siteorigin-panels'), | ||
'label' => __( 'Sub Title', 'siteorigin-panels' ), | ||
), | ||
'button_text' => array( | ||
'type' => 'text', | ||
'label' => __('Button Text', 'siteorigin-panels'), | ||
'label' => __( 'Button Text', 'siteorigin-panels' ), | ||
), | ||
'button_url' => array( | ||
'type' => 'text', | ||
'label' => __('Button URL', 'siteorigin-panels'), | ||
'label' => __( 'Button URL', 'siteorigin-panels' ), | ||
), | ||
'button_new_window' => array( | ||
'type' => 'checkbox', | ||
'label' => __('Open In New Window', 'siteorigin-panels'), | ||
'label' => __( 'Open In New Window', 'siteorigin-panels' ), | ||
), | ||
) | ||
); | ||
|
||
// We need the button style | ||
$this->add_sub_widget('button', __('Button', 'siteorigin-panels'), 'SiteOrigin_Panels_Widget_Button'); | ||
// We need the button style. | ||
$this->add_sub_widget( 'button', __( 'Button', 'siteorigin-panels' ), 'SiteOrigin_Panels_Widget_Button') ; | ||
} | ||
} |