Plugin Directory

Changeset 2710554


Ignore:
Timestamp:
04/16/2022 03:20:09 PM (4 years ago)
Author:
magicpages
Message:

update version 1.1.0
-Compatible with elementor version 3.6.4

Location:
scroll-magic-addon-for-elementor
Files:
124 added
7 edited

Legend:

Unmodified
Added
Removed
  • scroll-magic-addon-for-elementor/trunk/assets/public/js/edittor-shupport.js

    r2288386 r2710554  
     1"use strict";
     2
    13(function ($) {
    2     "use strict";
    34
    4     function addCustomCss(css, view) {
    5         console.log(css);
    6         var model = view.getEditModel(),
     5    function addCustomCss(css, view) {
     6        const model = view.getEditModel(),
    77            customCSS = model.get('settings').get('custom_css'),
    8             attributes = model.get('settings').attributes ;
    9         var default_css = '{',
     8            attributes = model.get('settings').attributes;
     9        let default_css = '{',
    1010            transform_css = 'transform:',
    11             group1 = ['width','height',],
    12             group2 = ['background-color','color','opacity','display','transform-origin'],
    13             group3 = ['rotateX','rotateY','rotateZ','skewY','skewX'],
    14             group4 = ['translateX','translateY','translateZ'];
    15             Object.keys(attributes).forEach(function (item) {
    16                 if( item==null && item !==0 ){
    17                 }else{
    18                     if( item.indexOf("wpmp-def_") > -1 ){
    19                         var nameCSS = item.replace(/wpmp-def_/, '');
    20                         if( group1.indexOf(nameCSS )> -1 ){
     11            group1 = ['width', 'height',],
     12            group2 = ['background-color', 'color', 'opacity', 'display', 'transform-origin'],
     13            group3 = ['rotateX', 'rotateY', 'rotateZ', 'skewY', 'skewX'],
     14            group4 = ['translateX', 'translateY', 'translateZ'];
     15        Object.keys(attributes).forEach(function (item) {
     16            if (item == null && item !== 0) {
     17            } else {
     18                if (item.indexOf("wpmp-def_") > -1) {
     19                    var nameCSS = item.replace(/wpmp-def_/, '');
     20                    if (group1.indexOf(nameCSS) > -1) {
    2121
    22                             default_css += nameCSS+':'+attributes[item] + 'px;';
     22                        default_css += nameCSS + ':' + attributes[item] + 'px;';
    2323
    24                         }else if( group2.indexOf(nameCSS )> -1 ){
     24                    } else if (group2.indexOf(nameCSS) > -1) {
    2525
    26                             default_css += nameCSS+':'+attributes[item]+';';
     26                        default_css += nameCSS + ':' + attributes[item] + ';';
    2727
    28                         }else if( group3.indexOf(nameCSS ) > -1){
     28                    } else if (group3.indexOf(nameCSS) > -1) {
    2929
    30                             transform_css  += nameCSS+'('+attributes[item]+'deg)';
     30                        transform_css += nameCSS + '(' + attributes[item] + 'deg)';
    3131
    32                         }else if( group4.indexOf(nameCSS) > -1 ){
     32                    } else if (group4.indexOf(nameCSS) > -1) {
    3333
    34                             transform_css  += nameCSS+'('+attributes[item]+'px)';
     34                        transform_css += nameCSS + '(' + attributes[item] + 'px)';
    3535
    36                         }else{
     36                    } else {
    3737
    38                             transform_css  += nameCSS+'('+attributes[item]+')';
     38                        transform_css += nameCSS + '(' + attributes[item] + ')';
    3939
    40                         }
    4140                    }
    4241                }
    43                
    44             });
    45             if(transform_css != 'transform:'){
    46                 default_css += transform_css +";";
    47             }
    48    
    49             if( default_css == '{'){
    50                 return;
    51             }else{
    52                 default_css +=  '}';
    53                 default_css =   '.elementor-element.elementor-element-' + view.model.id+' .elementor-widget-container *:not(.scrollMagicControl)'+default_css;
    5442            }
    5543
    56         return default_css;
    57     }
     44        });
     45        if (transform_css !== 'transform:') {
     46            default_css += transform_css + ";";
     47        }
    5848
    59     function addPageCustomCss() {
    60         var customCSS = elementor.settings.page.model.get('custom_css');
    61         if (customCSS) {
    62             customCSS = customCSS.replace(/selector/g, elementor.config.settings.page.cssWrapperSelector);
    63             elementor.settings.page.getControlsCSS().elements.$stylesheetElement.append(customCSS);
    64         }
    65     }
    66    
    67     elementor.hooks.addFilter('editor/style/styleText', addCustomCss);
     49        if (default_css === '{') {
     50            return;
     51        } else {
     52            default_css += '}';
     53            default_css = '.elementor-element.elementor-element-' + view.model.id + ' .elementor-widget-container *:not(.scrollMagicControl)' + default_css;
     54        }
     55
     56        return default_css;
     57    }
     58
     59    function addPageCustomCss() {
     60        let customCSS = elementor.settings.page.model.get('custom_css');
     61        if (customCSS) {
     62            customCSS = customCSS.replace(/selector/g, elementor.config.settings.page.cssWrapperSelector);
     63            elementor.settings.page.getControlsCSS().elements.$stylesheetElement.append(customCSS);
     64        }
     65    }
     66
     67    // elementor.hooks.addFilter('editor/style/styleText', addCustomCss);
     68
     69
     70    function addEffect(panel, model) {
     71
     72    }
     73    elementor.hooks.addFilter('editor/style/styleText', addCustomCss);
    6874})(jQuery);
  • scroll-magic-addon-for-elementor/trunk/assets/public/js/wpmp.js

    r2288386 r2710554  
    22
    33(function($) {
    4    
     4
    55    $( document ).ready(function(){
    66        var deviceW = 'desktop';
     
    2020
    2121            const seftID = $(seft).attr('id');
    22             var effect = JSON.parse( 
     22            var effect = JSON.parse(
    2323                $(seft).attr('effect')
    2424                .replace( /,}/g, "}")
     
    7373            }
    7474            scene.addTo(controller);
    75            
     75
    7676            // SVG
    7777            if( $(seft).next().hasClass('drawsvg') || $(seft).next().find('.drawsvg').length >0){
     
    108108                    {
    109109                        curImg: images.length - 1,
    110                         roundProps: "curImg",               
    111                         repeat: repeat,                             
    112                         immediateRender: true,         
    113                         ease: Linear.easeNone, 
     110                        roundProps: "curImg",
     111                        repeat: repeat,
     112                        immediateRender: true,
     113                        ease: Linear.easeNone,
    114114                        onUpdate: function () {
    115115                            $(seft).next().find('.wpmp_image_sequence').attr("src", images[obj.curImg]);
     
    131131            // splitText
    132132            if( $(seft).next().hasClass('splitText') || $(seft).next().find('.splitText').length >0){
    133                 var splitTextEffect = JSON.parse( 
     133                var splitTextEffect = JSON.parse(
    134134                    $(seft)
    135135                    .attr('split-text')
  • scroll-magic-addon-for-elementor/trunk/includes/elementor/add_content.class.php

    r2297466 r2710554  
    5959        }
    6060
    61 
    6261    }
    6362
  • scroll-magic-addon-for-elementor/trunk/includes/elementor/add_section.class.php

    r2297466 r2710554  
    11<?php
     2
     3use Elementor\Controls_Manager;
     4use Elementor\Repeater;
     5
    26if ( ! defined( 'WPINC' ) ) {
    37    die;
     
    59
    610if ( ! class_exists( 'Wpmp_add_section' ) ) {
    7    
    8    
     11
     12
    913    class Wpmp_add_section{
    1014
    1115        public function __construct(){
    1216            add_action( 'elementor/element/before_section_start', [$this,'add_scroll_magic_control'], 10, 3 );
    13 
    1417            add_action( 'elementor/element/after_section_end', [$this,'add_scroll_magic_default'], 10, 3 );
    15 
    1618            add_action( 'elementor/element/after_section_end', [$this,'add_scroll_magic_effect'], 10, 3 );
    1719        }
    1820
    1921        function add_scroll_magic_control( $element, $section_id, $args ) {
    20             /** @var \Elementor\Element_Base $element */
    2122            $except = ['column','section'];
    2223            if(in_array($element->get_name(),$except )) return;
     
    2526                    'section_scrollmagic_control',
    2627                    [
    27                         'tab' => \Elementor\Controls_Manager::TAB_STYLE,
     28                        'tab' => Controls_Manager::TAB_STYLE,
    2829                        'label' => __( 'Scroll Magic control', 'wpmp' ),
    2930                    ]
     
    3334                    [
    3435                        'label' => __( 'Hide On Desktop', 'wpmp' ),
    35                         'type' => \Elementor\Controls_Manager::SWITCHER,
     36                        'type' => Controls_Manager::SWITCHER,
    3637                        'label_on' => __( 'Hide', 'wpmp' ),
    3738                        'label_off' => __( 'Show', 'wpmp' ),
     
    4445                    [
    4546                        'label' => __( 'Hide On Tablet', 'wpmp' ),
    46                         'type' => \Elementor\Controls_Manager::SWITCHER,
     47                        'type' => Controls_Manager::SWITCHER,
    4748                        'label_on' => __( 'Hide', 'wpmp' ),
    4849                        'label_off' => __( 'Show', 'wpmp' ),
     
    5556                    [
    5657                        'label' => __( 'Hide On Mobile', 'wpmp' ),
    57                         'type' => \Elementor\Controls_Manager::SWITCHER,
     58                        'type' => Controls_Manager::SWITCHER,
    5859                        'label_on' => __( 'Hide', 'wpmp' ),
    5960                        'label_off' => __( 'Show', 'wpmp' ),
     
    6566                    'wpmp_trigger_hook',
    6667                    [
    67                     'type' => \Elementor\Controls_Manager::NUMBER,
     68                    'type' => Controls_Manager::NUMBER,
    6869                    'label' => __( 'Trigger Hook', 'wpmp' ),
    6970                    'min' => '0','max' => '1','step' => '0.1',
     
    7576                    [
    7677                        'label' => __( 'Reverse', 'wpmp' ),
    77                         'type' => \Elementor\Controls_Manager::SWITCHER,
     78                        'type' => Controls_Manager::SWITCHER,
    7879                        'label_on' => __( 'On', 'wpmp' ),
    7980                        'label_off' => __( 'Off', 'wpmp' ),
     
    8687                    [
    8788                        'label' => __( 'Pin', 'wpmp' ),
    88                         'type' => \Elementor\Controls_Manager::SWITCHER,
     89                        'type' => Controls_Manager::SWITCHER,
    8990                        'label_on' => __( 'On', 'wpmp' ),
    9091                        'label_off' => __( 'Off', 'wpmp' ),
     
    9798                    [
    9899                        'label' => __( 'pushFollowers', 'wpmp' ),
    99                         'type' => \Elementor\Controls_Manager::SWITCHER,
     100                        'type' => Controls_Manager::SWITCHER,
    100101                        'label_on' => __( 'On', 'wpmp' ),
    101102                        'label_off' => __( 'Off', 'wpmp' ),
     
    108109                    [
    109110                        'label' => __( 'TweenChanges', 'wpmp' ),
    110                         'type' => \Elementor\Controls_Manager::SWITCHER,
     111                        'type' => Controls_Manager::SWITCHER,
    111112                        'label_on' => __( 'On', 'wpmp' ),
    112113                        'label_off' => __( 'Off', 'wpmp' ),
     
    118119                    'wpmp_duration',
    119120                    [
    120                     'type' => \Elementor\Controls_Manager::NUMBER,
     121                    'type' => Controls_Manager::NUMBER,
    121122                    'label' => __( 'Duration', 'wpmp' ),
    122123                    'step' => '1',
     
    127128                    'wpmp_offset',
    128129                    [
    129                     'type' => \Elementor\Controls_Manager::NUMBER,
     130                    'type' => Controls_Manager::NUMBER,
    130131                    'label' => __( 'Offset', 'wpmp' ),
    131132                    'step' => '1',
     
    137138                    [
    138139                        'label' => __( 'Enable Class toggle', 'wpmp' ),
    139                         'type' => \Elementor\Controls_Manager::SWITCHER,
     140                        'type' => Controls_Manager::SWITCHER,
    140141                        'label_on' => __( 'On', 'wpmp' ),
    141142                        'label_off' => __( 'Off', 'wpmp' ),
     
    148149                    [
    149150                        'label' => __( 'Class CSS', 'wpmp' ),
    150                         'type' => \Elementor\Controls_Manager::SELECT,
     151                        'type' => Controls_Manager::SELECT,
    151152                        'default' => 'custom',
    152153                        'options' => [
     
    297298                    [
    298299                        'label' => __( 'Custom Class', 'wpmp' ),
    299                         'type' => \Elementor\Controls_Manager::TEXT,
     300                        'type' => Controls_Manager::TEXT,
    300301                        'default' => __( '', 'wpmp' ),
    301302                        'placeholder' => __( 'Enter your class css', 'wpmp' ),
     
    307308                    [
    308309                        'label' => __( 'Enable Debug', 'wpmp' ),
    309                         'type' => \Elementor\Controls_Manager::SWITCHER,
     310                        'type' => Controls_Manager::SWITCHER,
    310311                        'label_on' => __( 'On', 'wpmp' ),
    311312                        'label_off' => __( 'Off', 'wpmp' ),
     
    320321
    321322        function add_scroll_magic_default( $element, $section_id, $args ) {
    322             /** @var \Elementor\Element_Base $element */
    323323            if ( 'section_scrollmagic_control' === $section_id  ) {
    324324                $element->start_controls_section(
    325325                    'section_scrollmagic_default',
    326326                    [
    327                         'tab' => \Elementor\Controls_Manager::TAB_STYLE,
     327                        'tab' => Controls_Manager::TAB_STYLE,
    328328                        'label' => __( 'Scroll Magic default', 'wpmp' ),
    329329                    ]
     
    333333                    [
    334334                        'label' => __( 'Wight', 'wpmp' ),
    335                         'type' => \Elementor\Controls_Manager::NUMBER,
     335                        'type' => Controls_Manager::NUMBER,
    336336                        'step' => 1,
    337337                        'default' => "",
     
    342342                    [
    343343                        'label' => __( 'Height', 'wpmp' ),
    344                         'type' => \Elementor\Controls_Manager::NUMBER,
     344                        'type' => Controls_Manager::NUMBER,
    345345                        'step' => 1,
    346346                        'default' => "",
     
    351351                    [
    352352                        'label' => __( 'Opacity', 'wpmp' ),
    353                         'type' => \Elementor\Controls_Manager::NUMBER,
     353                        'type' => Controls_Manager::NUMBER,
    354354                        'step' => 0.1,'min' => 0,'max' => 1,
    355355                        'default' => "",
     
    360360                    [
    361361                        'label' => __( 'Color', 'wpmp' ),
    362                         'type' => \Elementor\Controls_Manager::COLOR,
    363                         'scheme' => [
    364                             'type' => \Elementor\Scheme_Color::get_type(),
    365                             'value' => \Elementor\Scheme_Color::COLOR_1,
    366                         ],
     362                        'type' => Controls_Manager::COLOR,
    367363                        'selectors' => [
    368364                            '{{WRAPPER}} .title' => 'color: {{VALUE}}',
     
    374370                    [
    375371                        'label' => __( 'Background Color', 'wpmp' ),
    376                         'type' => \Elementor\Controls_Manager::COLOR,
    377                         'scheme' => [
    378                             'type' => \Elementor\Scheme_Color::get_type(),
    379                             'value' => \Elementor\Scheme_Color::COLOR_1,
    380                         ],
     372                        'type' => Controls_Manager::COLOR,
    381373                        'selectors' => [
    382374                            '{{WRAPPER}} .title' => 'color: {{VALUE}}',
     
    388380                    [
    389381                        'label' => __( 'Display', 'wpmp' ),
    390                         'type' => \Elementor\Controls_Manager::SELECT,
     382                        'type' => Controls_Manager::SELECT,
    391383                        'default' => '',
    392384                        'options' => [
     
    406398                    'hr',
    407399                    [
    408                         'type' => \Elementor\Controls_Manager::DIVIDER,
    409                     ]
    410                 );
    411                
     400                        'type' => Controls_Manager::DIVIDER,
     401                    ]
     402                );
     403
    412404                $element->add_control(
    413405                    'wpmp-def_transform-origin',
    414406                    [
    415407                        'label' => __( 'Transform Origin', 'wpmp' ),
    416                         'type' => \Elementor\Controls_Manager::SELECT,
     408                        'type' => Controls_Manager::SELECT,
    417409                        'default' => '',
    418410                        'options' => [
     
    433425                    [
    434426                        'label' => __( 'Translate-X', 'wpmp' ),
    435                         'type' => \Elementor\Controls_Manager::NUMBER,
     427                        'type' => Controls_Manager::NUMBER,
    436428                        'step' => 1,
    437429                        'default' => "",
     
    442434                    [
    443435                        'label' => __( 'Translate-Y', 'wpmp' ),
    444                         'type' => \Elementor\Controls_Manager::NUMBER,
     436                        'type' => Controls_Manager::NUMBER,
    445437                        'step' => 1,
    446438                        'default' => "",
     
    451443                    [
    452444                        'label' => __( 'Translate-Z', 'wpmp' ),
    453                         'type' => \Elementor\Controls_Manager::NUMBER,
     445                        'type' => Controls_Manager::NUMBER,
    454446                        'step' => 1,
    455447                        'default' => "",
     
    460452                    [
    461453                        'label' => __( 'Scale-X', 'wpmp' ),
    462                         'type' => \Elementor\Controls_Manager::NUMBER,
     454                        'type' => Controls_Manager::NUMBER,
    463455                        'step' => 0,2,
    464456                        'default' => "",
     
    469461                    [
    470462                        'label' => __( 'Scale-Y', 'wpmp' ),
    471                         'type' => \Elementor\Controls_Manager::NUMBER,
     463                        'type' => Controls_Manager::NUMBER,
    472464                        'step' => 0,2,
    473465                        'default' => "",
     
    478470                    [
    479471                        'label' => __( 'Scale-Z', 'wpmp' ),
    480                         'type' => \Elementor\Controls_Manager::NUMBER,
     472                        'type' => Controls_Manager::NUMBER,
    481473                        'step' => 0,2,
    482474                        'default' => "",
     
    487479                    [
    488480                        'label' => __( 'Rotate-X', 'wpmp' ),
    489                         'type' => \Elementor\Controls_Manager::NUMBER,
     481                        'type' => Controls_Manager::NUMBER,
    490482                        'step' => 0,2,
    491483                        'default' => "",
     
    496488                    [
    497489                        'label' => __( 'Rotate-Y', 'wpmp' ),
    498                         'type' => \Elementor\Controls_Manager::NUMBER,
     490                        'type' => Controls_Manager::NUMBER,
    499491                        'step' => 0,2,
    500492                        'default' => "",
     
    505497                    [
    506498                        'label' => __( 'Rotate-Z', 'wpmp' ),
    507                         'type' => \Elementor\Controls_Manager::NUMBER,
     499                        'type' => Controls_Manager::NUMBER,
    508500                        'step' => 1,
    509501                        'default' => "",
     
    514506                    [
    515507                        'label' => __( 'Skew-Y', 'wpmp' ),
    516                         'type' => \Elementor\Controls_Manager::NUMBER,
     508                        'type' => Controls_Manager::NUMBER,
    517509                        'step' => 1,
    518510                        'default' => "",
     
    523515                    [
    524516                        'label' => __( 'Skew-Z', 'wpmp' ),
    525                         'type' => \Elementor\Controls_Manager::NUMBER,
     517                        'type' => Controls_Manager::NUMBER,
    526518                        'step' => 1,
    527519                        'default' => "",
     
    534526
    535527        function add_scroll_magic_effect( $element, $section_id, $args ) {
    536             /** @var \Elementor\Element_Base $element */
    537528            if ( 'section_scrollmagic_control' === $section_id  ) {
    538529                $element->start_controls_section(
    539530                    'section_scrollmagic_effect',
    540531                    [
    541                         'tab' => \Elementor\Controls_Manager::TAB_STYLE,
     532                        'tab' => Controls_Manager::TAB_STYLE,
    542533                        'label' => __( 'Scroll Magic effect', 'wpmp' ),
    543534                    ]
    544535                );
    545                 $repeater_e = new \Elementor\Repeater();
     536                $repeater_e = new Repeater();
    546537                $repeater_e->add_control(
    547538                    'title_effect',
    548539                    [
    549540                        'label' => __( 'Title', 'wpmp' ),
    550                         'type' => \Elementor\Controls_Manager::TEXT,
     541                        'type' => Controls_Manager::TEXT,
    551542                        'default' => __( 'Scenes', 'wpmp' ),
    552543                        'placeholder' => __( 'Enter Scenes title', 'wpmp' ),
     
    557548                    [
    558549                        'label' => __( 'Duration', 'wpmp' ),
    559                         'type' => \Elementor\Controls_Manager::NUMBER,
     550                        'type' => Controls_Manager::NUMBER,
    560551                        'step' => 1,
    561552                        'default' => "1",
     
    566557                    [
    567558                        'label' => __( 'Ease', 'wpmp' ),
    568                         'type' => \Elementor\Controls_Manager::SELECT,
     559                        'type' => Controls_Manager::SELECT,
    569560                        'default' => 'Power0.easeNone',
    570561                        'options' => [
     
    608599                    [
    609600                        'label' => __( 'Wight', 'wpmp' ),
    610                         'type' => \Elementor\Controls_Manager::NUMBER,
     601                        'type' => Controls_Manager::NUMBER,
    611602                        'step' => 1,
    612603                        'default' => "",
     
    617608                    [
    618609                        'label' => __( 'Height', 'wpmp' ),
    619                         'type' => \Elementor\Controls_Manager::NUMBER,
     610                        'type' => Controls_Manager::NUMBER,
    620611                        'step' => 1,
    621612                        'default' => "",
     
    626617                    [
    627618                        'label' => __( 'Opacity', 'wpmp' ),
    628                         'type' => \Elementor\Controls_Manager::NUMBER,
     619                        'type' => Controls_Manager::NUMBER,
    629620                        'step' => 0.1,'min' => 0,'max' => 1,
    630621                        'default' => 1,
     
    635626                    [
    636627                        'label' => __( 'Color', 'wpmp' ),
    637                         'type' => \Elementor\Controls_Manager::COLOR,
    638                         'scheme' => [
    639                             'type' => \Elementor\Scheme_Color::get_type(),
    640                             'value' => \Elementor\Scheme_Color::COLOR_1,
    641                         ],
     628                        'type' => Controls_Manager::COLOR,
    642629                        'selectors' => [
    643630                            '{{WRAPPER}} .title' => 'color: {{VALUE}}',
     
    649636                    [
    650637                        'label' => __( 'Background Color', 'wpmp' ),
    651                         'type' => \Elementor\Controls_Manager::COLOR,
    652                         'scheme' => [
    653                             'type' => \Elementor\Scheme_Color::get_type(),
    654                             'value' => \Elementor\Scheme_Color::COLOR_1,
    655                         ],
     638                        'type' => Controls_Manager::COLOR,
    656639                        'selectors' => [
    657640                            '{{WRAPPER}} .title' => 'color: {{VALUE}}',
     
    663646                    [
    664647                        'label' => __( 'Display', 'wpmp' ),
    665                         'type' => \Elementor\Controls_Manager::SELECT,
     648                        'type' => Controls_Manager::SELECT,
    666649                        'default' => 'block',
    667650                        'options' => [
     
    681664                    'hr',
    682665                    [
    683                         'type' => \Elementor\Controls_Manager::DIVIDER,
     666                        'type' => Controls_Manager::DIVIDER,
    684667                    ]
    685668                );
     
    688671                    [
    689672                        'label' => __( 'Transform Origin', 'wpmp' ),
    690                         'type' => \Elementor\Controls_Manager::SELECT,
     673                        'type' => Controls_Manager::SELECT,
    691674                        'default' => 'top-left',
    692675                        'options' => [
     
    707690                    [
    708691                        'label' => __( 'Translate-X', 'wpmp' ),
    709                         'type' => \Elementor\Controls_Manager::NUMBER,
     692                        'type' => Controls_Manager::NUMBER,
    710693                        'step' => 1,
    711694                        'default' => "",
     
    716699                    [
    717700                        'label' => __( 'Translate-Y', 'wpmp' ),
    718                         'type' => \Elementor\Controls_Manager::NUMBER,
     701                        'type' => Controls_Manager::NUMBER,
    719702                        'step' => 1,
    720703                        'default' => "",
     
    725708                    [
    726709                        'label' => __( 'Translate-Z', 'wpmp' ),
    727                         'type' => \Elementor\Controls_Manager::NUMBER,
     710                        'type' => Controls_Manager::NUMBER,
    728711                        'step' => 1,
    729712                        'default' => "",
     
    734717                    [
    735718                        'label' => __( 'Scale-X', 'wpmp' ),
    736                         'type' => \Elementor\Controls_Manager::NUMBER,
     719                        'type' => Controls_Manager::NUMBER,
    737720                        'step' => 0,2,
    738721                        'default' => "",
     
    743726                    [
    744727                        'label' => __( 'Scale-Y', 'wpmp' ),
    745                         'type' => \Elementor\Controls_Manager::NUMBER,
     728                        'type' => Controls_Manager::NUMBER,
    746729                        'step' => 0,2,
    747730                        'default' => "",
     
    752735                    [
    753736                        'label' => __( 'Scale-Z', 'wpmp' ),
    754                         'type' => \Elementor\Controls_Manager::NUMBER,
     737                        'type' => Controls_Manager::NUMBER,
    755738                        'step' => 0,2,
    756739                        'default' => "",
     
    761744                    [
    762745                        'label' => __( 'Rotate-X', 'wpmp' ),
    763                         'type' => \Elementor\Controls_Manager::NUMBER,
     746                        'type' => Controls_Manager::NUMBER,
    764747                        'step' => 0,2,
    765748                        'default' => "",
     
    770753                    [
    771754                        'label' => __( 'Rotate-Y', 'wpmp' ),
    772                         'type' => \Elementor\Controls_Manager::NUMBER,
     755                        'type' => Controls_Manager::NUMBER,
    773756                        'step' => 0,2,
    774757                        'default' => "",
     
    779762                    [
    780763                        'label' => __( 'Rotate-Z', 'wpmp' ),
    781                         'type' => \Elementor\Controls_Manager::NUMBER,
     764                        'type' => Controls_Manager::NUMBER,
    782765                        'step' => 1,
    783766                        'default' => "",
     
    788771                    [
    789772                        'label' => __( 'Skew-Y', 'wpmp' ),
    790                         'type' => \Elementor\Controls_Manager::NUMBER,
     773                        'type' => Controls_Manager::NUMBER,
    791774                        'step' => 1,
    792775                        'default' => "",
     
    797780                    [
    798781                        'label' => __( 'Skew-Z', 'wpmp' ),
    799                         'type' => \Elementor\Controls_Manager::NUMBER,
     782                        'type' => Controls_Manager::NUMBER,
    800783                        'step' => 1,
    801784                        'default' => "",
     
    805788                    'hr2',
    806789                    [
    807                         'type' => \Elementor\Controls_Manager::DIVIDER,
     790                        'type' => Controls_Manager::DIVIDER,
    808791                    ]
    809792                );
     
    812795                    [
    813796                        'label' => __( 'Set yoyo', 'wpmp' ),
    814                         'type' => \Elementor\Controls_Manager::SWITCHER,
     797                        'type' => Controls_Manager::SWITCHER,
    815798                        'label_on' => __( 'On', 'wpmp' ),
    816799                        'label_off' => __( 'Off', 'wpmp' ),
     
    822805                    'wpmp_repeat',
    823806                    [
    824                     'type' => \Elementor\Controls_Manager::NUMBER,
     807                    'type' => Controls_Manager::NUMBER,
    825808                    'label' => __( 'Repeat effect', 'wpmp' ),
    826809                    'step' => '1',
     
    832815                    [
    833816                        'label' => __( 'Scenes', 'wpmp' ),
    834                         'type' => \Elementor\Controls_Manager::REPEATER,
     817                        'type' => Controls_Manager::REPEATER,
    835818                        'fields' => $repeater_e->get_controls(),
    836819                        'default' => [],
  • scroll-magic-addon-for-elementor/trunk/includes/elementor/css.class.php

    r2288386 r2710554  
    7272
    7373    public function enqueue_editor_scripts() {
    74         wp_enqueue_script('prefix-editor-support-js', WPMP_SMG_ELE_URL.'public/js/edittor-shupport.js', array('jquery'), '', true);
     74        wp_enqueue_script('prefix-editor-support-js', WPMP_SMG_ELE_URL.'/assets/public/js/edittor-shupport.js', array('jquery'), WPMP_SMG_ELE_VERSION, true);
    7575    }
    7676
  • scroll-magic-addon-for-elementor/trunk/index.php

    r2297466 r2710554  
    77Author: MagicPages
    88*/
    9 if ( ! defined( 'WPINC' ) ) {
    10     die;
     9if (!defined('WPINC')) {
     10    die;
    1111}
    1212
    13 defined( 'WPMP_SMG_ELE_VERSION' ) or define('WPMP_SMG_ELE_VERSION','1.0.1') ;
    14 defined( 'WPMP_SMG_ELE_URL' ) or define('WPMP_SMG_ELE_URL', plugins_url( '/', __FILE__ )) ;
     13defined('WPMP_SMG_ELE_VERSION') or define('WPMP_SMG_ELE_VERSION', '1.1.0');
     14defined('WPMP_SMG_ELE_URL') or define('WPMP_SMG_ELE_URL', plugins_url('/', __FILE__));
    1515
    16 defined( 'WPMP_CATEGORY' ) or define('WPMP_CATEGORY','Wpmp_SM_ctgr') ;
     16defined('WPMP_CATEGORY') or define('WPMP_CATEGORY', 'Wpmp_SM_ctgr');
    1717
    18 if ( ! class_exists( 'Wpmp_ScrollMagic_Elementor' ) ) {
    19    
    20   class Wpmp_ScrollMagic_Elementor{
    21     public function __construct(){
    22       add_action( 'init' ,[$this,'actionInit']);
     18if (!class_exists('Wpmp_ScrollMagic_Elementor')) {
    2319
    24     }
    25     function actionInit(){
    26       include_once 'includes/index.php';
    27             add_action( 'wp_enqueue_scripts', [ $this, 'enqueueScripts'] );
     20    class Wpmp_ScrollMagic_Elementor
     21    {
     22        public function __construct()
     23        {
     24            add_action('init', [$this, 'actionInit']);
     25        }
     26
     27        function actionInit()
     28        {
     29            include_once 'includes/index.php';
     30            add_action('wp_enqueue_scripts', [$this, 'enqueueScripts']);
     31        }
     32
     33        public function enqueueScripts()
     34        {
     35            wp_enqueue_style('wpmp-css', WPMP_SMG_ELE_URL . 'assets/public/css/wpmp.css');
     36            wp_enqueue_style('animate', WPMP_SMG_ELE_URL . 'assets/lib/animate/animate.min.css');
     37            wp_enqueue_style('magic', WPMP_SMG_ELE_URL . 'assets/lib/animate/magic.min.css');
     38            wp_enqueue_script('jQuery');
     39            wp_enqueue_script('gsap', WPMP_SMG_ELE_URL . 'assets/lib/gsap/gsap.min.js', array('jquery'), WPMP_SMG_ELE_VERSION, true);
     40            wp_enqueue_script('DrawSVG', WPMP_SMG_ELE_URL . 'assets/lib/gsap/DrawSVG.min.js', array('jquery'), WPMP_SMG_ELE_VERSION, true);
     41            wp_enqueue_script('SplitText3', WPMP_SMG_ELE_URL . 'assets/lib/gsap/SplitText3.min.js', array('jquery'), WPMP_SMG_ELE_VERSION, true);
     42            wp_enqueue_script('ScrollMagic', WPMP_SMG_ELE_URL . 'assets/lib/scrollmagic/minified/ScrollMagic.min.js', array('jquery'), WPMP_SMG_ELE_VERSION, true);
     43            wp_enqueue_script('animation-gsap', WPMP_SMG_ELE_URL . 'assets/lib/scrollmagic/minified/plugins/animation.gsap.min.js', array('jquery'), WPMP_SMG_ELE_VERSION, true);
     44            wp_enqueue_script('debug-addIndicators', WPMP_SMG_ELE_URL . 'assets/lib/scrollmagic/minified/plugins/debug.addIndicators.min.js', array('jquery'), WPMP_SMG_ELE_VERSION, true);
     45            wp_enqueue_script('wpmp-js', WPMP_SMG_ELE_URL . 'assets/public/js/wpmp.js', array('jquery'), WPMP_SMG_ELE_VERSION, true);
     46
     47        }
    2848    }
    2949
    30         public function enqueueScripts() {
    31       wp_enqueue_style( 'wpmp-css', WPMP_SMG_ELE_URL . 'assets/public/css/wpmp.css' );
    32       wp_enqueue_style( 'animate', WPMP_SMG_ELE_URL . 'assets/lib/animate/animate.min.css' );
    33       wp_enqueue_style( 'magic', WPMP_SMG_ELE_URL . 'assets/lib/animate/magic.min.css' );
    34       wp_enqueue_script( 'jQuery');
    35       wp_enqueue_script( 'gsap', WPMP_SMG_ELE_URL . 'assets/lib/gsap/gsap.min.js',array( 'jquery' ), WPMP_SMG_ELE_VERSION, true );
    36       wp_enqueue_script( 'DrawSVG', WPMP_SMG_ELE_URL . 'assets/lib/gsap/DrawSVG.min.js',array( 'jquery' ), WPMP_SMG_ELE_VERSION, true );
    37       wp_enqueue_script( 'SplitText3', WPMP_SMG_ELE_URL . 'assets/lib/gsap/SplitText3.min.js',array( 'jquery' ), WPMP_SMG_ELE_VERSION, true );
    38             wp_enqueue_script( 'ScrollMagic', WPMP_SMG_ELE_URL . 'assets/lib/scrollmagic/minified/ScrollMagic.min.js',array( 'jquery' ), WPMP_SMG_ELE_VERSION, true );
    39             wp_enqueue_script( 'animation-gsap', WPMP_SMG_ELE_URL . 'assets/lib/scrollmagic/minified/plugins/animation.gsap.min.js',array( 'jquery' ), WPMP_SMG_ELE_VERSION, true );
    40             wp_enqueue_script( 'debug-addIndicators', WPMP_SMG_ELE_URL . 'assets/lib/scrollmagic/minified/plugins/debug.addIndicators.min.js',array( 'jquery' ), WPMP_SMG_ELE_VERSION, true );
    41       wp_enqueue_script( 'wpmp-js', WPMP_SMG_ELE_URL . 'assets/public/js/wpmp.js', array( 'jquery' ), WPMP_SMG_ELE_VERSION, true );
    42      
    43         }
     50    new Wpmp_ScrollMagic_Elementor();
     51}
    4452
    45 
    46   }
    47   new Wpmp_ScrollMagic_Elementor();
    48 }
    49 ?>
  • scroll-magic-addon-for-elementor/trunk/readme.txt

    r2297466 r2710554  
    5656
    5757== Changelog ==
     58= 1.0.1 - 16/05/2022 =
     59- Fixed: Compatible with elementor version 3.6.4
    5860
    5961= 1.0.1 - 04/05/2020 =
Note: See TracChangeset for help on using the changeset viewer.