carousel.php
4 years ago
fancy-text.php
4 years ago
grid.php
4 years ago
icon-list.php
4 years ago
maps.php
4 years ago
person.php
4 years ago
pricing-table.php
4 years ago
progress-bar.php
4 years ago
vertical-scroll.php
4 years ago
vertical-scroll.php
76 lines
| 1 | <?php |
| 2 | /** |
| 3 | * PA WPML Vertical Scroll. |
| 4 | */ |
| 5 | |
| 6 | namespace PremiumAddons\Compatibility\WPML\Widgets; |
| 7 | |
| 8 | use WPML_Elementor_Module_With_Items; |
| 9 | |
| 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | exit; // No access of directly access. |
| 12 | } |
| 13 | |
| 14 | /** |
| 15 | * Fancy Text |
| 16 | * |
| 17 | * Registers translatable widget with items. |
| 18 | * |
| 19 | * @since 3.1.9 |
| 20 | */ |
| 21 | class Vertical_Scroll extends WPML_Elementor_Module_With_Items { |
| 22 | |
| 23 | /** |
| 24 | * Retrieve the field name. |
| 25 | * |
| 26 | * @since 3.1.9 |
| 27 | * @return string |
| 28 | */ |
| 29 | public function get_items_field() { |
| 30 | return 'id_repeater'; |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * Retrieve the fields inside the repeater. |
| 35 | * |
| 36 | * @since 3.1.9 |
| 37 | * |
| 38 | * @return array |
| 39 | */ |
| 40 | public function get_fields() { |
| 41 | return array( |
| 42 | 'id_repeater' => 'section_id', |
| 43 | ); |
| 44 | } |
| 45 | |
| 46 | /** |
| 47 | * Get the title for each repeater string |
| 48 | * |
| 49 | * @since 3.1.9 |
| 50 | * |
| 51 | * @param string $field control ID. |
| 52 | * |
| 53 | * @return string |
| 54 | */ |
| 55 | protected function get_title( $field ) { |
| 56 | |
| 57 | return __( 'Vertical Scroll: Section ID', 'premium-addons-for-elementor' ); |
| 58 | |
| 59 | } |
| 60 | |
| 61 | /** |
| 62 | * Get `editor_type` for each repeater string |
| 63 | * |
| 64 | * @since 3.1.9 |
| 65 | * |
| 66 | * @param string $field control ID. |
| 67 | * |
| 68 | * @return string |
| 69 | */ |
| 70 | protected function get_editor_type( $field ) { |
| 71 | |
| 72 | return 'LINE'; |
| 73 | } |
| 74 | |
| 75 | } |
| 76 |