PluginProbe ʕ •ᴥ•ʔ
Shortcodes and extra features for Phlox theme / 2.5.13
Shortcodes and extra features for Phlox theme v2.5.13
2.17.21 2.17.20 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.6 1.0.9 1.1.0 1.3.0 1.3.1 1.3.10 1.3.14 1.3.2 1.3.3 1.3.6 1.4.0 1.4.1 1.4.2 1.5.0 1.5.2 1.6.0 1.6.2 1.6.4 1.7.0 1.7.2 2.10.0 2.10.1 2.10.3 2.10.5 2.10.7 2.10.8 2.10.9 2.11.0 2.11.1 2.11.2 2.12.0 2.14.0 2.15.0 2.15.2 2.15.4 2.15.5 2.15.6 2.15.7 2.15.8 2.15.9 2.16.0 2.16.1 2.16.2 2.16.3 2.16.4 2.17.0 2.17.1 2.17.12 2.17.13 2.17.14 2.17.15 2.17.16 2.17.2 2.17.3 2.17.4 2.17.5 2.17.6 2.17.8 2.17.9 2.4.12 2.4.13 2.4.14 2.4.16 2.4.18 2.4.19 2.4.9 2.5.0 2.5.1 2.5.10 2.5.11 2.5.12 2.5.13 2.5.14 2.5.15 2.5.16 2.5.17 2.5.19 2.5.2 2.5.20 2.5.3 2.5.7 2.5.8 2.5.9 2.6.0 2.6.1 2.6.10 2.6.12 2.6.13 2.6.14 2.6.15 2.6.16 2.6.17 2.6.19 2.6.2 2.6.20 2.6.4 2.6.5 2.6.7 2.7.0 2.7.1 2.7.10 2.7.11 2.7.12 2.7.13 2.7.14 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 2.8.0 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.9 2.9.0 2.9.12 2.9.14 2.9.15 2.9.16 2.9.17 2.9.18 2.9.19 2.9.2 2.9.20 2.9.21 2.9.22 2.9.3 2.9.4 2.9.5 2.9.6 2.9.7 2.9.8
auxin-elements / includes / elementor / modules / section.php
auxin-elements / includes / elementor / modules Last commit date
documents 6 years ago dynamic-tags 6 years ago query-control 6 years ago settings 6 years ago theme-builder 6 years ago column.php 7 years ago common.php 6 years ago section.php 7 years ago templates-types-manager.php 6 years ago
section.php
200 lines
1 <?php
2 namespace Auxin\Plugin\CoreElements\Elementor\Modules;
3
4 use Elementor\Plugin;
5 use Elementor\Widget_Base;
6 use Elementor\Controls_Manager;
7 use Elementor\Group_Control_Image_Size;
8 use Elementor\Group_Control_Typography;
9 use Elementor\Scheme_Color;
10 use Elementor\Scheme_Typography;
11 use Elementor\Control_Media;
12 use Elementor\Group_Control_Border;
13 use Elementor\Group_Control_Box_Shadow;
14 use Elementor\Group_Control_Background;
15
16
17 class Section {
18
19 /**
20 * Instance of this class.
21 *
22 * @var object
23 */
24 protected static $instance = null;
25
26
27 function __construct(){
28 // Modify section render
29 // add_action( 'elementor/frontend/section/before_render', array( $this, 'modify_render' ) );
30
31 // Add new controls
32 add_action( 'elementor/element/after_section_end', array( $this, 'add_pseudo_background_controls' ), 20, 3 );
33
34 // Go pro notice for inner container options
35 add_action( 'elementor/element/section/section_typo/after_section_end' , array( $this, 'add_inner_container_notice' ), 90 );
36 }
37
38 /**
39 * Return an instance of this class.
40 *
41 * @return object A single instance of this class.
42 */
43 public static function get_instance() {
44 // If the single instance hasn't been set, set it now.
45 if ( null == self::$instance ) {
46 self::$instance = new self;
47 }
48
49 return self::$instance;
50 }
51
52
53 /**
54 * Modify the render of section element
55 *
56 * @param Element_Section $section Instance of Section element
57 *
58 * @return void
59 */
60 public function modify_render( $section ){
61
62 }
63
64
65 /**
66 * Add extra controls to section element
67 *
68 * @param Element_Section $section Instance of Section element
69 *
70 * @return void
71 */
72 public function add_controls( $section ){
73
74 }
75
76 /**
77 * Add option for styling the inner container
78 *
79 * @return void
80 */
81 public function add_inner_container_notice( $widget ){
82
83 if( defined('THEME_PRO') && THEME_PRO ){
84 return;
85 }
86
87 $widget->start_controls_section(
88 'aux_pro_inner_container_notice',
89 array(
90 'label' => __( 'Box Container', 'auxin-elements' ),
91 'tab' => Controls_Manager::TAB_STYLE
92 )
93 );
94
95 $widget->add_control(
96 'inner_container_go_pro_notice',
97 array(
98 'type' => Controls_Manager::RAW_HTML,
99 'content_classes' => 'elementor-descriptor',
100 'raw' => '<div class="auxin-elementor-panel-notice">' .
101 '<i class="auxin-elementor-upgrade-notice-icon eicon-favorite" aria-hidden="true"></i>
102 <div class="auxin-elementor-panel-notice-title">' .
103 __( 'Parallax Effect', 'auxin-elements' ) .
104 '</div>
105 <div class="auxin-elementor-panel-notice-message">' .
106 __( 'Container options lets you add border, box shadow and background to box container.', 'auxin-elements' ) .
107 '</div>
108 <div class="auxin-elementor-panel-notice-message">' .
109 __( 'This feature is only available on Phlox Pro.', 'auxin-elements' ) .
110 '</div>
111 <a class="auxin-elementor-panel-notice-link elementor-button elementor-button-default auxin-elementor-go-pro-link" href="http://phlox.pro/go-pro/?utm_source=elementor-panel&utm_medium=phlox-free&utm_campaign=phlox-go-pro&utm_content=inner-container" target="_blank">' .
112 __( 'Get Phlox Pro', 'auxin-elements' ) .
113 '</a>
114 </div>'
115 )
116 );
117
118 $widget->end_controls_section();
119 }
120
121 /**
122 * Adds controls to define background for pseudo elements
123 *
124 * @return void
125 */
126 public function add_pseudo_background_controls( $widget, $section_id, $args ){
127
128 if( 'section' !== $widget->get_name() ){
129 return;
130 }
131
132 // Anchor element sections
133 $target_sections = array('section_custom_css');
134
135 if( ! defined('ELEMENTOR_PRO_VERSION') ) {
136 $target_sections[] = 'section_custom_css_pro';
137 }
138
139 if( ! in_array( $section_id, $target_sections ) ){
140 return;
141 }
142
143 $widget->start_controls_section(
144 'aux_core_background_pseudo_section',
145 array(
146 'label' => __( 'Pseudo Background (developers)', 'auxin-elements' ),
147 'tab' => Controls_Manager::TAB_ADVANCED
148 )
149 );
150
151 $widget->add_control(
152 'background_pseudo_description',
153 array(
154 'raw' => __( 'Adds background to pseudo elements like ::before and ::after selectors. (developers only)', 'auxin-elements' ),
155 'type' => Controls_Manager::RAW_HTML,
156 'content_classes' => 'elementor-descriptor'
157 )
158 );
159
160 $widget->add_control(
161 'background_pseudo_before_heading',
162 array(
163 'label' => __( 'Background ::before', 'auxin-elements' ),
164 'type' => Controls_Manager::HEADING,
165 'separator' => 'before'
166 )
167 );
168
169 $widget->add_group_control(
170 Group_Control_Background::get_type(),
171 array(
172 'name' => 'background_pseudo_before',
173 'types' => array( 'classic', 'gradient'),
174 'selector' => '{{WRAPPER}} .elementor-container:before'
175 )
176 );
177
178 $widget->add_control(
179 'background_pseudo_after_heading',
180 array(
181 'label' => __( 'Background ::after', 'auxin-elements' ),
182 'type' => Controls_Manager::HEADING,
183 'separator' => 'before'
184 )
185 );
186
187 $widget->add_group_control(
188 Group_Control_Background::get_type(),
189 array(
190 'name' => 'background_pseudo_after',
191 'types' => array( 'classic', 'gradient'),
192 'selector' => '{{WRAPPER}} > .elementor-container:after'
193 )
194 );
195
196 $widget->end_controls_section();
197 }
198
199 }
200