Plugin Directory

Changeset 2057715


Ignore:
Timestamp:
03/26/2019 02:50:42 PM (7 years ago)
Author:
hostry
Message:

Increment version to 1.1
Fixed bug with compatibility with array for PHP 5.3.x.
Implemented icons in the menu and in the plugin settings
Frozen CSS / JS minification options if PHP version is not supported.

Location:
hostry-pagespeed-booster/trunk
Files:
4 added
1 deleted
9 edited

Legend:

Unmodified
Added
Removed
  • hostry-pagespeed-booster/trunk/cdn-minifier.php

    r2055551 r2057715  
    66Author URI: https://hostry.com/
    77License: GPLv2 or later
    8 Version: 1.0.1
     8Version: 1.1
    99*/
    1010
     
    2121$plugin_lib = __DIR__ . '/includes';
    2222
    23 $plugins = [
     23$plugins = array(
    2424    'main/CdnMinifierPlugin.php',
    2525    'main/CdnMinifierRewriter.php',
    2626    'main/CdnMinifierMinifier.php',
    2727    'main/helpers.php'
    28 ];
     28);
    2929foreach ($plugins as $plugin) {
    3030    require_once $plugin_lib . '/' . $plugin;
     
    3737    require_once $plugin_lib . '/vendor/autoload.php';
    3838}
    39 $libsPathClass = [
     39$libsPathClass = array(
    4040    'TinyMinify'  => 'jenstornell/tiny-html-minifier.php'
    41 ];
     41);
    4242try {
    4343    spl_autoload_register(function ($class) use ($plugin_lib, $libsPathClass) {
     
    5656 * Call hooks plugins
    5757 */
    58 register_activation_hook(__FILE__, ['CdnMinifierPlugin', 'hook_activation']);
    59 register_deactivation_hook(__FILE__, ['CdnMinifierPlugin', 'hook_deactivation']);
    60 register_uninstall_hook(__FILE__, ['CdnMinifierPlugin', 'hook_uninstall']);
     58register_activation_hook(__FILE__, array('CdnMinifierPlugin', 'hook_activation'));
     59register_deactivation_hook(__FILE__, array('CdnMinifierPlugin', 'hook_deactivation'));
     60register_uninstall_hook(__FILE__, array('CdnMinifierPlugin', 'hook_uninstall'));
    6161
    6262/**
    6363 *
    6464 */
    65 add_action('plugins_loaded', ['CdnMinifierPlugin', 'run']);
     65add_action('plugins_loaded', array('CdnMinifierPlugin', 'run'));
  • hostry-pagespeed-booster/trunk/includes/main/CdnMinifierMinifier.php

    r2055118 r2057715  
    1414     * @var array
    1515     */
    16     protected static $css_files = [];
     16    protected static $css_files = array();
    1717
    1818    /**
    1919     * @var array
    2020     */
    21     protected static $js_files_header = [];
     21    protected static $js_files_header = array();
    2222
    2323    /**
    2424     * @var array
    2525     */
    26     protected static $js_files_footer = [];
     26    protected static $js_files_footer = array();
    2727
    2828    /**
     
    4848    {
    4949        if (empty(self::$path)) {
    50             self::$path = wp_get_upload_dir()['basedir'] . '/cdn-minifier/';
     50            $upload_dir = wp_get_upload_dir();
     51            self::$path = $upload_dir['basedir'] . '/cdn-minifier/';
    5152        }
    5253
     
    7374    public static function parse()
    7475    {
    75         ob_start([
     76        ob_start(array(
    7677            __CLASS__,
    7778            'html_run'
    78         ]);
     79        ));
    7980    }
    8081
     
    101102        // todo: testing if RTL scripts (double) and setted replace
    102103
    103         self::$css_files[] = [$href, $html];
     104        self::$css_files[] = array($href, $html);
    104105
    105106        return null;
     
    112113     * @return bool|int
    113114     */
    114     public static function minifyCSS($files = [], $minFileCss)
     115    public static function minifyCSS($files, $minFileCss)
    115116    {
    116117        $minFileVersion = time();
     
    135136     * @return bool|int
    136137     */
    137     public static function minifyJS($files = [], $minFileJS)
     138    public static function minifyJS($files, $minFileJS)
    138139    {
    139140        $minFileVersion = time();
     
    163164            $ext     = '.css';
    164165            $tagHTML = "<link rel='stylesheet' id='cdn-minifier-css' href='%s?ver=%s' type='text/css' media='all' />";
    165             self::generateMinify(self::$css_files, $ext, [
     166            self::generateMinify(self::$css_files, $ext, array(
    166167                __CLASS__,
    167168                'minifyCSS'
    168             ], $tagHTML);
     169            ), $tagHTML);
    169170        }
    170171
     
    175176            $ext     = '-header.js';
    176177            $tagHTML = "<script type='text/javascript' src='%s?ver=%s'></script>";
    177             self::generateMinify(self::$js_files_header, $ext, [
     178            self::generateMinify(self::$js_files_header, $ext, array(
    178179                __CLASS__,
    179180                'minifyJS'
    180             ], $tagHTML);
     181            ), $tagHTML);
    181182        }
    182183    }
     
    203204         * Verify files exist in header, and verify filemtime
    204205         */
    205         $files      = [];
    206         $filesIndex = [];
     206        $files      = array();
     207        $filesIndex = array();
    207208        foreach ($src_files as $k => $file) {
    208209            $srcFile = preg_replace('|^' . preg_quote($homeURL, '|') . '(.[^\?]*).*|', '$1', $file[0], -1, $cnt);
     
    254255                     *
    255256                     */
    256                     $status = file_put_contents($statPluginFile, json_encode([
     257                    $status = file_put_contents($statPluginFile, json_encode(array(
    257258                        'fileCache' => $fileCache,
    258259                        'ver'       => $minFileVersion
    259                     ]));
     260                    )));
    260261                    if ($status === false) {
    261262                        new ErrorException('Error save data in file ' . $statPluginFile);
     
    303304    {
    304305        $homeURL  = get_option('home');
    305         $md5_el   = [];
     306        $md5_el   = array();
    306307        $md5_el[] = $_SERVER['SERVER_NAME'];
    307308        $md5_el[] = $homeURL;
     
    322323            $ext     = '-footer.js';
    323324            $tagHTML = "<script type='text/javascript' src='%s?ver=%s'></script>";
    324             self::generateMinify(self::$js_files_footer, $ext, [
     325            self::generateMinify(self::$js_files_footer, $ext, array(
    325326                __CLASS__,
    326327                'minifyJS'
    327             ], $tagHTML);
     328            ), $tagHTML);
    328329        }
    329330    }
     
    351352
    352353        if (in_array($handle, $wp_scripts->in_footer)) {
    353             self::$js_files_footer[] = [$src, $tag];
     354            self::$js_files_footer[] = array($src, $tag);
    354355        } else {
    355             self::$js_files_header[] = [$src, $tag];
     356            self::$js_files_header[] = array($src, $tag);
    356357        }
    357358
  • hostry-pagespeed-booster/trunk/includes/main/CdnMinifierPlugin.php

    r2055551 r2057715  
    4141            'admin_menu',
    4242            function () {
     43                $style = array(
     44                    'float: left;',
     45                    'width: 16px',
     46                    'position: relative',
     47                    'margin-right: 4px',
     48                    'top: 1px'
     49                );
     50                $img   = '<img src="' . htry_plugin_url('assets/images/hostry-16x16.png') . '" style="' . implode('; ',
     51                        $style) . '" />';
     52
    4353                $admin_page = add_options_page(
    4454                    'PageSpeed Booster',
    45                     'PageSpeed Booster',
     55                    $img . ' PageSpeed Booster',
    4656                    'manage_options',
    47                     'cdn-minifier',
    48                     [
     57                    'pagespeed-booster',
     58                    array(
    4959                        __CLASS__,
    5060                        'admin_settings_page',
    51                     ]
     61                    )
    5262                );
    5363
     
    5565                 * Help sidebar
    5666                 */
    57                 add_action('load-' . $admin_page, [
     67                add_action('load-' . $admin_page, array(
    5868                    __CLASS__,
    5969                    'helpSideBar'
    60                 ]);
     70                ));
    6171            }
    6272        );
     
    6979                'cdn_minifier_hostry',
    7080                'cdn_minifier_hostry',
    71                 [
     81                array(
    7282                    __CLASS__,
    7383                    'options_update',
    74                 ]
     84                )
    7585            );
    7686        });
     
    8696                add_action(
    8797                    'template_redirect',
    88                     [
    89                         CdnMinifierRewriter::class,
     98                    array(
     99                        'CdnMinifierRewriter',
    90100                        'init',
    91                     ]
     101                    )
    92102                );
    93103            }
     
    99109                add_action(
    100110                    'template_redirect',
    101                     [
    102                         CdnMinifierMinifier::class,
     111                    array(
     112                        'CdnMinifierMinifier',
    103113                        'parse',
    104                     ],
     114                    ),
    105115                    99
    106116                );
     
    108118
    109119            /**
    110              * Adding minifier hooks for CSS
     120             * Verify version minimal
    111121             */
    112             if ((int)self::getOption('minifier_css') > 0) {
    113                 add_filter('style_loader_tag', [
    114                     CdnMinifierMinifier::class,
    115                     'loaderCSS'
    116                 ], PHP_INT_MAX, 4);
    117             }
    118 
    119             /**
    120              * Adding minifier hooks for JS
    121              */
    122             if ((int)self::getOption('minifier_js') > 0) {
    123                 add_filter('script_loader_tag', [
    124                     CdnMinifierMinifier::class,
    125                     'loaderJS'
    126                 ], PHP_INT_MAX, 3);
    127             }
    128 
    129             /**
    130              * Include CSS and JS files
    131              */
    132             add_action('wp_head', [
    133                 CdnMinifierMinifier::class,
    134                 'enqueueScripts'
    135             ]);
    136 
    137             /**
    138              * Include JS files in footer
    139              */
    140             add_action('wp_footer', [
    141                 CdnMinifierMinifier::class,
    142                 'enqueueScriptsFooter'
    143             ]);
     122            if (version_compare(phpversion(), '7.0.0') >= 0) {
     123                /**
     124                 * Adding minifier hooks for CSS
     125                 */
     126                if ((int)self::getOption('minifier_css') > 0) {
     127                    add_filter('style_loader_tag', array(
     128                        'CdnMinifierMinifier',
     129                        'loaderCSS'
     130                    ), PHP_INT_MAX, 4);
     131                }
     132
     133                /**
     134                 * Adding minifier hooks for JS
     135                 */
     136                if ((int)self::getOption('minifier_js') > 0) {
     137                    add_filter('script_loader_tag', array(
     138                        'CdnMinifierMinifier',
     139                        'loaderJS'
     140                    ), PHP_INT_MAX, 3);
     141                }
     142
     143                /**
     144                 * Include CSS and JS files
     145                 */
     146                add_action('wp_head', array(
     147                    'CdnMinifierMinifier',
     148                    'enqueueScripts'
     149                ));
     150
     151                /**
     152                 * Include JS files in footer
     153                 */
     154                add_action('wp_footer', array(
     155                    'CdnMinifierMinifier',
     156                    'enqueueScriptsFooter'
     157                ));
     158            }
    144159        }
    145160    }
     
    239254                 *
    240255                 */
    241                 $includes               = ['theme', 'attachments', 'minified', 'includes'];
    242                 $options['cdn_include'] = [];
     256                $includes               = array('theme', 'attachments', 'minified', 'includes');
     257                $options['cdn_include'] = array();
    243258                foreach ($includes as $include) {
    244259                    if (array_key_exists('cdn_include', $data) && array_key_exists($include, $data['cdn_include'])) {
     
    250265                 *
    251266                 */
    252                 $options['cdn_extensions'] = [];
     267                $options['cdn_extensions'] = array();
    253268                if (array_key_exists('cdn_extensions', $data)) {
    254269                    $options['cdn_extensions'] = array_filter(array_map('trim', explode(',', $data['cdn_extensions'])),
     
    261276
    262277            case 'minifier':
    263                 foreach (['html', 'js', 'css'] as $option) {
     278                foreach (array('html', 'js', 'css') as $option) {
    264279                    $options['minifier_' . $option] = array_key_exists('minifier_' . $option,
    265280                        $data) && (int)$data['minifier_' . $option] === 1 ? 1 : 0;
     
    286301    public static function checkCDN($cdn_url, $timeout = 10)
    287302    {
    288         $data = [];
    289 
    290         $files     = [
     303        $data = array();
     304
     305        $files     = array(
    291306            '/wp-includes/css/dashicons.min.css',
    292307            '/wp-includes/js/jquery/jquery.js'
    293         ];
     308        );
    294309        $curl_init = function_exists('curl_init');
    295310
     
    351366         * Adding option default
    352367         */
    353         add_option('cdn_minifier_hostry', [
     368        add_option('cdn_minifier_hostry', array(
    354369            'cdn_enable'     => false,
    355370            'cdn_url'        => '',
    356371            'cdn_include'    => explode(',', 'theme,attachments,minified,includes'),
    357372            'cdn_extensions' => explode(',', 'js,css,png,jpg,jpeg,gif,woff2,mp4,mp3,wav,ico'),
    358             'minifier_html'  => true,
    359             'minifier_css'   => true,
     373            'minifier_html'  => version_compare(phpversion(), '5.4.0') >= 0 && class_exists('DOMDocument'),
     374            'minifier_css'   => version_compare(phpversion(), '7.0.0') >= 0,
    360375            'minifier_js'    => false
    361         ]);
     376        ));
    362377
    363378        /**
  • hostry-pagespeed-booster/trunk/includes/main/CdnMinifierRewriter.php

    r2055118 r2057715  
    1919     * @var array
    2020     */
    21     protected static $includes = [];
     21    protected static $includes = array();
    2222
    2323    /**
    2424     * @var array
    2525     */
    26     protected static $extensions = [];
     26    protected static $extensions = array();
    2727
    2828    /**
     
    4242         *
    4343         */
    44         ob_start([
     44        ob_start(array(
    4545            __CLASS__,
    4646            'rewrite'
    47         ]);
     47        ));
    4848    }
    4949
     
    6262         * Extrage paths allow for replace for cdn path
    6363         */
    64         $paths = [];
     64        $paths = array();
    6565        if (in_array('minified', self::$includes)) {
    6666            $paths[] = '/wp-content/uploads/cdn-minifier/';
  • hostry-pagespeed-booster/trunk/includes/main/helpers.php

    r2055118 r2057715  
    3939    return $pos;
    4040}
     41
     42/**
     43 * @param $file
     44 *
     45 * @return string
     46 */
     47function htry_plugin_url($file)
     48{
     49    return plugins_url( $file, dirname(__FILE__, 2) );
     50}
  • hostry-pagespeed-booster/trunk/includes/main/view_admin_settings.php

    r2055551 r2057715  
    1919        margin: 0;
    2020    }
     21
     22    .wrap h1 {
     23        display: flex;
     24        align-items: center
     25    }
     26
     27    .wrap h1 img {
     28        width: 48px;
     29        min-width: 48px;
     30        margin-right: 10px;
     31    }
    2132</style>
    2233
    2334<div class="wrap">
    2435
    25     <h1><?php _e('Hostry PageSpeed Booster', 'cdn-minifier'); ?></h1>
     36    <h1>
     37        <img src="<?php echo htry_plugin_url('assets/images/logo-48x48.png'); ?>" width="32">
     38        <?php _e('Hostry PageSpeed Booster', 'cdn-minifier'); ?>
     39    </h1>
    2640
    2741    <?php if (CdnMinifierPlugin::getOption('last_forced_disabled')):
     
    134148            <table class="form-table">
    135149                <tr>
     150                    <?php
     151                    $allowMinifyHTML = version_compare(phpversion(), '5.4.0') && class_exists('DOMDocument');
     152                    ?>
    136153                    <th scope="row">
    137154                        <label for="minifier_html"><?php _e('HTML Minifier', 'cdn-minifier'); ?></label></th>
    138                     <td><?php
    139                         $allowMinifyHTML = version_compare(phpversion(), '5.4.0') && class_exists('DOMDocument');
    140                         ?>
     155                    <td>
    141156                        <input name="cdn_minifier_hostry[minifier_html]" id="minifier_html" type="checkbox" value="1" <?php
    142157                        if ( ! $allowMinifyHTML) {
     
    157172                </tr>
    158173                <tr>
     174                    <?php
     175                    $allowMinifyCSS = version_compare(phpversion(), '7.0.0');
     176                    ?>
    159177                    <th scope="row">
    160178                        <label for="minifier_css"><?php _e('CSS Minifier', 'cdn-minifier'); ?></label></th>
    161179                    <td>
    162                         <input name="cdn_minifier_hostry[minifier_css]" id="minifier_css" type="checkbox" value="1" <?php checked(true,
     180                        <input name="cdn_minifier_hostry[minifier_css]" id="minifier_css" type="checkbox" value="1" <?php if ( ! $allowMinifyCSS) {
     181                            echo 'disabled ';
     182                            $options['minifier_html'] = false;
     183                        }
     184                        checked(true,
    163185                            $options['minifier_css']); ?>/>
    164186
    165187                        <p class="description"><?php _e('Minification CSS scripts, optimizes elements and removes spaces. Concatenation of files into one.',
    166188                                'cdn-minifier'); ?></p>
    167                     </td>
    168                 </tr>
    169                 <tr>
     189                        <?php if ( ! $allowMinifyCSS) : ?>
     190                            <p class="description" style="color: #ff00007d"><?php _e('The option is available for the PHP version of at least <b>7.0.0</b>.',
     191                                    'cdn-minifier'); ?></p>
     192                        <?php endif; ?>
     193                    </td>
     194                </tr>
     195                <tr>
     196                    <?php
     197                    $allowMinifyJS = version_compare(phpversion(), '7.0.0');
     198                    ?>
    170199                    <th scope="row">
    171200                        <label for="minifier_js"><?php _e('JS Minifier', 'cdn-minifier'); ?> (BETA)</label></th>
    172201                    <td>
    173                         <input name="cdn_minifier_hostry[minifier_js]" id="minifier_js" type="checkbox" value="1" <?php checked(true,
     202                        <input name="cdn_minifier_hostry[minifier_js]" id="minifier_js" type="checkbox" value="1" <?php if ( ! $allowMinifyJS) {
     203                            echo 'disabled ';
     204                            $options['minifier_html'] = false;
     205                        }
     206                        checked(true,
    174207                            $options['minifier_js']); ?>/>
    175208
    176209                        <p class="description"><?php _e('Minification JS scripts, optimizes internal variables functions, comments and whitespace. Concatenation of files into one.',
    177210                                'cdn-minifier'); ?></p>
     211                        <?php if ( ! $allowMinifyJS) : ?>
     212                            <p class="description" style="color: #ff00007d"><?php _e('The option is available for the PHP version of at least <b>7.0.0</b>.',
     213                                    'cdn-minifier'); ?></p>
     214                        <?php endif; ?>
    178215                    </td>
    179216                </tr>
  • hostry-pagespeed-booster/trunk/languages/cdn-minifier-ru_RU.po

    r2055551 r2057715  
    55"Project-Id-Version: Hostry PageSpeed Booster\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/cdn-minifier\n"
    7 "POT-Creation-Date: 2019-03-22T18:48:10+02:00\n"
    8 "PO-Revision-Date: 2019-03-22 18:49+0200\n"
     7"POT-Creation-Date: 2019-03-26T16:47:31+02:00\n"
     8"PO-Revision-Date: 2019-03-26 16:47+0200\n"
    99"Last-Translator: \n"
    1010"Language-Team: HOSTRY <[email protected]>\n"
     
    1919
    2020#. Plugin Name of the plugin
    21 #: includes/main/view_admin_settings.php:25
     21#: includes/main/view_admin_settings.php:38
    2222msgid "Hostry PageSpeed Booster"
    2323msgstr ""
     
    3939msgstr ""
    4040
    41 #: includes/main/CdnMinifierPlugin.php:336
     41#: includes/main/CdnMinifierPlugin.php:351
    4242msgid ""
    4343"In order to safely display the contents of the website pages, the CDN "
     
    4747"отключены, по причине того что CDN ресурс"
    4848
    49 #: includes/main/CdnMinifierPlugin.php:339
     49#: includes/main/CdnMinifierPlugin.php:354
    5050msgid "did not send the corresponding content."
    5151msgstr "не передал соответствующий контент."
    5252
    53 #: includes/main/CdnMinifierPlugin.php:429
     53#: includes/main/CdnMinifierPlugin.php:444
    5454msgid "What is CDN service?"
    5555msgstr "Что такое CDN service?"
    5656
    57 #: includes/main/CdnMinifierPlugin.php:430
     57#: includes/main/CdnMinifierPlugin.php:445
    5858msgid ""
    5959"CDN stands for \"content delivery network\". It is a distributed network of "
     
    7474"базу данных, такие как css/js)."
    7575
    76 #: includes/main/CdnMinifierPlugin.php:433
     76#: includes/main/CdnMinifierPlugin.php:448
    7777msgid "What is  Hostry FREE CDN?"
    7878msgstr "Что такое Hostry FREE CDN?"
    7979
    80 #: includes/main/CdnMinifierPlugin.php:434
     80#: includes/main/CdnMinifierPlugin.php:449
    8181msgid ""
    8282"Hostry FREE CDN is a premium-class global CDN (Content Delivery Network) "
     
    8888"возможностью бесплатного пользования."
    8989
    90 #: includes/main/CdnMinifierPlugin.php:437
     90#: includes/main/CdnMinifierPlugin.php:452
    9191msgid "How Does CDN Operate?"
    9292msgstr "Как работает CDN?"
    9393
    94 #: includes/main/CdnMinifierPlugin.php:438
     94#: includes/main/CdnMinifierPlugin.php:453
    9595msgid ""
    9696"User interaction: on example.com he is given an html page. On such html-page "
     
    106106"отвечает на него, и ответ уходит аналогично, тоже по короткому маршруту."
    107107
    108 #: includes/main/CdnMinifierPlugin.php:441
     108#: includes/main/CdnMinifierPlugin.php:456
    109109msgid "How Does CDN Influence SEO?"
    110110msgstr "Как CDN влияет на SEO?"
    111111
    112 #: includes/main/CdnMinifierPlugin.php:442
     112#: includes/main/CdnMinifierPlugin.php:457
    113113msgid ""
    114114"CDN directly affects such an aspect as website loading speed and, "
     
    122122"Yandex,Baidu и т.д.)."
    123123
    124 #: includes/main/CdnMinifierPlugin.php:445
     124#: includes/main/CdnMinifierPlugin.php:460
    125125msgid "How do CDNs Help SEO?"
    126126msgstr ""
    127127
    128 #: includes/main/CdnMinifierPlugin.php:446
     128#: includes/main/CdnMinifierPlugin.php:461
    129129msgid ""
    130130"CDNs improve the speed and quality of content that is delivered to the user. "
     
    135135msgstr ""
    136136
    137 #: includes/main/CdnMinifierPlugin.php:452
     137#: includes/main/CdnMinifierPlugin.php:467
    138138msgid "Overview"
    139139msgstr ""
    140140
    141 #: includes/main/CdnMinifierPlugin.php:460
     141#: includes/main/CdnMinifierPlugin.php:475
    142142msgid "What Is Minification?"
    143143msgstr "Что такое Минификация?"
    144144
    145 #: includes/main/CdnMinifierPlugin.php:461
     145#: includes/main/CdnMinifierPlugin.php:476
    146146msgid ""
    147147"Minification (minify) is a simple approach to minimization of css, js, and "
     
    155155"10...20% от оригинального размера файла."
    156156
    157 #: includes/main/CdnMinifierPlugin.php:463
     157#: includes/main/CdnMinifierPlugin.php:478
    158158msgid ""
    159159"When minifying CSS / JS, merging of all the files in a single one is also "
     
    163163"сокращения количество запросов до вебсервера."
    164164
    165 #: includes/main/CdnMinifierPlugin.php:469
     165#: includes/main/CdnMinifierPlugin.php:484
    166166msgid "CSS/JS/HTML Minification"
    167167msgstr ""
    168168
    169 #: includes/main/view_admin_settings.php:34
     169#: includes/main/view_admin_settings.php:48
    170170msgid "Use the service"
    171171msgstr "Используйте услугу"
    172172
    173 #: includes/main/view_admin_settings.php:35
     173#: includes/main/view_admin_settings.php:49
    174174msgid ""
    175175"and ensure fast loading of your static content (images, CSS, JavaScript, "
     
    179179"CSS, JavaScript, видео и т.д) значительно улучшая время отклика сервера."
    180180
    181 #: includes/main/view_admin_settings.php:44
     181#: includes/main/view_admin_settings.php:58
    182182msgid "CDN Settings"
    183183msgstr ""
    184184
    185 #: includes/main/view_admin_settings.php:50
     185#: includes/main/view_admin_settings.php:64
    186186msgid "CDN Enable"
    187187msgstr ""
    188188
    189 #: includes/main/view_admin_settings.php:55
     189#: includes/main/view_admin_settings.php:69
    190190msgid ""
    191191"Activating the CDN module will replace the current static links with the "
     
    194194"Активация CDN модуля сменит текущие ссылки статики на ссылки CDN ресурса."
    195195
    196 #: includes/main/view_admin_settings.php:61
     196#: includes/main/view_admin_settings.php:75
    197197msgid "CDN URL"
    198198msgstr ""
    199199
    200 #: includes/main/view_admin_settings.php:64
     200#: includes/main/view_admin_settings.php:78
    201201msgid ""
    202202"Specify a link to a CDN resource to rewrite static links. You can get this "
     
    206206"вы можете получить у вашего CDN провайдера."
    207207
    208 #: includes/main/view_admin_settings.php:69
     208#: includes/main/view_admin_settings.php:83
    209209msgid "CDN Include"
    210 msgstr ""
    211 
    212 #: includes/main/view_admin_settings.php:75
     210msgstr "Как работает CDN?"
     211
     212#: includes/main/view_admin_settings.php:89
    213213msgid "Theme files"
    214214msgstr ""
    215215
    216 #: includes/main/view_admin_settings.php:83
     216#: includes/main/view_admin_settings.php:97
    217217msgid "Attachments (images for post, other files upload)"
    218218msgstr ""
    219219
    220 #: includes/main/view_admin_settings.php:91
     220#: includes/main/view_admin_settings.php:105
    221221msgid "Minified CSS&JS files"
    222222msgstr ""
    223223
    224 #: includes/main/view_admin_settings.php:99
     224#: includes/main/view_admin_settings.php:113
    225225msgid "Standard WordPress files"
    226226msgstr ""
    227227
    228 #: includes/main/view_admin_settings.php:106
     228#: includes/main/view_admin_settings.php:120
    229229msgid "CDN extensions apply"
    230230msgstr ""
    231231
    232 #: includes/main/view_admin_settings.php:110
     232#: includes/main/view_admin_settings.php:124
    233233msgid ""
    234234"Specify the file extensions to download from the CDN network, using the "
     
    238238"запятую \",\". Пример: css, js"
    239239
    240 #: includes/main/view_admin_settings.php:117
    241 #: includes/main/view_admin_settings.php:183
     240#: includes/main/view_admin_settings.php:131
     241#: includes/main/view_admin_settings.php:220
    242242msgid "Save Changes"
    243243msgstr ""
    244244
    245 #: includes/main/view_admin_settings.php:131
     245#: includes/main/view_admin_settings.php:145
    246246msgid "Minifier HTML&CSS&JS Settings"
    247247msgstr ""
    248248
    249 #: includes/main/view_admin_settings.php:137
     249#: includes/main/view_admin_settings.php:154
    250250msgid "HTML Minifier"
    251251msgstr ""
    252252
    253 #: includes/main/view_admin_settings.php:150
     253#: includes/main/view_admin_settings.php:165
    254254msgid ""
    255255"Includes the function of minifying HTML pages. Reduces white space and "
     
    258258"Включает функцию минификации HTML страниц. Сокращает пробелы и комментарии."
    259259
    260 #: includes/main/view_admin_settings.php:153
     260#: includes/main/view_admin_settings.php:168
    261261msgid ""
    262262"The option is available for the PHP version of at least <b>5.4.0</b> and "
     
    266266"<b>DOMDocument</b>."
    267267
    268 #: includes/main/view_admin_settings.php:160
     268#: includes/main/view_admin_settings.php:178
    269269msgid "CSS Minifier"
    270270msgstr ""
    271271
    272 #: includes/main/view_admin_settings.php:165
     272#: includes/main/view_admin_settings.php:187
    273273msgid ""
    274274"Minification CSS scripts, optimizes elements and removes spaces. "
     
    278278"Конкатенация файлов в один."
    279279
    280 #: includes/main/view_admin_settings.php:171
     280#: includes/main/view_admin_settings.php:190
     281#: includes/main/view_admin_settings.php:212
     282msgid "The option is available for the PHP version of at least <b>7.0.0</b>."
     283msgstr "Опция доступна для версии PHP не менее <b>7.0.0</b>."
     284
     285#: includes/main/view_admin_settings.php:200
    281286msgid "JS Minifier"
    282287msgstr ""
    283288
    284 #: includes/main/view_admin_settings.php:176
     289#: includes/main/view_admin_settings.php:209
    285290msgid ""
    286291"Minification JS scripts, optimizes internal variables functions, comments "
     
    290295"комментарии и пробелы. Конкатенация файлов в один."
    291296
    292 #: includes/main/view_admin_settings.php:185
     297#: includes/main/view_admin_settings.php:222
    293298msgid "Clear cache minified"
    294299msgstr ""
  • hostry-pagespeed-booster/trunk/readme.txt

    r2055551 r2057715  
    4040== Changelog ==
    4141
    42 = 1.1.0 =
     42= 1.1 =
     43* Fixed bug with compatibility with array for PHP 5.3.x.
     44* Implemented icons in the menu and in the plugin settings
     45* Frozen CSS / JS minification options if PHP version is not supported.
     46
     47= 1.0.1 =
    4348* Fixed bug when checking the CDN for blogs that are in subfolders.
    4449
Note: See TracChangeset for help on using the changeset viewer.