Advertisement
Konark

Untitled

Jan 20th, 2020
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. <?php
  2. namespace CmsmastersElementor\Modules\TemplateSections\Widgets;
  3.  
  4. use Elementor\Controls_Manager;
  5. use Elementor\Repeater;
  6. use Elementor\Group_Control_Typography;
  7. use Elementor\Group_Control_Border;
  8. use Elementor\Group_Control_Box_Shadow;
  9. use Elementor\Core\Responsive\Responsive;
  10. use Elementor\Scheme_Color;
  11. use Elementor\Scheme_Typography;
  12.  
  13. use CmsmastersElementor\Base\Base_Widget;
  14. use CmsmastersElementor\Controls_Manager as CmsmastersControls;
  15. use CmsmastersElementor\Modules\Slider\Slider as SliderModule;
  16.  
  17.  
  18. if ( ! defined( 'ABSPATH' ) ) {
  19. exit; // Exit if accessed directly.
  20. }
  21.  
  22. /**
  23. * Elementor tabs widget.
  24. *
  25. * Elementor widget that displays vertical or horizontal tabs with different
  26. * pieces of content.
  27. *
  28. * @since 1.0.0
  29. */
  30.  
  31. class Slider_New extends Base_Widget {
  32.  
  33. /**
  34. * Get widget name.
  35. *
  36. * Retrieve tabs widget name.
  37. *
  38. * @since 1.0.0
  39. * @access public
  40. *
  41. * @return string Widget name.
  42. */
  43. public function get_name() {
  44. return 'cmsmasters-slider-new';
  45. }
  46.  
  47. /**
  48. * Get widget title.
  49. *
  50. * Retrieve tabs widget title.
  51. *
  52. * @since 1.0.0
  53. * @access public
  54. *
  55. * @return string Widget title.
  56. */
  57. public function get_title() {
  58. return __( 'CMSMasters Slider New', 'cmsmasters-elementor' );
  59. }
  60.  
  61. /**
  62. * Get widget icon.
  63. *
  64. * Retrieve tabs widget icon.
  65. *
  66. * @since 1.0.0
  67. * @access public
  68. *
  69. * @return string Widget icon.
  70. */
  71. public function get_icon() {
  72. return 'eicon-slider-push';
  73. }
  74.  
  75. /**
  76. * Get widget keywords.
  77. *
  78. * Retrieve the list of keywords the widget belongs to.
  79. *
  80. * @since 1.0.0
  81. * @access public
  82. *
  83. *
  84. * @return array Widget keywords.
  85. */
  86. public function get_keywords() {
  87. return array( 'cmsmasters', 'slider' );
  88. }
  89.  
  90. /**
  91. * Get widget categories.
  92. *
  93. * Retrieve the widget categories.
  94. *
  95. * @since 1.0.0
  96. * @access public
  97. *
  98. * @return array Widget categories.
  99. */
  100. public function get_categories() {
  101. return array(
  102. 'cmsmasters-header',
  103. );
  104. }
  105.  
  106. protected function _register_controls() {
  107. // SliderModule::add_controls_content_per_view( $this );
  108. // SliderModule::register_section_content( $this );
  109. // SliderModule::register_sections_style( $this );
  110. }
  111.  
  112. /**
  113. * Render menu widget output on the frontend.
  114. *
  115. * Written in PHP and used to generate the final HTML.
  116. *
  117. * @since 1.0.0
  118. */
  119. protected function render() {
  120. SliderModule::render( $this, function() {
  121.  
  122. } );
  123. }
  124.  
  125. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement