Plugin Directory

Changeset 1802199


Ignore:
Timestamp:
01/13/2018 06:31:38 AM (8 years ago)
Author:
FrodoBean
Message:

Added custom viewport selection in plugin settings, modified plugin tags.

Location:
ra-widgets-animate/trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • ra-widgets-animate/trunk/languages/ra-widgets-animate.pot

    r1799350 r1802199  
    44"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
    55"Project-Id-Version: RA Widgets Animate\n"
    6 "POT-Creation-Date: 2018-01-09 07:38+0800\n"
    7 "PO-Revision-Date: 2018-01-09 07:37+0800\n"
     6"POT-Creation-Date: 2018-01-13 14:15+0800\n"
     7"PO-Revision-Date: 2018-01-13 14:15+0800\n"
    88"Last-Translator: \n"
    99"Language-Team: \n"
     
    4343msgstr ""
    4444
    45 #: ra-widgets-animate.php:113 ra-widgets-animate.php:489
     45#: ra-widgets-animate.php:113 ra-widgets-animate.php:492
    4646msgid "Offset"
    4747msgstr ""
     
    5151msgstr ""
    5252
    53 #: ra-widgets-animate.php:121 ra-widgets-animate.php:497
     53#: ra-widgets-animate.php:121 ra-widgets-animate.php:500
    5454msgid "Duration"
    5555msgstr ""
    5656
    5757#: ra-widgets-animate.php:123
    58 msgid "*Duration of animation (ms)"
    59 msgstr ""
    60 
    61 #: ra-widgets-animate.php:129 ra-widgets-animate.php:480
     58msgid "Duration of animation (ms)"
     59msgstr ""
     60
     61#: ra-widgets-animate.php:129 ra-widgets-animate.php:483
    6262msgid "Easing"
    6363msgstr ""
     
    6767msgstr ""
    6868
    69 #: ra-widgets-animate.php:138 ra-widgets-animate.php:505
     69#: ra-widgets-animate.php:138 ra-widgets-animate.php:508
    7070msgid "Delay"
    7171msgstr ""
     
    9999msgstr ""
    100100
    101 #: ra-widgets-animate.php:160 ra-widgets-animate.php:513
     101#: ra-widgets-animate.php:154
     102msgid "Custom"
     103msgstr ""
     104
     105#: ra-widgets-animate.php:161
     106msgid "Custom Width"
     107msgstr ""
     108
     109#: ra-widgets-animate.php:163
     110msgid "Enter the viewport width to which AOS will be disabled"
     111msgstr ""
     112
     113#: ra-widgets-animate.php:169 ra-widgets-animate.php:516
    102114msgid "Once"
    103115msgstr ""
    104116
    105 #: ra-widgets-animate.php:162
     117#: ra-widgets-animate.php:171
    106118msgid ""
    107119"Choose whether animation should fire once, or every time you scroll up/down "
     
    109121msgstr ""
    110122
    111 #: ra-widgets-animate.php:165 ra-widgets-animate.php:177
    112 #: ra-widgets-animate.php:188
     123#: ra-widgets-animate.php:174 ra-widgets-animate.php:186
     124#: ra-widgets-animate.php:197
    113125msgid "Yes"
    114126msgstr ""
    115127
    116 #: ra-widgets-animate.php:172
    117 msgid "Disable AoS Styles"
    118 msgstr ""
    119 
    120 #: ra-widgets-animate.php:175
     128#: ra-widgets-animate.php:181
     129msgid "Disable style"
     130msgstr ""
     131
     132#: ra-widgets-animate.php:184
    121133msgid ""
    122134"Disable Animate on Scroll stylesheet, e.g. already present on your theme or "
     
    124136msgstr ""
    125137
    126 #: ra-widgets-animate.php:183
    127 msgid "Disable AoS Script"
    128 msgstr ""
    129 
    130 #: ra-widgets-animate.php:186
     138#: ra-widgets-animate.php:192
     139msgid "Disable script"
     140msgstr ""
     141
     142#: ra-widgets-animate.php:195
    131143msgid ""
    132144"Disable Animate on Scroll script, e.g. already present on your theme or "
     
    134146msgstr ""
    135147
    136 #: ra-widgets-animate.php:270
    137 msgid "Widgets Animate Settings"
    138 msgstr ""
    139 
    140 #: ra-widgets-animate.php:285
    141 msgid "Your settings have been reverted to defaults!"
    142 msgstr ""
    143 
    144 #: ra-widgets-animate.php:312
     148#: ra-widgets-animate.php:279
     149msgid "RA Widgets Animate Settings"
     150msgstr ""
     151
     152#: ra-widgets-animate.php:315
    145153msgid "Animation Settings"
    146154msgstr ""
    147155
    148 #: ra-widgets-animate.php:315
     156#: ra-widgets-animate.php:318
    149157msgid "Animation:"
    150158msgstr ""
    151159
    152 #: ra-widgets-animate.php:321 ra-widgets-animate.php:458
     160#: ra-widgets-animate.php:324 ra-widgets-animate.php:461
    153161msgid "Choose from several predefined animations."
    154162msgstr ""
    155163
    156 #: ra-widgets-animate.php:324
     164#: ra-widgets-animate.php:327
    157165msgid "Anchor:"
    158166msgstr ""
    159167
    160 #: ra-widgets-animate.php:326 ra-widgets-animate.php:466
     168#: ra-widgets-animate.php:329 ra-widgets-animate.php:469
    161169msgid ""
    162170"Anchor element, whose offset will be counted to trigger animation instead of "
     
    164172msgstr ""
    165173
    166 #: ra-widgets-animate.php:329
     174#: ra-widgets-animate.php:332
    167175msgid "Anchor Placement:"
    168176msgstr ""
    169177
    170 #: ra-widgets-animate.php:335 ra-widgets-animate.php:475
     178#: ra-widgets-animate.php:338 ra-widgets-animate.php:478
    171179msgid ""
    172180"Select which position of element on the screen should trigger animation."
    173181msgstr ""
    174182
    175 #: ra-widgets-animate.php:338
     183#: ra-widgets-animate.php:341
    176184msgid "Easing:"
    177185msgstr ""
    178186
    179 #: ra-widgets-animate.php:344 ra-widgets-animate.php:484
     187#: ra-widgets-animate.php:347 ra-widgets-animate.php:487
    180188msgid "Choose timing function to ease elements in different ways."
    181189msgstr ""
    182190
    183 #: ra-widgets-animate.php:347
     191#: ra-widgets-animate.php:350
    184192msgid "Offset:"
    185193msgstr ""
    186194
    187 #: ra-widgets-animate.php:349 ra-widgets-animate.php:492
     195#: ra-widgets-animate.php:352 ra-widgets-animate.php:495
    188196msgid "Change offset to trigger animations sooner or later (px)."
    189197msgstr ""
    190198
    191 #: ra-widgets-animate.php:352
     199#: ra-widgets-animate.php:355
    192200msgid "Duration:"
    193201msgstr ""
    194202
    195 #: ra-widgets-animate.php:354
     203#: ra-widgets-animate.php:357 ra-widgets-animate.php:503
    196204msgid "Duration of animation (ms)."
    197205msgstr ""
    198206
    199 #: ra-widgets-animate.php:357
     207#: ra-widgets-animate.php:360
    200208msgid "Delay:"
    201209msgstr ""
    202210
    203 #: ra-widgets-animate.php:359 ra-widgets-animate.php:508
     211#: ra-widgets-animate.php:362 ra-widgets-animate.php:511
    204212msgid "Delay animation (ms)."
    205213msgstr ""
    206214
    207 #: ra-widgets-animate.php:362
     215#: ra-widgets-animate.php:365
    208216msgid "Once:"
    209217msgstr ""
    210218
    211 #: ra-widgets-animate.php:364 ra-widgets-animate.php:516
     219#: ra-widgets-animate.php:367 ra-widgets-animate.php:519
    212220msgid ""
    213221"Choose whether animation should fire once, or every time you scroll up/down "
     
    215223msgstr ""
    216224
    217 #: ra-widgets-animate.php:430
     225#: ra-widgets-animate.php:433
    218226msgid "Animation"
    219227msgstr ""
    220228
    221 #: ra-widgets-animate.php:454
     229#: ra-widgets-animate.php:457
    222230msgid "Type"
    223231msgstr ""
    224232
    225 #: ra-widgets-animate.php:463
     233#: ra-widgets-animate.php:466
    226234msgid "Anchor"
    227235msgstr ""
    228236
    229 #: ra-widgets-animate.php:471
     237#: ra-widgets-animate.php:474
    230238msgid "Anchor Placement"
    231239msgstr ""
    232240
    233 #: ra-widgets-animate.php:500
    234 msgid "Duration of animation in milliseconds."
    235 msgstr ""
    236 
    237 #: ra-widgets-animate.php:606
     241#: ra-widgets-animate.php:616
    238242msgid "No Animation"
    239243msgstr ""
    240244
    241 #: ra-widgets-animate.php:608
     245#: ra-widgets-animate.php:618
    242246msgid "Fade"
    243247msgstr ""
    244248
    245 #: ra-widgets-animate.php:609
     249#: ra-widgets-animate.php:619
    246250msgid "Fade Up"
    247251msgstr ""
    248252
    249 #: ra-widgets-animate.php:610
     253#: ra-widgets-animate.php:620
    250254msgid "Fade Down"
    251255msgstr ""
    252256
    253 #: ra-widgets-animate.php:611
     257#: ra-widgets-animate.php:621
    254258msgid "Fade Left"
    255259msgstr ""
    256260
    257 #: ra-widgets-animate.php:612
     261#: ra-widgets-animate.php:622
    258262msgid "Fade Right"
    259263msgstr ""
    260264
    261 #: ra-widgets-animate.php:613
     265#: ra-widgets-animate.php:623
    262266msgid "Fade Up Right"
    263267msgstr ""
    264268
    265 #: ra-widgets-animate.php:614
     269#: ra-widgets-animate.php:624
    266270msgid "Fade Up Left"
    267271msgstr ""
    268272
    269 #: ra-widgets-animate.php:615
     273#: ra-widgets-animate.php:625
    270274msgid "Fade Down Right"
    271275msgstr ""
    272276
    273 #: ra-widgets-animate.php:616
     277#: ra-widgets-animate.php:626
    274278msgid "Fade Down Left"
    275279msgstr ""
    276280
    277 #: ra-widgets-animate.php:618
     281#: ra-widgets-animate.php:628
    278282msgid "Flip Up"
    279283msgstr ""
    280284
    281 #: ra-widgets-animate.php:619
     285#: ra-widgets-animate.php:629
    282286msgid "Flip Down"
    283287msgstr ""
    284288
    285 #: ra-widgets-animate.php:620
     289#: ra-widgets-animate.php:630
    286290msgid "Flip Left"
    287291msgstr ""
    288292
    289 #: ra-widgets-animate.php:621
     293#: ra-widgets-animate.php:631
    290294msgid "Flip Right"
    291295msgstr ""
    292296
    293 #: ra-widgets-animate.php:623
     297#: ra-widgets-animate.php:633
    294298msgid "Slide Up"
    295299msgstr ""
    296300
    297 #: ra-widgets-animate.php:624
     301#: ra-widgets-animate.php:634
    298302msgid "Slide Down"
    299303msgstr ""
    300304
    301 #: ra-widgets-animate.php:625
     305#: ra-widgets-animate.php:635
    302306msgid "Slide Left"
    303307msgstr ""
    304308
    305 #: ra-widgets-animate.php:626
     309#: ra-widgets-animate.php:636
    306310msgid "Slide Right"
    307311msgstr ""
    308312
    309 #: ra-widgets-animate.php:628 ra-widgets-animate.php:633
     313#: ra-widgets-animate.php:638 ra-widgets-animate.php:643
    310314msgid "Zoom In"
    311315msgstr ""
    312316
    313 #: ra-widgets-animate.php:629 ra-widgets-animate.php:634
     317#: ra-widgets-animate.php:639 ra-widgets-animate.php:644
    314318msgid "Zoom In Up"
    315319msgstr ""
    316320
    317 #: ra-widgets-animate.php:630 ra-widgets-animate.php:635
     321#: ra-widgets-animate.php:640 ra-widgets-animate.php:645
    318322msgid "Zoom In Down"
    319323msgstr ""
    320324
    321 #: ra-widgets-animate.php:631 ra-widgets-animate.php:636
     325#: ra-widgets-animate.php:641 ra-widgets-animate.php:646
    322326msgid "Zoom In Left"
    323327msgstr ""
    324328
    325 #: ra-widgets-animate.php:632 ra-widgets-animate.php:637
     329#: ra-widgets-animate.php:642 ra-widgets-animate.php:647
    326330msgid "Zoom In Right"
    327331msgstr ""
    328332
    329 #: ra-widgets-animate.php:646 ra-widgets-animate.php:664
     333#: ra-widgets-animate.php:656 ra-widgets-animate.php:674
    330334msgid "Default"
    331335msgstr ""
    332336
    333 #: ra-widgets-animate.php:647
     337#: ra-widgets-animate.php:657
    334338msgid "Top Bottom"
    335339msgstr ""
    336340
    337 #: ra-widgets-animate.php:648
     341#: ra-widgets-animate.php:658
    338342msgid "Top Center"
    339343msgstr ""
    340344
    341 #: ra-widgets-animate.php:649
     345#: ra-widgets-animate.php:659
    342346msgid "Top Top"
    343347msgstr ""
    344348
    345 #: ra-widgets-animate.php:650
     349#: ra-widgets-animate.php:660
    346350msgid "Center Bottom"
    347351msgstr ""
    348352
    349 #: ra-widgets-animate.php:651
     353#: ra-widgets-animate.php:661
    350354msgid "Center Center"
    351355msgstr ""
    352356
    353 #: ra-widgets-animate.php:652
     357#: ra-widgets-animate.php:662
    354358msgid "Center Top"
    355359msgstr ""
    356360
    357 #: ra-widgets-animate.php:653
     361#: ra-widgets-animate.php:663
    358362msgid "Bottom Bottom"
    359363msgstr ""
    360364
    361 #: ra-widgets-animate.php:654
     365#: ra-widgets-animate.php:664
    362366msgid "Bottom Center"
    363367msgstr ""
    364368
    365 #: ra-widgets-animate.php:655
     369#: ra-widgets-animate.php:665
    366370msgid "Bottom Top"
    367371msgstr ""
    368372
    369 #: ra-widgets-animate.php:665
     373#: ra-widgets-animate.php:675
    370374msgid "Linear"
    371375msgstr ""
    372376
    373 #: ra-widgets-animate.php:666
     377#: ra-widgets-animate.php:676
    374378msgid "Ease"
    375379msgstr ""
    376380
    377 #: ra-widgets-animate.php:667
     381#: ra-widgets-animate.php:677
    378382msgid "Ease In"
    379383msgstr ""
    380384
    381 #: ra-widgets-animate.php:668
     385#: ra-widgets-animate.php:678
    382386msgid "Ease Out"
    383387msgstr ""
    384388
    385 #: ra-widgets-animate.php:669
     389#: ra-widgets-animate.php:679
    386390msgid "Ease In Out"
    387391msgstr ""
    388392
    389 #: ra-widgets-animate.php:670
     393#: ra-widgets-animate.php:680
    390394msgid "Ease In Back"
    391395msgstr ""
    392396
    393 #: ra-widgets-animate.php:671
     397#: ra-widgets-animate.php:681
    394398msgid "Ease Out Back"
    395399msgstr ""
    396400
    397 #: ra-widgets-animate.php:672
     401#: ra-widgets-animate.php:682
    398402msgid "Ease In Out Back"
    399403msgstr ""
    400404
    401 #: ra-widgets-animate.php:673
     405#: ra-widgets-animate.php:683
    402406msgid "Ease In Sine"
    403407msgstr ""
    404408
    405 #: ra-widgets-animate.php:674
     409#: ra-widgets-animate.php:684
    406410msgid "Ease Out Sine"
    407411msgstr ""
    408412
    409 #: ra-widgets-animate.php:675
     413#: ra-widgets-animate.php:685
    410414msgid "Ease In Out Sine"
    411415msgstr ""
    412416
    413 #: ra-widgets-animate.php:676
     417#: ra-widgets-animate.php:686
    414418msgid "Ease In Quad"
    415419msgstr ""
    416420
    417 #: ra-widgets-animate.php:677
     421#: ra-widgets-animate.php:687
    418422msgid "Ease Out Quad"
    419423msgstr ""
    420424
    421 #: ra-widgets-animate.php:678
     425#: ra-widgets-animate.php:688
    422426msgid "Ease In Out Quad"
    423427msgstr ""
    424428
    425 #: ra-widgets-animate.php:679
     429#: ra-widgets-animate.php:689
    426430msgid "Ease In Cubic"
    427431msgstr ""
    428432
    429 #: ra-widgets-animate.php:680
     433#: ra-widgets-animate.php:690
    430434msgid "Ease Out Cubic"
    431435msgstr ""
    432436
    433 #: ra-widgets-animate.php:681
     437#: ra-widgets-animate.php:691
    434438msgid "Ease In Out Cubic"
    435439msgstr ""
    436440
    437 #: ra-widgets-animate.php:682
     441#: ra-widgets-animate.php:692
    438442msgid "Ease In Quart"
    439443msgstr ""
    440444
    441 #: ra-widgets-animate.php:683
     445#: ra-widgets-animate.php:693
    442446msgid "Ease Out Quart"
    443447msgstr ""
    444448
    445 #: ra-widgets-animate.php:684
     449#: ra-widgets-animate.php:694
    446450msgid "Ease In Out Quart"
    447451msgstr ""
  • ra-widgets-animate/trunk/public/js/rawa.js

    r1799350 r1802199  
    66        delay: parseInt(rawa_aos.delay),
    77        anchor: rawa_aos.anchor,
    8         disable: rawa_aos.disable,
     8        disable: function() {
     9            switch(rawa_aos.disable) {
     10                case 'phone':
     11                    return 'phone';
     12                    break;
     13                case 'mobile':
     14                default:
     15                    return 'mobile';
     16                    break;
     17                case 'tablet':
     18                    return 'tablet';
     19                    break;
     20                case 'custom':
     21                    var maxWidth = parseInt(rawa_aos.custom);
     22                    return window.innerWidth < maxWidth;
     23                    break;
     24            }
     25        },
    926        once: (rawa_aos.once == "true"),
    1027    });
  • ra-widgets-animate/trunk/public/js/rawa.min.js

    r1797674 r1802199  
    1 jQuery,AOS.init({offset:parseInt(rawa_aos.offset),duration:parseInt(rawa_aos.duration),easing:rawa_aos.easing,delay:parseInt(rawa_aos.delay),anchor:rawa_aos.anchor,disable:rawa_aos.disable,once:"true"==rawa_aos.once});
     1jQuery,AOS.init({offset:parseInt(rawa_aos.offset),duration:parseInt(rawa_aos.duration),easing:rawa_aos.easing,delay:parseInt(rawa_aos.delay),anchor:rawa_aos.anchor,disable:function(){switch(rawa_aos.disable){case"phone":return"phone";case"mobile":default:return"mobile";case"tablet":return"tablet";case"custom":var a=parseInt(rawa_aos.custom);return window.innerWidth<a}},once:"true"==rawa_aos.once});
  • ra-widgets-animate/trunk/ra-widgets-animate.php

    r1799350 r1802199  
    44Plugin URI:  https://github.com/webdevsuperfast/ra-widgets-animate
    55Description: Animate widgets using Animate on Scroll library.
    6 Version:     1.1.5
     6Version:     1.1.6
    77Author:      Rotsen Mark Acob
    88Author URI:  https://rotsenacob.com/
     
    121121                'label' => __( 'Duration', 'ra-widgets-animate' ),
    122122                'type' => 'number',
    123                 'supplimental' => __( '*Duration of animation (ms)', 'ra-widgets-animate' ),
     123                'supplimental' => __( 'Duration of animation (ms)', 'ra-widgets-animate' ),
    124124                'default' => 400,
    125125            ),
     
    151151                    'mobile' => __( 'Mobile(Phones/Tablets)', 'ra-widgets-animate' ),
    152152                    'phone' => __( 'Phone', 'ra-widgets-animate' ),
    153                     'tablet' => __( 'Tablet', 'ra-widgets-animate' )
     153                    'tablet' => __( 'Tablet', 'ra-widgets-animate' ),
     154                    'custom' => __( 'Custom', 'ra-widgets-animate' )
    154155                ),
    155156                'default' => array()
     157            ),
     158            array(
     159                'uid' => 'rawa_aos_custom',
     160                'section' => 'aos_settings',
     161                'label' => __( 'Custom Width', 'ra-widgets-animate' ),
     162                'type' => 'number',
     163                'supplimental' => __( 'Enter the viewport width to which AOS will be disabled', 'ra-widgets-animate' ),
     164                'default' => 768
    156165            ),
    157166            array(
     
    170179            array(
    171180                'uid' => 'rawa_aos_css',
    172                 'label' => __( 'Disable AoS Styles', 'ra-widgets-animate' ),
     181                'label' => __( 'Disable style', 'ra-widgets-animate' ),
    173182                'section' => 'aos_scripts',
    174183                'type' => 'checkbox',
     
    181190            array(
    182191                'uid' => 'rawa_aos_js',
    183                 'label' => __( 'Disable AoS Script', 'ra-widgets-animate' ),
     192                'label' => __( 'Disable script', 'ra-widgets-animate' ),
    184193                'section' => 'aos_scripts',
    185194                'type' => 'checkbox',
     
    268277
    269278        <div class="wrap">
    270             <h2><?php _e( 'Widgets Animate Settings', 'ra-widgets-animate' ); ?></h2>
     279            <h2><?php _e( 'RA Widgets Animate Settings', 'ra-widgets-animate' ); ?></h2>
    271280            <hr>
    272281            <form action="options.php" method="post">
     
    279288        </div>
    280289       
    281     <?php }
    282 
    283     public function rawa_admin_notice() { ?>
    284         <div class="notice notice-success is-dismissible">
    285             <p><?php _e( 'Your settings have been reverted to defaults!', 'ra-widgets-animate' ); ?></p>
    286         </div>
    287290    <?php }
    288291
     
    498501            'type' => 'text',
    499502            'group' => 'animation',
    500             'description' => __( 'Duration of animation in milliseconds.', 'ra-widgets-animate' ),
     503            'description' => __( 'Duration of animation (ms).', 'ra-widgets-animate' ),
    501504            'priority' => 25
    502505        );
     
    570573            $delay = get_option( 'rawa_aos_delay', 0 );
    571574            $disable = get_option( 'rawa_aos_disable', false );
     575            $custom = get_option( 'rawa_aos_custom', '768' );
    572576            $once = get_option( 'rawa_aos_once' );
    573577
     
    578582                'delay' => (int) $delay,
    579583                'disable' => $disable[0] ? $disable[0] : "false",
     584                'custom' => (int) $custom,
    580585                'once' => $once[0] == 'enabled' ? "true" : "false"
    581586            ) );
     
    593598            wp_register_script( 'rawa-admin-js', plugin_dir_url( __FILE__ ) . 'admin/js/rawa-admin.js', array( 'jquery' ), null, true );
    594599            wp_enqueue_script( 'rawa-admin-js' );
     600        }
     601
     602        if ( $current_page->id === 'settings_page_rawa_settings' ) {
     603            wp_register_script( 'rawa-settings-js', plugin_dir_url( __FILE__ ) . 'admin/js/rawa-settings.js', array( 'jquery' ), null, true );
     604            wp_enqueue_script( 'rawa-settings-js' );
    595605        }
    596606    }
  • ra-widgets-animate/trunk/readme.txt

    r1799366 r1802199  
    22Contributors: frodoBean
    33Donate link: https://paypal.me/webdevsuperfast
    4 Tags: aos, animate on scroll, Siteorigion page builder, animation, widgets, siteorigin panels
     4Tags: aos, animate-on-scroll, siteorigin-page-builder, page-builder-animation, animation, animate, siteorigin-panels-animate
    55Requires at least: 4.7
    66Tested up to: 4.9.1
    7 Stable tag: 1.1.5
     7Stable tag: 1.1.6
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    5757
    5858== Changelog ==
     59
     60= 1.1.6 =
     61* Added custom viewport selection in plugin settings.
     62* Modified plugin tags.
     63
    5964= 1.1.5 =
    6065* Changed style and script filenames and paths.
     
    105110== Upgrade Notice ==
    106111
     112= 1.1.6 =
     113Added custom viewport selection in plugin settings, modified plugin tags.
     114
    107115= 1.1.5 =
    108116Filepath, filename changes, bug fixes, customizer implementation.
Note: See TracChangeset for help on using the changeset viewer.