Plugin Directory

Changeset 1240602


Ignore:
Timestamp:
09/08/2015 12:58:32 PM (10 years ago)
Author:
svs-websoft
Message:

Plugin files to load only on plugin page

Location:
svs-pricing-tables/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • svs-pricing-tables/trunk/app/controller/svs_pt_controller_main.php

    r1233972 r1240602  
    3535        $_data['templates'] = $this->svs_pt_model_main->getTemplates();
    3636        $_data['pricingTable'] = $this->svs_pt_model_main->getPricingTable();
    37         wp_enqueue_script('js_svs_admin', plugins_url('js/svs_pt_js_admin.min.js', $svs_pt_root_dir), array(), '1.0.1', true);
     37        wp_enqueue_script('js_svs_admin', plugins_url('js/svs_pt_js_admin.min.js', $svs_pt_root_dir), array(), '1.0.2', true);
    3838        wp_localize_script('js_svs_admin', 'SVSPricingTables', array( 'plugin_url' => plugins_url('/', $svs_pt_root_dir) ));
    3939        $this->loadView('pt_edit', $_data);
     
    4747        $_data['templates'] = $this->svs_pt_model_main->getTemplates();
    4848        $_data['pricingTable'] = $this->svs_pt_model_main->getPricingTable(@$_GET['ID']);
    49         wp_enqueue_script('js_svs_admin', plugins_url('js/svs_pt_js_admin.min.js', $svs_pt_root_dir), array(), '1.0.1', true);
     49        wp_enqueue_script('js_svs_admin', plugins_url('js/svs_pt_js_admin.min.js', $svs_pt_root_dir), array(), '1.0.2', true);
    5050        wp_localize_script('js_svs_admin', 'SVSPricingTables', array( 'plugin_url' => plugins_url('/', $svs_pt_root_dir), 'name' => @$_data['pricingTable']['name'], 'ID' => @$_data['pricingTable']['id'] ));
    5151        $this->loadView('pt_edit', $_data);
     
    9696    public static function adminEnqueueScripts($hook)
    9797    {
    98         $svs_pt_root_dir = str_replace('controller','', __DIR__);
    99         wp_enqueue_style('css_svs_admin_min', plugins_url('css/svs_pt_admin.min.css', $svs_pt_root_dir), false, '1.0.1');
    100         wp_enqueue_style('css_svs_pt_general', plugins_url('css/svs_pt_general.css', $svs_pt_root_dir), false, '1.0.1');
     98        if (self::endsWith($hook, "svs_pricing_tables")){
     99            $svs_pt_root_dir = str_replace('controller','', __DIR__);
     100            wp_enqueue_style('css_svs_admin_min', plugins_url('css/svs_pt_admin.min.css', $svs_pt_root_dir), false, '1.0.2');
     101            wp_enqueue_style('css_svs_pt_general', plugins_url('css/svs_pt_general.css', $svs_pt_root_dir), false, '1.0.2');
     102        }
    101103    }
    102104
     
    109111        return base64_decode($_data['css']) . base64_decode($_data['html']);
    110112    }
     113
     114    /**
     115     * Check if string $heystack ends with $needle
     116     * @param $haystack
     117     * @param $needle
     118     * @return bool
     119     */
     120
     121    private static function endsWith($haystack, $needle) {
     122        return $needle === "" || (($temp = strlen($haystack) - strlen($needle)) >= 0 && strpos($haystack, $needle, $temp) !== FALSE);
     123    }
    111124}
  • svs-pricing-tables/trunk/readme.txt

    r1236956 r1240602  
    1818Plugin URI: http://pricingtables.svs-websoft.com/
    1919
    20 <strong>Features:</strong>
    21 - Easily create pricing plan using a wizard
    22 - Drag and drop pricing table component
    23 - Drag and drop feature(row) re-ordering
    24 - Featured Column highlights best price package
    25 - Inline text edit
    26 - Responsive Tables
    27 - 5 different table templates in Lite version
    28 - Shortcode support
    29 - Clone a price column
    30 - Customize your pricing tables (colors)
    31 - Intuitive User Interface (visual builder)
    32 - Create Unlimited Pricing Table Rows
    33 - Edit the content right on the pricing table
    34 - Real Time preview
     20<strong>Features:</strong><br/>
     21- Easily create pricing plan using a wizard <br/>
     22- Drag and drop pricing table component <br/>
     23- Drag and drop feature(row) re-ordering <br/>
     24- Featured Column highlights best price package <br/>
     25- Inline text edit <br/>
     26- Responsive Tables <br/>
     27- 7 different table templates in Lite version <br/>
     28- Shortcode support <br/>
     29- Clone a price column <br/>
     30- Customize your pricing tables (colors) <br/>
     31- Intuitive User Interface (visual builder) <br/>
     32- Create Unlimited Pricing Table Rows <br/>
     33- Edit the content right on the pricing table <br/>
     34- Real Time preview <br/>
    3535
    3636
     
    9494
    9595= What about the PRO version? =
    96 Currently we are still working on the PRO version.
     96The PRO version has 15 designs, advanced control on the elements, no disabled elements and premium support for 1 month
    9797
    9898
Note: See TracChangeset for help on using the changeset viewer.