wiki:plugin:icons
Различия
Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версия | ||
wiki:plugin:icons [2025/01/19 11:33] – [Часто задаваемые вопросы] vladpolskiy | wiki:plugin:icons [2025/01/19 12:18] (текущий) – [Ошибка вида Error: Call to undefined function trigger_event()] vladpolskiy | ||
---|---|---|---|
Строка 318: | Строка 318: | ||
[[https:// | [[https:// | ||
{{ : | {{ : | ||
- | ==== ==== | + | ==== Ошибка вида Error: Call to undefined function trigger_event() |
+ | {{: | ||
+ | Данная ошибка может возникнуть при обновлении dokuwiki с 2023-04-04 «Jack Jackrum» на 2024-02-06 «Kaos» и означает '' | ||
+ | * Имя класса '' | ||
+ | * Публичный метод '' | ||
+ | <code php popur.php [enable_line_numbers=" | ||
+ | $tmp = array(); | ||
+ | trigger_event(' | ||
+ | session_write_close(); | ||
+ | </ | ||
+ | **безопасное решение**: | ||
+ | в начале добавляем класс Event '' | ||
+ | <code php popur.php [enable_line_numbers=" | ||
+ | require_once(DOKU_INC.' | ||
+ | require_once(DOKU_INC.' | ||
+ | require_once(DOKU_INC.' | ||
+ | require_once(DOKU_INC.' | ||
+ | use dokuwiki\Extension\Event; | ||
+ | |||
+ | </ | ||
+ | Меняем код вызова функции '' | ||
+ | <code php popur.php [enable_line_numbers=" | ||
+ | $tmp = array(); | ||
+ | Event:: | ||
+ | session_write_close(); | ||
+ | |||
+ | </ | ||
+ | Сохраняем, | ||
+ | {{: | ||
+ | в раскрывшемся окне выбираем понравившуюся иконку и вставляем в тело страницы | ||
+ | {{: | ||
+ | < | ||
+ | <code php popur.php [enable_line_numbers=" | ||
+ | <?php | ||
+ | /** | ||
+ | * Plugin Icons: Popup helper | ||
+ | * | ||
+ | * @license | ||
+ | * @author | ||
+ | * @copyright | ||
+ | */ | ||
+ | |||
+ | if (!defined(' | ||
+ | define(' | ||
+ | |||
+ | global $lang; | ||
+ | global $conf; | ||
+ | global $JSINFO; | ||
+ | |||
+ | require_once(DOKU_INC.' | ||
+ | require_once(DOKU_INC.' | ||
+ | require_once(DOKU_INC.' | ||
+ | require_once(DOKU_INC.' | ||
+ | use dokuwiki\Extension\Event; | ||
+ | $JSINFO[' | ||
+ | $JSINFO[' | ||
+ | |||
+ | $tmp = array(); | ||
+ | Event:: | ||
+ | session_write_close(); | ||
+ | |||
+ | |||
+ | $icons_plugin = plugin_load(' | ||
+ | |||
+ | $use_font_awesome | ||
+ | $use_material_design_icons = $icons_plugin-> | ||
+ | $use_typicons | ||
+ | $use_font_linux | ||
+ | $use_rpg_awesome | ||
+ | $use_glyphicons | ||
+ | |||
+ | # Load Bootstrap3 Template assets | ||
+ | if ($conf[' | ||
+ | |||
+ | include_once(DOKU_INC.' | ||
+ | include_once(DOKU_INC.' | ||
+ | |||
+ | # Glyphicons is bundled into Bootstrap 3.x | ||
+ | $use_glyphicons = true; | ||
+ | |||
+ | } | ||
+ | |||
+ | $list_material_design_icons = include(dirname(__FILE__) . '/ | ||
+ | $list_font_awesome | ||
+ | # add V6 brand icons | ||
+ | $list_font_awesome_br | ||
+ | # add V6 brand icons | ||
+ | $list_glyphicon | ||
+ | $list_typicons | ||
+ | $list_font_linux | ||
+ | $list_rpg_awesome | ||
+ | |||
+ | header(' | ||
+ | header(' | ||
+ | |||
+ | ?>< | ||
+ | <html xmlns=" | ||
+ | < | ||
+ | <meta charset=" | ||
+ | <meta http-equiv=" | ||
+ | < | ||
+ | < | ||
+ | <meta name=" | ||
+ | <?php echo tpl_favicon(array(' | ||
+ | <?php tpl_metaheaders() ?> | ||
+ | <style type=" | ||
+ | body { padding: 20px; } | ||
+ | .btn-icon { margin: 4px; padding: 4px; } | ||
+ | .tab-icons { overflow-y: auto; height: 300px; } | ||
+ | .icon { font-size: 2em; width: 1.28571429em; | ||
+ | | ||
+ | <?php if (! $use_glyphicons): | ||
+ | footer { bottom: 20px; position: fixed; } | ||
+ | .col-sm-6 { width:50%; float: left; } | ||
+ | .col-sm-4 { width: | ||
+ | .tab-pane, .hide { display: none; } | ||
+ | button.active { border-style: | ||
+ | <?php endif; ?> | ||
+ | </ | ||
+ | <!-- <script type=" | ||
+ | |||
+ | <script src=" | ||
+ | < | ||
+ | </ | ||
+ | <body class=" | ||
+ | |||
+ | <ul class=" | ||
+ | |||
+ | <?php if ($use_font_awesome): | ||
+ | <!-- add FA6 brand icons + modify naming --> | ||
+ | < | ||
+ | <a data-toggle=" | ||
+ | </ | ||
+ | < | ||
+ | <a data-toggle=" | ||
+ | </ | ||
+ | <!-- add FA6 brand icons --> | ||
+ | <?php endif; ?> | ||
+ | <?php if ($use_glyphicons): | ||
+ | < | ||
+ | <a data-toggle=" | ||
+ | </ | ||
+ | <?php endif; ?> | ||
+ | <?php if ($use_material_design_icons): | ||
+ | < | ||
+ | <a data-toggle=" | ||
+ | </ | ||
+ | <?php endif; ?> | ||
+ | <?php if ($use_typicons): | ||
+ | < | ||
+ | <a data-toggle=" | ||
+ | </ | ||
+ | <?php endif; ?> | ||
+ | <?php if ($use_font_linux): | ||
+ | < | ||
+ | <a data-toggle=" | ||
+ | </ | ||
+ | <?php endif; ?> | ||
+ | <?php if ($use_rpg_awesome): | ||
+ | < | ||
+ | <!-- bug fix for wrong tag of RPG-Awesome | ||
+ | <a data-toggle=" | ||
+ | <a data-toggle=" | ||
+ | </ | ||
+ | <?php endif; ?> | ||
+ | |||
+ | <!-- add guideling page --> | ||
+ | < | ||
+ | <a data-toggle=" | ||
+ | </ | ||
+ | <!-- add guideling page --> | ||
+ | </ | ||
+ | |||
+ | <main class=" | ||
+ | |||
+ | <!-- add guideling page --> | ||
+ | <div id=" | ||
+ | <p> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | |||
+ | </ | ||
+ | <!-- add guideling page --> | ||
+ | |||
+ | |||
+ | |||
+ | <div id=" | ||
+ | |||
+ | <div class=" | ||
+ | <?php foreach($list_font_awesome as $icon): ?> | ||
+ | <div class=" | ||
+ | <button class=" | ||
+ | <!-- modify FA6 new coding | ||
+ | <i class=" | ||
+ | --> | ||
+ | <i class=" | ||
+ | </ | ||
+ | < | ||
+ | </ | ||
+ | <?php endforeach ?> | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | <!-- add FA6 brand icons --> | ||
+ | <div id=" | ||
+ | |||
+ | <div class=" | ||
+ | <?php foreach($list_font_awesome_br as $icon): ?> | ||
+ | <div class=" | ||
+ | <button class=" | ||
+ | <i class=" | ||
+ | </ | ||
+ | < | ||
+ | </ | ||
+ | <?php endforeach ?> | ||
+ | </ | ||
+ | </ | ||
+ | <!-- add FA6 brand icons --> | ||
+ | |||
+ | <div id=" | ||
+ | |||
+ | <div class=" | ||
+ | <?php foreach($list_rpg_awesome as $icon): ?> | ||
+ | <div class=" | ||
+ | <button class=" | ||
+ | <i class=" | ||
+ | </ | ||
+ | < | ||
+ | </ | ||
+ | <?php endforeach ?> | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | <div id=" | ||
+ | |||
+ | <div class=" | ||
+ | <?php foreach($list_material_design_icons as $icon): ?> | ||
+ | <div class=" | ||
+ | <button class=" | ||
+ | <i class=" | ||
+ | </ | ||
+ | < | ||
+ | </ | ||
+ | <?php endforeach ?> | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | <div id=" | ||
+ | |||
+ | <div class=" | ||
+ | <?php foreach($list_glyphicon as $icon): ?> | ||
+ | <div class=" | ||
+ | <button class=" | ||
+ | <i class=" | ||
+ | </ | ||
+ | < | ||
+ | </ | ||
+ | <?php endforeach ?> | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | <div id=" | ||
+ | |||
+ | <div class=" | ||
+ | <?php foreach($list_typicons as $icon): ?> | ||
+ | <div class=" | ||
+ | <button class=" | ||
+ | <i class=" | ||
+ | </ | ||
+ | < | ||
+ | </ | ||
+ | <?php endforeach ?> | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | <div id=" | ||
+ | |||
+ | <div class=" | ||
+ | <?php foreach($list_font_linux as $icon): ?> | ||
+ | <div class=" | ||
+ | <button class=" | ||
+ | <i class=" | ||
+ | </ | ||
+ | < | ||
+ | </ | ||
+ | <?php endforeach ?> | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | <div class=" | ||
+ | |||
+ | < | ||
+ | |||
+ | <div class=" | ||
+ | |||
+ | <div class=" | ||
+ | < | ||
+ | <div class=" | ||
+ | <button class=" | ||
+ | <img src=" | ||
+ | </ | ||
+ | <img src=" | ||
+ | </ | ||
+ | <img src=" | ||
+ | </ | ||
+ | <img src=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <div class=" | ||
+ | < | ||
+ | <div class=" | ||
+ | <button class=" | ||
+ | <img src=" | ||
+ | </ | ||
+ | <img src=" | ||
+ | </ | ||
+ | <img src=" | ||
+ | </ | ||
+ | <img src=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | < | ||
+ | |||
+ | < | ||
+ | <pre id=" | ||
+ | |||
+ | <input type=" | ||
+ | <input type=" | ||
+ | <input type=" | ||
+ | <input type=" | ||
+ | <input type=" | ||
+ | |||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | < | ||
+ | <nav class=" | ||
+ | <div class=" | ||
+ | <div class=" | ||
+ | <button type=" | ||
+ | <button type=" | ||
+ | <button type=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | * Скачайте мод {{ : | ||
+ | * Установите плагин icons.zip через менеджер плагинов | ||
=====Обновление===== | =====Обновление===== | ||
Для обновления удалите исходную папку lib/ | Для обновления удалите исходную папку lib/ |
wiki/plugin/icons.1737275627.txt.gz · Последнее изменение: 2025/01/19 11:33 — vladpolskiy