62 lines
1.5 KiB
PHP
62 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace WPC\Widgets;
|
|
|
|
use Elementor\Widget_Base;
|
|
use Elementor\Controls_Manager;
|
|
|
|
if (!defined('ABSPATH')) exit; // Exit if accessed directly
|
|
|
|
|
|
class StoreBlock extends Widget_Base {
|
|
|
|
public function get_name(){
|
|
return 'store-block';
|
|
}
|
|
|
|
public function get_title(){
|
|
return 'Store Block';
|
|
}
|
|
|
|
public function get_icon(){
|
|
return 'fab fa-app-store';
|
|
}
|
|
|
|
public function get_categories(){
|
|
return ['basic'];
|
|
}
|
|
|
|
protected function _register_controls(){
|
|
|
|
$this->start_controls_section(
|
|
'section_content',
|
|
[
|
|
'label' => 'Settings',
|
|
]
|
|
);
|
|
|
|
$this->end_controls_section();
|
|
}
|
|
|
|
|
|
protected function render(){
|
|
$settings = $this->get_settings_for_display();
|
|
|
|
// Store block
|
|
$html =
|
|
'<div class="store-block">
|
|
<p class="title text-center"><strong>Download</strong> the Float app now.</p>
|
|
<div class="download-btn-wrapper d-flex flex-wrap justify-content-around mx-auto">
|
|
<a class="mx-2 mb-2" href="https://smart.link/afcjz898yquo8" target="_blank">
|
|
<img src="https://blog.float.sg/wp-content/themes/float/images/google.svg" alt="google-img">
|
|
</a>
|
|
<a class="mx-2 mb-2" href="https://smart.link/afcjz898yquo8" target="_blank">
|
|
<img src="https://blog.float.sg/wp-content/themes/float/images/apple.svg" alt="apple-img">
|
|
</a>
|
|
</div>
|
|
</div>';
|
|
// End store block
|
|
|
|
echo $html;
|
|
}
|
|
} |