Plugin Directory

Changeset 2019983


Ignore:
Timestamp:
01/27/2019 06:53:07 PM (7 years ago)
Author:
Shmidtelson
Message:

New version

Location:
wp-post-rating
Files:
10 added
7 edited

Legend:

Unmodified
Added
Removed
  • wp-post-rating/trunk/assets/css/wp-post-rating.min.css

    r1972411 r2019983  
    1 @font-face{font-family:fontello;src:url(../font/fontello.eot?34932983);src:url(../font/fontello.eot?34932983#iefix) format('embedded-opentype'),url(../font/fontello.woff2?34932983) format('woff2'),url(../font/fontello.woff?34932983) format('woff'),url(../font/fontello.ttf?34932983) format('truetype'),url(../font/fontello.svg?34932983#fontello) format('svg');font-weight:400;font-style:normal}[class*=" icon-"]:before,[class^=icon-]:before{font-family:fontello,serif;font-style:normal;font-weight:400;speak:none;display:inline-block;text-decoration:inherit;width:1em;margin-right:.1em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;margin-left:.1em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-spin4:before{content:'\e834'}.animate-spin{-webkit-animation:spin 2s infinite linear;animation:spin 2s infinite linear;display:inline-block}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.wpr-hide{display:none!important}.wpr-wrapp{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:15px 0}.wpr-wrapp .wpr-rating{overflow:hidden;display:inline-block;position:relative;color:#fdd835;max-width:200px;font-size:1.6rem}.wpr-wrapp .wpr-rating .icon-star{margin:0;cursor:pointer;display:block;float:right}.wpr-wrapp .wpr-rating .icon-star:before{content:'\e800'}.wpr-wrapp .wpr-rating .icon-star-filled:before{content:'\e801'}.wpr-wrapp .wpr-rating .icon-star:before{position:relative}.wpr-wrapp .wpr-rating .icon-star.checked:before,.wpr-wrapp .wpr-rating .icon-star.checked~.icon-star:before{content:'\e801'}.wpr-wrapp .wpr-rating .icon-star:hover .icon-star:before{content:'\e801'}.wpr-wrapp .wpr-rating .icon-star:hover:before,.wpr-wrapp .wpr-rating .icon-star:hover~.icon-star:before{content:'\e801';color:#fbc02d}.wpr-wrapp .wpr-rating-loader{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wpr-wrapp .wpr-info-container{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#fff;border:1px solid #000;margin:5px 0;margin-left:10px;cursor:pointer}.wpr-wrapp .wpr-info-container:hover{background:#f5f5f5}.wpr-wrapp .wpr-info-container:before{content:"";position:absolute;width:8px;height:8px;left:-5px;top:auto;z-index:1;background:#fff;border:1px solid #000;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-top:none;border-right:none}.wpr-wrapp .wpr-info-container span{padding:0 5px}
     1@charset "UTF-8";@font-face{font-family:fontello;src:url(../font/fontello.eot?34932983);src:url(../font/fontello.eot?34932983#iefix) format("embedded-opentype"),url(../font/fontello.woff2?34932983) format("woff2"),url(../font/fontello.woff?34932983) format("woff"),url(../font/fontello.ttf?34932983) format("truetype"),url(../font/fontello.svg?34932983#fontello) format("svg");font-weight:400;font-style:normal}[class*=" icon-"]:before,[class^=icon-]:before{font-family:fontello,serif;font-style:normal;font-weight:400;speak:none;display:inline-block;text-decoration:inherit;width:1em;margin-right:.1em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;margin-left:.1em;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-spin4:before{content:'\e834'}.animate-spin{-webkit-animation:spin 2s infinite linear;animation:spin 2s infinite linear;display:inline-block}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.wpr-hide{display:none!important}.icon-star{line-height:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#fdd835}.icon-star:before{content:'\e800'}.icon-star-filled:before{content:'\e801'}.icon-star:before{position:relative}.wpr-wrapp{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:15px 0}.wpr-wrapp .wpr-rating{overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;max-width:200px;font-size:30px;height:40px;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.wpr-wrapp .wpr-rating-loader{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.wpr-wrapp .wpr-info-container{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#fff;border:1px solid #000;margin-left:10px;cursor:pointer}.wpr-wrapp .wpr-info-container:hover{background:#f5f5f5}.wpr-wrapp .wpr-info-container:before{content:"";position:absolute;width:8px;height:8px;left:-5px;top:auto;z-index:1;background:#fff;border:1px solid #000;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-top:none;border-right:none}.wpr-wrapp .wpr-info-container .icon-star.checked:before,.wpr-wrapp .wpr-info-container .icon-star.checked~.icon-star:before{content:'\e801'}.wpr-wrapp .wpr-info-container .icon-star:hover .icon-star:before{content:'\e801'}.wpr-wrapp .wpr-info-container .icon-star:hover:before,.wpr-wrapp .wpr-info-container .icon-star:hover~.icon-star:before{content:'\e801';color:#fbc02d}.wpr-wrapp .wpr-info-container span{padding:0 5px}.wpr_rating_list{display:inline-block}.wpr_rating_list .icon-star{float:left}.wpr_rating_list .icon-star:before{content:'\e801'}
  • wp-post-rating/trunk/classes/admin/Settings.php

    r1972411 r2019983  
    6969                                    <p>
    7070                                        <b><?=__('Display in content', $this->config->PLUGIN_NAME)?></b>
    71                                         <input class="regular-text" value="[wp_rating]"/>
     71                                        <input class="regular-text" value="[wp_rating]"  onclick="select()"/>
    7272                                    </p>
    7373                                    <p>
    7474                                        <b><?=__('Display in PHP code', $this->config->PLUGIN_NAME)?></b>
    75                                         <input class="regular-text" value="echo do_shortcode('[wp_rating]');"/>
     75                                        <input class="regular-text" value="echo do_shortcode('[wp_rating]');" onclick="select()"/>
    7676                                    </p>
    7777                                </div>
     
    226226    {
    227227        if ($hook === 'settings_page_' . $this->OPTION_SLUG) {
    228             wp_register_script('admin-settings-page', $this->config->PLUGIN_URL . 'assets/js/admin-settings-page.min.js', ['jquery']);
     228            wp_register_script('admin-settings-page', $this->config->PLUGIN_URL . 'assets/js/min/admin-settings-page.min.js', ['jquery']);
    229229            wp_register_style('admin-settings-page', $this->config->PLUGIN_URL . 'assets/css/admin-settings-page.min.css');
    230230            wp_enqueue_style('admin-settings-page');
  • wp-post-rating/trunk/gulpfile.js

    r1972411 r2019983  
    22let gulp = require('gulp');
    33// Include plugins
    4 let less = require('gulp-less');
     4let sass = require('gulp-sass');
    55let rename = require('gulp-rename');
    66let cleanCSS = require('gulp-clean-css');
     
    99let path = require('path');
    1010
    11 gulp.task('less', function () {
    12     return gulp.src('./assets/less/**/*.less')
    13         .pipe(less({
    14             paths: [ path.join(__dirname, 'less', 'includes') ]
    15         }))
     11sass.compiler = require('node-sass');
     12
     13gulp.task('sass', function () {
     14    return gulp.src('./assets/sass/**/*.scss')
     15        .pipe(sass.sync().on('error', sass.logError))
    1616        .pipe(autoprefixer({
    1717            browsers: ['last 2 versions'],
     
    2727        .pipe(uglify())
    2828        .pipe(rename({suffix: '.min'}))
    29         .pipe(gulp.dest('./assets/js'))
     29        .pipe(gulp.dest('./assets/js/min'))
    3030});
    3131
    3232gulp.task('watch', function() {
    33     gulp.watch(['./**/*.less','./**/*.js'], ['less', 'js']);  // Watch all the .less files, then run the less task
     33    gulp.watch(['./assets/sass/*.scss','./assets/js/*.js'], ['sass', 'js']);  // Watch all the .less files, then run the less task
    3434});
    3535
  • wp-post-rating/trunk/languages/wp-post-rating-ru_RU.po

    r1972411 r2019983  
    22msgstr ""
    33"Project-Id-Version: Wp Post Rating\n"
    4 "POT-Creation-Date: 2018-11-10 15:53+0300\n"
    5 "PO-Revision-Date: 2018-11-10 15:55+0300\n"
     4"POT-Creation-Date: 2019-01-27 21:22+0300\n"
     5"PO-Revision-Date: 2019-01-27 21:25+0300\n"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "X-Generator: Poedit 2.2\n"
     12"X-Generator: Poedit 2.0.7\n"
    1313"X-Poedit-Basepath: ..\n"
    1414"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
     
    2323"X-Poedit-SearchPathExcluded-0: *.js\n"
    2424
     25#: classes/WPR_Widget.php:16
     26msgid "List posts by rating"
     27msgstr "Список записей по рейтингу"
     28
     29#: classes/WPR_Widget.php:17
     30msgid "You may order displayed posts"
     31msgstr "Вы можете настроить сортировку выводимых записей"
     32
     33#: classes/WPR_Widget.php:48
     34msgid "New title"
     35msgstr "Новый заголовок"
     36
     37#: classes/WPR_Widget.php:89
     38msgid "Title"
     39msgstr "Заголовок"
     40
     41#: classes/WPR_Widget.php:95
     42msgid "Count of posts"
     43msgstr "Количество записей"
     44
     45#: classes/WPR_Widget.php:105
     46msgid "Order by"
     47msgstr "Сортировать по"
     48
     49#: classes/WPR_Widget.php:111
     50msgid "Sort by"
     51msgstr "Сортировать как"
     52
     53#: classes/WPR_Widget.php:120
     54msgid "Wrapper posts"
     55msgstr "Оболочка записей"
     56
     57#: classes/WPR_Widget.php:127
     58msgid "Wrapper for all posts, supports shortcodes: "
     59msgstr "Оболочка всех записей, поддерживает шорткоды"
     60
     61#: classes/WPR_Widget.php:134
     62msgid "Wrapper one post"
     63msgstr "Оболочка одной записи"
     64
     65#: classes/WPR_Widget.php:141
     66msgid "Wrapper for one post, supports shortcodes: "
     67msgstr "Оболочка для одной записи, поддерживает шорткоды"
     68
     69#: classes/WPR_Widget.php:147
     70msgid "Date format"
     71msgstr "Формат даты"
     72
     73#: classes/WPR_Widget.php:151
     74msgid ""
     75"Dates formats is here <a href=\"https://codex.wordpress.org/"
     76"Formatting_Date_and_Time\">https://codex.wordpress.org/"
     77"Formatting_Date_and_Time</a>"
     78msgstr ""
     79"Всевозможные форматы  даты доступны по ссылке <a href=\"https://codex."
     80"wordpress.org/Formatting_Date_and_Time\">https://codex.wordpress.org/"
     81"Formatting_Date_and_Time</a>"
     82
     83#: classes/WPR_Widget.php:216
     84msgid "Guest"
     85msgstr "Гость"
     86
    2587#: classes/admin/Admin.php:27 classes/admin/Admin.php:28
    2688msgid "Stars rating"
     
    107169msgstr "Как отобразить в PHP коде"
    108170
    109 #: templates/admin_ratings_list.php:2 wp-post-rating.php:132
     171#: templates/admin_ratings_list.php:2 wp-post-rating.php:134
    110172msgid "Settings"
    111173msgstr "Настройки"
  • wp-post-rating/trunk/package.json

    r1972411 r2019983  
    1111  "dependencies": {
    1212    "gulp": "^3.9.1",
    13     "gulp-less": "^4.0.1",
    1413    "gulp-rename": "^1.4.0",
    15     "gulp-uglify": "^3.0.1"
     14    "gulp-sass": "^4.0.2",
     15    "gulp-uglify": "^3.0.1",
     16    "node-sass": "^4.11.0"
    1617  },
    1718  "devDependencies": {
  • wp-post-rating/trunk/wp-post-rating.php

    r1972411 r2019983  
    55Plugin URI: http://romua1d.ru/wp_post_rating
    66Description: Powerful post rating wordpress plugin.
    7 Version: 1.0.0
     7Version: 1.0.1
    88Author: Romua1d
    99Author URI: https://romua1d.ru
     
    6161
    6262            add_filter("plugin_action_links_" . plugin_basename(__FILE__), [$this, 'add_settings_link_to_plugin_list']);
     63
     64            // Adding widgets
     65            add_action( 'widgets_init', [$this, 'wpr_load_widget']);
    6366        }
    6467
     
    7578            wp_enqueue_script(
    7679                'wp-post-rating',
    77                 $this->config->PLUGIN_URL . 'assets/js/wp-post-rating.min.js',
     80                $this->config->PLUGIN_URL . 'assets/js/min/wp-post-rating.min.js',
    7881                ['jquery'],
    7982                $this->config->PLUGIN_VERSION,
     
    145148        }
    146149
     150        public function wpr_load_widget(){
     151            register_widget( new WPR_Widget($this->config) );
     152        }
     153
    147154    }
    148155
Note: See TracChangeset for help on using the changeset viewer.