Plugin Directory

Changeset 1828085


Ignore:
Timestamp:
02/23/2018 11:49:03 PM (8 years ago)
Author:
shedsimas
Message:

tagging version 1.2

Location:
quick-recommend/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • quick-recommend/trunk/quick-recommend.php

    r1813251 r1828085  
    55Plugin URI:     http://oncapublishing.com/projects/quick-recommend
    66Description:    Add a recommendation box to the bottom of your posts. Great for promoting books, movies, and other products when that is not the primary focus of your blog.
    7 Version:        1.1
    8 Author: Shed Simas, Onça Publishing
     7Version:        1.2
     8Author:         Shed Simas, Onça Publishing
    99Author URI:     http://oncapublishing.com
    1010License:        GPL2
     
    2121        1.2 - register custom admin column data
    2222        1.3 - load external files to public website
    23         1.4 - Advanced Custom Fields Settings
    24         1.5 - register our custom menus
    25         1.6 - load external files in WordPress admin
    26         1.7 - register plugin options
    27         1.8 - register activate/deactivate/uninstall functions
    28         1.9 - register cotent filter
    29         1.10 - register the relationship filter
     23        1.4 - register our custom menus
     24        1.5 - load external files in WordPress admin
     25        1.6 - register plugin options
     26        1.7 - register activate/deactivate/uninstall functions
     27        1.8 - register cotent filter
     28        1.9 - register the relationship filter
    3029   
    3130    2. SHORTCODES
     
    4140       
    4241    4. EXTERNAL SCRIPTS
    43         4.1 - Include ACF
     42        4.1 - Advance Custom Fields settings
    4443        4.2 - qrec_public_scripts()
    4544        4.3 - loads external files into wordpress ADMIN
     
    9796add_action('wp_enqueue_scripts', 'qrec_public_scripts');
    9897
    99 // 1.4 Advanced Custom Fields Settings
    100 
    101 // 1.4.1 customize ACF path
    102 add_filter('acf/settings/path', 'qrec_acf_settings_path');
    103 function qrec_acf_settings_path( $path ) {
    104     // update path
    105     $path = plugin_dir_path( __FILE__ ) .'lib/advanced-custom-fields/';
    106     // return
    107     return $path;
    108 }
    109 // 1.4.2. customize ACF dir
    110 add_filter('acf/settings/dir', 'qrec_acf_settings_dir');
    111 function qrec_acf_settings_dir( $dir ) {
    112     // update path
    113     $dir = plugin_dir_path( __FILE__ ) .'lib/advanced-custom-fields/';
    114     // return
    115     return $dir;
    116 }
    117 // 1.4.3 hide ACF from admin bar
    118 //add_filter('acf/settings/show_admin', '__return_false');
    119 if( !defined('ACF_LITE') ) define('ACF_LITE',true);
    120 
    121 
    122 // 1.5 register our custom menus
     98// 1.4 register our custom menus
    12399add_action('admin_menu', 'qrec_admin_menus');
    124100
    125 // 1.6 load external files in WordPress admin
     101// 1.5 load external files in WordPress admin
    126102add_action('admin_enqueue_scripts', 'qrec_admin_scripts');
    127103
    128 // 1.7 register plugin options
     104// 1.6 register plugin options
    129105add_action('admin_init', 'qrec_register_options');
    130106
    131 // 1.8 register activate/deactivate/uninstall functions
     107// 1.7 register activate/deactivate/uninstall functions
    132108add_action( 'admin_notices', 'qrec_check_wp_version' );
    133109register_uninstall_hook( __FILE__, 'qrec_uninstall_plugin' );
    134110
    135 // 1.9 register cotent filter
     111// 1.8 register cotent filter
    136112add_filter( 'the_content', 'qrec_show_rec' );
    137113
    138 // 1.10 register the relationship filter
     114// 1.9 register the relationship filter
    139115add_filter('acf/fields/relationship/result/name=qrec_recommendation', 'qrec_relationship_result', 10, 4);
    140116
     
    326302
    327303/* !4. EXTERNAL SCRIPTS */
    328 // 4.1 Include ACF
    329 include_once( plugin_dir_path( __FILE__ ) .'lib/advanced-custom-fields/acf.php' );
     304
     305// 4.1 Advanced Custom Fields Settings
     306if( ! class_exists('acf') ) {
     307    // 4.1.1 customize ACF path
     308    add_filter('acf/settings/path', 'qrec_acf_settings_path');
     309    function qrec_acf_settings_path( $path ) {
     310        // update path
     311        $path = plugin_dir_path( __FILE__ ) .'lib/advanced-custom-fields/';
     312        // return
     313        return $path;
     314    }
     315    // 4.1.2. customize ACF dir
     316    add_filter('acf/settings/dir', 'qrec_acf_settings_dir');
     317    function qrec_acf_settings_dir( $dir ) {
     318        // update path
     319        $dir = plugin_dir_url( __FILE__ ) .'lib/advanced-custom-fields/';
     320        // return
     321        return $dir;
     322    }
     323   
     324    // 4.1.3 Include ACF
     325    include_once( plugin_dir_path( __FILE__ ) .'lib/advanced-custom-fields/acf.php' );
     326
     327   
     328    // 4.1.4 hide ACF from admin bar
     329    add_filter('acf/settings/show_admin', '__return_false');
     330    if( !defined('ACF_LITE') ) define('ACF_LITE',true);
     331}
    330332
    331333// 4.2 loads external files into PUBLIC website
     
    372374            '4.9.1',
    373375            '4.9.2',
     376            '4.9.3',
     377            '4.9.4',
    374378        );
    375379       
  • quick-recommend/trunk/readme.txt

    r1813250 r1828085  
    44Tags: recommendation, recommendations, books, movies
    55Requires at least: 4.9
    6 Tested up to: 4.9.2
     6Tested up to: 4.9.4
    77Stable tag: trunk
    88Requires PHP: 5.2.4
     
    5151== Changelog ==
    5252
     53= 1.2 =
     54* Fixed a compatibility issue when running other instances of Advance Custom Fields
     55* Removed WordPress version notice for up to 4.9.4
     56
    5357= 1.1 =
    5458* Fixed an issue hiding the admin options page title from the page header
     
    5963== Upgrade Notice ==
    6064
     65= 1.2 =
     66* Fixed a compatibility issue when running other instances of Advance Custom Fields
     67
    6168= 1.1 =
    6269* Fixed an issue hiding the admin options page title from the page header
Note: See TracChangeset for help on using the changeset viewer.