IPTV Premium Canada Pricing Widget

start_controls_section(
‘content_section’,
[
‘label’ => esc_html__( ‘Settings’, ‘textdomain’ ),
‘tab’ => \Elementor\Controls_Manager::TAB_CONTENT,
]
);

$this->add_control(
‘top_label’,
[
‘label’ => esc_html__( ‘Top Label’, ‘textdomain’ ),
‘type’ => \Elementor\Controls_Manager::TEXT,
‘default’ => esc_html__( ‘PRICING’, ‘textdomain’ ),
]
);

$this->add_control(
‘main_heading’,
[
‘label’ => esc_html__( ‘Main Heading’, ‘textdomain’ ),
‘type’ => \Elementor\Controls_Manager::TEXT,
‘default’ => esc_html__( ‘IPTV Subscription Plans Canada’, ‘textdomain’ ),
]
);

$this->add_control(
‘subtitle’,
[
‘label’ => esc_html__( ‘Subtitle’, ‘textdomain’ ),
‘type’ => \Elementor\Controls_Manager::TEXTAREA,
‘default’ => esc_html__( ‘Choose your ideal IPTV Canada plan with 25,000+ live channels, 4K streaming, and fast activation. All plans include Canadian support, no contracts, and prices in CAD.’, ‘textdomain’ ),
]
);

// Device URLs matrix configuration
for ( $d = 1; $d <= 4; $d++ ) { $this->add_control(
“device_{$d}_heading”,
[
‘label’ => esc_html__( “URLs for {$d} Device(s)”, ‘textdomain’ ),
‘type’ => \Elementor\Controls_Manager::HEADING,
‘separator’ => ‘before’,
]
);

$this->add_control(
“url_d{$d}_m1”,
[
‘label’ => esc_html__( ‘1 Month Checkout Link’, ‘textdomain’ ),
‘type’ => \Elementor\Controls_Manager::URL,
‘placeholder’ => esc_html__( ‘https://your-link.com’, ‘textdomain’ ),
‘default’ => [
‘url’ => “https://example.com/checkout?plan=1month&device={$d}”,
‘is_external’ => true,
‘nofollow’ => true,
],
]
);

$this->add_control(
“url_d{$d}_m3”,
[
‘label’ => esc_html__( ‘3 Months Checkout Link’, ‘textdomain’ ),
‘type’ => \Elementor\Controls_Manager::URL,
‘placeholder’ => esc_html__( ‘https://your-link.com’, ‘textdomain’ ),
‘default’ => [
‘url’ => “https://example.com/checkout?plan=3months&device={$d}”,
‘is_external’ => true,
‘nofollow’ => true,
],
]
);

$this->add_control(
“url_d{$d}_m6”,
[
‘label’ => esc_html__( ‘6 Months Checkout Link’, ‘textdomain’ ),
‘type’ => \Elementor\Controls_Manager::URL,
‘placeholder’ => esc_html__( ‘https://your-link.com’, ‘textdomain’ ),
‘default’ => [
‘url’ => “https://example.com/checkout?plan=6months&device={$d}”,
‘is_external’ => true,
‘nofollow’ => true,
],
]
);

$this->add_control(
“url_d{$d}_m12”,
[
‘label’ => esc_html__( ’12 Months Checkout Link’, ‘textdomain’ ),
‘type’ => \Elementor\Controls_Manager::URL,
‘placeholder’ => esc_html__( ‘https://your-link.com’, ‘textdomain’ ),
‘default’ => [
‘url’ => “https://example.com/checkout?plan=12months&device={$d}”,
‘is_external’ => true,
‘nofollow’ => true,
],
]
);
}

$this->end_controls_section();

}

protected function render() {
$settings = $this->get_settings_for_display();

// Build data attributes for Javascript price and URL updates
$price_matrix = [
1 => [ ‘m1’ => 19, ‘m3’ => 29, ‘m6’ => 49, ‘m12’ => 79 ],
2 => [ ‘m1’ => 29, ‘m3’ => 49, ‘m6’ => 79, ‘m12’ => 119 ],
3 => [ ‘m1’ => 39, ‘m3’ => 69, ‘m6’ => 99, ‘m12’ => 159 ],
4 => [ ‘m1’ => 49, ‘m3’ => 89, ‘m6’ => 129, ‘m12’ => 199 ],
];

// Export URLs to HTML data-attributes
$url_matrix = [];
for ( $d = 1; $d <= 4; $d++ ) { foreach ( [ 'm1', 'm3', 'm6', 'm12' ] as $m ) { $url_setting = $settings["url_d{$d}_{$m}"]; $url_matrix[$d][$m] = [ 'url' => esc_url( $url_setting[‘url’] ),
‘is_external’ => $url_setting[‘is_external’] ? ‘_blank’ : ‘_self’,
‘nofollow’ => $url_setting[‘nofollow’] ? ‘nofollow’ : ”,
];
}
}
?>





High Performance Server
1 Month
$19 CAD
  • 4K Ultra HD Streaming
  • 25,000+ Live Channels
  • 120,000+ Movies & TV Shows
  • Premium PPV Events
  • Instant VOD
  • Smart EPG & Catch-Up
  • 24/7 Canadian Support
  • Multi-Device Compatibility

GET THIS PLAN +

High Performance Server
3 Months
$29 CAD
  • 4K Ultra HD Streaming
  • 25,000+ Live Channels
  • 120,000+ Movies & TV Shows
  • Premium PPV Events
  • Instant VOD
  • Smart EPG & Catch-Up
  • 24/7 Canadian Support
  • Multi-Device Compatibility

GET THIS PLAN +

High Performance Server
6 Months
$49 CAD
  • 4K Ultra HD Streaming
  • 25,000+ Live Channels
  • 120,000+ Movies & TV Shows
  • Premium PPV Events
  • Instant VOD
  • Smart EPG & Catch-Up
  • 24/7 Canadian Support
  • Multi-Device Compatibility

GET THIS PLAN +

High Performance Server
12 Months
$79 CAD
  • 4K Ultra HD Streaming
  • 25,000+ Live Channels
  • 120,000+ Movies & TV Shows
  • Premium PPV Events
  • Instant VOD
  • Smart EPG & Catch-Up
  • 24/7 Canadian Support
  • Multi-Device Compatibility

GET THIS PLAN +

register( new \Elementor_IPTV_Canada_Pricing_Widget_766eeab3() );
}
add_action( ‘elementor/widgets/register’, ‘register_iptv_canada_pricing_widget_766eeab3’ );

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *