Plugin Directory

Changeset 1864799


Ignore:
Timestamp:
04/26/2018 01:20:40 PM (8 years ago)
Author:
matt.burnett
Message:
  • Add Chosen library for multi select lists
Location:
yumjam-require-login/trunk
Files:
8 added
2 edited

Legend:

Unmodified
Added
Removed
  • yumjam-require-login/trunk/readme.txt

    r1852463 r1864799  
    4545== Changelog ==
    4646
     47= 1.1.1 =
     48* Add Chosen library for multi select lists
     49
    4750= 1.1.0 =
    4851* add ability to select "No Logo" to remove the image from the Login Page
  • yumjam-require-login/trunk/require_login.php

    r1858902 r1864799  
    1212 * Plugin URI: http://www.yumjam.co.uk/yumjam-wordpress-plugins/require-login/
    1313 * Description: Disable the public site functionality, always prompt for a login before showing content, make wordpress and intranet style site
    14  * Version: 1.1.0
     14 * Version: 1.1.1
    1515 * Author: YumJam
    1616 * Author URI: http://www.yumjam.co.uk
     
    2020 * Tags: comments
    2121 * Requires at least: 4.0
    22  * Tested up to: 4.9.4
    23  * Stable tag: 4.9.4
     22 * Tested up to: 4.9.5
     23 * Stable tag: 4.9.5
    2424 */
    2525if (!defined('ABSPATH')) {
     
    420420         */
    421421        public function rl_backend_scripts($hook) {
    422             /* if ('edit.php' != $hook) {
    423               return;
    424               } */
     422            wp_enqueue_media();
     423           
     424            if (wp_style_is( 'chosen', 'registered' )) {
     425                //remove old chosen style
     426                wp_deregister_style('chosen');
     427            }
     428           
     429            wp_register_style('chosen', YJRL_PLUGIN_URL . 'lib/chosen/chosen.css');
     430            wp_enqueue_style('chosen');
     431           
    425432            wp_enqueue_style('rl-back-style', YJRL_PLUGIN_URL . 'css/admin.css');
    426433            wp_enqueue_script('rl-front', YJRL_PLUGIN_URL . 'js/admin.js', array('jquery'), '1.0.0', true);
     434            wp_enqueue_script('yj-chosen', YJRL_PLUGIN_URL . 'lib/chosen/chosen.jquery.js', array('jquery', 'wp-color-picker',      'jquery-ui-core', 'jquery-ui-slider'), '1.5.1', true);         
    427435        }
    428436
Note: See TracChangeset for help on using the changeset viewer.