Plugin Directory

Changeset 1084841


Ignore:
Timestamp:
02/08/2015 08:29:23 AM (11 years ago)
Author:
Tkama
Message:

4.5.8 relise

Location:
democracy-poll/trunk
Files:
29 added
15 edited

Legend:

Unmodified
Added
Removed
  • democracy-poll/trunk/admin/admin_page.php

    r1084564 r1084841  
    174174           
    175175            <h3><?php _e('Настройки опросов','dem') ?></h3>
    176             <div class="group">
    177                 <div class="block">
     176            <ul class="group">
     177                <li class="block">
    178178                   <label>
    179179                       <?php $logrows_count = $wpdb->get_var("SELECT count(*) FROM $wpdb->democracy_log"); ?>
     
    184184                   </label>
    185185                   <em><?php _e('Сохраняет данные в Базу Данных. Запрещает голосовать несколько раз с одного IP или одному пользователю WordPress. Если пользователь авторизован, то голосование проверяется по его аккаунту в WordPress. Если не авторизован, то проверяется IP голосующего. Минус лога по IP — если сайт посещается с корпоративных сетей (с единым IP), то голосовать можно будет всего 1 раз для всей сети. Если не включить эту опцию, то голосование будет учитываться только по кукам. По умолчанию: включена.','dem') ?></em>
    186                 </div>
    187 
    188                 <div class="block">
     186                </li>
     187
     188                <li class="block">
    189189                   <label>
    190190                       <input type="text" size="3" value="<?php echo $opt['cookie_days'] ?>" name="dem[cookie_days]" />
     
    192192                    </label>
    193193                   <em><?php _e('Дни в течении которых браузер пользователя будет помнить о голосовании. По умолчанию: 365. <strong>Заметка:</strong> Работает совместно с контролем по IP.','dem') ?></em>
    194                 </div>
    195 
    196                 <div class="block">
     194                </li>
     195
     196                <li class="block">
    197197                   <label>
    198198                       <input type="checkbox" value="1" name="dem[only_for_users]" <?php checked( $opt['only_for_users'], 1) ?> />
     
    200200                    </label>
    201201                   <em><?php _e('Включите опцию, чтобы голосовать могли только зарегистрированные пользователи. Влияет на все опросы! Если НЕ включать, то такую настройку можно будет делать для каждого опроса в отдельности.','dem') ?></em>
    202                 </div>
    203 
    204                 <div class="block">
     202                </li>
     203
     204                <li class="block">
    205205                   <label>
    206206                        <input <?php checked( $opt[ 'graph_from_total'], 1) ?> type="checkbox" value="1" name="dem[graph_from_total]" />
     
    208208                    </label>
    209209                   <em><?php _e('По умолчанию, выигрывающий ответ заполняется полностью, а остальные в процентах от него. Поставьте галочку, чтобы каждый ответ заполнялся как % от всех голосов.','dem') ?></em>
    210                 </div>
    211 
    212                 <div class="block">
     210                </li>
     211
     212                <li class="block">
    213213                   <label>
    214214                       <input <?php echo checked( $opt['order_answers'], 1) ?> type="checkbox" value="1" name="dem[order_answers]" />
     
    216216                   </label>
    217217                   <em><?php _e('Уберите галочку, чтобы ответы располагались в порядке их создания, а не выигрывающие сверху.','dem') ?></em>
    218                 </div>
     218                </li>
     219
     220                <li class="block">
     221                    <label><?php _e('Обёртка заголовка опроса HTML тегами.','dem') ?></label><br>
     222                    <input type="text" size="35" value="<?php echo esc_attr( $opt['before_title'] ) ?>" name="dem[before_title]" />
     223                    <i><?php _e('вопрос опроса','dem') ?></i>
     224                    <input type="text" size="15" value="<?php echo esc_attr( $opt['after_title'] ) ?>" name="dem[after_title]" />
     225                    <em><?php _e('Например: <code>&lt;h2&gt;</code> и <code>&lt;/h2&gt;</code>. По умолчанию: <code>&lt;strong class=&quot;dem-poll-title&quot;&gt;</code> и <code>&lt;/strong&gt;</code>.','dem') ?></em>
     226                </li>
     227
     228                <li class="block">
     229                    <label>
     230                        <input type="text" size="5" value="<?php echo $opt['archive_page_id']?:''; ?>" name="dem[archive_page_id]" />
     231                        <?php _e('ID архива опросов.','dem') ?>
     232                    </label>
     233                    <?php
     234                    if( $opt['archive_page_id'] )
     235                        echo '<a href="'. get_permalink( $opt['archive_page_id'] )  .'">'. __('Перейти на страницу архива','dem') .'</a>';
     236                    else
     237                        echo '<a class="button" href="'. ($_SERVER['REQUEST_URI'] .'&dem_create_archive_page') .'">'. __('Создать страницу архива','dem') .'</a>';
     238                    ?>
     239                    <em><?php _e('Укажите, чтобы в подписи опроса была ссылка на страницу с архивом опросов. Пр. <code>25</code>','dem') ?></em>
     240                </li>
    219241               
    220                 <div class="block">
     242                <li class="block">
    221243                    <label><?php _e('Внешний вид (тема) опроса:','dem'); ?></label>
    222244                    <select name="dem[css_file_name]">
     
    231253                        ?>
    232254                    </select>
    233                     <a href="<?php echo Dem::$inst->dir_url . Dem::$inst->css_dirname . Dem::$inst->opt['css_file_name'] ?>" target="_blank"><?php _e('cсылка на файл', 'dem'); ?></a>
     255                    <a href="<?php echo Dem::$inst->dir_url . Dem::$inst->css_dirname . Dem::$inst->opt['css_file_name'] ?>" target="_blank"><?php _e('cсылка на файл', 'dem'); echo ' ' . Dem::$inst->opt['css_file_name']; ?> </a>
    234256                    <em><?php _e('Выберете какой файл стилей использовать для отображения опросов. Выберете "- Не подключить...", скопируйте файл стилей (используйте ссылку выше) в файл стилей вашей темы и измените его под себя. Так вы сможете настроить стили, чтобы при обновлении плагина изменения не потерялись.','dem') ?></em>
    235                 </div>             
    236 
    237                 <div class="block">
    238                     <label><?php _e('Обёртка заголовка опроса HTML тегами.','dem') ?></label><br>
    239                     <input type="text" size="35" value="<?php echo esc_attr( $opt['before_title'] ) ?>" name="dem[before_title]" />
    240                     <i><?php _e('<вопрос опроса>','dem') ?></i>
    241                     <input type="text" size="15" value="<?php echo esc_attr( $opt['after_title'] ) ?>" name="dem[after_title]" />
    242                     <em><?php _e('Например: <code>&lt;h2&gt;</code> и <code>&lt;/h2&gt;</code>. По умолчанию: <code>&lt;strong class=&quot;dem-poll-title&quot;&gt;</code> и <code>&lt;/strong&gt;</code>.','dem') ?></em>
    243                 </div>
    244 
    245                 <div class="block">
    246                     <label>
    247                         <input type="text" size="5" value="<?php echo $opt['archive_page_id']?:''; ?>" name="dem[archive_page_id]" />
    248                         <?php _e('ID архива опросов.','dem') ?>
    249                     </label>
     257                </li>               
     258
     259                <li class="block loaders">
     260                    <label><?php _e('AJAX загрузчик:','dem'); ?></label><br><br>
     261                    <div class="clear"></div>
     262                    <label class="left">
     263                        <div style="width:30px;height:30px;"><?php _e('Нет','dem'); ?></div>
     264                        <input type="radio" value="" name="dem[loader_fname]" <?php checked( $opt['loader_fname'], '') ?> />
     265                    </label>
    250266                    <?php
    251                     if( $opt['archive_page_id'] )
    252                         echo '<a href="'. get_permalink( $opt['archive_page_id'] )  .'">'. __('Перейти на страницу архива','dem') .'</a>';
    253                     else
    254                         echo '<a class="button" href="'. ($_SERVER['REQUEST_URI'] .'&dem_create_archive_page') .'">'. __('Создать страницу архива','dem') .'</a>';
     267                        $data = array();
     268                        foreach( glob( Dem::$inst->dir_path . 'loaders/*') as $file ){
     269                            $fname = basename( $file );
     270                            $ex    = preg_replace('~.*\.~', '', $fname );
     271                            $data[ $ex ][ $fname ] = $file;
     272                        }
     273                        foreach( $data as $ex => $val ){
     274                            echo '<div class="clear"></div>';
     275                            foreach( $val as $fname => $file ){
     276                                ?>
     277                                <label class="left">
     278                                    <div class="loader"><?php echo file_get_contents( $file ) ?></div>
     279                                    <input type="radio" value="<?php echo $fname ?>" name="dem[loader_fname]" <?php checked( $opt['loader_fname'], $fname) ?> /><br>
     280                                    <?php echo $ex ?>
     281                                </label>
     282                                <?php                               
     283                            }
     284                        }
    255285                    ?>
    256                     <em><?php _e('Укажите, чтобы в подписи опроса была ссылка на страницу с архивом опросов. Пр. <code>25</code>','dem') ?></em>
    257                 </div>
    258             </div>
     286                    <em><br><?php _e('Картинка при AJAX загрузке. Если выбрать "Нет", то вместо картинки будет добавлятся "...". SVG картинки не работают в ранних версиях браузеров и в IE 11 и ниже.','dem') ?></em>
     287                </li>
     288            </ul>
    259289       
    260290       
    261291            <h3><?php _e('Настройки плагина','dem') ?></h3>
    262             <div class="group">
    263                 <div class="block">
     292            <ul class="group">
     293                <li class="block">
    264294                   <label>
    265295                       <input type="checkbox" value="1" name="dem[force_cachegear]" <?php checked( $opt['force_cachegear'], 1) ?> />
     
    270300                    </label>
    271301                   <em><?php _e('Democracy умеет работать с плагинами страничного кэширования и автоматически включается, если такой плагин установлен и активен на вашем сайте. Активируйте эту опцию, чтобы насильно включить механизм работы со страничным кэшем.','dem') ?></em>
    272                 </div>
     302                </li>
    273303               
    274                 <div class="block">
     304                <li class="block">
    275305                   <label>
    276306                       <input <?php checked( $opt['inline_js_css'], 1 )?> type="checkbox" value="1" name="dem[inline_js_css]" />
     
    278308                   </label>
    279309                   <em><?php _e('Поставьте галочку, чтобы стили и скрипты плагина подключались в HTML код напрямую, а не как ссылки на файлы. Так вы сэкономите 2 запроса к серверу - это немного ускорит загрузку сайта.','dem') ?></em>
    280                 </div>
    281 
    282                 <div class="block">
     310                </li>
     311
     312                <li class="block">
    283313                   <label>
    284314                       <input <?php checked( $opt['toolbar_menu'], 1 )?> type="checkbox" value="1" name="dem[toolbar_menu]" />
     
    286316                   </label>
    287317                   <em><?php _e('Уберите галочку, чтобы убрать меню плагина из панели инструментов.','dem') ?></em>
    288                 </div>
    289 
    290                 <div class="block">
     318                </li>
     319
     320                <li class="block">
    291321                   <label>
    292322                       <input <?php checked( $opt['tinymce_button'], 1 )?> type="checkbox" value="1" name="dem[tinymce_button]" />
     
    294324                   </label>
    295325                   <em><?php _e('Уберите галочку, чтобы убрать кнопку из визуального редактора.','dem') ?></em>
    296                 </div>
    297 
    298                 <div class="block">
    299                    <label>
    300                        <input <?php checked( $opt['show_copyright'], 1 )?> type="checkbox" value="1" name="dem[show_copyright]" />
    301                        <?php _e('Показывать ссылку на страницу плагина','dem') ?>
    302                    </label>
    303                    <em><?php _e('Ссылка на страницу плагина выводиться только на главной в виде значка &copy;. И помогает другим людям узнать что это за плагин и установить его себе. Прошу не убирать эту галку без острой необходимости. Спасибо!','dem') ?></em>
    304                 </div>
    305 
    306             </div>
     326                </li>
     327
     328            </ul>
    307329           
    308330            <p>
     
    313335              <br><br>
    314336            <h3><?php _e('Другое','dem') ?></h3>
    315             <div class="group">
     337            <ul class="group">
    316338               
    317                 <div class="block">
     339                <li class="block">
    318340                   <label>
    319341                       <input <?php checked( $opt['disable_js'], 1 )?> type="checkbox" value="1" name="dem[disable_js]" />
     
    321343                   </label>
    322344                   <em><?php _e('Если включить, то .js файлы плагина НЕ будут подключены. Опция нужнда для Дебага работы плагина без JavaScript.','dem') ?></em>
    323                 </div>
     345                </li>
    324346               
    325                 <div class="block">
     347                <li class="block">
    326348                   <label>
    327349                       <input <?php checked( $opt['load_textdomain'], 1 )?> type="checkbox" value="1" name="dem[load_textdomain]" />
     
    329351                   </label>
    330352                   <em><?php _e('Отключите эту опцию, если ваш сайт на русском, но вы используете английскую версию WordPress','dem') ?></em>
    331                 </div>
     353                </li>
    332354               
    333                 <div class="block">
     355                <li class="block">
     356                   <label>
     357                       <input <?php checked( $opt['show_copyright'], 1 )?> type="checkbox" value="1" name="dem[show_copyright]" />
     358                       <?php _e('Показывать ссылку на страницу плагина','dem') ?>
     359                   </label>
     360                   <em><?php _e('Ссылка на страницу плагина выводиться только на главной в виде значка &copy;. И помогает другим людям узнать что это за плагин и установить его себе. Прошу не убирать эту галку без острой необходимости. Спасибо!','dem') ?></em>
     361                </li>
     362               
     363                <li class="block">
    334364                   <label>
    335365                       <input <?php checked( $opt['use_widget'], 1 )?> type="checkbox" value="1" name="dem[use_widget]" />
     
    337367                   </label>
    338368                   <em><?php _e('Поставьте галочку, чтобы активировать виджет.','dem') ?></em>
    339                 </div>
    340 
    341             </div>
     369                </li>
     370
     371            </ul>
    342372       
    343373        </form>
     
    444474            <li><label>
    445475                    <input type='text' name='dmc_end' value="<?php echo @$poll->end ? date('d-m-Y', $poll->end) : '' ?>" style="width:120px;min-width:120px;" >
    446                     <?php _e('Дата окончания голосования, если нужно. Формат: dd-mm-yyyy.','dem') ?>
     476                    <?php _e('Дата, когда опрос был/будет закрыт. Формат: dd-mm-yyyy.','dem') ?>
    447477                </label>
    448478            </li>
  • democracy-poll/trunk/admin/class.DemAdminInit.php

    r1084409 r1084841  
    4040       
    4141        // другие
    42         wp_enqueue_script('democracy-scripts', $this->dir_url . 'admin/admin.js', array('jquery'), null, true );
    43         wp_enqueue_style('democracy-styles', $this->dir_url . 'admin/style.css' );
     42        wp_enqueue_script('democracy-scripts', $this->dir_url . 'admin/admin.js', array('jquery'), DEM_VER, true );
     43        wp_enqueue_style('democracy-styles', $this->dir_url . 'admin/style.css', array(), DEM_VER );
    4444
    4545        ## Обработка запросов
     
    121121   
    122122    /**
    123      * Запрещает/разрешает голосование
     123     * Закрывает/открывает голосование
    124124     * @param int $poll_id ID опроса
    125125     * @param bool $open Что сделать, открыть или закрыть голосование?
     
    134134       
    135135        if( $open ) $new_data['end'] = 0; // удаляем дату окончания при открытии голосования
     136        else        $new_data['end'] = current_time('timestamp') - 10; // ставим дату закрытия опроса
    136137       
    137138        if( $wpdb->update( $wpdb->democracy_q, $new_data, array( 'id'=>$id ) ) )
  • democracy-poll/trunk/admin/style.css

    r1084409 r1084841  
    1313#democr_options .block em{ display:block; opacity:0; padding:5px 0 15px; line-height:1.1; transition:opacity 500ms; }
    1414#democr_options .block:hover em{ opacity:0.8; }
     15#democr_options .loaders .left{ float:left; text-align:center; margin-right:15px; height:85px; }
     16#democr_options .loaders .loader{ min-width:30px; margin-bottom: 5px; }
     17#democr_options .loaders:after, #democr_options .loaders em{ content:''; display: table; clear: both; }
    1518
    1619.polls-table{ margin-bottom:50px; }
  • democracy-poll/trunk/class.DemInit.php

    r1084409 r1084841  
    141141            'show_copyright'   => 1,
    142142            'only_for_users'   => 0,           
     143            'loader_fname'     => 'cube.svg',           
    143144            'disable_js'       => 0,   // Дебаг: отключает JS
    144145            'cookie_days'      => 365, // Дебаг
  • democracy-poll/trunk/class.DemPoll.php

    r1084553 r1084841  
    8787            $___ .=  '<a class="dem-copyright" href="http://wp-kama.ru/?p=67" title="'. __('Скачать Опрос Democracy','dem') .'"> © </a>';
    8888       
     89        // loader
     90        if( Dem::$inst->opt['loader_fname'] ){
     91            static $loader; // оптимизация, чтобы один раз выводился код на странице
     92            if( ! $loader ){
     93                $loader = '<div class="dem-loader"><div>'. file_get_contents( Dem::$inst->dir_path .'loaders/'. Dem::$inst->opt['loader_fname'] ) .'</div></div>';
     94                $___ .=  $loader;
     95            }
     96        }
    8997
    9098        $___ .=  "</div><!--democracy-->";
     
    93101        // Скрытый код если используется плагин страничного кэширования
    94102        if( Dem::$inst->is_cachegear_on() ){
    95             $___ .= '<!--noindex--><div class="dem-cache-screens" style="display:none;" data-keep_logs="'. Dem::$inst->opt['keep_logs'] .'">';
     103            $___ .= '<!--noindex--><div class="dem-cache-screens" style="display:none;" data-opt_logs="'. Dem::$inst->opt['keep_logs'] .'">';
    96104           
    97105            // запоминаем
  • democracy-poll/trunk/democracy.php

    r1084553 r1084841  
    11<?php
    2 define('DEM_VER', '4.5.7');
     2define('DEM_VER', '4.5.8');
    33/*
    4 Version: 4.5.7
     4Version: 4.5.8
    55Plugin Name: Democracy Poll
    66Description: Позволяет удобно создавать демократические опросы. Пользователи могут голосовать за несколько вариантов ответа или добавлять свои собственные ответы.
     
    6161}
    6262function get_democracy_poll( $id = 0, $before_title = '', $after_title = '' ){
    63 //  die($before_title . $after_title);
    6463    $poll = new DemPoll( $id );
    6564   
     
    8180       
    8281    $WHERE = $hide_active ? 'WHERE active = 0' : '';
    83     $ids = $wpdb->get_col("SELECT id FROM $wpdb->democracy_q $WHERE ORDER BY active DESC, id DESC");
     82    $ids = $wpdb->get_col("SELECT id FROM $wpdb->democracy_q $WHERE ORDER BY active DESC, open DESC, id DESC");
    8483
    8584    $output = '<div class="dem-archives">';
  • democracy-poll/trunk/js/democracy.js

    r1084409 r1084841  
    1515    'use strict';
    1616   
    17     var demLoading;
    1817    var democracy  = '.democracy';
    1918    var demScreen  = '.dem-screen'; // селектор контейнера с результатами
    2019    var userAnswer = '.dem-add-answer-txt'; // класс поля ответа
    2120    var demAjaxUrl = $(democracy).attr('data-ajax-url'); // URL ajax
     21   
     22    var loader;
     23    var $demLoader = $(document).find('.dem-loader').first(); // loader
     24    if( ! $demLoader.length ) $demLoader = false;
    2225   
    2326    // загрузка для AJAX. Точки ...
     
    3942                $the[0].innerHTML += '.';
    4043
    41         demLoading = setTimeout( function(){ $the.demLoadingDots(); }, 200 );
     44        loader = setTimeout( function(){ $the.demLoadingDots(); }, 200 );
    4245    };
    43 
    44     $.fn.demSetLoadDots = function(){ var $the = this; demLoading = setTimeout( function(){ $the.demLoadingDots(); }, 50 ); return this; };
    45     $.fn.demUnsetLoadDots = function(){ clearTimeout( demLoading ); return this; };
    46    
    47     $.fn.demSetLoadClass = function(){ this.closest(democracy).addClass('dem-loading'); return this; };
    48     $.fn.demUnsetLoadClass = function(){ this.closest(democracy).removeClass('dem-loading'); return this; };
     46   
     47    // Loader
     48    $.fn.demSetLoader   = function(){ var $the = this;
     49        if( $demLoader ) $the.closest(demScreen).append( $demLoader.clone().css('display','table') );
     50        else loader = setTimeout( function(){ $the.demLoadingDots(); }, 50 ); // dats
     51        return this;
     52    };
     53    $.fn.demUnsetLoader = function(){
     54        if( $demLoader ) this.closest(demScreen).find('.dem-loader').remove();
     55        else clearTimeout( loader );
     56        return this;
     57    };
    4958   
    5059    // Добавить ответ пользователя (ссылка)
     
    157166       
    158167        // AJAX
    159         $the.demSetLoadClass().demSetLoadDots();
     168        $the.demSetLoader();
    160169        $.post( demAjaxUrl, data,
    161170            function( respond ){
    162                 $the.demUnsetLoadClass().demUnsetLoadDots();
    163                 clearTimeout( demLoading ); // очистим операцию
     171                $the.demUnsetLoader();
     172           
    164173                // анимация
    165174                var speed = 300;
     
    235244            // Если голосов нет в куках и опция плагина keep_logs включена, установим проверку
    236245            // голосования через запрос в БД по событию (наведение мышки на блок),
    237             if( ! is_answrs && $the.attr('data-keep_logs') == 1 ){
     246            if( ! is_answrs && $the.attr('data-opt_logs') == 1 ){
    238247                var tmout;
    239248                var notcheck = function(){ clearTimeout( tmout ); };
     
    243252                        if( $dem.hasClass('checkAnswDone') ) return;
    244253                        $dem.addClass('checkAnswDone');
    245 
     254                       
     255                        var $forLoader = $dem.find('.dem-link').first();
     256                        $forLoader.demSetLoader();
    246257                        $.post( demAjaxUrl,
    247258                            {
     
    251262                            },
    252263                            function( answrs ){
     264                                $forLoader.demUnsetLoader();
    253265//                    console.log( answrs );
    254266                                if( ! answrs ) return; // выходим если нет ответов
  • democracy-poll/trunk/js/democracy.min.js

    r1084409 r1084841  
    1 !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e){function t(e){return e=o.json?JSON.stringify(e):String(e),o.raw?e:encodeURIComponent(e)}function n(t,n){var a;if(o.raw)a=t;else e:{var s=t;0===s.indexOf('"')&&(s=s.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{s=decodeURIComponent(s.replace(i," ")),a=o.json?JSON.parse(s):s;break e}catch(d){}a=void 0}return e.isFunction(n)?n(a):a}var i=/\+/g,o=e.cookie=function(i,a,s){if(void 0!==a&&!e.isFunction(a)){if(s=e.extend({},o.defaults,s),"number"==typeof s.expires){var d=s.expires,r=s.expires=new Date;r.setTime(+r+864e5*d)}return document.cookie=[o.raw?i:encodeURIComponent(i),"=",t(a),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("")}s=i?void 0:{};for(var d=document.cookie?document.cookie.split("; "):[],r=0,c=d.length;c>r;r++){var f,u=d[r].split("=");if(f=u.shift(),f=o.raw?f:decodeURIComponent(f),u=u.join("="),i&&i===f){s=n(u,a);break}i||void 0===(u=n(u))||(s[f]=u)}return s};o.defaults={},e.removeCookie=function(t,n){return void 0===e.cookie(t)?!1:(e.cookie(t,"",e.extend({},n,{expires:-1})),!e.cookie(t))}}),function(e){"use strict";var t,n=".democracy",i=".dem-screen",o=".dem-add-answer-txt",a=e(n).attr("data-ajax-url");e.fn.demLoadingDots=function(){var e=this,n=e.is("input"),i=n?e.val():e.text();"..."==i.substring(i.length-3)?n?e.val(i.substring(0,i.length-3)):e.text(i.substring(0,i.length-3)):n?e[0].value+=".":e[0].innerHTML+=".",t=setTimeout(function(){e.demLoadingDots()},200)},e.fn.demSetLoadDots=function(){var e=this;return t=setTimeout(function(){e.demLoadingDots()},50),this},e.fn.demUnsetLoadDots=function(){return clearTimeout(t),this},e.fn.demSetLoadClass=function(){return this.closest(n).addClass("dem-loading"),this},e.fn.demUnsetLoadClass=function(){return this.closest(n).removeClass("dem-loading"),this},e.fn.demAddAnswer=function(){var t=this.first(),n=t.closest(i),a=n.find("[type=checkbox]").length>0,s=e('<input type="text" class="'+o.replace(/\./,"")+'" value="">');if(n.find("[type=radio]").each(function(){e(this).click(function(){t.fadeIn(300),e(o).remove()}),"radio"==e(this)[0].type&&(this.checked=!1)}),t.hide().parent("li").append(s),s.hide().fadeIn(300).focus(),a){var d=n.find(o);e('<span class="add-answer-txt-close">×</span>').insertBefore(d).css("line-height",d.outerHeight()+"px").click(function(){var t=e(this).parent("li");t.find("input").remove(),t.find("a").fadeIn(300),e(this).remove()})}return!1},e.fn.demCollectAnsw=function(){var t=this.closest("form"),n=t.find("[type=checkbox],[type=radio],[type=text]"),i=t.find(o).val(),a=[],s=n.filter("[type=checkbox]:checked");if(s.length>0)s.each(function(){a.push(e(this).val())});else{var d=n.filter("[type=radio]:checked");d.length&&a.push(d.val())}return i&&a.push(i),a=a.join(","),a?a:""},e.fn.demSetHeight=function(t){return this.each(function(){var n=e(this);t||(t=300);var i=n.html(),o=n.clone().html(i).css({height:"auto"}).appendTo(n),a="border-box"==o.css("box-sizing")?o.outerHeight():o.height();o.remove(),n.css({opacity:0}).animate({height:a},t,function(){e(this).animate({opacity:1},1.5*t)})})},e.fn.demShake=function(){return this.each(function(){var t=e(this).css("position");for(t&&"static"!==t||e(this).css("position","relative"),t=1;2>=t;t++)e(this).animate({left:-10},50).animate({left:10},100).animate({left:0},50)})},e.fn.demDoAction=function(o){var s=this.first(),d=s.closest(n),r={dem_pid:d.attr("data-pid"),dem_act:o,action:"dem_ajax"};return"undefined"==typeof r.dem_pid?(console.log("Poll id is not defined!"),!1):"vote"!=o||(r.answer_ids=s.demCollectAnsw(),r.answer_ids)?"delVoted"!=o||confirm(s.attr("data-confirm-text"))?"newAnswer"==o?(s.demAddAnswer(),!1):(s.demSetLoadClass().demSetLoadDots(),e.post(a,r,function(e){s.demUnsetLoadClass().demUnsetLoadDots(),clearTimeout(t);var n=s.closest(i);n.html(e).demSetHeight().demSetClick()}),!1):!1:(s.demShake(),!1)},e.fn.demSetClick=function(){return this.each(function(){var t="data-dem-act";e(this).find("["+t+"]").each(function(){e(this).attr("href","#"),e(this).click(function(n){n.preventDefault(),e(this).blur().demDoAction(e(this).attr(t))})})})},e.fn.demCacheInit=function(){var t=function(t,n){var i=t.find(".dem-answers"),o=i.attr("data-voted-class"),a=i.attr("data-voted-txt"),s=n.split(/,/);e.each(s,function(n,i){t.find('[data-aid="'+i+'"]').addClass(o).attr("title",function(){return a+e(this).attr("title")})})};return this.each(function(){var o=e(this),s=o.prev(n);if(s.length||(s=o.closest(n)),!s.length)return void console.log("Main dem div not found");var d=s.find(i).first(),r=s.attr("data-pid"),c=e.cookie("demPoll_"+r),f=!("undefined"==typeof c),u=o.find(i+"-cache.vote").html(),l=o.find(i+"-cache.voted").html();if(u){var h=(f?l:u)+"<!--cache-->";if(d.html(h).demSetClick(),f&&t(d,c),!f&&1==o.attr("data-keep_logs")){var m,p=function(){clearTimeout(m)},v=function(){m=setTimeout(function(){s.hasClass("checkAnswDone")||(s.addClass("checkAnswDone"),e.post(a,{dem_pid:s.attr("data-pid"),dem_act:"getVotedIds",action:"dem_ajax"},function(e){if(e){d.html(l).demSetHeight().demSetClick(),t(d,e);var n=d.find(".dem-youarevote").first();"blockForVisitor"==e&&(d.find(".dem-revote-link").remove(),n=d.find(".dem-only-users").first()),d.prepend(n.show()),setTimeout(function(){n.slideUp("slow")},3e3)}}))},700)};s.hover(v,p),s.click(v)}d.demSetHeight()}})},e(document).ready(function(e){e(i).filter(":visible").demSetClick().demSetHeight(1);var t=e(".dem-cache-screens");t.length>0&&t.demCacheInit()})}(jQuery);
     1!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e){function t(e){return e=o.json?JSON.stringify(e):String(e),o.raw?e:encodeURIComponent(e)}function i(t,i){var a;if(o.raw)a=t;else e:{var r=t;0===r.indexOf('"')&&(r=r.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{r=decodeURIComponent(r.replace(n," ")),a=o.json?JSON.parse(r):r;break e}catch(d){}a=void 0}return e.isFunction(i)?i(a):a}var n=/\+/g,o=e.cookie=function(n,a,r){if(void 0!==a&&!e.isFunction(a)){if(r=e.extend({},o.defaults,r),"number"==typeof r.expires){var d=r.expires,s=r.expires=new Date;s.setTime(+s+864e5*d)}return document.cookie=[o.raw?n:encodeURIComponent(n),"=",t(a),r.expires?"; expires="+r.expires.toUTCString():"",r.path?"; path="+r.path:"",r.domain?"; domain="+r.domain:"",r.secure?"; secure":""].join("")}r=n?void 0:{};for(var d=document.cookie?document.cookie.split("; "):[],s=0,c=d.length;c>s;s++){var f,l=d[s].split("=");if(f=l.shift(),f=o.raw?f:decodeURIComponent(f),l=l.join("="),n&&n===f){r=i(l,a);break}n||void 0===(l=i(l))||(r[f]=l)}return r};o.defaults={},e.removeCookie=function(t,i){return void 0===e.cookie(t)?!1:(e.cookie(t,"",e.extend({},i,{expires:-1})),!e.cookie(t))}}),function(e){"use strict";var t,i=".democracy",n=".dem-screen",o=".dem-add-answer-txt",a=e(i).attr("data-ajax-url"),r=e(document).find(".dem-loader").first();r.length||(r=!1),e.fn.demLoadingDots=function(){var e=this,i=e.is("input"),n=i?e.val():e.text();"..."==n.substring(n.length-3)?i?e.val(n.substring(0,n.length-3)):e.text(n.substring(0,n.length-3)):i?e[0].value+=".":e[0].innerHTML+=".",t=setTimeout(function(){e.demLoadingDots()},200)},e.fn.demSetLoader=function(){var e=this;return r?e.closest(n).append(r.clone().css("display","table")):t=setTimeout(function(){e.demLoadingDots()},50),this},e.fn.demUnsetLoader=function(){return r?this.closest(n).find(".dem-loader").remove():clearTimeout(t),this},e.fn.demAddAnswer=function(){var t=this.first(),i=t.closest(n),a=i.find("[type=checkbox]").length>0,r=e('<input type="text" class="'+o.replace(/\./,"")+'" value="">');if(i.find("[type=radio]").each(function(){e(this).click(function(){t.fadeIn(300),e(o).remove()}),"radio"==e(this)[0].type&&(this.checked=!1)}),t.hide().parent("li").append(r),r.hide().fadeIn(300).focus(),a){var d=i.find(o);e('<span class="add-answer-txt-close">×</span>').insertBefore(d).css("line-height",d.outerHeight()+"px").click(function(){var t=e(this).parent("li");t.find("input").remove(),t.find("a").fadeIn(300),e(this).remove()})}return!1},e.fn.demCollectAnsw=function(){var t=this.closest("form"),i=t.find("[type=checkbox],[type=radio],[type=text]"),n=t.find(o).val(),a=[],r=i.filter("[type=checkbox]:checked");if(r.length>0)r.each(function(){a.push(e(this).val())});else{var d=i.filter("[type=radio]:checked");d.length&&a.push(d.val())}return n&&a.push(n),a=a.join(","),a?a:""},e.fn.demSetHeight=function(t){return this.each(function(){var i=e(this);t||(t=300);var n=i.html(),o=i.clone().html(n).css({height:"auto"}).appendTo(i),a="border-box"==o.css("box-sizing")?o.outerHeight():o.height();o.remove(),i.css({opacity:0}).animate({height:a},t,function(){e(this).animate({opacity:1},1.5*t)})})},e.fn.demShake=function(){return this.each(function(){var t=e(this).css("position");for(t&&"static"!==t||e(this).css("position","relative"),t=1;2>=t;t++)e(this).animate({left:-10},50).animate({left:10},100).animate({left:0},50)})},e.fn.demDoAction=function(t){var o=this.first(),r=o.closest(i),d={dem_pid:r.attr("data-pid"),dem_act:t,action:"dem_ajax"};return"undefined"==typeof d.dem_pid?(console.log("Poll id is not defined!"),!1):"vote"!=t||(d.answer_ids=o.demCollectAnsw(),d.answer_ids)?"delVoted"!=t||confirm(o.attr("data-confirm-text"))?"newAnswer"==t?(o.demAddAnswer(),!1):(o.demSetLoader(),e.post(a,d,function(e){o.demUnsetLoader();var t=o.closest(n);t.html(e).demSetHeight().demSetClick()}),!1):!1:(o.demShake(),!1)},e.fn.demSetClick=function(){return this.each(function(){var t="data-dem-act";e(this).find("["+t+"]").each(function(){e(this).attr("href","#"),e(this).click(function(i){i.preventDefault(),e(this).blur().demDoAction(e(this).attr(t))})})})},e.fn.demCacheInit=function(){var t=function(t,i){var n=t.find(".dem-answers"),o=n.attr("data-voted-class"),a=n.attr("data-voted-txt"),r=i.split(/,/);e.each(r,function(i,n){t.find('[data-aid="'+n+'"]').addClass(o).attr("title",function(){return a+e(this).attr("title")})})};return this.each(function(){var o=e(this),r=o.prev(i);if(r.length||(r=o.closest(i)),!r.length)return void console.log("Main dem div not found");var d=r.find(n).first(),s=r.attr("data-pid"),c=e.cookie("demPoll_"+s),f=!("undefined"==typeof c),l=o.find(n+"-cache.vote").html(),u=o.find(n+"-cache.voted").html();if(l){var h=(f?u:l)+"<!--cache-->";if(d.html(h).demSetClick(),f&&t(d,c),!f&&1==o.attr("data-opt_logs")){var m,p=function(){clearTimeout(m)},v=function(){m=setTimeout(function(){if(!r.hasClass("checkAnswDone")){r.addClass("checkAnswDone");var i=r.find(".dem-link").first();i.demSetLoader(),e.post(a,{dem_pid:r.attr("data-pid"),dem_act:"getVotedIds",action:"dem_ajax"},function(e){if(i.demUnsetLoader(),e){d.html(u).demSetHeight().demSetClick(),t(d,e);var n=d.find(".dem-youarevote").first();"blockForVisitor"==e&&(d.find(".dem-revote-link").remove(),n=d.find(".dem-only-users").first()),d.prepend(n.show()),setTimeout(function(){n.slideUp("slow")},3e3)}})}},700)};r.hover(v,p),r.click(v)}d.demSetHeight()}})},e(document).ready(function(e){e(n).filter(":visible").demSetClick().demSetHeight(1);var t=e(".dem-cache-screens");t.length>0&&t.demCacheInit()})}(jQuery);
  • democracy-poll/trunk/languages/en_US.po

    r1084564 r1084841  
    22msgstr ""
    33"Project-Id-Version: Democracy\n"
    4 "POT-Creation-Date: 2015-02-07 22:29+0500\n"
    5 "PO-Revision-Date: 2015-02-07 22:32+0500\n"
     4"POT-Creation-Date: 2015-02-08 13:14+0500\n"
     5"PO-Revision-Date: 2015-02-08 13:18+0500\n"
    66"Last-Translator: \n"
    77"Language-Team: \n"
     
    1818"X-Poedit-SearchPath-1: .\n"
    1919
    20 #: admin/admin_page.php:63 admin/admin_page.php:110
     20#: admin/admin_page.php:63 admin/admin_page.php:110 admin/admin_page.php:263
    2121msgid "Нет"
    2222msgstr "No"
     
    7575msgstr "Edit"
    7676
    77 #: admin/admin_page.php:137 admin/admin_page.php:484
     77#: admin/admin_page.php:137 admin/admin_page.php:514
    7878msgid "Удалить"
    7979msgstr "Delete"
    8080
    81 #: admin/admin_page.php:137 admin/admin_page.php:484
     81#: admin/admin_page.php:137 admin/admin_page.php:514
    8282msgid "Точно удалить?"
    8383msgstr "Are you sure?"
     
    130130"<strong>Note:</strong> works together with IP log."
    131131
    132 #: admin/admin_page.php:199 admin/admin_page.php:461
     132#: admin/admin_page.php:199 admin/admin_page.php:491
    133133msgid "Голосовать могут только зарегистрированные пользователи."
    134134msgstr "Are only registered users allowed to vote?"
     
    169169
    170170#: admin/admin_page.php:221
     171msgid "Обёртка заголовка опроса HTML тегами."
     172msgstr "HTML tags to wrap the poll title."
     173
     174#: admin/admin_page.php:223
     175msgid "вопрос опроса"
     176msgstr "poll's question"
     177
     178#: admin/admin_page.php:225
     179msgid ""
     180"Например: <code>&lt;h2&gt;</code> и <code>&lt;/h2&gt;</code>. По умолчанию: "
     181"<code>&lt;strong class=&quot;dem-poll-title&quot;&gt;</code> и <code>&lt;/"
     182"strong&gt;</code>."
     183msgstr ""
     184"Example: <code>&lt;h2&gt;</code> и <code>&lt;/h2&gt;</code>. Default: "
     185"<code>&lt;strong class=&quot;dem-poll-title&quot;&gt;</code> & <code>&lt;/"
     186"strong&gt;</code>."
     187
     188#: admin/admin_page.php:231
     189msgid "ID архива опросов."
     190msgstr "Polls archive page ID."
     191
     192#: admin/admin_page.php:235
     193msgid "Перейти на страницу архива"
     194msgstr "Go to archive page"
     195
     196#: admin/admin_page.php:237
     197msgid "Создать страницу архива"
     198msgstr "Create archive page"
     199
     200#: admin/admin_page.php:239
     201msgid ""
     202"Укажите, чтобы в подписи опроса была ссылка на страницу с архивом опросов. "
     203"Пр. <code>25</code>"
     204msgstr ""
     205"Specify the poll archive link to be in the poll legend. Example: <code>25</"
     206"code>"
     207
     208#: admin/admin_page.php:243
    171209msgid "Внешний вид (тема) опроса:"
    172210msgstr "Design of a poll (theme):"
    173211
    174 #: admin/admin_page.php:223
     212#: admin/admin_page.php:245
    175213msgid "- Не подключать файл стилей"
    176214msgstr "- Don't connect CSS file"
    177215
    178 #: admin/admin_page.php:233
     216#: admin/admin_page.php:255
    179217msgid "cсылка на файл"
    180218msgstr "link to the file"
    181219
    182 #: admin/admin_page.php:234
     220#: admin/admin_page.php:256
    183221msgid ""
    184222"Выберете какой файл стилей использовать для отображения опросов. Выберете "
     
    191229"located. This way you can tune styles and avoid looses during updating."
    192230
    193 #: admin/admin_page.php:238
    194 msgid "Обёртка заголовка опроса HTML тегами."
    195 msgstr "HTML tags to wrap the poll title."
    196 
    197 #: admin/admin_page.php:240
    198 msgid "<вопрос опроса>"
    199 msgstr "<poll question>"
    200 
    201 #: admin/admin_page.php:242
    202 msgid ""
    203 "Например: <code>&lt;h2&gt;</code> и <code>&lt;/h2&gt;</code>. По умолчанию: "
    204 "<code>&lt;strong class=&quot;dem-poll-title&quot;&gt;</code> и <code>&lt;/"
    205 "strong&gt;</code>."
    206 msgstr ""
    207 "Example: <code>&lt;h2&gt;</code> и <code>&lt;/h2&gt;</code>. Default: "
    208 "<code>&lt;strong class=&quot;dem-poll-title&quot;&gt;</code> & <code>&lt;/"
    209 "strong&gt;</code>."
    210 
    211 #: admin/admin_page.php:248
    212 msgid "ID архива опросов."
    213 msgstr "Polls archive page ID."
    214 
    215 #: admin/admin_page.php:252
    216 msgid "Перейти на страницу архива"
    217 msgstr "Go to archive page"
    218 
    219 #: admin/admin_page.php:254
    220 msgid "Создать страницу архива"
    221 msgstr "Create archive page"
    222 
    223 #: admin/admin_page.php:256
    224 msgid ""
    225 "Укажите, чтобы в подписи опроса была ссылка на страницу с архивом опросов. "
    226 "Пр. <code>25</code>"
    227 msgstr ""
    228 "Specify the poll archive link to be in the poll legend. Example: <code>25</"
    229 "code>"
    230 
    231 #: admin/admin_page.php:261
     231#: admin/admin_page.php:260
     232msgid "AJAX загрузчик:"
     233msgstr "AJAX loader:"
     234
     235#: admin/admin_page.php:286
     236msgid ""
     237"Картинка при AJAX загрузке. Если выбрать \"Нет\", то вместо картинки будут "
     238"добавлятся \"...\". SVG картинки не работают в ранних версиях браузеров и в "
     239"IE 11 и ниже."
     240msgstr ""
     241"If choose \"No\" then \"...\" will be added to the end of button text. SVG "
     242"loaders have no animation in early browsers and in IE 11 or lower."
     243
     244#: admin/admin_page.php:291
    232245msgid "Настройки плагина"
    233246msgstr "Plugin Settings"
    234247
    235 #: admin/admin_page.php:267
     248#: admin/admin_page.php:297
    236249msgid "Включён"
    237250msgstr "ON"
    238251
    239 #: admin/admin_page.php:267
     252#: admin/admin_page.php:297
    240253msgid "Выключен"
    241254msgstr "OFF"
    242255
    243 #: admin/admin_page.php:268
     256#: admin/admin_page.php:298
    244257#, php-format
    245258msgid "Включить механихм работы с плагинами кэширования? Текущее состояние: %s"
    246 msgstr "Force enable gear to forking with cache plugins. The condition: %s"
    247 
    248 #: admin/admin_page.php:271
     259msgstr "Force enable gear to working with cache plugins. The condition: %s"
     260
     261#: admin/admin_page.php:301
    249262msgid ""
    250263"Democracy умеет работать с плагинами страничного кэширования и автоматически "
     
    258271"option."
    259272
    260 #: admin/admin_page.php:277
     273#: admin/admin_page.php:307
    261274msgid "Подключать стили и скрипты прямо в HTML код (рекомендуется)?"
    262275msgstr "Add styles and scripts directly in the HTML code (recommended)?"
    263276
    264 #: admin/admin_page.php:279
     277#: admin/admin_page.php:309
    265278msgid ""
    266279"Поставьте галочку, чтобы стили и скрипты плагина подключались в HTML код "
     
    272285"the server - it speeds up page download."
    273286
    274 #: admin/admin_page.php:285
     287#: admin/admin_page.php:315
    275288msgid "Пункт меню в панели инструментов?"
    276289msgstr "Add plugin menu on the toolbar?"
    277290
    278 #: admin/admin_page.php:287
     291#: admin/admin_page.php:317
    279292msgid "Уберите галочку, чтобы убрать меню плагина из панели инструментов."
    280293msgstr "Uncheck to remove the plugin menu from the toolbar."
    281294
    282 #: admin/admin_page.php:293
     295#: admin/admin_page.php:323
    283296msgid "Добавить кнопку быстрой вставки опросов в редактор WordPress (TinyMCE)?"
    284297msgstr "Add fast Poll insert button to WordPress visual editor (TinyMCE)?"
    285298
    286 #: admin/admin_page.php:295
     299#: admin/admin_page.php:325
    287300msgid "Уберите галочку, чтобы убрать кнопку из визуального редактора."
    288301msgstr "Uncheck to disable button in visual editor."
    289302
    290 #: admin/admin_page.php:301
     303#: admin/admin_page.php:331
    291304msgid "Показывать ссылку на страницу плагина"
    292305msgstr "Show copyright"
    293306
    294 #: admin/admin_page.php:303
     307#: admin/admin_page.php:333
    295308msgid ""
    296309"Ссылка на страницу плагина выводиться только на главной в виде значка "
     
    302315"don't disable this option without urgent needs. Thanks!"
    303316
    304 #: admin/admin_page.php:310
     317#: admin/admin_page.php:340
    305318msgid "Сбросить настройки на начальные"
    306319msgstr "Reset Options"
    307320
    308 #: admin/admin_page.php:314
     321#: admin/admin_page.php:344
    309322msgid "Другое"
    310323msgstr "Others"
    311324
    312 #: admin/admin_page.php:320
     325#: admin/admin_page.php:350
    313326msgid "НЕ подключать JS файлы. (Дебаг)"
    314327msgstr "Don't connect JS files. (Debag)"
    315328
    316 #: admin/admin_page.php:322
     329#: admin/admin_page.php:352
    317330msgid ""
    318331"Если включить, то .js файлы плагина НЕ будут подключены. Опция нужнда для "
     
    322335"this option to test the plugin's work without JavaScript."
    323336
    324 #: admin/admin_page.php:328
     337#: admin/admin_page.php:358
    325338msgid "Подгружать файлы перевода?"
    326339msgstr "Load the translation files?"
    327340
    328 #: admin/admin_page.php:330
     341#: admin/admin_page.php:360
    329342msgid ""
    330343"Отключите эту опцию, если ваш сайт на русском, но вы используете английскую "
     
    332345msgstr "Disable this option if you're Russian, but use English WordPress"
    333346
    334 #: admin/admin_page.php:336
     347#: admin/admin_page.php:366
    335348msgid "Виджет"
    336349msgstr "Widget"
    337350
    338 #: admin/admin_page.php:338
     351#: admin/admin_page.php:368
    339352msgid "Поставьте галочку, чтобы активировать виджет."
    340353msgstr "Check to activate the widget."
    341354
    342 #: admin/admin_page.php:351
     355#: admin/admin_page.php:381
    343356msgid "Сохранить настройки"
    344357msgstr "Save Options"
    345358
    346 #: admin/admin_page.php:370 class.DemPoll.php:83
     359#: admin/admin_page.php:400 class.DemPoll.php:83
    347360msgid "Редактировать опрос"
    348361msgstr "Edit poll"
    349362
    350 #: admin/admin_page.php:380
     363#: admin/admin_page.php:410
    351364msgid "Добавить новый опрос"
    352365msgstr "Add new poll"
    353366
    354 #: admin/admin_page.php:394
     367#: admin/admin_page.php:424
    355368msgid "Вопрос:"
    356369msgstr "Question:"
    357370
    358 #: admin/admin_page.php:399
     371#: admin/admin_page.php:429
    359372msgid "Варианты ответов:"
    360373msgstr "Answers:"
    361374
    362 #: admin/admin_page.php:419
     375#: admin/admin_page.php:449
    363376msgid "Добавить ответ"
    364377msgstr "Add an Answer"
    365378
    366 #: admin/admin_page.php:427
     379#: admin/admin_page.php:457
    367380msgid "Сделать этот опрос активным."
    368381msgstr "Activate this poll."
    369382
    370 #: admin/admin_page.php:434
     383#: admin/admin_page.php:464
    371384msgid "Разрешить пользователям добавлять свои ответы (democracy)."
    372385msgstr "Allow users to add answers (democracy)."
    373386
    374 #: admin/admin_page.php:440
     387#: admin/admin_page.php:470
    375388msgid "Разрешить выбирать несколько ответов (множественный)."
    376389msgstr "Allow to choose multiple answers."
    377390
    378 #: admin/admin_page.php:446
    379 msgid "Дата окончания голосования, если нужно. Формат: dd-mm-yyyy."
    380 msgstr "Poll deadline, if needed. Format: dd-mm-yyyy."
    381 
    382 #: admin/admin_page.php:453
     391#: admin/admin_page.php:476
     392msgid "Дата, когда опрос был/будет закрыт. Формат: dd-mm-yyyy."
     393msgstr "Date, when poll was/will be closed. Format: dd-mm-yyyy."
     394
     395#: admin/admin_page.php:483
    383396msgid "Разрешить изменять мнение (переголосование)."
    384397msgstr "Allow to change mind (revote)."
    385398
    386 #: admin/admin_page.php:466
     399#: admin/admin_page.php:496
    387400msgid "Заметка: текст будет добавлен под опросом."
    388401msgstr "Note: This text will be added under poll."
    389402
    390 #: admin/admin_page.php:473
     403#: admin/admin_page.php:503
    391404msgid "Внести изменения"
    392405msgstr "Save Changes"
    393406
    394 #: admin/admin_page.php:473 class.DemInit.php:73
     407#: admin/admin_page.php:503 class.DemInit.php:73
    395408msgid "Добавить опрос"
    396409msgstr "Add Poll"
    397410
    398 #: admin/admin_page.php:519
     411#: admin/admin_page.php:549
    399412msgid "← вернуться к опросам"
    400413msgstr "← back to polls"
    401414
    402 #: admin/admin_page.php:521
     415#: admin/admin_page.php:551
    403416msgid "← Назад"
    404417msgstr "← Back"
    405418
    406 #: admin/admin_page.php:536
     419#: admin/admin_page.php:566
    407420msgid "Активный"
    408421msgstr "Active"
    409422
    410 #: admin/admin_page.php:538
     423#: admin/admin_page.php:568
    411424msgid "Неактивный"
    412425msgstr "Inactive"
    413426
    414 #: admin/admin_page.php:552
     427#: admin/admin_page.php:582
    415428msgid "Голосование открыто"
    416429msgstr "Voting is Open"
    417430
    418 #: admin/admin_page.php:554
     431#: admin/admin_page.php:584
    419432msgid "Голосование закрыто"
    420433msgstr "Voting is Closed"
     
    436449msgstr "Poll Deleted"
    437450
    438 #: admin/class.DemAdminInit.php:138
     451#: admin/class.DemAdminInit.php:139
    439452msgid "Опрос открыт"
    440453msgstr "Poll Opened"
    441454
    442 #: admin/class.DemAdminInit.php:138 class.DemPoll.php:250
     455#: admin/class.DemAdminInit.php:139 class.DemPoll.php:258
    443456msgid "Опрос закрыт"
    444457msgstr "Voting is closed"
    445458
    446 #: admin/class.DemAdminInit.php:156
     459#: admin/class.DemAdminInit.php:157
    447460msgid "Опрос активирован"
    448461msgstr "Poll Activated"
    449462
    450 #: admin/class.DemAdminInit.php:156
     463#: admin/class.DemAdminInit.php:157
    451464msgid "Опрос деактивирован"
    452465msgstr "Poll Deactivated"
    453466
    454 #: admin/class.DemAdminInit.php:256
     467#: admin/class.DemAdminInit.php:257
    455468msgid "Опрос обновлён"
    456469msgstr "Poll Updated"
    457470
    458 #: admin/class.DemAdminInit.php:276
     471#: admin/class.DemAdminInit.php:277
    459472msgid "Вставка Опроса Democracy"
    460473msgstr "Insert Poll of Democracy"
    461474
    462 #: admin/class.DemAdminInit.php:277
     475#: admin/class.DemAdminInit.php:278
    463476msgid "Введите ID опроса"
    464477msgstr "Insert Poll ID"
    465478
    466 #: admin/class.DemAdminInit.php:278
     479#: admin/class.DemAdminInit.php:279
    467480msgid "Ошибка: ID - это число. Введите ID еще раз"
    468481msgstr "Error: ID is a integer. Enter ID again, please."
    469482
    470 #: admin/class.DemAdminInit.php:300 class.DemPoll.php:252
     483#: admin/class.DemAdminInit.php:301 class.DemPoll.php:260
    471484msgid "Архив опросов"
    472485msgstr "Polls Archive"
     
    509522msgstr "Download the Democracy Poll"
    510523
    511 #: class.DemPoll.php:164
     524#: class.DemPoll.php:172
    512525msgid "Добавить свой ответ"
    513526msgstr "Add your answer"
    514527
    515 #: class.DemPoll.php:172 class.DemPoll.php:266
     528#: class.DemPoll.php:180 class.DemPoll.php:274
    516529msgid "Голосовать"
    517530msgstr "Vote"
    518531
    519 #: class.DemPoll.php:175
     532#: class.DemPoll.php:183
    520533msgid "Результаты"
    521534msgstr "Results"
    522535
    523 #: class.DemPoll.php:201
     536#: class.DemPoll.php:209
    524537msgid "Ваш голос. "
    525538msgstr "Your vote."
    526539
    527 #: class.DemPoll.php:210
     540#: class.DemPoll.php:218
    528541msgid "Ответ добавлен посетителем"
    529542msgstr "The answer was added by a visitor"
    530543
    531 #: class.DemPoll.php:213
     544#: class.DemPoll.php:221
    532545#, php-format
    533546msgid "%s%% от всех голосов"
    534547msgstr "%s%% of all votes"
    535548
    536 #: class.DemPoll.php:221
     549#: class.DemPoll.php:229
    537550msgid "голос"
    538551msgstr "vote"
    539552
    540 #: class.DemPoll.php:221
     553#: class.DemPoll.php:229
    541554msgid "голоса"
    542555msgstr "votes"
    543556
    544 #: class.DemPoll.php:221
     557#: class.DemPoll.php:229
    545558msgid "голосов"
    546559msgstr "votes"
    547560
    548 #: class.DemPoll.php:246
     561#: class.DemPoll.php:254
    549562#, php-format
    550563msgid "Всего голосов: %s"
    551564msgstr "Total Votes: %s"
    552565
    553 #: class.DemPoll.php:247
     566#: class.DemPoll.php:255
    554567msgid "Начало"
    555568msgstr "Begin"
    556569
    557 #: class.DemPoll.php:248
     570#: class.DemPoll.php:256
    558571msgid "Конец"
    559572msgstr "End"
    560573
    561 #: class.DemPoll.php:249
     574#: class.DemPoll.php:257
    562575msgid " - добавлен посетителем"
    563576msgstr " - added by visitor"
    564577
    565 #: class.DemPoll.php:258
     578#: class.DemPoll.php:266
    566579#, php-format
    567580msgid ""
     
    572585"vote."
    573586
    574 #: class.DemPoll.php:261
     587#: class.DemPoll.php:269
    575588msgid "Точно отменить голоса?"
    576589msgstr "Are you sure you want cancel the votes?"
    577590
    578 #: class.DemPoll.php:262
     591#: class.DemPoll.php:270
    579592msgid "Переголосовать"
    580593msgstr "Revote"
    581594
    582 #: class.DemPoll.php:278
     595#: class.DemPoll.php:286
    583596msgid "Вы уже голосовали"
    584597msgstr "You have already voted"
     
    593606"answer & add their own answers."
    594607
    595 #: democracy.php:172
     608#: democracy.php:171
    596609msgid "Что для вас деньги?"
    597610msgstr "What does \"money\" mean to you?"
    598611
    599 #: democracy.php:180
     612#: democracy.php:179
    600613msgid "Деньги - это универсальный продукт для обмена."
    601614msgstr " It is a universal product for exchange."
    602615
    603 #: democracy.php:181
     616#: democracy.php:180
    604617msgid "Деньги - это бумага... Не в деньгах счастье..."
    605618msgstr "Money - is paper... Money is not the key to happiness..."
    606619
    607 #: democracy.php:182
     620#: democracy.php:181
    608621msgid "Средство достижения цели."
    609622msgstr "Source to achieve the goal. "
    610623
    611 #: democracy.php:183
     624#: democracy.php:182
    612625msgid "Кусочки дьявола :)"
    613626msgstr "Pieces of Evil :)"
    614627
    615 #: democracy.php:184
     628#: democracy.php:183
    616629msgid "Это власть, - это \"Сила\", - это счастье..."
    617630msgstr "The authority, the  \"power\", the happiness..."
     
    636649msgid "Какой опрос показывать?"
    637650msgstr "What poll to show?"
     651
     652#~ msgid "<вопрос опроса>"
     653#~ msgstr "<poll question>"
     654
     655#~ msgid "Дата окончания голосования, если нужно. Формат: dd-mm-yyyy."
     656#~ msgstr "Poll deadline, if needed. Format: dd-mm-yyyy."
    638657
    639658#~ msgid "Вести лог и учитывать IP?"
  • democracy-poll/trunk/readme.txt

    r1084553 r1084841  
    11=== Plugin Name ===
    2 Stable tag: 4.5.7
     2Stable tag: 4.5.8
    33Tested up to: 4.1
    44Requires at least: 3.0
     
    125125
    126126== TODO ==
     127* sorting on archive page
     128* при закрытии ставить дату закрытия
    127129* limit multiple answers select
    128130* cron: shadule polls opening & activation
     
    131133
    132134== Changelog ==
     135= 4.5.8 =
     136* Added: AJAX loader images SVG & css3 collection
     137* Added: Autoset close-date when you close poll
     138
    133139= 4.5.7 =
    134140* BugFix: revote button didn't minus votes if "keep-logs" option was disabled
  • democracy-poll/trunk/styles/default.css

    r1084409 r1084841  
    1 /* общие */
     1/* common */
    22.democracy{ position:relative; margin:0 auto; }
    33.democracy ul li{ list-style:none!important; background:none!important; }
     
    1616
    1717
    18 /* оформление голосования */
     18/* vote screen */
    1919.dem-link, .dem-archive-link{ font-style:italic; font-size:90%; }
    2020.dem-archive-link{ text-align: right;  }
     
    3737
    3838
    39 
    40 /* оформление результатов */
     39/* results screen */
    4140.dem-answers .label{ margin-bottom:.2em; line-height: 1.1; }
    4241.dem-answers li{ margin-bottom:0.7em; }
     
    5958.dem-label-percent-txt:after{ content:')'; }
    6059
    61 /* прячем */
     60/* hide */
    6261.dem-label-percent-txt{ display:none; }
    6362.dem-only-percent-txt{ display:none; }
    6463
    6564
    66 /* кнопка */
     65/* button */
    6766.dem-vote-button{ display:inline-block; }
    6867.dem-vote-button input[type="submit"]{
     
    8382}
    8483
    85 
     84/* copyright */
    8685.dem-copyright{ position:absolute; bottom: -1em; right: -1.2em; text-decoration:none; color:#b2b2b2!important; opacity:0.7; line-height:1; }
    8786.dem-copyright:hover{ opacity:1; }
    8887
    8988
    90 /* архив */
     89/* archive */
    9190.dem-archives .democracy { margin-bottom:20px; padding-bottom:20px; border-bottom:1px dashed #ccc; }
    9291.dem-archives .dem-archive-link { display: none; }
    9392
    94 /* Кэш */
     93/* cache */
    9594.cache-notice{ width:100%; padding:.3em 1em; margin-bottom: 1em; background: rgba(238, 255, 85, 0.86); color:#534d1d; }
    9695
    97 /* Ссылка редактирования */
     96/* edit-link */
    9897.dem-edit-link{ display: block; position:absolute; top:0; right:0; line-height:1; text-decoration:!important; border:none!important; }
    9998.dem-edit-link svg{ width:1.2em!important; fill:#5a5a5a; }
    10099.dem-edit-link:hover svg{ fill:#c61700; }
     100
     101/* loader */
     102.dem-loader{ display:none; position: absolute; top:0; left:0; width: 100%; height: 100%; }
     103.dem-loader > *{ display: table-cell; vertical-align: middle; text-align: center; }
     104.dem-loader svg{ width:20%; max-width:100px; margin-bottom:15%; }
     105.dem-loader [class^="dem-"]{ margin-bottom:15%!important; }
     106/*.dem-loader svg .fill{ fill:#0063b9!important; }*/
  • democracy-poll/trunk/styles/default.min.css

    r1084409 r1084841  
    1 .democracy{position:relative;margin:0 auto}.democracy ul li{list-style:none!important;background:none!important}.democracy ul li:before{display:none!important}.democracy .dem-footnote{color:#ff4e00}.democracy sup{font-size:90%;vertical-align:baseline;padding-left:.3em}.democracy input{vertical-align:middle;outline:0!important}.democracy input[type=radio]{margin-right:.1em}.dem-screen{position:relative;line-height:1.3em}ul.dem-answers,ul.dem-vote{padding:0!important;margin-bottom:3%!important}.democracy .dem-poll-note{font-style:italic;font-size:90%;padding:1em 0;opacity:.8;line-height:1.1}.dem-archive-link,.dem-link{font-style:italic;font-size:90%}.dem-archive-link{text-align:right}.dem-revote-link:before,.dem-vote-link:before{content:'← '}.dem-add-answer{position:relative;box-sizing:border-box!important}.dem-add-answer>*{display:block}.dem-add-answer a{display:inline-block;margin-top:.5em}.dem-add-answer-txt{width:100%}.add-answer-txt-close{position:absolute;right:0;padding:0 .7em;cursor:pointer;color:#333}.add-answer-txt-close:hover{color:#ff2700}.dem-poll-title{display:block;margin-bottom:3%;font-size:120%}.dem-vote label{float:none;display:block;padding-bottom:.5em}.dem-vote label:hover{opacity:.8}.dem-vote-info{margin-bottom:1%}.dem-vote-info:after{content:'';display:table;clear:both}.dem-vote-info>*{display:inline-block;font-style:italic;float:right;clear:both;text-align:right;font-size:85%;opacity:.7;line-height:1.3}.dem-answers .label{margin-bottom:.2em;line-height:1.1}.dem-answers li{margin-bottom:.7em}.dem-graph{position:relative;font-family:Arial,sans-serif;margin-bottom:.6em;border:1px solid rgba(0,0,0,.1);height:.9em;line-height:.9em;box-sizing:content-box;background:#F7F7F7;background:-webkit-linear-gradient(top, #F7F7F7 50%, #ededed 50%);background:linear-gradient(to bottom,#F7F7F7 50%,#ededed 50%);background:-webkit-linear-gradient(top,#F7F7F7 50%,#ededed 50%)}.dem-graph>*{font-size:80%}.dem-graph .dem-fill{position:absolute;top:0;left:0;height:100%;background:#a8a8a8;background:-webkit-linear-gradient(left, #c1c1c1, #a8a8a8);background:linear-gradient(to right,#c1c1c1,#a8a8a8);background:-webkit-linear-gradient(left,#c1c1c1,#a8a8a8)}.dem-voted-this{font-weight:700}.dem-voted-this .dem-graph{border-color:#7c7c7c}.dem-voted-this .dem-fill{background:#7b7b7b;background:-webkit-linear-gradient(left, #a3a3a3, #696868);background:linear-gradient(to right,#a3a3a3,#696868);background:-webkit-linear-gradient(left,#a3a3a3,#696868)}.dem-percent-text,.dem-text-votes{position:absolute;top:0;left:0;margin-left:.3em;margin-top:.08em;line-height:inherit;height:inherit}.dem-percent-text{display:none}.dem-only-percent-txt:before{content:' - '}.dem-answers li:hover .dem-text-votes{display:none}.dem-answers li:hover .dem-percent-text{display:block}.dem-label-percent-txt{font-size:80%;opacity:.8}.dem-label-percent-txt:before{content:'('}.dem-label-percent-txt:after{content:')'}.dem-label-percent-txt,.dem-only-percent-txt{display:none}.dem-vote-button{display:inline-block}.dem-vote-button input[type=submit]{cursor:pointer;font-size:90%;color:#7E7E7E!important;padding:.5em 1em;background:#d6d6d6;background:-webkit-linear-gradient(top, #f5f5f5 0, #e3e3e3 80%, #e8e8e8);background:linear-gradient(to bottom,#f5f5f5 0,#e3e3e3 80%,#e8e8e8);background:-webkit-linear-gradient(top,#f5f5f5 0,#e3e3e3 80%,#e8e8e8);border-radius:4px;border:1px solid #c9c9c9!important;margin-right:1em}.dem-vote-button input[type=submit]:hover{border:1px solid #bbb!important;color:#696969!important}.dem-copyright{position:absolute;bottom:-1em;right:-1.2em;text-decoration:none;color:#b2b2b2!important;opacity:.7;line-height:1}.dem-copyright:hover{opacity:1}.dem-archives .democracy{margin-bottom:20px;padding-bottom:20px;border-bottom:1px dashed #ccc}.dem-archives .dem-archive-link{display:none}.cache-notice{width:100%;padding:.3em 1em;margin-bottom:1em;background:rgba(238,255,85,.86);color:#534d1d}.dem-edit-link{display:block;position:absolute;top:0;right:0;line-height:1;text-decoration:!important;border:none!important}.dem-edit-link svg{width:1.2em!important;fill:#5a5a5a}.dem-edit-link:hover svg{fill:#c61700}
     1.democracy{position:relative;margin:0 auto}.democracy ul li{list-style:none!important;background:none!important}.democracy ul li:before{display:none!important}.democracy .dem-footnote{color:#ff4e00}.democracy sup{font-size:90%;vertical-align:baseline;padding-left:.3em}.democracy input{vertical-align:middle;outline:0!important}.democracy input[type=radio]{margin-right:.1em}.dem-screen{position:relative;line-height:1.3em}ul.dem-answers,ul.dem-vote{padding:0!important;margin-bottom:3%!important}.democracy .dem-poll-note{font-style:italic;font-size:90%;padding:1em 0;opacity:.8;line-height:1.1}.dem-archive-link,.dem-link{font-style:italic;font-size:90%}.dem-archive-link{text-align:right}.dem-revote-link:before,.dem-vote-link:before{content:'← '}.dem-add-answer{position:relative;box-sizing:border-box!important}.dem-add-answer>*{display:block}.dem-add-answer a{display:inline-block;margin-top:.5em}.dem-add-answer-txt{width:100%}.add-answer-txt-close{position:absolute;right:0;padding:0 .7em;cursor:pointer;color:#333}.add-answer-txt-close:hover{color:#ff2700}.dem-poll-title{display:block;margin-bottom:3%;font-size:120%}.dem-vote label{float:none;display:block;padding-bottom:.5em}.dem-vote label:hover{opacity:.8}.dem-vote-info{margin-bottom:1%}.dem-vote-info:after{content:'';display:table;clear:both}.dem-vote-info>*{display:inline-block;font-style:italic;float:right;clear:both;text-align:right;font-size:85%;opacity:.7;line-height:1.3}.dem-answers .label{margin-bottom:.2em;line-height:1.1}.dem-answers li{margin-bottom:.7em}.dem-graph{position:relative;font-family:Arial,sans-serif;margin-bottom:.6em;border:1px solid rgba(0,0,0,.1);height:.9em;line-height:.9em;box-sizing:content-box;background:#F7F7F7;background:-webkit-linear-gradient(top, #F7F7F7 50%, #ededed 50%);background:linear-gradient(to bottom,#F7F7F7 50%,#ededed 50%);background:-webkit-linear-gradient(top,#F7F7F7 50%,#ededed 50%)}.dem-graph>*{font-size:80%}.dem-graph .dem-fill{position:absolute;top:0;left:0;height:100%;background:#a8a8a8;background:-webkit-linear-gradient(left, #c1c1c1, #a8a8a8);background:linear-gradient(to right,#c1c1c1,#a8a8a8);background:-webkit-linear-gradient(left,#c1c1c1,#a8a8a8)}.dem-voted-this{font-weight:700}.dem-voted-this .dem-graph{border-color:#7c7c7c}.dem-voted-this .dem-fill{background:#7b7b7b;background:-webkit-linear-gradient(left, #a3a3a3, #696868);background:linear-gradient(to right,#a3a3a3,#696868);background:-webkit-linear-gradient(left,#a3a3a3,#696868)}.dem-percent-text,.dem-text-votes{position:absolute;top:0;left:0;margin-left:.3em;margin-top:.08em;line-height:inherit;height:inherit}.dem-percent-text{display:none}.dem-only-percent-txt:before{content:' - '}.dem-answers li:hover .dem-text-votes{display:none}.dem-answers li:hover .dem-percent-text{display:block}.dem-label-percent-txt{font-size:80%;opacity:.8}.dem-label-percent-txt:before{content:'('}.dem-label-percent-txt:after{content:')'}.dem-label-percent-txt,.dem-only-percent-txt{display:none}.dem-vote-button{display:inline-block}.dem-vote-button input[type=submit]{cursor:pointer;font-size:90%;color:#7E7E7E!important;padding:.5em 1em;background:#d6d6d6;background:-webkit-linear-gradient(top, #f5f5f5 0, #e3e3e3 80%, #e8e8e8);background:linear-gradient(to bottom,#f5f5f5 0,#e3e3e3 80%,#e8e8e8);background:-webkit-linear-gradient(top,#f5f5f5 0,#e3e3e3 80%,#e8e8e8);border-radius:4px;border:1px solid #c9c9c9!important;margin-right:1em}.dem-vote-button input[type=submit]:hover{border:1px solid #bbb!important;color:#696969!important}.dem-copyright{position:absolute;bottom:-1em;right:-1.2em;text-decoration:none;color:#b2b2b2!important;opacity:.7;line-height:1}.dem-copyright:hover{opacity:1}.dem-archives .democracy{margin-bottom:20px;padding-bottom:20px;border-bottom:1px dashed #ccc}.dem-archives .dem-archive-link{display:none}.cache-notice{width:100%;padding:.3em 1em;margin-bottom:1em;background:rgba(238,255,85,.86);color:#534d1d}.dem-edit-link{display:block;position:absolute;top:0;right:0;line-height:1;text-decoration:!important;border:none!important}.dem-edit-link svg{width:1.2em!important;fill:#5a5a5a}.dem-edit-link:hover svg{fill:#c61700}.dem-loader{display:none;position:absolute;top:0;left:0;width:100%;height:100%}.dem-loader>*{display:table-cell;vertical-align:middle;text-align:center}.dem-loader svg{width:20%;max-width:100px;margin-bottom:15%}.dem-loader [class^=dem-]{margin-bottom:15%!important}
  • democracy-poll/trunk/styles/flat.css

    r1084409 r1084841  
    1 /* общие */
     1/* common */
    22.democracy{ position:relative; margin:0 auto; }
    33.democracy ul li{ list-style:none!important; background:none!important; }
     
    1515
    1616
    17 
    18 /* оформление голосования */
     17/* vote screen */
    1918.dem-link{ display: inline-block; margin:0.8em 0; }
    2019.dem-link, .dem-archive-link{ font-size:90%; }
     
    3837
    3938
    40 
    41 /* оформление результатов */
     39/* results screen */
    4240.dem-answers .label{ margin-bottom:.2em; line-height: 1.1; }
    4341.dem-answers li{ margin-bottom:0.7em; }
     
    5553.dem-only-percent-txt{ display:none; }
    5654.dem-only-percent-txt:before{ content:' - '; }
    57 /* прячем */
     55
     56
     57/* hide */
    5858.dem-percent-text{ display:none; }
     59.dem-text-votes{ display:none; }
    5960.dem-begin-date{ display:none; }
    60 .dem-text-votes{ display:none; }
    6161/*.dem-label-percent-txt{ display:none; }*/
    6262
    63 /* кнопка */
     63/* button */
    6464.dem-bottom{ text-align: center; }
    6565.dem-vote-button input[type="submit"], .dem-vote-link{
     
    7676}
    7777
    78 
     78/* copyright */
    7979.dem-copyright{ position:absolute; bottom: -1em; right: -1.2em; text-decoration:none; color:#b2b2b2!important; opacity:0.7; line-height:1; }
    8080.dem-copyright:hover{ opacity:1; }
    8181
    8282
    83 /* архив */
     83/* archive */
    8484.dem-archives .democracy { margin-bottom:20px; padding-bottom:20px; border-bottom:1px dashed #ccc; }
    8585.dem-archives .dem-archive-link { display: none; }
    8686
    87 /* Кэш */
     87/* cache */
    8888.cache-notice{ width:100%; padding:.3em 1em; margin-bottom: 1em; background: rgba(238, 255, 85, 0.86); color:#534d1d; }
    8989
    90 /* Ссылка редактирования */
     90/* edit-link */
    9191.dem-edit-link{ display: block; position:absolute; top:0; right:0; line-height:1; text-decoration:!important; border:none!important; }
    9292.dem-edit-link svg{ width:1.2em!important; fill:#5a5a5a; }
    9393.dem-edit-link:hover svg{ fill:#c61700; }
     94
     95/* loader */
     96.dem-loader{ display:none; position: absolute; top:0; left:0; width: 100%; height: 100%; }
     97.dem-loader > *{ display: table-cell; vertical-align: middle; text-align: center; }
     98.dem-loader svg{ width:20%; max-width:100px; margin-bottom:15%; }
     99.dem-loader [class^="dem-"]{ margin-bottom:15%!important; }
     100/*.dem-loader svg .fill{ fill:#0063b9!important; }*/
  • democracy-poll/trunk/styles/flat.min.css

    r1084409 r1084841  
    1 .democracy{position:relative;margin:0 auto}.democracy ul li{list-style:none!important;background:none!important}.democracy ul li:before{display:none!important}.democracy .dem-footnote{color:#ff4e00}.democracy .dem-poll-note{font-size:80%;padding:.5em 0;opacity:.7;line-height:1.3}.democracy sup{font-size:90%;vertical-align:baseline;padding-left:.3em}.democracy input{vertical-align:middle;outline:0!important}.democracy input[type=radio]{margin-right:.1em}.dem-screen{position:relative;line-height:1.3em}ul.dem-answers,ul.dem-vote{padding:0!important;margin-bottom:3%!important}.dem-link{display:inline-block;margin:.8em 0}.dem-archive-link,.dem-link{font-size:90%}.dem-archive-link{text-align:right}.dem-revote-link:before,.dem-vote-link:before{content:'← '}.dem-vote label{opacity:.9;float:none;display:block;padding-bottom:.5em}.dem-vote label:hover{opacity:1}.dem-vote-info{margin-bottom:1%;font-style:normal}.dem-vote-info:after{content:'';display:table;clear:both}.dem-vote-info>*{font-size:85%;display:inline-block;float:right;clear:both;text-align:right;opacity:.7;line-height:1.3}.dem-add-answer{position:relative;box-sizing:border-box}.dem-add-answer>*{display:block}.dem-add-answer a{display:inline-block;margin-top:.5em}.dem-add-answer-txt{width:100%}.add-answer-txt-close{position:absolute;right:0;padding:0 .7em;cursor:pointer;color:#333}.add-answer-txt-close:hover{color:#ff2700}.dem-poll-title{display:block;margin-bottom:3%;font-size:120%;text-align:center}.dem-answers .label{margin-bottom:.2em;line-height:1.1}.dem-answers li{margin-bottom:.7em}.dem-graph{background-color:#f2f2f2;position:relative;font-family:Arial,sans-serif;margin-bottom:.6em;height:.4em;line-height:.4em;box-sizing:content-box}.dem-graph>*{font-size:80%}.dem-graph .dem-fill{position:absolute;top:0;left:0;height:100%;background:#ffe2b2}.dem-winner .dem-graph .dem-fill{opacity:.9}.dem-voted-this{font-weight:700}.dem-voted-this .dem-fill{background:#ffbeb2}.dem-text-votes{position:absolute;top:0;left:0;opacity:.8;margin-left:.3em;margin-top:.08em;line-height:inherit;height:inherit}.dem-label-percent-txt{font-size:80%;opacity:.8}.dem-label-percent-txt:before{content:'('}.dem-label-percent-txt:after{content:')'}.dem-only-percent-txt{display:none}.dem-only-percent-txt:before{content:' - '}.dem-begin-date,.dem-percent-text,.dem-text-votes{display:none}.dem-bottom{text-align:center}.dem-vote-button input[type=submit],.dem-vote-link{cursor:pointer;color:#fff!important;background:#4a80b5;font-size:90%!important;border:0!important;padding:.5em 1em!important;text-transform:uppercase}.dem-vote-button input[type=submit]:hover,.dem-vote-link:hover{background:#8b8b8b}.dem-copyright{position:absolute;bottom:-1em;right:-1.2em;text-decoration:none;color:#b2b2b2!important;opacity:.7;line-height:1}.dem-copyright:hover{opacity:1}.dem-archives .democracy{margin-bottom:20px;padding-bottom:20px;border-bottom:1px dashed #ccc}.dem-archives .dem-archive-link{display:none}.cache-notice{width:100%;padding:.3em 1em;margin-bottom:1em;background:rgba(238,255,85,.86);color:#534d1d}.dem-edit-link{display:block;position:absolute;top:0;right:0;line-height:1;text-decoration:!important;border:none!important}.dem-edit-link svg{width:1.2em!important;fill:#5a5a5a}.dem-edit-link:hover svg{fill:#c61700}
     1.democracy{position:relative;margin:0 auto}.democracy ul li{list-style:none!important;background:none!important}.democracy ul li:before{display:none!important}.democracy .dem-footnote{color:#ff4e00}.democracy .dem-poll-note{font-size:80%;padding:.5em 0;opacity:.7;line-height:1.3}.democracy sup{font-size:90%;vertical-align:baseline;padding-left:.3em}.democracy input{vertical-align:middle;outline:0!important}.democracy input[type=radio]{margin-right:.1em}.dem-screen{position:relative;line-height:1.3em}ul.dem-answers,ul.dem-vote{padding:0!important;margin-bottom:3%!important}.dem-link{display:inline-block;margin:.8em 0}.dem-archive-link,.dem-link{font-size:90%}.dem-archive-link{text-align:right}.dem-revote-link:before,.dem-vote-link:before{content:'← '}.dem-vote label{opacity:.9;float:none;display:block;padding-bottom:.5em}.dem-vote label:hover{opacity:1}.dem-vote-info{margin-bottom:1%;font-style:normal}.dem-vote-info:after{content:'';display:table;clear:both}.dem-vote-info>*{font-size:85%;display:inline-block;float:right;clear:both;text-align:right;opacity:.7;line-height:1.3}.dem-add-answer{position:relative;box-sizing:border-box}.dem-add-answer>*{display:block}.dem-add-answer a{display:inline-block;margin-top:.5em}.dem-add-answer-txt{width:100%}.add-answer-txt-close{position:absolute;right:0;padding:0 .7em;cursor:pointer;color:#333}.add-answer-txt-close:hover{color:#ff2700}.dem-poll-title{display:block;margin-bottom:3%;font-size:120%;text-align:center}.dem-answers .label{margin-bottom:.2em;line-height:1.1}.dem-answers li{margin-bottom:.7em}.dem-graph{background-color:#f2f2f2;position:relative;font-family:Arial,sans-serif;margin-bottom:.6em;height:.4em;line-height:.4em;box-sizing:content-box}.dem-graph>*{font-size:80%}.dem-graph .dem-fill{position:absolute;top:0;left:0;height:100%;background:#ffe2b2}.dem-winner .dem-graph .dem-fill{opacity:.9}.dem-voted-this{font-weight:700}.dem-voted-this .dem-fill{background:#ffbeb2}.dem-text-votes{position:absolute;top:0;left:0;opacity:.8;margin-left:.3em;margin-top:.08em;line-height:inherit;height:inherit}.dem-label-percent-txt{font-size:80%;opacity:.8}.dem-label-percent-txt:before{content:'('}.dem-label-percent-txt:after{content:')'}.dem-only-percent-txt{display:none}.dem-only-percent-txt:before{content:' - '}.dem-begin-date,.dem-percent-text,.dem-text-votes{display:none}.dem-bottom{text-align:center}.dem-vote-button input[type=submit],.dem-vote-link{cursor:pointer;color:#fff!important;background:#4a80b5;font-size:90%!important;border:0!important;padding:.5em 1em!important;text-transform:uppercase}.dem-vote-button input[type=submit]:hover,.dem-vote-link:hover{background:#8b8b8b}.dem-copyright{position:absolute;bottom:-1em;right:-1.2em;text-decoration:none;color:#b2b2b2!important;opacity:.7;line-height:1}.dem-copyright:hover{opacity:1}.dem-archives .democracy{margin-bottom:20px;padding-bottom:20px;border-bottom:1px dashed #ccc}.dem-archives .dem-archive-link{display:none}.cache-notice{width:100%;padding:.3em 1em;margin-bottom:1em;background:rgba(238,255,85,.86);color:#534d1d}.dem-edit-link{display:block;position:absolute;top:0;right:0;line-height:1;text-decoration:!important;border:none!important}.dem-edit-link svg{width:1.2em!important;fill:#5a5a5a}.dem-edit-link:hover svg{fill:#c61700}.dem-loader{display:none;position:absolute;top:0;left:0;width:100%;height:100%}.dem-loader>*{display:table-cell;vertical-align:middle;text-align:center}.dem-loader svg{width:20%;max-width:100px;margin-bottom:15%}.dem-loader [class^=dem-]{margin-bottom:15%!important}
Note: See TracChangeset for help on using the changeset viewer.