Changeset 2567014
- Timestamp:
- 07/19/2021 07:44:01 AM (5 years ago)
- Location:
- jvh-easy-scss-and-js/trunk
- Files:
-
- 2 edited
-
init.php (modified) (1 diff)
-
readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
jvh-easy-scss-and-js/trunk/init.php
r2567009 r2567014 3 3 * Plugin Name: Easy SCSS and JS 4 4 * 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. 35 * Version: 2.1.4 6 6 * Author: LJPc solutions | Lars Jansen 7 7 * Author URI: https://www.ljpc.solutions -
jvh-easy-scss-and-js/trunk/readme.txt
r2567009 r2567014 8 8 Requires at least: 5.5 9 9 Tested up to: 5.8 10 Stable tag: 2.1. 310 Stable tag: 2.1.4 11 11 Requires PHP: 7.4 12 Version: 2.1. 312 Version: 2.1.4 13 13 14 14 == Description == … … 30 30 31 31 You can now do this in your functions.php with styles: 32 32 33 <?php 33 34 add_action('wp_enqueue_scripts', static function(){ … … 53 54 54 55 And this with scripts: 56 55 57 <?php 56 58 add_action('wp_enqueue_scripts', static function(){ … … 81 83 82 84 Use variables in SCSS: 85 83 86 // This is recommended. It will throw a fatal error if your PHP doesn't set the variable for some reason. 84 87 // If PHP does set it, it will replace $my_cool_color with the defined color in PHP. … … 90 93 91 94 Use variables in JS: 95 92 96 alert(my_script_handle_vars.my_variable); 93 97
Note: See TracChangeset
for help on using the changeset viewer.