* @license http://www.gnu.org/licenses/gpl-2.0.html
* @link https://github.com/maddisondesigns
*/
if ( class_exists( 'WP_Customize_Control' ) ) {
class Skyrocket_Simple_Notice_Custom_Control extends WP_Customize_Control {
/**
* The type of control being rendered
*/
public $type = 'simple_notice';
/**
* Render the control in the customizer
*/
public function render_content() {
?>
choices as $key => $choice ) :
?>
* @license http://www.gnu.org/licenses/gpl-2.0.html
* @link https://github.com/maddisondesigns
*
*/
class Skyrocket_Upsell_Section extends WP_Customize_Section {
/**
* The type of control being rendered
*/
public $type = 'skyrocket-upsell';
/**
* The Upsell URL
*/
public $url = '';
/**
* The background color for the control
*/
public $backgroundcolor = '';
/**
* The text color for the control
*/
public $textcolor = '';
/**
* Enqueue our scripts and styles
*/
public function enqueue() {
wp_enqueue_script( 'skyrocket-custom-controls-js', get_template_directory_uri() . '/admin/assets/customizer.js', array( 'jquery' ), '1.0', true );
wp_enqueue_style( 'skyrocket-custom-controls-css', get_template_directory_uri() . '/admin/assets/customizer.css', array(), '1.0', 'all' );
}
/**
* Render the section, and the controls that have been added to it.
*/
protected function render() {
$bkgrndcolor = !empty( $this->backgroundcolor ) ? esc_attr( $this->backgroundcolor ) : '#fff';
$color = !empty( $this->textcolor ) ? esc_attr( $this->textcolor ) : '#555d66';
?>