Plugin Directory

Changeset 2306361


Ignore:
Timestamp:
05/16/2020 07:42:36 PM (6 years ago)
Author:
Max Bond
Message:

Version 2.5.3

Location:
q2w3-inc-manager/trunk
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • q2w3-inc-manager/trunk/languages/ru_RU.po

    r426761 r2306361  
    33"Project-Id-Version: Q2W3 Inc Manager\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2011-08-21 13:40+0300\n"
     5"POT-Creation-Date: 2019-01-17 00:00+0300\n"
    66"PO-Revision-Date: \n"
    77"Last-Translator: Max <[email protected]>\n"
    88"Language-Team: \n"
     9"Language: ru_RU\n"
    910"MIME-Version: 1.0\n"
    1011"Content-Type: text/plain; charset=UTF-8\n"
    1112"Content-Transfer-Encoding: 8bit\n"
    12 "X-Poedit-Language: Russian\n"
    13 "X-Poedit-Country: RUSSIAN FEDERATION\n"
    14 "X-Poedit-SourceCharset: utf-8\n"
     13"X-Poedit-SourceCharset: UTF-8\n"
    1514"X-Poedit-KeywordsList: _e;__\n"
    16 "X-Poedit-Basepath: .\n"
    17 "X-Poedit-SearchPath-0: c:\\Program Files (x86)\\Zend\\Apache2\\htdocs\\q2w3.ru-dev\\wp-content\\plugins\\q2w3-inc-manager\n"
    18 
    19 #: c:\Program
    20 #: Files
    21 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:159
     15"X-Poedit-Basepath: ..\n"
     16"X-Generator: Poedit 2.2\n"
     17"X-Poedit-SearchPath-0: .\n"
     18
     19#: q2w3-inc-manager.php:209
    2220msgid "PHP version"
    2321msgstr "Версия PHP"
    2422
    25 #: c:\Program
    26 #: Files
    27 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:159
    28 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:182
     23#: q2w3-inc-manager.php:209 q2w3-inc-manager.php:232
    2924msgid "is incompatible with this plugin. You need at least version"
    3025msgstr "не совместима с данным плагином. Требуется как минимум версия"
    3126
    32 #: c:\Program
    33 #: Files
    34 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:182
     27#: q2w3-inc-manager.php:232
    3528msgid "Wordpress version"
    3629msgstr "Версия WordPress"
    3730
    38 #: c:\Program
    39 #: Files
    40 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:250
     31#: q2w3-inc-manager.php:250
    4132msgid "Code Insert"
    4233msgstr "Вставка кода"
    4334
    44 #: c:\Program
    45 #: Files
    46 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:252
     35#: q2w3-inc-manager.php:252
    4736msgid "Inserts"
    4837msgstr "Вставки"
    4938
    50 #: c:\Program
    51 #: Files
    52 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:254
    53 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table.php:79
     39#: q2w3-inc-manager.php:254 q2w3-inc-manager.php:336
     40#: q2w3-table/q2w3_table.php:79
    5441msgid "Add New"
    5542msgstr "Добавить новую"
    5643
    57 #: c:\Program
    58 #: Files
    59 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:256
    60 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:392
    61 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3_inc_manager_widget.php:94
    62 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table.php:165
     44#: q2w3-inc-manager.php:256 q2w3-inc-manager.php:362
     45#: q2w3-table/q2w3_table.php:165 q2w3_inc_manager_widget.php:94
    6346msgid "Settings"
    6447msgstr "Параметры"
    6548
    66 #: c:\Program
    67 #: Files
    68 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:298
     49#: q2w3-inc-manager.php:302
    6950msgid "Q2W3 Inc Manager Homepage"
    7051msgstr "Домашняя страница плагина"
    7152
    72 #: c:\Program
    73 #: Files
    74 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:322
    75 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:126
    76 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:258
    77 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/actions/q2w3_table_change_status.php:17
    78 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/actions/q2w3_table_disable_selected.php:15
     53#: q2w3-inc-manager.php:366
     54msgid ""
     55"Here you can select post types and taxonomies. Selected items will be "
     56"available for \"Insert\" and \"Exclude\" filters. \"Expand\" option allows "
     57"you to select individual posts/pages for each Post Type or Taxonomy group."
     58msgstr ""
     59"На этой странице вы можете выбрать типы записей и таксономий, которые будут "
     60"доступны для фильтров \"Вставить\" и \"Исключить\". Опция \"Раскрыть\" "
     61"добавляет в фильтры возможность выбора отдельных записей или страниц."
     62
     63#: q2w3-inc-manager.php:377
     64msgid "Post Types"
     65msgstr "Зарегистрированные типы постов"
     66
     67#: q2w3-inc-manager.php:407 q2w3-inc-manager.php:437 q2w3-inc-manager.php:471
     68msgid "Expand"
     69msgstr "Раскрыть"
     70
     71#: q2w3-inc-manager.php:409
     72msgid "Add metabox for page head inserts"
     73msgstr "Добавить метабокс для вставки в head"
     74
     75#: q2w3-inc-manager.php:411
     76msgid "Add metabox for page footer inserts"
     77msgstr "Добавить метабокс для вставки в футер"
     78
     79#: q2w3-inc-manager.php:423
     80msgid "Taxonomies"
     81msgstr "Зарегистрированные таксономии"
     82
     83#: q2w3-inc-manager.php:431
     84#: q2w3-table/actions/q2w3_table_wp_page_select.php:112
     85msgid "Post Formats"
     86msgstr ""
     87
     88#: q2w3-inc-manager.php:485 q2w3-table/q2w3_table.php:704
     89msgid "Save Changes"
     90msgstr "Сохранить изменения"
     91
     92#: q2w3-inc-manager.php:491
     93msgid "If you like this plugin - help me to promote it! You can:"
     94msgstr "Если этот плагин Вам понравился:"
     95
     96#: q2w3-inc-manager.php:495
     97msgid "Translate it to unsupported language"
     98msgstr "Сделайте перевод на язык, который еще не поддерживается"
     99
     100#: q2w3-inc-manager.php:497
     101msgid "Rate it on the official Plugin Directory"
     102msgstr "Оцените плагин на официальном сайте"
     103
     104#: q2w3-inc-manager.php:499
     105msgid "Write a review or an article"
     106msgstr "Напишите обзор или статью"
     107
     108#: q2w3-inc-manager.php:501
     109msgid "Or just let your friends know about this plugin"
     110msgstr "Просто расскажите о нем своим друзьям"
     111
     112#: q2w3-inc-manager.php:505
     113msgid "Thank you!"
     114msgstr "Спасибо!"
     115
     116#: q2w3-inc-manager.php:1077 q2w3-inc-manager.php:1083
     117msgid "Code in "
     118msgstr "Вставка кода в "
     119
     120#: q2w3-inc-manager.php:1144 q2w3-table/objects/q2w3_include_obj.php:159
     121msgid "Active"
     122msgstr "Включен"
     123
     124#: q2w3-inc-manager.php:1146 q2w3-table/objects/q2w3_include_obj.php:159
     125msgid "Disabled"
     126msgstr "Отключен"
     127
     128#: q2w3-inc-manager.php:1152
     129msgid "Input code"
     130msgstr "Введите код"
     131
     132#: q2w3-table/actions/q2w3_table_activate_selected.php:15
     133#: q2w3-table/actions/q2w3_table_change_status.php:21
     134msgid "Activate"
     135msgstr "Активировать"
     136
     137#: q2w3-table/actions/q2w3_table_change_status.php:17
     138#: q2w3-table/actions/q2w3_table_disable_selected.php:15
    79139msgid "Deactivate"
    80140msgstr "Деактивировать"
    81141
    82 #: c:\Program
    83 #: Files
    84 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:370
    85 msgid "Need help? Visit"
    86 msgstr "Нужна помощь? Посетите"
    87 
    88 #: c:\Program
    89 #: Files
    90 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:370
    91 msgid "Plugin Homepage"
    92 msgstr "домашнюю страницу плагина"
    93 
    94 #: c:\Program
    95 #: Files
    96 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:396
    97 msgid "Here you can select post types and taxonomies. Selected items will be available for \"Insert\" and \"Exclude\" filters. \"Expand\" option allows you to select individual posts/pages for each Post Type or Taxonomy group."
    98 msgstr "На этой странице вы можете выбрать типы записей и таксономий, которые будут доступны для фильтров \"Вставить\" и \"Исключить\". Опция \"Раскрыть\" добавляет в фильтры возможность выбора отдельных записей или страниц."
    99 
    100 #: c:\Program
    101 #: Files
    102 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:404
    103 msgid "Post Types"
    104 msgstr "Зарегистрированные типы постов"
    105 
    106 #: c:\Program
    107 #: Files
    108 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:434
    109 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:460
    110 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:494
    111 msgid "Expand"
    112 msgstr "Раскрыть"
    113 
    114 #: c:\Program
    115 #: Files
    116 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:446
    117 msgid "Taxonomies"
    118 msgstr "Зарегистрированные таксономии"
    119 
    120 #: c:\Program
    121 #: Files
    122 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:454
    123 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:511
    124 msgid "Post Formats"
    125 msgstr ""
    126 
    127 #: c:\Program
    128 #: Files
    129 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:508
    130 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table.php:702
    131 msgid "Save Changes"
    132 msgstr "Сохранить изменения"
    133 
    134 #: c:\Program
    135 #: Files
    136 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:514
    137 msgid "If you like this plugin - help me to promote it! You can:"
    138 msgstr "Если этот плагин Вам понравился:"
    139 
    140 #: c:\Program
    141 #: Files
    142 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:518
    143 msgid "Translate it to unsupported language"
    144 msgstr "Сделайте перевод на язык, который еще не поддерживается"
    145 
    146 #: c:\Program
    147 #: Files
    148 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:520
    149 msgid "Rate it on the official Plugin Directory"
    150 msgstr "Оцените плагин на официальном сайте"
    151 
    152 #: c:\Program
    153 #: Files
    154 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:522
    155 msgid "Write a review or an article"
    156 msgstr "Напишите обзор или статью"
    157 
    158 #: c:\Program
    159 #: Files
    160 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:524
    161 msgid "Or just let your friends know about this plugin"
    162 msgstr "Просто расскажите о нем своим друзьям"
    163 
    164 #: c:\Program
    165 #: Files
    166 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:528
    167 msgid "Thank you!"
    168 msgstr "Спасибо!"
    169 
    170 #: c:\Program
    171 #: Files
    172 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:562
    173 msgid "Deactivation"
    174 msgstr "Деактивация"
    175 
    176 #: c:\Program
    177 #: Files
    178 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:574
    179 msgid "Deactivate plugin"
    180 msgstr "Деактивировать плагин"
    181 
    182 #: c:\Program
    183 #: Files
    184 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-inc-manager.php:589
    185 msgid "Deactivate plugin and delete all settings from database"
    186 msgstr "Деактивировать плагин и очистить базу данных"
    187 
    188 #: c:\Program
    189 #: Files
    190 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3_inc_manager_widget.php:60
     142#: q2w3-table/actions/q2w3_table_delete_row.php:17
     143#: q2w3-table/actions/q2w3_table_delete_selected.php:15
     144msgid "Delete"
     145msgstr "Удалить"
     146
     147#: q2w3-table/actions/q2w3_table_wp_page_select.php:33
     148#: q2w3-table/q2w3_table.php:169 q2w3-table/q2w3_table.php:285
     149msgid "Apply"
     150msgstr "Применить"
     151
     152#: q2w3-table/actions/q2w3_table_wp_page_select.php:35
     153msgid "Cancel"
     154msgstr "Отменить"
     155
     156#: q2w3-table/actions/q2w3_table_wp_page_select.php:43
     157msgid "To select multiple pages or deselect page hold CTRL key"
     158msgstr "Нажмите CTRL для выбора нескольких страниц"
     159
     160#: q2w3-table/actions/q2w3_table_wp_page_select.php:75
     161#: q2w3-table/form_elements/q2w3_wp_page_select_input.php:59
     162msgid "Pages"
     163msgstr "Страницы"
     164
     165#: q2w3-table/actions/q2w3_table_wp_page_select.php:108
     166#: q2w3-table/q2w3_table_func.php:245
     167msgid "PF"
     168msgstr "ФЗ"
     169
     170#: q2w3-table/actions/q2w3_table_wp_page_select.php:124
     171#: q2w3-table/actions/q2w3_table_wp_page_select.php:154
     172#: q2w3-table/filters/q2w3_table_location_filter.php:33
     173#: q2w3-table/filters/q2w3_table_status_filter.php:33
     174#: q2w3-table/objects/q2w3_include_obj.php:293
     175#: q2w3-table/q2w3_table_func.php:215 q2w3-table/q2w3_table_func.php:231
     176msgid "All"
     177msgstr "Все"
     178
     179#: q2w3-table/actions/q2w3_table_wp_page_select.php:128
     180#: q2w3-table/q2w3_table_func.php:217
     181msgid "Archive"
     182msgstr "Архив"
     183
     184#: q2w3-table/data_convert/q2w3_checkbox_conv.php:21
     185msgid "Yes"
     186msgstr "Да"
     187
     188#: q2w3-table/data_convert/q2w3_checkbox_conv.php:21
     189msgid "No"
     190msgstr "Нет"
     191
     192#: q2w3-table/filters/q2w3_table_page_filter.php:65
     193msgid "from"
     194msgstr "из"
     195
     196#: q2w3-table/filters/q2w3_table_search_title_filter.php:42
     197msgid "Search"
     198msgstr "Поиск"
     199
     200#: q2w3-table/form_elements/q2w3_wp_page_select_input.php:55
     201msgid "Select pages"
     202msgstr "Выбор страниц"
     203
     204#: q2w3-table/objects/_q2w3_table_obj.php:122
     205msgid "Record updated"
     206msgstr "Запись обновлена"
     207
     208#: q2w3-table/objects/_q2w3_table_obj.php:130
     209#: q2w3-table/objects/_q2w3_table_obj.php:150
     210#: q2w3-table/objects/_q2w3_table_obj.php:188
     211msgid "DB error:"
     212msgstr "Ошибка БД:"
     213
     214#: q2w3-table/objects/_q2w3_table_obj.php:144
     215msgid "Record inserted"
     216msgstr "Запись добавлена"
     217
     218#: q2w3-table/objects/_q2w3_table_obj.php:182
     219msgid "Record(s) deleted"
     220msgstr "Данные удалены"
     221
     222#: q2w3-table/objects/q2w3_include_obj.php:147
     223msgid "Description"
     224msgstr "Наименование"
     225
     226#: q2w3-table/objects/q2w3_include_obj.php:151
     227msgid "Name/description of the included code. Required field"
     228msgstr ""
     229"Наименование или краткое описание вставляемого кода. Поле обязательное для "
     230"заполнения"
     231
     232#: q2w3-table/objects/q2w3_include_obj.php:156
     233msgid "Status"
     234msgstr "Статус"
     235
     236#: q2w3-table/objects/q2w3_include_obj.php:161
     237msgid "Active - code will be displayed, Disabled - code will not be displayed"
     238msgstr "Включен - код отображается, Отключен - код не отображается"
     239
     240#: q2w3-table/objects/q2w3_include_obj.php:167
     241msgid "Location"
     242msgstr "Расположение"
     243
     244#: q2w3-table/objects/q2w3_include_obj.php:170
     245msgid "Header"
     246msgstr "Хэдер"
     247
     248#: q2w3-table/objects/q2w3_include_obj.php:170
     249msgid "Footer"
     250msgstr "Футер"
     251
     252#: q2w3-table/objects/q2w3_include_obj.php:170
     253msgid "Widget"
     254msgstr "Виджет"
     255
     256#: q2w3-table/objects/q2w3_include_obj.php:170
     257msgid "Before page content"
     258msgstr "В начале страницы"
     259
     260#: q2w3-table/objects/q2w3_include_obj.php:170
     261msgid "After page content"
     262msgstr "В конце страницы"
     263
     264#: q2w3-table/objects/q2w3_include_obj.php:170
     265msgid "Before post content"
     266msgstr "В начале записи"
     267
     268#: q2w3-table/objects/q2w3_include_obj.php:170
     269msgid "After post excerpt"
     270msgstr "После тега \"далее\""
     271
     272#: q2w3-table/objects/q2w3_include_obj.php:170
     273msgid "After post content"
     274msgstr "В конце записи"
     275
     276#: q2w3-table/objects/q2w3_include_obj.php:170
     277msgid "Manual"
     278msgstr "Ручной режим"
     279
     280#: q2w3-table/objects/q2w3_include_obj.php:170
     281msgid "Shortcode"
     282msgstr ""
     283
     284#: q2w3-table/objects/q2w3_include_obj.php:172
     285msgid ""
     286"Location where to place included code. If Widget selected, go to the Widget "
     287"admin page to setup widget position. In Manual mode you must insert plugin "
     288"function directly in to theme file"
     289msgstr ""
     290"Определяет расположение вставки на странице. Если выбрана опция Виджет, "
     291"требуется дополнительная настройка виджета на странице Внешний вид->Виджеты. "
     292"Если выбрана опция Ручной режим, php-функция вставляется на прямую в файл "
     293"шаблона. Shortcode - используется для вставки в текст записи или страницы "
     294"(работает аналогично вставке галлереи - [gallery])."
     295
     296#: q2w3-table/objects/q2w3_include_obj.php:178
     297msgid "Widget Title"
     298msgstr "Заголовок"
     299
     300#: q2w3-table/objects/q2w3_include_obj.php:187
     301msgid "Priority"
     302msgstr "Приоритет"
     303
     304#: q2w3-table/objects/q2w3_include_obj.php:191
     305msgid "Determines display order of includes in the same location"
     306msgstr ""
     307"Определяет порядок отображения вставляемого кода в одном и том же "
     308"местерасположения"
     309
     310#: q2w3-table/objects/q2w3_include_obj.php:197
     311msgid "Insert on pages"
     312msgstr "Вставить на страницы"
     313
     314#: q2w3-table/objects/q2w3_include_obj.php:201
     315msgid ""
     316"Pages where code CAN BE shown. Hold CTRL key for multiple select or deselect "
     317"pages. Required field"
     318msgstr "Страницы для вставки кода. Поле обязательное для заполнения"
     319
     320#: q2w3-table/objects/q2w3_include_obj.php:207
     321msgid "Exclude pages"
     322msgstr "Исключить страницы"
     323
     324#: q2w3-table/objects/q2w3_include_obj.php:211
     325msgid ""
     326"Pages where code CAN NOT be shown. Hold CTRL key for multiple select or "
     327"deselect pages"
     328msgstr ""
     329"Страницы, которые требуется исключить из списка страниц для вставки кода"
     330
     331#: q2w3-table/objects/q2w3_include_obj.php:217
     332msgid "Hide from user"
     333msgstr "Спрятать от"
     334
     335#: q2w3-table/objects/q2w3_include_obj.php:221
     336msgid ""
     337"Code will be hidden for all users with the selected roles. Visitor - is a "
     338"virtual user role for all not registered visitors of your site. Use example: "
     339"if you select Visitor role only, code will be shown only for registered "
     340"users."
     341msgstr ""
     342"Для выбранных групп пользователей код показываться не будет. Посетитель - "
     343"виртуальная группа, включающая всех пользователей не прошедших процедуру "
     344"регистрации. Пример: выбрана только группа Посетитель - это означает, что "
     345"код будет показан только зарегистрированным пользователям."
     346
     347#: q2w3-table/objects/q2w3_include_obj.php:227
     348msgid "Align"
     349msgstr "Выравнивание"
     350
     351#: q2w3-table/objects/q2w3_include_obj.php:230
     352msgid "Align Not Set"
     353msgstr "Без выравнивания"
     354
     355#: q2w3-table/objects/q2w3_include_obj.php:230
     356msgid "Align Left"
     357msgstr "По левому краю"
     358
     359#: q2w3-table/objects/q2w3_include_obj.php:230
     360msgid "Align Center"
     361msgstr "По центру"
     362
     363#: q2w3-table/objects/q2w3_include_obj.php:230
     364msgid "Align Right"
     365msgstr "По правому краю"
     366
     367#: q2w3-table/objects/q2w3_include_obj.php:237
     368msgid "Include code"
     369msgstr "Код"
     370
     371#: q2w3-table/objects/q2w3_include_obj.php:241
     372msgid ""
     373"Included code. Required field. Any type of HTML, CSS, JAVASCRIPT and PHP "
     374"code. PHP code must begins with php open tag. Align option allows you to "
     375"wrap code in a div with selected text-align css propertie. Useful for "
     376"aligning Google AdSense blocks and so on"
     377msgstr ""
     378"Поле обязательное для заполнения. Любые комбинации HTML, CSS, JAVASCRIPT и "
     379"PHP кода. PHP код должен начинатся с открывающего тега (< ?php). Если "
     380"установлена опция выравнивания, код помещается внутрь div с css атрибутом "
     381"text-align равным выбранному значению"
     382
     383#: q2w3-table/objects/q2w3_include_obj.php:256
     384msgid "You must input Description field!"
     385msgstr "Необходимо заполнить поле Наименование!"
     386
     387#: q2w3-table/objects/q2w3_include_obj.php:262
     388msgid "Priority number must be integer!"
     389msgstr "В поле Приоритет можно вводить только целые числа!"
     390
     391#: q2w3-table/objects/q2w3_include_obj.php:268
     392msgid "You must select at least one page where to place included code!"
     393msgstr "Выберите хотя бы одну страницу для вставки кода!"
     394
     395#: q2w3-table/objects/q2w3_include_obj.php:274
     396msgid "You must enter included code!"
     397msgstr "Необходимо заполнить поле Код!"
     398
     399#: q2w3-table/objects/q2w3_include_obj.php:294
     400msgid "Front page"
     401msgstr "Главная страница"
     402
     403#: q2w3-table/objects/q2w3_include_obj.php:295
     404msgid "All Post Types pages"
     405msgstr "Страницы записей всех типов"
     406
     407#: q2w3-table/objects/q2w3_include_obj.php:296
     408msgid "Taxonomies pages"
     409msgstr "Страницы таксономий"
     410
     411#: q2w3-table/objects/q2w3_include_obj.php:297
     412msgid "Post Type Archive pages"
     413msgstr "Архивные страницы типов постов"
     414
     415#: q2w3-table/objects/q2w3_include_obj.php:298
     416msgid "Date pages"
     417msgstr "Страницы календаря"
     418
     419#: q2w3-table/objects/q2w3_include_obj.php:299
     420msgid "Author pages"
     421msgstr "Страницы авторов"
     422
     423#: q2w3-table/objects/q2w3_include_obj.php:300
     424msgid "Attachment pages"
     425msgstr "Страницы прикрепленных файлов"
     426
     427#: q2w3-table/objects/q2w3_include_obj.php:301
     428msgid "Paged pages"
     429msgstr "Подстраницы"
     430
     431#: q2w3-table/objects/q2w3_include_obj.php:302
     432msgid "Search page"
     433msgstr "Страница поиска"
     434
     435#: q2w3-table/objects/q2w3_include_obj.php:303
     436msgid "Preview page"
     437msgstr "Страница предпросмотра"
     438
     439#: q2w3-table/objects/q2w3_include_obj.php:304
     440msgid "Page 404"
     441msgstr "Страница 404"
     442
     443#: q2w3-table/objects/q2w3_include_obj.php:322
     444msgid "Status changed"
     445msgstr "Статус изменен"
     446
     447#: q2w3-table/objects/q2w3_include_obj.php:342
     448msgid "Copy to clipboard"
     449msgstr "Копировать в буфер"
     450
     451#: q2w3-table/q2w3_table.php:167
     452msgid "Rows per page:"
     453msgstr "Записей на страницу:"
     454
     455#: q2w3-table/q2w3_table.php:281
     456msgid "Bulk Actions"
     457msgstr "Действия"
     458
     459#: q2w3-table/q2w3_table.php:591
     460msgid "No data"
     461msgstr "Нет данных"
     462
     463#: q2w3-table/q2w3_table.php:733
     464msgid "Delete selected?"
     465msgstr "Удалить вабранное?"
     466
     467#: q2w3-table/q2w3_table.php:757
     468msgid "Delete?"
     469msgstr "Удалить?"
     470
     471#: q2w3-table/q2w3_table_func.php:323
     472msgid "Visitor"
     473msgstr "Посетитель"
     474
     475#: q2w3_inc_manager_widget.php:60
    191476msgid "Q2W3 Insert Manager Widget"
    192477msgstr "Q2W3 Insert Manager Widget"
    193478
    194 #: c:\Program
    195 #: Files
    196 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table.php:167
    197 msgid "Rows per page:"
    198 msgstr "Записей на страницу:"
    199 
    200 #: c:\Program
    201 #: Files
    202 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table.php:169
    203 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table.php:283
    204 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:432
    205 msgid "Apply"
    206 msgstr "Применить"
    207 
    208 #: c:\Program
    209 #: Files
    210 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table.php:279
    211 msgid "Bulk Actions"
    212 msgstr "Действия"
    213 
    214 #: c:\Program
    215 #: Files
    216 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table.php:589
    217 msgid "No data"
    218 msgstr "Нет данных"
    219 
    220 #: c:\Program
    221 #: Files
    222 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table.php:731
    223 msgid "Delete selected?"
    224 msgstr "Удалить вабранное?"
    225 
    226 #: c:\Program
    227 #: Files
    228 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table.php:755
    229 msgid "Delete?"
    230 msgstr "Удалить?"
    231 
    232 #: c:\Program
    233 #: Files
    234 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:84
    235 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:130
    236 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/actions/q2w3_table_activate_selected.php:15
    237 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/actions/q2w3_table_change_status.php:21
    238 msgid "Activate"
    239 msgstr "Активировать"
    240 
    241 #: c:\Program
    242 #: Files
    243 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:174
    244 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:214
    245 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/actions/q2w3_table_delete_row.php:17
    246 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/actions/q2w3_table_delete_selected.php:15
    247 msgid "Delete"
    248 msgstr "Удалить"
    249 
    250 #: c:\Program
    251 #: Files
    252 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:434
    253 msgid "Cancel"
    254 msgstr "Отменить"
    255 
    256 #: c:\Program
    257 #: Files
    258 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:442
    259 msgid "To select multiple pages or deselect page hold CTRL key"
    260 msgstr "Нажмите CTRL для выбора нескольких страниц"
    261 
    262 #: c:\Program
    263 #: Files
    264 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:474
    265 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:2311
    266 msgid "Pages"
    267 msgstr "Страницы"
    268 
    269 #: c:\Program
    270 #: Files
    271 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:507
    272 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_func.php:297
    273 msgid "PF"
    274 msgstr "ФЗ"
    275 
    276 #: c:\Program
    277 #: Files
    278 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:523
    279 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:547
    280 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:643
    281 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:1092
    282 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3138
    283 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_func.php:269
    284 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_func.php:283
    285 msgid "All"
    286 msgstr "Все"
    287 
    288 #: c:\Program
    289 #: Files
    290 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:780
    291 msgid "from"
    292 msgstr "из"
    293 
    294 #: c:\Program
    295 #: Files
    296 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:1036
    297 msgid "Search"
    298 msgstr "Поиск"
    299 
    300 #: c:\Program
    301 #: Files
    302 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:1255
    303 msgid "Yes"
    304 msgstr "Да"
    305 
    306 #: c:\Program
    307 #: Files
    308 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:1255
    309 msgid "No"
    310 msgstr "Нет"
    311 
    312 #: c:\Program
    313 #: Files
    314 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:2307
    315 msgid "Select pages"
    316 msgstr "Выбор страниц"
    317 
    318 #: c:\Program
    319 #: Files
    320 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:2443
    321 msgid "Record updated"
    322 msgstr "Запись обновлена"
    323 
    324 #: c:\Program
    325 #: Files
    326 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:2451
    327 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:2471
    328 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:2509
    329 msgid "DB error:"
    330 msgstr "Ошибка БД:"
    331 
    332 #: c:\Program
    333 #: Files
    334 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:2465
    335 msgid "Record inserted"
    336 msgstr "Запись добавлена"
    337 
    338 #: c:\Program
    339 #: Files
    340 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:2503
    341 msgid "Record(s) deleted"
    342 msgstr "Данные удалены"
    343 
    344 #: c:\Program
    345 #: Files
    346 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:2992
    347 msgid "Description"
    348 msgstr "Наименование"
    349 
    350 #: c:\Program
    351 #: Files
    352 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:2996
    353 msgid "Name/description of the included code. Required field"
    354 msgstr "Наименование или краткое описание вставляемого кода. Поле обязательное для заполнения"
    355 
    356 #: c:\Program
    357 #: Files
    358 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3001
    359 msgid "Status"
    360 msgstr "Статус"
    361 
    362 #: c:\Program
    363 #: Files
    364 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3004
    365 msgid "Active"
    366 msgstr "Включен"
    367 
    368 #: c:\Program
    369 #: Files
    370 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3004
    371 msgid "Disabled"
    372 msgstr "Отключен"
    373 
    374 #: c:\Program
    375 #: Files
    376 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3006
    377 msgid "Active - code will be displayed, Disabled - code will not be displayed"
    378 msgstr "Включен - код отображается, Отключен - код не отображается"
    379 
    380 #: c:\Program
    381 #: Files
    382 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3012
    383 msgid "Location"
    384 msgstr "Расположение"
    385 
    386 #: c:\Program
    387 #: Files
    388 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3015
    389 msgid "Header"
    390 msgstr "Хэдер"
    391 
    392 #: c:\Program
    393 #: Files
    394 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3015
    395 msgid "Footer"
    396 msgstr "Футер"
    397 
    398 #: c:\Program
    399 #: Files
    400 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3015
    401 msgid "Widget"
    402 msgstr "Виджет"
    403 
    404 #: c:\Program
    405 #: Files
    406 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3015
    407 msgid "Before page content"
    408 msgstr "В начале страницы"
    409 
    410 #: c:\Program
    411 #: Files
    412 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3015
    413 msgid "After page content"
    414 msgstr "В конце страницы"
    415 
    416 #: c:\Program
    417 #: Files
    418 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3015
    419 msgid "Before post content"
    420 msgstr "В начале записи"
    421 
    422 #: c:\Program
    423 #: Files
    424 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3015
    425 msgid "After post excerpt"
    426 msgstr "После тега \"далее\""
    427 
    428 #: c:\Program
    429 #: Files
    430 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3015
    431 msgid "After post content"
    432 msgstr "В конце записи"
    433 
    434 #: c:\Program
    435 #: Files
    436 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3015
    437 msgid "Manual"
    438 msgstr "Ручной режим"
    439 
    440 #: c:\Program
    441 #: Files
    442 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3015
    443 msgid "Shortcode"
    444 msgstr ""
    445 
    446 #: c:\Program
    447 #: Files
    448 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3017
    449 msgid "Location where to place included code. If Widget selected, go to the Widget admin page to setup widget position. In Manual mode you must insert plugin function directly in to theme file"
    450 msgstr "Определяет расположение вставки на странице. Если выбрана опция Виджет, требуется дополнительная настройка виджета на странице Внешний вид->Виджеты. Если выбрана опция Ручной режим, php-функция вставляется на прямую в файл шаблона. Shortcode - используется для вставки в текст записи или страницы (работает аналогично вставке галлереи - [gallery])."
    451 
    452 #: c:\Program
    453 #: Files
    454 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3023
    455 msgid "Widget Title"
    456 msgstr "Заголовок"
    457 
    458 #: c:\Program
    459 #: Files
    460 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3032
    461 msgid "Priority"
    462 msgstr "Приоритет"
    463 
    464 #: c:\Program
    465 #: Files
    466 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3036
    467 msgid "Determines display order of includes in the same location"
    468 msgstr "Определяет порядок отображения вставляемого кода в одном и том же местерасположения"
    469 
    470 #: c:\Program
    471 #: Files
    472 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3042
    473 msgid "Insert on pages"
    474 msgstr "Вставить на страницы"
    475 
    476 #: c:\Program
    477 #: Files
    478 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3046
    479 msgid "Pages where code CAN BE shown. Hold CTRL key for multiple select or deselect pages. Required field"
    480 msgstr "Страницы для вставки кода. Поле обязательное для заполнения"
    481 
    482 #: c:\Program
    483 #: Files
    484 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3052
    485 msgid "Exclude pages"
    486 msgstr "Исключить страницы"
    487 
    488 #: c:\Program
    489 #: Files
    490 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3056
    491 msgid "Pages where code CAN NOT be shown. Hold CTRL key for multiple select or deselect pages"
    492 msgstr "Страницы, которые требуется исключить из списка страниц для вставки кода"
    493 
    494 #: c:\Program
    495 #: Files
    496 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3062
    497 msgid "Hide from user"
    498 msgstr "Спрятать от"
    499 
    500 #: c:\Program
    501 #: Files
    502 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3066
    503 msgid "Code will be hidden for all users with the selected roles. Visitor - is a virtual user role for all not registered visitors of your site. Use example: if you select Visitor role only, code will be shown only for registered users."
    504 msgstr "Для выбранных групп пользователей код показываться не будет. Посетитель - виртуальная группа, включающая всех пользователей не прошедших процедуру регистрации. Пример: выбрана только группа Посетитель - это означает, что код будет показан только зарегистрированным пользователям."
    505 
    506 #: c:\Program
    507 #: Files
    508 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3072
    509 msgid "Align"
    510 msgstr "Выравнивание"
    511 
    512 #: c:\Program
    513 #: Files
    514 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3075
    515 msgid "Align Not Set"
    516 msgstr "Без выравнивания"
    517 
    518 #: c:\Program
    519 #: Files
    520 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3075
    521 msgid "Align Left"
    522 msgstr "По левому краю"
    523 
    524 #: c:\Program
    525 #: Files
    526 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3075
    527 msgid "Align Center"
    528 msgstr "По центру"
    529 
    530 #: c:\Program
    531 #: Files
    532 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3075
    533 msgid "Align Right"
    534 msgstr "По правому краю"
    535 
    536 #: c:\Program
    537 #: Files
    538 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3082
    539 msgid "Include code"
    540 msgstr "Код"
    541 
    542 #: c:\Program
    543 #: Files
    544 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3086
    545 msgid "Included code. Required field. Any type of HTML, CSS, JAVASCRIPT and PHP code. PHP code must begins with php open tag. Align option allows you to wrap code in a div with selected text-align css propertie. Useful for aligning Google AdSense blocks and so on"
    546 msgstr "Поле обязательное для заполнения. Любые комбинации HTML, CSS, JAVASCRIPT и PHP кода. PHP код должен начинатся с открывающего тега (< ?php). Если установлена опция выравнивания, код помещается внутрь div с css атрибутом text-align равным выбранному значению"
    547 
    548 #: c:\Program
    549 #: Files
    550 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3101
    551 msgid "You must input Description field!"
    552 msgstr "Необходимо заполнить поле Наименование!"
    553 
    554 #: c:\Program
    555 #: Files
    556 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3107
    557 msgid "Priority number must be integer!"
    558 msgstr "В поле Приоритет можно вводить только целые числа!"
    559 
    560 #: c:\Program
    561 #: Files
    562 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3113
    563 msgid "You must select at least one page where to place included code!"
    564 msgstr "Выберите хотя бы одну страницу для вставки кода!"
    565 
    566 #: c:\Program
    567 #: Files
    568 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3119
    569 msgid "You must enter included code!"
    570 msgstr "Необходимо заполнить поле Код!"
    571 
    572 #: c:\Program
    573 #: Files
    574 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3139
    575 msgid "Front page"
    576 msgstr "Главная страница"
    577 
    578 #: c:\Program
    579 #: Files
    580 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3140
    581 msgid "All Post Types pages"
    582 msgstr "Страницы записей всех типов"
    583 
    584 #: c:\Program
    585 #: Files
    586 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3141
    587 msgid "Taxonomies pages"
    588 msgstr "Страницы таксономий"
    589 
    590 #: c:\Program
    591 #: Files
    592 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3142
    593 msgid "Date pages"
    594 msgstr "Страницы календаря"
    595 
    596 #: c:\Program
    597 #: Files
    598 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3143
    599 msgid "Author pages"
    600 msgstr "Страницы авторов"
    601 
    602 #: c:\Program
    603 #: Files
    604 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3144
    605 msgid "Attachment pages"
    606 msgstr "Страницы прикрепленных файлов"
    607 
    608 #: c:\Program
    609 #: Files
    610 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3145
    611 msgid "Paged pages"
    612 msgstr "Подстраницы"
    613 
    614 #: c:\Program
    615 #: Files
    616 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3146
    617 msgid "Search page"
    618 msgstr "Страница поиска"
    619 
    620 #: c:\Program
    621 #: Files
    622 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3147
    623 msgid "Preview page"
    624 msgstr "Страница предпросмотра"
    625 
    626 #: c:\Program
    627 #: Files
    628 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3148
    629 msgid "Page 404"
    630 msgstr "Страница 404"
    631 
    632 #: c:\Program
    633 #: Files
    634 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3165
    635 msgid "Status changed"
    636 msgstr "Статус изменен"
    637 
    638 #: c:\Program
    639 #: Files
    640 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_classes.php:3185
    641 msgid "Copy to clipboard"
    642 msgstr "Копировать в буфер"
    643 
    644 #: c:\Program
    645 #: Files
    646 #: (x86)\Zend\Apache2\htdocs\q2w3.ru-dev\wp-content\plugins\q2w3-inc-manager/q2w3-table/q2w3_table_func.php:369
    647 msgid "Visitor"
    648 msgstr "Посетитель"
     479#~ msgid "Need help? Visit"
     480#~ msgstr "Нужна помощь? Посетите"
     481
     482#~ msgid "Plugin Homepage"
     483#~ msgstr "домашнюю страницу плагина"
     484
     485#~ msgid ""
     486#~ "Enable shortcodes in comments. This option affects not all shortcodes, "
     487#~ "only [include] shortcode used by Code Insert Manager"
     488#~ msgstr ""
     489#~ "Включить использование шорткодов в комментариях. Опция влияет только на "
     490#~ "шорткод [include], используемый этим плагином."
     491
     492#~ msgid "Deactivation"
     493#~ msgstr "Деактивация"
     494
     495#~ msgid "Deactivate plugin"
     496#~ msgstr "Деактивировать плагин"
     497
     498#~ msgid "Deactivate plugin and delete all settings from database"
     499#~ msgstr "Деактивировать плагин и очистить базу данных"
     500
     501#, fuzzy
     502#~ msgid "PT Archive"
     503#~ msgstr "Включен"
    649504
    650505#~ msgid "Inserts list"
  • q2w3-inc-manager/trunk/q2w3-inc-manager.php

    r687055 r2306361  
    44Plugin URI: http://www.q2w3.ru/code-insert-manager-wordpress-plugin/
    55Description: This plugin allows you to insert html, css, javascript and PHP code to public wordpress pages.
    6 Version: 2.3.3
     6Version: 2.5.3
    77Author: Max Bond
    88Author URI: http://www.q2w3.ru/
    99*/
    1010
     11if ( ! defined('Q2W3_PHP_EVAL') ) define ('Q2W3_PHP_EVAL', false);
     12
    1113if (defined('ABSPATH')) { // makes shure that the following functions will be run inside WordPress only
    1214
     
    2729    add_shortcode('INCLUDE', array( 'q2w3_inc_manager', 'shortcode_incs' ));   
    2830   
    29     if (is_admin()) { // admin hooks
     31    if ( is_admin() ) { // admin hooks
    3032       
    3133        q2w3_inc_manager::load_language();
    3234       
    3335        add_action('admin_menu', array( 'q2w3_inc_manager', 'reg_menu' ));
    34        
    35         add_filter('plugin_action_links_'.plugin_basename(__FILE__), array( 'q2w3_inc_manager','reg_control_links' )); 
    36        
    37         add_filter('set-screen-option', array( 'q2w3_inc_manager', 'screen_options_save' ), 10, 3);
     36               
     37        add_action('add_meta_boxes', array( 'q2w3_inc_manager', 'add_meta_boxes' ));
     38
     39        add_action('wp_insert_post', array( 'q2w3_inc_manager', 'save_meta_boxes' ), 10, 3 );
     40       
     41        //add_filter('set-screen-option', array( 'q2w3_inc_manager', 'screen_options_save' ), 10, 3);
    3842                   
    3943    } else { // public hooks
    4044       
    41         add_action('wp_head', array( 'q2w3_inc_manager', 'cur_page' ));
    42        
    43         add_action('wp_head', array( 'q2w3_inc_manager', 'header_incs' ));
    44    
    45         add_action('wp_footer', array( 'q2w3_inc_manager', 'footer_incs' ));
     45        add_action('wp_head', array( 'q2w3_inc_manager', 'cur_page' ), 1);
     46       
     47        add_action('wp_head', array( 'q2w3_inc_manager', 'header_incs' ), 99);
     48   
     49        add_action('wp_footer', array( 'q2w3_inc_manager', 'footer_incs' ), 99);
    4650       
    4751        add_action('loop_start', array( 'q2w3_inc_manager', 'b_page_content_incs' ));
     
    5458   
    5559        add_filter('the_content', array( 'q2w3_inc_manager', 'a_post_content_incs' ));
    56        
    57         add_filter( 'comment_text', array( 'q2w3_inc_manager', 'parse_shortcodes_comment' ));
    5860       
    5961    }
     
    8082       
    8183       
    82     const PHP_VER = '5.2.0'; // Minimum PHP version
     84    const PHP_VER = '5.5.0'; // Minimum PHP version
    8385   
    8486    const WP_VER = '3.1'; // Minimum WordPress version
     
    99101    public static $default_post_types = array('post', 'page');
    100102           
    101     public static $restricted_post_types = array('attachment', 'revision', 'nav_menu_item');
     103    public static $restricted_post_types = array('attachment', 'revision', 'nav_menu_item', 'oembed_cache', 'user_request', 'customize_changeset', 'custom_css', 'tablepress_table', 'wp_block');
    102104   
    103105    public static $default_taxonomies = array('category', 'post_tag');
     
    138140            $inc_obj = self::object();
    139141           
    140             if (MULTISITE == true) $inc_obj->create_table(); // create tables for wp network sites
     142            if ( MULTISITE == true ) $inc_obj->create_table(); // create tables for wp network sites
    141143   
    142144            $table = new q2w3_table(self::ID, $inc_obj);
    143145           
    144             $table->get_handler = WP_PLUGIN_URL.'/q2w3-inc-manager/q2w3-table/q2w3_get.php';
    145    
    146             $table->post_handler = WP_PLUGIN_URL.'/q2w3-inc-manager/q2w3-table/q2w3_post.php';
     146            $table->get_handler = admin_url( 'admin-ajax.php' );
     147   
     148            $table->post_handler = admin_url( 'admin-ajax.php' );
    147149   
    148150            $table->reg_filter(new q2w3_table_status_filter(self::ID)); // register status filter
     
    167169       
    168170    }
    169    
     171
     172    /**
     173     * Returns URL of the plugin directory
     174     *
     175     * @return string   
     176     */
     177    public static function plugin_url() {
     178   
     179        return WP_PLUGIN_URL.'/'.dirname(plugin_basename(__FILE__));
     180   
     181    }   
    170182   
    171183    /**
     
    238250        $access_level = 'activate_plugins'; // admins and superadmins only
    239251   
    240         add_menu_page('Code Insert', __('Code Insert', self::ID), $access_level, 'q2w3-inc-manager', array(__CLASS__,'main_page'), WP_PLUGIN_URL.'/q2w3-inc-manager/q2w3-table/menu-icon.gif');
     252        add_menu_page('Code Insert', __('Code Insert', self::ID), $access_level, 'q2w3-inc-manager', array(__CLASS__,'main_page'), 'dashicons-welcome-widgets-menus');
    241253       
    242254        self::$plugin_page = add_submenu_page('q2w3-inc-manager', self::NAME, __('Inserts', self::ID), $access_level, 'q2w3-inc-manager', array(__CLASS__,'main_page'));
     
    246258        add_submenu_page('q2w3-inc-manager', self::NAME, __('Settings', self::ID), $access_level, 'q2w3-inc-manager-settings', array(__CLASS__,'settings_page'));
    247259       
    248         add_action('manage_'. self::$plugin_page .'_columns', array(__CLASS__, 'screen_options'));
     260        //add_action('manage_'. self::$plugin_page .'_columns', array(__CLASS__, 'screen_options'));
    249261       
    250262        add_action('contextual_help_list', array(__CLASS__, 'help')); // get_current_screen()->add_help_tab()
     
    295307       
    296308    }
    297    
    298     /**
    299      * Modifies plugin control links
    300      *
    301      * @param $links
    302      * @return links array
    303      */
    304     public static function reg_control_links($links) {
    305    
    306         if (array_key_exists('deactivate',$links)) {
    307            
    308             $index = 'deactivate'; // compatibility with WP 3.0
    309            
    310         } else {
    311            
    312             $index = 0;
    313            
    314         }
    315        
    316         $links[$index] = '<a href="admin.php?page=q2w3-inc-manager&amp;deactivate=true">'. __('Deactivate') .'</a>'; // changes default plugin deactivation link // now it points to my custom plugin deactivation page
    317        
    318         //$settings_link = '<a href="options-general.php?page='.plugin_basename(__FILE__).'">'. __('Settings') .'</a>'; // Direct link to plugin settings page
    319        
    320         //array_unshift($links,$settings_link); // adds settings link before other links
    321        
    322         return $links;
    323    
    324     }
    325    
     309       
    326310    /**
    327311     * Loads plugin language file
     
    341325   
    342326    }
    343    
    344    
    345327   
    346328    /**
     
    350332    public static function main_page() {
    351333   
    352         if (key_exists('deactivate', $_GET) && $_GET['deactivate'] == 'true') {
    353            
    354             self::deactivate_page(); // load deactivation page
    355            
    356         } else {
    357            
    358             self::table();
    359            
    360             $res = '<div class="wrap">'.PHP_EOL;
    361            
    362             $res .= '<h2>'. self::NAME .'</h2>'.PHP_EOL;
    363                    
    364             $res .= self::$table->html();
    365            
    366             $res .= '<ul class="subsubsub"><li>'. __('Need help? Visit', self::ID) .' <a href="http://www.q2w3.ru/code-insert-manager-wordpress-plugin/">'. __('Plugin Homepage', self::ID) .'</a></li></ul>'.PHP_EOL;
    367            
    368             $res .= '</div><!--wrap-->'.PHP_EOL;
    369            
    370             echo $res; // output
    371            
    372         }
     334        self::table();
     335       
     336        $res = '<div class="wrap">'.PHP_EOL;
     337       
     338        $res .= '<h1 class="wp-heading-inline">'. self::NAME .'</h1><a href="?page=q2w3-inc-manager&amp;id=_new_" class="page-title-action">'. __('Add New', self::ID) .'</a>'.PHP_EOL;
     339           
     340        $res .= '<hr class="wp-header-end">';
     341
     342        $res .= self::$table->html();
     343       
     344        //$res .= '<ul class="subsubsub"><li>'. __('Need help? Visit', self::ID) .' <a href="http://www.q2w3.ru/code-insert-manager-wordpress-plugin/">'. __('Plugin Homepage', self::ID) .'</a></li></ul>'.PHP_EOL;
     345       
     346        $res .= '</div><!--wrap-->'.PHP_EOL;
     347       
     348        echo $res; // output
    373349       
    374350    }
     
    398374        $res .= '<br/>'.PHP_EOL;
    399375       
    400         // Shortcodes in comments option
    401        
    402         $res .= '<input type="checkbox" name="'. self::ID.'[shortcodes_in_comments]" '. checked($options['shortcodes_in_comments'], 'on', false) .' /> '. __('Enable shortcodes in comments. This option affects not all shortcodes, only [include] shortcode used by Code Insert Manager', self::ID).PHP_EOL;
    403376       
    404377        // Post types
     
    428401                $res .= '<div class="parent_checkbox">';
    429402               
    430                 $res .= '<input type="checkbox" name="'. self::ID.'[post_types]['. $post_type->name .'][enable]" '. checked($options['post_types'][$post_type->name]['enable'], 'on', false) . $disabled .' /> <strong>'. $post_type->labels->name .'</strong> ('. $post_type->name .') <br/>';
     403                $res .= '<input type="checkbox" name="'. self::ID.'[post_types]['. $post_type->name .'][enable]" '. checked(@$options['post_types'][$post_type->name]['enable'], 'on', false) . $disabled .' /> <strong>'. $post_type->labels->name .'</strong> ('. $post_type->name .') <br/>';
    431404               
    432405                $res .= '</div>'.PHP_EOL;
     
    434407                $res .= '<div class="child_checkbox" style="margin-left: 20px">';
    435408               
    436                 $res .= '<input type="checkbox" name="'. self::ID.'[post_types]['. $post_type->name .'][expand]" '. checked($options['post_types'][$post_type->name]['expand'], 'on', false) .' /> '. __('Expand', self::ID);
     409                $res .= '<input type="checkbox" name="'. self::ID.'[post_types]['. $post_type->name .'][expand]" '. checked(@$options['post_types'][$post_type->name]['expand'], 'on', false) .' /> '. __('Expand', self::ID);
     410
     411                $res .= '<br/><input type="checkbox" name="'. self::ID.'[post_types]['. $post_type->name .'][metabox-header]" '. checked(@$options['post_types'][$post_type->name]['metabox-header'], 'on', false) .' /> '. __('Add metabox for page head inserts', self::ID);
     412
     413                $res .= '<br/><input type="checkbox" name="'. self::ID.'[post_types]['. $post_type->name .'][metabox-footer]" '. checked(@$options['post_types'][$post_type->name]['metabox-footer'], 'on', false) .' /> '. __('Add metabox for page footer inserts', self::ID);
    437414
    438415                $res .= '</div>'.PHP_EOL;
     
    454431        $res .= '<div class="parent_checkbox">';
    455432               
    456         $res .= '<input type="checkbox" name="'. self::ID.'[taxonomies][post_format][enable]" '. checked($options['taxonomies']['post_format']['enable'], 'on', false) .' /> <strong>'. __('Post Formats') .'</strong> (post_format)';
     433        $res .= '<input type="checkbox" name="'. self::ID.'[taxonomies][post_format][enable]" '. checked(@$options['taxonomies']['post_format']['enable'], 'on', false) .' /> <strong>'. __('Post Formats') .'</strong> (post_format)';
    457434               
    458435        $res .= '</div>'.PHP_EOL;
     
    488465                $res .= '<div class="parent_checkbox">';
    489466               
    490                 $res .= '<input type="checkbox" name="'. self::ID .'[taxonomies]['. $taxonomy->name .'][enable]" '. checked($options['taxonomies'][$taxonomy->name]['enable'], 'on', false) . $disabled .' /> <strong>'. $taxonomy->labels->name .'</strong> ('. $taxonomy->name .')';
     467                $res .= '<input type="checkbox" name="'. self::ID .'[taxonomies]['. $taxonomy->name .'][enable]" '. checked(@$options['taxonomies'][$taxonomy->name]['enable'], 'on', false) . $disabled .' /> <strong>'. $taxonomy->labels->name .'</strong> ('. $taxonomy->name .')';
    491468               
    492469                $res .= '</div>'.PHP_EOL;
     
    494471                $res .= '<div class="child_checkbox" style="margin-left: 20px">';
    495472               
    496                 $res .= '<input type="checkbox" name="'. self::ID .'[taxonomies]['. $taxonomy->name .'][expand]" '. checked($options['taxonomies'][$taxonomy->name]['expand'], 'on', false) .' /> '. __('Expand', self::ID);
     473                $res .= '<input type="checkbox" name="'. self::ID .'[taxonomies]['. $taxonomy->name .'][expand]" '. checked(@$options['taxonomies'][$taxonomy->name]['expand'], 'on', false) .' /> '. __('Expand', self::ID);
    497474
    498475                $res .= '</div>'.PHP_EOL;
     
    551528       
    552529    }
    553    
    554     /**
    555      * Output html of the plugin deactivation page
    556      *
    557      */
    558     protected static function deactivate_page() {
    559        
    560         //$action_link = get_option('siteurl').'/wp-admin/admin.php';
    561        
    562         $action_link = plugins_url().'/q2w3-inc-manager/q2w3-table/q2w3_post.php';
    563        
    564         $res = '<div class="wrap">'.PHP_EOL;
    565        
    566         $res .= '<h2>'. self::NAME .' &raquo; '. __('Deactivation', self::ID) .'</h2>'.PHP_EOL;
    567        
    568         $res .= '<br/><form method="post" action="'. $action_link .'">'.PHP_EOL;
    569            
    570         $res .= '<input type="hidden" name="page" value="'. $_GET['page'] .'"/>'.PHP_EOL;
    571    
    572         $res .= '<input type="hidden" name="deactivate" value="deactivate"/>'.PHP_EOL;
    573                    
    574         $res .= '<input type="hidden" name="wp_nonce" value="'. wp_create_nonce('q2w3_table_post') .'"/>'.PHP_EOL;
    575                        
    576         $res .= '<input type="submit" value="'. __('Deactivate plugin', self::ID) .'" class="button-secondary" /><br/><br/>';
    577            
    578         $res .= '</form>'.PHP_EOL;
    579            
    580            
    581         $res .= '<form method="post" action="'. $action_link .'" id="deactivate_and_clean">'.PHP_EOL;
    582            
    583         $res .= '<input type="hidden" name="page" value="'. $_GET['page'] .'"/>'.PHP_EOL;
    584    
    585         $res .= '<input type="hidden" name="deactivate" value="deactivate_and_clean"/>'.PHP_EOL;
    586                    
    587         $res .= '<input type="hidden" name="wp_nonce" value="'. wp_create_nonce('q2w3_table_post') .'"/>'.PHP_EOL;
    588            
    589         $res .= '<input type="submit" value="'. __('Deactivate plugin and delete all settings from database', self::ID) .'" class="button-secondary" />';
    590            
    591         $res .= '</form>'.PHP_EOL;
    592        
    593         $res .= '<script type="text/javascript">jQuery("#deactivate_and_clean").submit(function(){return confirm("'. __('Deactivate plugin and delete all settings from database', self::ID) .'?")})</script>'.PHP_EOL;
    594        
    595         $res .= '</div><!--wrap-->'.PHP_EOL;
    596        
    597         echo $res;
    598        
    599     }
    600    
    601     public static function deactivation() {
    602        
    603         if (isset($_POST['deactivate']) && $_POST['deactivate'] == 'deactivate' || $_POST['deactivate'] == 'deactivate_and_clean') { // process deactivation options
    604                
    605             global $wpdb;
    606            
    607             require_once(ABSPATH . 'wp-admin/includes/plugin.php');
    608            
    609             $redirect_url = get_option('siteurl').'/wp-admin/plugins.php?deactivate=true';
    610            
    611             if ($_POST['deactivate'] == 'deactivate') { // simple deactivation
    612    
    613                 deactivate_plugins(plugin_basename(__FILE__));
    614                
    615                 wp_redirect($redirect_url);
    616                                
    617             } elseif ($_POST['deactivate'] == 'deactivate_and_clean') { // advanced deactivation (delete tables and settings)
    618                
    619                 self::object();
    620                
    621                 deactivate_plugins(plugin_basename(__FILE__)); // deactivate plugin
    622    
    623                 $wpdb->query('DELETE FROM '. $wpdb->options ." WHERE option_name LIKE '%q2w3_inc_manager%'"); // delete all plugin entries in options table
    624                
    625                 $wpdb->query('DELETE FROM '. $wpdb->usermeta ." WHERE meta_key = '". q2w3_table_func::safe_plugin_id(self::ID)."_table_settings'"); // delete all plugin entries in usermeta table
    626                
    627                 $wpdb->query('DROP TABLE IF EXISTS '.self::$object->table()); // delete includes table
    628                
    629                 wp_redirect($redirect_url);
    630                                
    631             }
    632                            
    633         }
    634        
    635     }
    636    
     530           
    637531    /**
    638532     * Prints code of all active header includes
     
    822716                   
    823717                if (self::$object->status->val == q2w3_include_obj::STATUS_ACTIVE) {
    824                        
    825                     return self::code_align(self::php_eval(htmlspecialchars_decode(self::$object->code->val, ENT_QUOTES)), $code_align);
    826                    
     718                   
     719                    if ( defined('Q2W3_PHP_EVAL') && Q2W3_PHP_EVAL === true ) { // allow PHP eval
     720
     721                        return self::code_align(self::php_eval(htmlspecialchars_decode(self::$object->code->val, ENT_QUOTES)), $code_align); // htmlspecialchars_decode - php 5.1 function
     722                                           
     723                    } else {
     724
     725                        return self::code_align(htmlspecialchars_decode(self::$object->code->val, ENT_QUOTES), $code_align); // htmlspecialchars_decode - php 5.1 function
     726
     727                    }
     728
    827729                }
    828730                               
     
    865767                if (self::check_visibility($inc_pages, $exc_pages, $hide_from)) {
    866768                   
    867                     $res .= self::code_align(self::php_eval(htmlspecialchars_decode($inc[self::$object->code->col_name], ENT_QUOTES)), $code_align); // htmlspecialchars_decode - php 5.1 function
    868                                
     769                    if ( defined('Q2W3_PHP_EVAL') && Q2W3_PHP_EVAL === true ) { // allow PHP eval
     770
     771                        $res .= self::code_align(self::php_eval(htmlspecialchars_decode($inc[self::$object->code->col_name], ENT_QUOTES)), $code_align); // htmlspecialchars_decode - php 5.1 function
     772                                           
     773                    } else {
     774                       
     775                        $res .= self::code_align(htmlspecialchars_decode($inc[self::$object->code->col_name], ENT_QUOTES), $code_align); // htmlspecialchars_decode - php 5.1 function
     776                       
     777                    }
     778
    869779                }
    870780       
     
    887797        global $wpdb;
    888798       
    889         $res = $wpdb->get_results('SELECT * FROM '. self::$object->table() .'  WHERE '. self::$object->status->col_name .' = '. q2w3_include_obj::STATUS_ACTIVE .' AND ' . self::$object->location->col_name .' = '. $location .' ORDER BY '. self::$object->priority->col_name .','. self::$object->id->col_name, ARRAY_A);
    890        
    891         if (is_array($res)) {
     799        static $res = NULL;
     800       
     801        if ( ! $res ) { // get all active includes in one query
     802       
     803            $includes = $wpdb->get_results('SELECT * FROM '. self::$object->table() .'  WHERE '. self::$object->status->col_name .' = '. q2w3_include_obj::STATUS_ACTIVE .' ORDER BY '. self::$object->location->col_name .', '. self::$object->priority->col_name .','. self::$object->id->col_name, ARRAY_A);
     804           
     805            if ( is_array($includes) ) foreach ( $includes as $inc ) {
     806                   
     807                $res[$inc[self::$object->location->col_name]][] = $inc;
     808                       
     809            }
     810       
     811        }
     812               
     813        if (isset($res[$location]) && is_array($res[$location])) {
    892814                       
    893815            $output = array();
    894816           
    895             foreach ($res as $inc_data) {
     817            foreach ($res[$location] as $inc_data) {
    896818               
    897819                self::$object->load_values_from_array($inc_data, 'db2php');
     
    915837    /**
    916838     * Check visibility parameters
    917      *
    918      * Method must be public!
    919839     *
    920840     * @param array $inc_pages Array of pages where code can be shown
     
    945865                    foreach($hide_from_role as $role) {
    946866                   
     867                        //$role = $user->translate_level_to_cap($role);
     868
    947869                        if ($user->has_cap($role)) return false;
    948870                   
     
    11401062       
    11411063    }
    1142    
    1143     public static function parse_shortcodes_comment( $content ) {
    1144        
    1145         static $options = '';
    1146        
    1147         if (!$options) $options = get_option(self::ID);
    1148        
    1149         if ($options['shortcodes_in_comments']) {
    1150        
    1151             return self::shortcode_hack( $content, array( __CLASS__, 'shortcode_incs' ) );
    1152        
    1153         } else {
    1154            
    1155             return $content;
    1156            
    1157         }   
    1158            
    1159     }
    1160    
    1161     /**
    1162      * Returns URL of the plugin directory
    1163      *
    1164      * @return string   
    1165      */
    1166     public static function plugin_url() {
    1167    
    1168         return WP_PLUGIN_URL.'/'.dirname(plugin_basename(__FILE__));
    1169    
    1170     }
    1171    
    1172     // Shortcodes hack (to use shortcodes in comments)
    1173    
    1174     // A filter function that runs do_shortcode() but only with this plugin's shortcodes
    1175     public static function shortcode_hack( $content, $callback ) {
    1176         global $shortcode_tags;
    1177 
    1178         $shortcodes = array( 'include', 'INCLUDE');
    1179        
    1180         // Backup current registered shortcodes and clear them all out
    1181         $orig_shortcode_tags = $shortcode_tags;
    1182         remove_all_shortcodes();
    1183 
    1184         // Register all of this plugin's shortcodes
    1185         foreach ( $shortcodes as $shortcode )
    1186             add_shortcode( $shortcode, $callback );
    1187 
    1188         // Do the shortcodes (only this plugins's are registered)
    1189         $content = self::do_shortcode_keep_escaped_tags( $content );
    1190 
    1191         // Put the original shortcodes back
    1192         $shortcode_tags = $orig_shortcode_tags;
    1193 
    1194         return $content;
    1195     }
    1196 
    1197 
    1198     // This is a clone of do_shortcode() that uses a different callback function
    1199     // The new callback function will keep escaped tags escaped, i.e. [[foo]]
    1200     // Up to date as of r18324 (3.2)
    1201     public static function do_shortcode_keep_escaped_tags( $content ) {
    1202         global $shortcode_tags;
    1203 
    1204         if (empty($shortcode_tags) || !is_array($shortcode_tags))
    1205             return $content;
    1206 
    1207         $pattern = get_shortcode_regex();
    1208         return preg_replace_callback('/'.$pattern.'/s', array( __CLASS__, 'do_shortcode_tag_keep_escaped_tags' ), $content);
    1209     }
    1210 
    1211 
    1212     // Callback for above do_shortcode_keep_escaped_tags() function
    1213     // It's a clone of core's do_shortcode_tag() function with a modification to the escaped shortcode return
    1214     // Up to date as of r18324 (3.2)
    1215     public static function do_shortcode_tag_keep_escaped_tags( $m ) {
    1216         global $shortcode_tags;
    1217 
    1218         // allow [[foo]] syntax for escaping a tag
    1219         if ( $m[1] == '[' && $m[6] == ']' ) {
    1220             return $m[0]; // This line was modified for this plugin (no substr call)
    1221         }
    1222 
    1223         $tag = $m[2];
    1224         $attr = shortcode_parse_atts( $m[3] );
    1225 
    1226         if ( isset( $m[5] ) ) {
    1227             // enclosing tag - extra parameter
    1228             return $m[1] . call_user_func( $shortcode_tags[$tag], $attr, $m[5], $tag ) . $m[6];
    1229         } else {
    1230             // self-closing tag
    1231             return $m[1] . call_user_func( $shortcode_tags[$tag], $attr, NULL,  $tag ) . $m[6];
    1232         }
    1233     }
    1234        
     1064
     1065    public static function add_meta_boxes() {
     1066
     1067        if ( ! current_user_can('edit_theme_options') ) return false;
     1068
     1069        $options = get_option(self::ID);   
     1070       
     1071        if ( ! $options ) $options = self::$default_options;
     1072
     1073        if ( ! isset($options['post_types']) ) return false;
     1074
     1075        if ( is_array($options['post_types']) ) foreach ( $options['post_types'] as $post_type => $post_type_options ) {
     1076
     1077            if ( isset($post_type_options['metabox-header']) && $post_type_options['metabox-header'] ) {
     1078
     1079                add_meta_box( self::ID.'-metabox-header', __('Code in ', self::ID) .'wp_head', array( __CLASS__, 'meta_box_header' ), $post_type, 'normal', 'low' );
     1080
     1081            }
     1082
     1083            if ( isset($post_type_options['metabox-footer']) && $post_type_options['metabox-footer'] ) {
     1084
     1085                add_meta_box( self::ID.'-metabox-footer', __('Code in ', self::ID) .'wp_footer', array( __CLASS__, 'meta_box_footer' ), $post_type, 'normal', 'low' );
     1086
     1087            }
     1088
     1089        }
     1090
     1091    }
     1092
     1093    public static function meta_box_header() {
     1094
     1095        self::meta_box(q2w3_include_obj::LOC_HEADER);
     1096
     1097    }
     1098   
     1099    public static function meta_box_footer() {
     1100
     1101        self::meta_box(q2w3_include_obj::LOC_FOOTER);
     1102
     1103    }
     1104
     1105    protected static function meta_box($location) {
     1106
     1107        global $post;
     1108       
     1109        $include_id = get_post_meta($post->ID, self::ID.'-'.$location, true);
     1110       
     1111        $status = q2w3_include_obj::STATUS_DISABLED;
     1112
     1113        $code = null;
     1114
     1115        if ( $include_id > 0 ) {
     1116
     1117            $object = new q2w3_include_obj(self::ID);
     1118
     1119            $res = $object->load_values_from_db($include_id, 'db2php');
     1120
     1121            if ( $res === false ) {
     1122
     1123                delete_post_meta($post->ID, self::ID.'-'.$location);
     1124
     1125                $include_id = null;
     1126
     1127            } else {
     1128
     1129                $status = $object->status->val;
     1130
     1131                $code = $object->code->val;
     1132
     1133            }
     1134
     1135        }
     1136
     1137        if ( ! $include_id ) $include_id = q2w3_table::NEW_MARKER;
     1138
     1139
     1140        echo '<input type="hidden" name="'. self::ID .'['. $location .'][id]" value="'. $include_id .'"/>';
     1141       
     1142        echo '<p class="submit"><input type="submit" name="submit" id="submit" class="button button-primary button-large" value="Обновить"></p>';
     1143
     1144        echo '<p><select name="'. self::ID .'['. $location .'][status]">';
     1145               
     1146            echo '<option value="'. q2w3_include_obj::STATUS_ACTIVE .'" '. selected(q2w3_include_obj::STATUS_ACTIVE, $status, false) .'>'. __('Active', self::ID) .'</option>';
     1147           
     1148            echo '<option value="'. q2w3_include_obj::STATUS_DISABLED .'" '. selected(q2w3_include_obj::STATUS_DISABLED, $status, false) .'>'. __('Disabled', self::ID) .'</option>';
     1149           
     1150        echo '</select></p>';
     1151       
     1152        echo '<input type="hidden" name="'. self::ID .'['. $location .'][inc_pages]" value="'. $post->post_type .'_'. $post->ID .'"/>';
     1153
     1154        echo '<textarea name="'. self::ID .'['. $location .'][code]" rows="5" class="large-text code" placeholder="'. __('Input code', self::ID) .'">'. $code .'</textarea>';
     1155
     1156    }
     1157
     1158    public static function save_meta_boxes($post_id, $post, $update) {
     1159
     1160        if ( ! current_user_can('edit_theme_options') ) return false;
     1161
     1162        if ( !( isset($_POST[self::ID]) && is_array($_POST[self::ID]) ) ) return false;
     1163       
     1164        foreach ( $_POST[self::ID] as $location => $propertie ) {
     1165
     1166            if ( isset($propertie['code']) && ! trim($propertie['code']) && $propertie['id'] == q2w3_table::NEW_MARKER ) continue;
     1167           
     1168            $object = new q2w3_include_obj(self::ID);
     1169
     1170            $show_sys_msg = false;
     1171
     1172            if ( isset($propertie['code']) && trim($propertie['code']) ) { // save include
     1173                   
     1174                $propertie['description'] = $post->post_title;
     1175
     1176                $propertie['location'] = $location;
     1177
     1178                $object->load_values_from_array($propertie, 'php2db');
     1179               
     1180                $include_id = $object->save($show_sys_msg);
     1181
     1182                if ( $include_id ) {
     1183
     1184                    if ( $propertie['id'] != q2w3_table::NEW_MARKER ) $include_id = $propertie['id'];
     1185
     1186                    update_post_meta($post_id, self::ID.'-'.$location, $include_id);
     1187
     1188                }
     1189
     1190            } elseif ( $propertie['id'] != q2w3_table::NEW_MARKER ) { // delete include
     1191
     1192                $include_id = (int)$propertie['id'];
     1193
     1194                if ( $include_id > 0 ) {
     1195               
     1196                    $object->id->val = $include_id;
     1197
     1198                    if ( $object->delete($show_sys_msg) ) {
     1199
     1200                        delete_post_meta($include_id, self::ID.'-'.$location);
     1201
     1202                    }
     1203
     1204                }
     1205
     1206            }
     1207       
     1208        }
     1209
     1210    }
     1211           
    12351212}
    1236 
    1237 ?>
  • q2w3-inc-manager/trunk/q2w3-table/actions/_load_actions.php

    r677384 r2306361  
    1515require_once 'q2w3_table_new_row.php';
    1616
     17require_once 'q2w3_table_update_row.php';
     18
    1719require_once 'q2w3_table_search.php';
    1820
    19 require_once 'q2w3_table_update_row.php';
     21require_once 'q2w3_table_wp_page_select.php';
    2022
    21 require_once 'q2w3_table_wp_page_select.php';
     23
     24add_action( 'wp_ajax_q2w3_table_activate_selected', array( 'q2w3_table_activate_selected', 'ajax' ) );
     25
     26add_action( 'wp_ajax_q2w3_table_change_status', array( 'q2w3_table_change_status', 'ajax' ) );
     27
     28add_action( 'wp_ajax_q2w3_table_delete_row', array( 'q2w3_table_delete_row', 'ajax' ) );
     29
     30add_action( 'wp_ajax_q2w3_table_delete_selected', array( 'q2w3_table_delete_selected', 'ajax' ) );
     31
     32add_action( 'wp_ajax_q2w3_table_disable_selected', array( 'q2w3_table_disable_selected', 'ajax' ) );
     33
     34add_action( 'wp_ajax_q2w3_table_new_row', array( 'q2w3_table_disable_selected', 'ajax' ) );
     35
     36add_action( 'wp_ajax_q2w3_table_update_row', array( 'q2w3_table_update_row', 'ajax' ) );
     37
     38add_action( 'wp_ajax_q2w3_table_search', array( 'q2w3_table_search', 'ajax' ) );
     39
     40add_action( 'wp_ajax_q2w3_table_wp_page_select', array( 'q2w3_table_wp_page_select', 'ajax' ) );
  • q2w3-inc-manager/trunk/q2w3-table/actions/_q2w3_table_action.php

    r677384 r2306361  
    2525        $this->plugin_id = $plugin_id;
    2626       
    27         $this->wp_nonce = wp_create_nonce('q2w3_table_get'); // create nonce for get actions
     27        $this->wp_nonce = wp_create_nonce('q2w3_table'); // create nonce for get actions
    2828       
    2929        $this->action_page = $action_page;
     
    5858    public static function action($plugin_id, $object_name) {
    5959       
    60          
    6160       
     61       
     62    }
     63
     64    public static function ajax() {
     65       
     66        if ( !check_admin_referer('q2w3_table','wp_nonce') ) wp_die('Security check failed');
     67
     68        $action = $_REQUEST['action'];
     69
     70        $action::action(q2w3_inc_manager::ID, $_REQUEST['object']);
     71       
     72        wp_redirect($_SERVER['HTTP_REFERER']);
     73               
     74        exit();
     75
    6276    }
    6377   
  • q2w3-inc-manager/trunk/q2w3-table/actions/q2w3_table_new_row.php

    r677384 r2306361  
    2424       
    2525        $insert_id = $object->save();
    26    
     26           
    2727        if ($insert_id) {
    2828           
     
    3232       
    3333    }
    34    
     34       
    3535}
    3636
  • q2w3-inc-manager/trunk/q2w3-table/filters/q2w3_table_search_filter.php

    r677384 r2306361  
    4141        $res .= $search->html();
    4242       
    43         $res .= new q2w3_hidden_input(array('name'=>'wp_nonce', 'value'=>wp_create_nonce('q2w3_table_post')));
     43        $res .= new q2w3_hidden_input(array('name'=>'wp_nonce', 'value'=>wp_create_nonce('q2w3_table')));
    4444       
    4545        $res .= '<table>'.PHP_EOL;
  • q2w3-inc-manager/trunk/q2w3-table/form_elements/q2w3_wp_page_select_input.php

    r677384 r2306361  
    2828           
    2929        }
     30
     31        $saved_values = null;
     32
     33        $pages = null;
    3034       
    3135        if ($this->value) {
     
    4953        $res = '<div '. $this->id .'>'.PHP_EOL;
    5054       
    51         $res .= '<div><a href="'. site_url() . '/wp-content/plugins/q2w3-inc-manager/q2w3-table/q2w3_get.php?width=640&amp;height=485&amp;action=q2w3_table_wp_page_select&amp;id='. $field_id . $type .'&amp;wp_nonce='. wp_create_nonce('q2w3_table_get') .'" title="'. __('Select pages', q2w3_inc_manager::ID) .'" class="thickbox" style="text-decoration: none">[...]</a></div>'.PHP_EOL;
     55        $res .= '<div><a href="'. admin_url( 'admin-ajax.php' ) . '?width=640&amp;height=485&amp;action=q2w3_table_wp_page_select&amp;id='. $field_id . $type .'&amp;wp_nonce='. wp_create_nonce('q2w3_table') .'" title="'. __('Select pages', q2w3_inc_manager::ID) .'" class="thickbox" style="text-decoration: none">[...]</a></div>'.PHP_EOL;
    5256       
    5357        $res .= '<input type="hidden" name="'. $this->name .'" value="'. $saved_values .'"/>';
  • q2w3-inc-manager/trunk/q2w3-table/objects/_q2w3_table_obj.php

    r677384 r2306361  
    110110     *
    111111     */
    112     public function save() {
     112    public function save($show_sys_msg = true) {
    113113   
    114114        global $wpdb; // use wpdp object
     
    120120                if ($wpdb->update($this->table(), $this->values_array(), array($this->id->col_name=>$this->id->val)) !== false) { // ok
    121121       
    122                     new q2w3_table_sys_msg(__('Record updated', self::$plugin_id)); // message to user
     122                    if ( $show_sys_msg ) new q2w3_table_sys_msg(__('Record updated', self::$plugin_id)); // message to user
    123123                   
    124124                    $this->after_update(); // actions after update
     
    128128                } else { // error
    129129                   
    130                     new q2w3_table_sys_msg(__('DB error:', self::$plugin_id).' '.$wpdb->last_error);
     130                    if ( $show_sys_msg ) new q2w3_table_sys_msg(__('DB error:', self::$plugin_id).' '.$wpdb->last_error);
    131131                   
    132132                    return false;
     
    142142                    $this->after_insert(); // action after insert
    143143                   
    144                     new q2w3_table_sys_msg(__('Record inserted', self::$plugin_id)); // message to user
     144                    if ( $show_sys_msg ) new q2w3_table_sys_msg(__('Record inserted', self::$plugin_id)); // message to user
    145145                   
    146146                    return $wpdb->insert_id; // return inserted id
     
    148148                } else { // error
    149149                   
    150                     new q2w3_table_sys_msg(__('DB error:', self::$plugin_id).' '.$wpdb->last_error);
     150                    if ( $show_sys_msg ) new q2w3_table_sys_msg(__('DB error:', self::$plugin_id).' '.$wpdb->last_error);
    151151                   
    152152                    return false;
     
    170170     *
    171171     */
    172     public function delete() {
     172    public function delete($show_sys_msg = true) {
    173173   
    174174        global $wpdb; // use wpdb object
     
    180180                $this->after_delete(); // actions after delete
    181181               
    182                 new q2w3_table_sys_msg(__('Record(s) deleted', self::$plugin_id)); // msg for user
     182                if ( $show_sys_msg ) new q2w3_table_sys_msg(__('Record(s) deleted', self::$plugin_id)); // msg for user
    183183               
    184184                return true;
     
    186186            } else { // error
    187187               
    188                 new q2w3_table_sys_msg(__('DB error:', self::$plugin_id).' '.$wpdb->print_error()); // error msg
     188                if ( $show_sys_msg ) new q2w3_table_sys_msg(__('DB error:', self::$plugin_id).' '.$wpdb->print_error()); // error msg
    189189               
    190190                return false;
     
    245245            $data = $wpdb->get_row('SELECT * FROM '. $this->table() .' WHERE id = '.$object_id, ARRAY_A);
    246246           
    247             if (!empty($data)) $this->load_values_from_array($data, $conv_type);
     247            if ( !empty($data) ) {
     248               
     249                $this->load_values_from_array($data, $conv_type);
     250
     251            } else {
     252
     253                return false;
     254
     255            }
    248256       
    249257        }
     
    471479    protected function get_saved_input() {
    472480       
    473         if (key_exists('id', $_GET) && $_GET['id'] == q2w3_table::NEW_MARKER && is_array($_SESSION['q2w3_table_tmp_data']) && !empty($_SESSION['q2w3_table_tmp_data'])) {
     481        if (key_exists('id', $_GET) && $_GET['id'] == q2w3_table::NEW_MARKER && isset($_SESSION['q2w3_table_tmp_data']) && is_array($_SESSION['q2w3_table_tmp_data']) && !empty($_SESSION['q2w3_table_tmp_data'])) {
    474482       
    475483            $this->load_values_from_array($_SESSION['q2w3_table_tmp_data'], 'db2php');
  • q2w3-inc-manager/trunk/q2w3-table/objects/q2w3_include_obj.php

    r677384 r2306361  
    201201        $this->inc_pages->help = __('Pages where code CAN BE shown. Hold CTRL key for multiple select or deselect pages. Required field', self::$plugin_id);
    202202        $this->inc_pages->conv = new q2w3_select_page_conv($this->inc_pages, self::$plugin_id);
    203         $this->inc_pages->table_view = false;
     203        $this->inc_pages->table_view = true;
    204204        $this->inc_pages->table_view_change = true;
    205205        $this->inc_pages->single_view = true;
     
    211211        $this->exc_pages->help = __('Pages where code CAN NOT be shown. Hold CTRL key for multiple select or deselect pages', self::$plugin_id);
    212212        $this->exc_pages->conv = new q2w3_select_page_conv($this->exc_pages, self::$plugin_id);
    213         $this->exc_pages->table_view = false;
     213        $this->exc_pages->table_view = true;
    214214        $this->exc_pages->table_view_change = true;
    215215        $this->exc_pages->single_view = true;
  • q2w3-inc-manager/trunk/q2w3-table/q2w3_table.php

    r677384 r2306361  
    289289        if ($this->enable_create_new_button) {
    290290           
    291             $create_new_button = '<input type="button" value="'. $this->create_new_button_text .'" class="button-secondary new_include" />';
     291            $create_new_button = ''; //'<a href="#" class="button ">'. $this->create_new_button_text .'</a>';
    292292       
    293293        }
     
    383383        $res .= '<form method="post" action="'. $this->post_handler .'" id="q2w3_includes_table_form">'.PHP_EOL;
    384384
    385         $res .= new q2w3_hidden_input(array('name'=>'wp_nonce', 'value'=>wp_create_nonce('q2w3_table_post')));
     385        $res .= new q2w3_hidden_input(array('name'=>'wp_nonce', 'value'=>wp_create_nonce('q2w3_table')));
    386386               
    387387        $res .= $table_actions;
    388388       
    389         $res .= '<table class="widefat" cellspacing="0" id="q2w3_includes_table">'.PHP_EOL;
     389        $res .= '<table class="wp-list-table widefat fixed striped posts" id="q2w3_includes_table">'.PHP_EOL;
    390390       
    391391        $res .= '<thead>'.PHP_EOL;
     
    466466        $res = '<tr>'.PHP_EOL;
    467467       
    468         if ($this->enable_bulk_actions) $res .= '<th scope="col" class="manage-column  check-column"><input type="checkbox" /></th>'.PHP_EOL;
     468        if ($this->enable_bulk_actions) $res .= '<td scope="col" class="manage-column column-cb check-column"><input type="checkbox" /></td>'.PHP_EOL;
    469469       
    470470        foreach ($columns as $id=>$column) {
     
    671671            $res .= $action->html();
    672672                           
    673             $res .= new q2w3_hidden_input(array('name'=>'wp_nonce', 'value'=>wp_create_nonce('q2w3_table_post')));
     673            $res .= new q2w3_hidden_input(array('name'=>'wp_nonce', 'value'=>wp_create_nonce('q2w3_table')));
    674674           
    675675            $res .= new q2w3_hidden_input(array('name'=>'object', 'value'=>get_class($this->object)));
  • q2w3-inc-manager/trunk/q2w3-table/q2w3_table_func.php

    r677384 r2306361  
    243243        foreach ($formats_orig as $fkey=>$fname) {
    244244           
    245             $res['post_format_'.$fkey] = __('PF', $plugin_id).': '.$fname;
     245            $res['post_format_'.$fkey] = __('PF', q2w3_inc_manager::ID).': '.$fname;
    246246           
    247247        }
     
    281281        $tags = $wpdb->get_results('SELECT t.term_id, t.name FROM '. $wpdb->terms .' t, '. $wpdb->term_taxonomy ." tt WHERE tt.taxonomy = '$taxonomy' AND tt.term_id = t.term_id AND tt.count > 0 ORDER BY tt.count DESC", ARRAY_N);
    282282           
     283        $output_array = array();
     284
    283285        if (is_array($tags) && !empty($tags)) {
    284286
     
    298300       
    299301        global $wp_roles;
    300 
    301         $all_roles = $wp_roles->roles;
    302        
    303         $editable_roles = apply_filters('editable_roles', $all_roles);
    304        
    305         if (is_array($editable_roles)) {
    306        
    307             foreach( $editable_roles as $role => $details ) {
    308            
    309                 $name = translate_user_role($details['name'] );
    310        
    311                 $roles[$role] = $name;
     302       
     303        if ( is_object($wp_roles) ) {
     304
     305            $all_roles = $wp_roles->roles;
     306           
     307            $editable_roles = apply_filters('editable_roles', $all_roles);
     308           
     309            if (is_array($editable_roles)) {
     310           
     311                foreach( $editable_roles as $role => $details ) {
     312               
     313                    $name = translate_user_role($details['name'] );
     314           
     315                    $roles[$role] = $name;
     316               
     317                }
    312318           
    313319            }
  • q2w3-inc-manager/trunk/q2w3-table/sys_msg/q2w3_table_sys_msg.php

    r677384 r2306361  
    2525        if (!session_id()) @session_start();
    2626   
    27         if (key_exists('q2w3_table_sys_msg', $_SESSION) && is_array($_SESSION['q2w3_table_sys_msg'])) {
     27        if ( isset($_SESSION['q2w3_table_sys_msg']) && is_array($_SESSION['q2w3_table_sys_msg'])) {
    2828           
    2929            $msgs = array_unique($_SESSION['q2w3_table_sys_msg']);
     
    3737        }
    3838           
     39        $res = '';
     40
    3941        foreach ($msgs as $msg) {
    4042           
  • q2w3-inc-manager/trunk/q2w3_inc_manager_widget.php

    r366427 r2306361  
    11<?php
    22
    3 // Q2W3 Inc Manager Widget class. Extends default WP_Widget class. Used PHP 4 OOP.
     3// Q2W3 Inc Manager Widget class. Extends default WP_Widget class.
    44
    55class q2w3_inc_manager_widget extends WP_Widget {
     
    3838     *
    3939     */
    40     function q2w3_inc_manager_widget($plugin_id, $plugin_name, $object_id, $widget_id, $widget_admin_title, $widget_public_title, $inc_pages, $exc_pages, $hide_from_admin, $code_align, $code){
     40    public function __construct($plugin_id, $plugin_name, $object_id, $widget_id, $widget_admin_title, $widget_public_title, $inc_pages, $exc_pages, $hide_from_admin, $code_align, $code){
    4141           
    4242        $this->plugin_id = $plugin_id;
     
    6060        $widget_ops = array('classname' => $widget_id, 'description' => __('Q2W3 Insert Manager Widget', $plugin_id) ); // Widget description
    6161   
    62         $this->WP_Widget($widget_id, $widget_admin_title, $widget_ops); // Widget name is include description
     62        parent::__construct($widget_id, $widget_admin_title, $widget_ops); // Widget name is include description
    6363       
    6464    }
  • q2w3-inc-manager/trunk/readme.txt

    r687055 r2306361  
    11=== Code Insert Manager (Q2W3 Inc Manager) ===
    22Contributors: Max Bond
    3 Tags: q2w3, code insert, code include, ads, header, footer, html, css, javascript, php, widget, shortcode, Russian, English, French, German, Italian, custom taxonomy, custom post type, custom post type archive, post format
     3Tags: q2w3, code insert, code include, ads, header, footer, html, css, javascript, php, widget, shortcode, custom taxonomy, custom post type, custom post type archive, post format
    44Requires at least: 3.1
    5 Tested up to: 3.5.1
    6 Stable tag: 2.3.3
     5Tested up to: 5.4.1
     6Stable tag: 2.5.3
    77
    88This plugin allows you to insert html, css, javascript and PHP code to public WordPress pages.
     
    1111
    1212[youtube http://www.youtube.com/watch?v=JPhX8D7xDzo]
    13 
    14 For more info visit [plugin homepage](http://www.q2w3.ru/code-insert-manager-wordpress-plugin/)
    1513
    1614Areas of the page where you can insert code:
     
    4543* Align - allows you to set horizontal align for inserted code. Useful for aligning Google AdSense blocks.
    4644
    47 Supported languages:
    48 
    49 * English
    50 * Russian
    51 * French ([Olivier](http://www.vazy.biz/))
    52 * German ([Oliver Schieche](http://perfect-co.de/))
    53 * Italian ([Igor](http://blog.justshopping.it))
    54 
    5545== Installation ==
    5646
    57 1. Check minimal system requirements: WordPress 3.1, PHP 5.2.4
     471. Check minimal system requirements: WordPress 3.1, PHP 5.5
    58482. Follow standard WordPress plugin installation procedure
    59493. Activate the plugin through the Plugins menu in WordPress
    60 
    61 Upgrade from ver 1.x to 2.x Note:
    62 The following page selectors have been removed: All Posts, All Pages, Category Pages and Tag Pages. Inserts that used them will not work. But don't worry, just recreate "Insert" and "Exclude" rules and they will work again!
    6350
    6451== Screenshots ==
     
    68553. Insert options
    6956
    70 == Other Notes ==
     57== Changelog ==
    7158
     59=2.5.3=
     60* Added `wp_block` post type to restricted post types
    7261
    73 Q2W3 Plugins:
     62= 2.5.2 =
     63* Fixed error in display_inc() function
    7464
    75 * [Q2W3 Fixed Widget (Sticky Widget)](http://wordpress.org/extend/plugins/q2w3-fixed-widget/)
    76 * [Q2W3 Post Order](http://wordpress.org/extend/plugins/q2w3-post-order/)
    77 
    78 == Changelog ==
     65= 2.5.1 =
     66* Updated plugin core, fixed most php warnings and notices
     67* Added support of PHP7
     68* Added standard plugin uninstall script
     69* Added feature to make head and footer inserts from the post editor
     70* Removed option to use [include] shortcode in comments
     71* Disabled PHP eval by default! To enable PHP eval add `define('Q2W3_PHP_EVAL', true);` in wp_config.php. Use with caution! In multiuser or multisite enviroments you can grant PHP exec rights for non admin users!!!
    7972
    8073= 2.3.3 =
Note: See TracChangeset for help on using the changeset viewer.