PluginProbe
Elementor Website Builder – more than just a page builder / 3.26.0-dev5
Elementor Website Builder – more than just a page builder v3.26.0-dev5
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
← All changes | includes/managers/controls.php +21 -28 4.1.23.26.0-dev5 View file →
@@ -158,13 +158,8 @@
158 158 */
159 159 const CHOOSE = 'choose';
160 160
161 161 /**
162 - * Visual_Choice control.
163 - */
164 - const VISUAL_CHOICE = 'visual_choice';
165 -
166 - /**
167 162 * WYSIWYG control.
168 163 */
169 164 const WYSIWYG = 'wysiwyg';
170 165
@@ -425,9 +420,8 @@
425 420 self::MEDIA,
426 421 self::SLIDER,
427 422 self::DIMENSIONS,
428 423 self::CHOOSE,
429 - self::VISUAL_CHOICE,
430 424 self::WYSIWYG,
431 425 self::CODE,
432 426 self::FONT,
433 427 self::IMAGE_DIMENSIONS,
@@ -494,14 +488,14 @@
494 488 *
495 489 * @param Controls_Manager $this The controls manager.
496 490 */
497 491 // TODO: Uncomment when Pro uses the new hook.
498 - // Plugin::$instance->modules_manager->get_modules( 'dev-tools' )->deprecation->do_deprecated_action(
499 - // 'elementor/controls/controls_registered',
500 - // [ $this ],
501 - // '3.5.0',
502 - // 'elementor/controls/register'
503 - // );
492 + //Plugin::$instance->modules_manager->get_modules( 'dev-tools' )->deprecation->do_deprecated_action(
493 + // 'elementor/controls/controls_registered',
494 + // [ $this ],
495 + // '3.5.0',
496 + // 'elementor/controls/register'
497 + //);
504 498
505 499 do_action( 'elementor/controls/controls_registered', $this );
506 500
507 501 /**
@@ -531,13 +525,13 @@
531 525 * current instance.
532 526 */
533 527 public function register_control( $control_id, Base_Control $control_instance ) {
534 528 // TODO: Uncomment when Pro uses the new hook.
535 - // Plugin::$instance->modules_manager->get_modules( 'dev-tools' )->deprecation->deprecated_function(
536 - // __METHOD__,
537 - // '3.5.0',
538 - // 'register()'
539 - // );
529 + //Plugin::$instance->modules_manager->get_modules( 'dev-tools' )->deprecation->deprecated_function(
530 + // __METHOD__,
531 + // '3.5.0',
532 + // 'register()'
533 + //);
540 534
541 535 $this->register( $control_instance, $control_id );
542 536 }
543 537
@@ -887,9 +881,9 @@
887 881 *
888 882 * @since 1.0.0
889 883 * @access public
890 884 *
891 - * @param string $stack_id Stack ID.
885 + * @param string $stack_id Stack ID.
892 886 * @param array|string $control_id The ID of the control to remove.
893 887 *
894 888 * @return bool|\WP_Error True if the stack was removed, False otherwise.
895 889 */
@@ -912,9 +906,8 @@
912 906 }
913 907
914 908 /**
915 909 * Has Stacks Cache Been Cleared.
916 - *
917 910 * @since 3.13.0
918 911 * @access public
919 912 * @return bool True if the CSS requires to clear the controls stack cache, False otherwise.
920 913 */
@@ -924,9 +917,8 @@
924 917
925 918 /**
926 919 * Clear stack.
927 920 * This method clears the stack.
928 - *
929 921 * @since 3.13.0
930 922 * @access public
931 923 */
932 924 public function clear_stack_cache() {
@@ -1064,10 +1056,11 @@
1064 1056 * @since 1.0.0
1065 1057 * @access public
1066 1058 *
1067 1059 * @param Controls_Stack $controls_stack .
1068 - * @param string $tab
1069 - * @param array $additional_messages
1060 + * @param string $tab
1061 + * @param array $additional_messages
1062 + *
1070 1063 */
1071 1064 public function add_custom_css_controls( Controls_Stack $controls_stack, $tab = self::TAB_ADVANCED, $additional_messages = [] ) {
1072 1065 $controls_stack->start_controls_section(
1073 1066 'section_custom_css_pro',
@@ -1107,10 +1100,10 @@
1107 1100 * version of elementor uses this method to display an upgrade message to
1108 1101 * Elementor Pro.
1109 1102 *
1110 1103 * @param Controls_Stack $controls_stack .
1111 - * @param string $tab
1112 - * @param array $additional_messages
1104 + * @param string $tab
1105 + * @param array $additional_messages
1113 1106 *
1114 1107 * @return void
1115 1108 */
1116 1109 public function add_page_transitions_controls( Controls_Stack $controls_stack, $tab = self::TAB_ADVANCED, $additional_messages = [] ) {
@@ -1191,12 +1184,12 @@
1191 1184 * This method adds a new control for the "Custom Attributes" feature. The free
1192 1185 * version of elementor uses this method to display an upgrade message to
1193 1186 * Elementor Pro.
1194 1187 *
1195 - * @param Controls_Stack $controls_stack .
1196 - * @param string $tab
1197 1188 * @since 2.8.3
1198 1189 * @access public
1190 + *
1191 + * @param Controls_Stack $controls_stack.
1199 1192 */
1200 1193 public function add_custom_attributes_controls( Controls_Stack $controls_stack, string $tab = self::TAB_ADVANCED ) {
1201 1194 $controls_stack->start_controls_section(
1202 1195 'section_custom_attributes_pro',
@@ -1225,9 +1218,9 @@
1225 1218
1226 1219 /**
1227 1220 * Check if a stack should be cleaned by the current responsive control duplication mode.
1228 1221 *
1229 - * @param array $stack
1222 + * @param $stack
1230 1223 * @return bool
1231 1224 */
1232 1225 private function should_clean_stack( $stack ): bool {
1233 1226 if ( ! isset( $stack['responsive_control_duplication_mode'] ) ) {
@@ -1360,9 +1353,9 @@
1360 1353 <span class="e-control-motion-effects-promotion__lock-wrapper">
1361 1354 <i class="eicon-lock"></i>
1362 1355 </span>
1363 1356 <div class="elementor-control-input-wrapper elementor-control-unit-5 e-control-' . $id . '-promotion">
1364 - <div class="select-promotion elementor-control-unit-5">' . esc_html__( 'None', 'elementor' ) . '</div>
1357 + <div class="select-promotion elementor-control-unit-5">None</div>
1365 1358 </div>
1366 1359 </div>
1367 1360 </div>
1368 1361 </div>';