wiki:plugin:icons
Различия
Показаны различия между двумя версиями страницы.
| Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версия | ||
| wiki:plugin:icons [2025/01/19 11:52] – [Не работает ли плагин-помощник?] vladpolskiy | wiki:plugin:icons [2025/01/19 12:18] (текущий) – [Ошибка вида Error: Call to undefined function trigger_event()] vladpolskiy | ||
|---|---|---|---|
| Строка 328: | Строка 328: | ||
| session_write_close(); | session_write_close(); | ||
| </ | </ | ||
| - | **безопасное решение**: | + | **безопасное решение**: |
| в начале добавляем класс Event '' | в начале добавляем класс Event '' | ||
| - | <code php popur.php [enable_line_numbers=" | + | <code php popur.php [enable_line_numbers=" |
| require_once(DOKU_INC.' | require_once(DOKU_INC.' | ||
| require_once(DOKU_INC.' | require_once(DOKU_INC.' | ||
| Строка 338: | Строка 338: | ||
| </ | </ | ||
| + | Меняем код вызова функции '' | ||
| + | <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 --> | ||
| + | <li> | ||
| + | <a data-toggle=" | ||
| + | </li> | ||
| + | <li> | ||
| + | <a data-toggle=" | ||
| + | </li> | ||
| + | <!-- add FA6 brand icons --> | ||
| + | <?php endif; ?> | ||
| + | <?php if ($use_glyphicons): | ||
| + | <li> | ||
| + | <a data-toggle=" | ||
| + | </li> | ||
| + | <?php endif; ?> | ||
| + | <?php if ($use_material_design_icons): | ||
| + | <li> | ||
| + | <a data-toggle=" | ||
| + | </li> | ||
| + | <?php endif; ?> | ||
| + | <?php if ($use_typicons): | ||
| + | <li> | ||
| + | <a data-toggle=" | ||
| + | </li> | ||
| + | <?php endif; ?> | ||
| + | <?php if ($use_font_linux): | ||
| + | <li> | ||
| + | <a data-toggle=" | ||
| + | </li> | ||
| + | <?php endif; ?> | ||
| + | <?php if ($use_rpg_awesome): | ||
| + | <li> | ||
| + | <!-- bug fix for wrong tag of RPG-Awesome | ||
| + | <a data-toggle=" | ||
| + | <a data-toggle=" | ||
| + | </li> | ||
| + | <?php endif; ?> | ||
| + | |||
| + | <!-- add guideling page --> | ||
| + | <li> | ||
| + | <a data-toggle=" | ||
| + | </li> | ||
| + | <!-- add guideling page --> | ||
| + | </ul> | ||
| + | |||
| + | <main class=" | ||
| + | |||
| + | <!-- add guideling page --> | ||
| + | <div id=" | ||
| + | <p> | ||
| + | < | ||
| + | < | ||
| + | <tr> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </tr> | ||
| + | </ | ||
| + | < | ||
| + | <tr> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </tr> | ||
| + | <tr> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | <td> | ||
| + | </td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </tr> | ||
| + | <tr> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </tr> | ||
| + | <tr> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </tr> | ||
| + | <tr> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </tr> | ||
| + | <tr> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </tr> | ||
| + | <tr> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </tr> | ||
| + | <tr> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </tr> | ||
| + | <tr> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | <td> | ||
| + | </td> | ||
| + | </tr> | ||
| + | <tr> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </tr> | ||
| + | <tr> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </tr> | ||
| + | <tr> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </tr> | ||
| + | <tr> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </tr> | ||
| + | <tr> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </tr> | ||
| + | <tr> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </tr> | ||
| + | <tr> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </tr> | ||
| + | <tr> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </tr> | ||
| + | <tr> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </tr> | ||
| + | <tr> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </tr> | ||
| + | <tr> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </tr> | ||
| + | <tr> | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | </tr> | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | |||
| + | </ | ||
| + | <!-- 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=" | ||
| + | |||
| + | <hr/> | ||
| + | |||
| + | <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.1737276754.txt.gz · Последнее изменение: — vladpolskiy
