Changeset 2485846
- Timestamp:
- 03/03/2021 02:50:25 PM (5 years ago)
- Location:
- miqid-elementor
- Files:
-
- 2 added
- 5 edited
-
assets/banner-1544x500.png (added)
-
assets/banner-772x250.png (modified) (previous)
-
assets/icon-128x128.png (added)
-
assets/icon-256x256.png (modified) (previous)
-
trunk/miqid-elementor.php (modified) (2 diffs)
-
trunk/readme.md (modified) (1 diff)
-
trunk/widget/display_text.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
miqid-elementor/trunk/miqid-elementor.php
r2482228 r2485846 4 4 * Plugin Name: MIQID-Elementor 5 5 * Description: MIQID-Elementor extend Elementor with MIQID data. 6 * Version: 1.6. 26 * Version: 1.6.3 7 7 * Requires at least: 5.2 8 8 * Requires PHP: 7.2 … … 24 24 25 25 class Elementor { 26 const VERSION = "1.6. 2";26 const VERSION = "1.6.3"; 27 27 const MINIMUM_ELEMENTOR_VERSION = "2.0.0"; 28 28 const MINIMUM_PHP_VERSION = "7.2"; -
miqid-elementor/trunk/readme.md
r2482228 r2485846 2 2 Contributors: karlogit,miqid 3 3 Tags: MIQID,MIQID-Core,Elementor 4 Tested up to: 5. 64 Tested up to: 5.7 5 5 Requires PHP: 7.2 6 Stable tag: 1.6. 26 Stable tag: 1.6.3 7 7 License: GPL v3 or later 8 8 -
miqid-elementor/trunk/widget/display_text.php
r2482228 r2485846 17 17 'type' => Controls_Manager::SELECT, 18 18 'groups' => $this->getMIQIDFields(), 19 ] ); 20 21 $this->add_control( 'before', [ 22 'label' => __( 'Before', 'miqid-elementor' ), 23 'type' => Controls_Manager::TEXT, 24 ] ); 25 26 $this->add_control( 'after', [ 27 'label' => __( 'After', 'miqid-elementor' ), 28 'type' => Controls_Manager::TEXT, 19 29 ] ); 20 30 … … 43 53 $element = $settings['element'] ?? 'p'; 44 54 $miqid = explode( '.', $settings['miqid'] ?? '' ); 55 $before = $settings['before'] ?? ''; 56 $after = $settings['after'] ?? ''; 45 57 $value = do_shortcode( sprintf( '[miqid-%s fields="%s"]', mb_strtolower( array_shift( $miqid ) ), array_shift( $miqid ) ) ); 46 58 47 59 printf( 48 '<%1$s>% 2$s</%1$s>',60 '<%1$s>%3$s%2$s%4$s</%1$s>', 49 61 $element, 50 $value 62 $value, 63 $before, 64 $after 51 65 ); 52 66 }
Note: See TracChangeset
for help on using the changeset viewer.