Plugin Directory

Changeset 2567014


Ignore:
Timestamp:
07/19/2021 07:44:01 AM (5 years ago)
Author:
Lars-
Message:

Fixed readme

Location:
jvh-easy-scss-and-js/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • jvh-easy-scss-and-js/trunk/init.php

    r2567009 r2567014  
    33 * Plugin Name:       Easy SCSS and JS
    44 * Description:       This plugin adds SCSS functionality, compresses JS for you and creates an easy way to enqueue scripts and styles as well as localize them.
    5  * Version:           2.1.3
     5 * Version:           2.1.4
    66 * Author:            LJPc solutions | Lars Jansen
    77 * Author URI:        https://www.ljpc.solutions
  • jvh-easy-scss-and-js/trunk/readme.txt

    r2567009 r2567014  
    88Requires at least: 5.5
    99Tested up to: 5.8
    10 Stable tag: 2.1.3
     10Stable tag: 2.1.4
    1111Requires PHP: 7.4
    12 Version: 2.1.3
     12Version: 2.1.4
    1313
    1414== Description ==
     
    3030
    3131You can now do this in your functions.php with styles:
     32
    3233    <?php
    3334    add_action('wp_enqueue_scripts', static function(){
     
    5354
    5455And this with scripts:
     56
    5557    <?php
    5658    add_action('wp_enqueue_scripts', static function(){
     
    8183
    8284Use variables in SCSS:
     85
    8386    // This is recommended. It will throw a fatal error if your PHP doesn't set the variable for some reason.
    8487    // If PHP does set it, it will replace $my_cool_color with the defined color in PHP.
     
    9093
    9194Use variables in JS:
     95
    9296    alert(my_script_handle_vars.my_variable);
    9397
Note: See TracChangeset for help on using the changeset viewer.