diff options
Diffstat (limited to 'platform/www/lib/tpl/acervus')
43 files changed, 2783 insertions, 0 deletions
diff --git a/platform/www/lib/tpl/acervus/COPYING b/platform/www/lib/tpl/acervus/COPYING new file mode 100644 index 0000000..d159169 --- /dev/null +++ b/platform/www/lib/tpl/acervus/COPYING @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. diff --git a/platform/www/lib/tpl/acervus/README.md b/platform/www/lib/tpl/acervus/README.md new file mode 100644 index 0000000..63ba921 --- /dev/null +++ b/platform/www/lib/tpl/acervus/README.md @@ -0,0 +1,3 @@ +# gta-dokuwiki-theme + +GTA's dokuwiki theme code, based in White Theme. diff --git a/platform/www/lib/tpl/acervus/conf/default.php b/platform/www/lib/tpl/acervus/conf/default.php new file mode 100644 index 0000000..089c8d1 --- /dev/null +++ b/platform/www/lib/tpl/acervus/conf/default.php @@ -0,0 +1,11 @@ +<?php +/* + * default configuration settings + * + * @author Lee, Kwangyoung <ipari@leaflette.com> + * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) + */ + +$conf['numberedHeading'] = 0; +$conf['tocPosition'] = 'wikipedia'; +$conf['footer'] = ''; diff --git a/platform/www/lib/tpl/acervus/conf/metadata.php b/platform/www/lib/tpl/acervus/conf/metadata.php new file mode 100644 index 0000000..e85feee --- /dev/null +++ b/platform/www/lib/tpl/acervus/conf/metadata.php @@ -0,0 +1,11 @@ +<?php +/* + * default configuration settings + * + * @author Lee, Kwangyoung <ipari@leaflette.com> + * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) + */ + +$meta['numberedHeading'] = array('onoff'); +$meta['tocPosition'] = array('multichoice', '_choices' => array('dokuwiki', 'wikipedia')); +$meta['footer'] = array('string'); diff --git a/platform/www/lib/tpl/acervus/css/basic.less b/platform/www/lib/tpl/acervus/css/basic.less new file mode 100644 index 0000000..9bce960 --- /dev/null +++ b/platform/www/lib/tpl/acervus/css/basic.less @@ -0,0 +1,506 @@ + +// @font-face { +// font-family: 'Norwester'; +// src: url('css/fonts/Norwester-Regular.eot'); +// src: url('css/fonts/Norwester-Regular.eot?#iefix') format('embedded-opentype'), +// url('css/fonts/Norwester-Regular.woff') format('woff'), +// url('css/fonts/Norwester-Regular.ttf') format('truetype'); +// font-weight: normal; +// font-style: normal; +// } + + +/** + * This file provides the most basic styles. + */ + +html, +body { + margin: 0; + padding: 0; + background-color: @ini_background; + color: @ini_text; +} + +body { + font: normal @ini_font_size/@ini_line_height 'EB Garamond','Segoe UI', Roboto, Helvetica, Arial, sans-serif; + /* default font size: 100% => 16px; 93.75% => 15px; 87.5% => 14px; 81.25% => 13px; 75% => 12px */ + -webkit-text-size-adjust: 100%; + -moz-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; + text-size-adjust: 100%; +} + +/* headers */ +h1, +h2, +h3, +h4, +h5, +h6 { + font: normal @ini_font_size/@ini_line_height 'EB Garamond','Segoe UI', Roboto, Helvetica, Arial, sans-serif; + padding: 0; + clear: left; + font-weight: 600; +} + + +[dir=rtl] h1, +[dir=rtl] h2, +[dir=rtl] h3, +[dir=rtl] h4, +[dir=rtl] h5, +[dir=rtl] h6 { + clear: right; +} + +h1 { + font-size: 2em; + margin: 0 0 0.444em; +} +h2 { + font-size: 1.666em; + margin: 0 0 0.5em; + border-bottom: 1px solid @ini_border; +} +h3 { + font-size: 1.4em; + margin: 0 0 0.5em; + border-bottom: 1px solid @ini_border; +} +h4 { + font-size: 1.2em; + margin: 0 0 0.4em; +} +h5 { + font-size: 1em; + margin: 0 0 0.4em; +} +h6 { + font-size: 0.8em; + margin: 0 0 0.4em; +} + +/* basic bargins and paddings */ +p, +ul, +ol, +dl, +pre, +table, +hr, +blockquote, +figure, +details, +fieldset, +address { + margin: 0 0 1.4em 0; /* bottom margin = line-height */ + padding: 0; +} + +blockquote blockquote { + margin: 0; + padding: 0 0.5em; +} + +div, +video, +audio { + margin: 0; + padding: 0; +} + +/* lists */ +li, +dd { + padding: 0; + margin: 0 0 0 1.5em; +} +[dir=rtl] li, +[dir=rtl] dd { + margin: 0 1.5em 0 0; +} +dt { + font-weight: bold; + margin: 0; + padding: 0; +} + +li ul, +li ol, +li dl, +dl ul, +dl ol, +dl dl { + margin-bottom: 0; + padding: 0; +} +li li { + font-size: 100%; +} + +ul { list-style: square outside; } +ol { list-style: decimal outside; } +ol ol { list-style-type: lower-alpha; } +ol ol ol { list-style-type: upper-roman; } +ol ol ol ol { list-style-type: upper-alpha; } +ol ol ol ol ol { list-style-type: lower-roman; } + +/*____________ tables ____________*/ + +table { + border-collapse: collapse; + empty-cells: show; + border-spacing: 0; + border: 1px solid @ini_border; +} + +caption { + caption-side: top; + text-align: left; +} +[dir=rtl] caption { + text-align: right; +} + +th, +td { + padding: .3em .5em; + margin: 0; + vertical-align: top; + border: 1px solid @ini_border; +} +th { + font-weight: bold; + background-color: @ini_background_alt; + text-align: left; +} +[dir=rtl] th { + text-align: right; +} + + +/*____________ links ____________*/ + +a { + outline: none; + word-wrap: break-word; +} +a:link, +a:visited { + text-decoration: none; + color: @ini_link; +} +a:link:hover, +a:visited:hover, +a:link:focus, +a:visited:focus, +a:link:active, +a:visited:active { + text-decoration: underline; +} + + +/* misc */ +img { + border-width: 0; + vertical-align: bottom; + height: auto; +} + +img, +object, +iframe, +video, +audio, +select { + max-width: 100%; +} + +hr { + border-top: solid @ini_border; + border-bottom: solid @ini_background; + border-width: 1px 0; + height: 0; + text-align: center; + clear: both; +} + +del { + color: @ini_text_alt; +} + +pre { + overflow: auto; + word-wrap: normal; + direction: ltr; + unicode-bidi: bidi-override; + text-align: left; +} + + +acronym, +abbr { + cursor: help; + border-bottom: 1px dotted; + font-style: normal; + text-decoration: none; +} +em acronym, +em abbr { + font-style: italic; +} + +mark { + background-color: @ini_highlight; + color: inherit; +} + +pre, +code, +samp, +kbd { + font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace; + /* same font stack should be used for ".dokuwiki table.diff td" in _diff.css */ + font-size: 1em; + padding: 0 4px; + border: 1px solid @ini_border; + direction: ltr; + text-align: left; + background-color: @ini_background_alt; + color: @ini_text +} +pre { + overflow: auto; + word-wrap: normal; + border: 1px solid @ini_border; + padding: .7em 1em; +} + +blockquote { + padding: 0.5em; + border: solid @ini_border; + background-color: @ini_background_alt; + border-width: 0 0 0 .25em; +} +[dir=rtl] blockquote { + border-width: 0 .25em 0 0; +} +q:before, +q:after { + content: ''; +} + +sub, +sup { + font-size: .8em; + line-height: 1; +} +sub { + vertical-align: sub; +} +sup { + vertical-align: super; +} + +small { + font-size: .8em; +} + +/*____________ forms ____________*/ + +/* for all of the form styles, style.ini colours are not used on purpose (except for fieldset border) */ + +form { + display: inline; + margin: 0; + padding: 0; +} +fieldset { + padding: .7em 1em 0; + padding: .7rem 1rem; /* for those browsers understanding :last-child */ + border: 1px solid @ini_text_alt; +} +fieldset > :last-child { + margin-bottom: 0; +} +legend { + margin: 0; + padding: 0 .1em; +} +label { + vertical-align: middle; + cursor: pointer; +} + +input, +textarea, +button, +select, +optgroup, +option, +keygen, +output, +meter, +progress { + font: inherit; + font-weight: normal; + color: #333; + background-color: #fff; + line-height: normal; + margin: 0; + vertical-align: middle; + -moz-box-sizing: border-box; + -webkit-box-sizing: border-box; + box-sizing: border-box; +} + +select { + max-width: 100%; +} +optgroup { + font-style: italic; + font-weight: bold; +} +option { + font-style: normal; + font-weight: normal; +} + +input, +textarea, +select, +keygen { + border: 1px solid #ccc; + box-shadow: inset 0 0 1px #eee; + border-radius: 2px; +} +input:active, +input:focus, +textarea:active, +textarea:focus, +select:active, +select:focus, +keygen:active, +keygen:focus { + border-color: #999; +} +input[type=radio], +input[type=checkbox], +input[type=image] { + padding: 0; + border-style: none; + box-shadow: none; +} + +/* all types of buttons */ +input[type=submit], +input[type=button], +input[type=reset], +input.button, +a.button, +button, +.qq-upload-button { + color: #333; + background-color: #eee; + background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAxIDEiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPgo8bGluZWFyR3JhZGllbnQgaWQ9Imc4MjQiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjAlIiB5Mj0iMTAwJSI+CjxzdG9wIHN0b3AtY29sb3I9IiNGRkZGRkYiIG9mZnNldD0iMCIvPjxzdG9wIHN0b3AtY29sb3I9IiNGNEY0RjQiIG9mZnNldD0iMC4zIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0VFRUVFRSIgb2Zmc2V0PSIwLjk5Ii8+PHN0b3Agc3RvcC1jb2xvcj0iI0NDQ0NDQyIgb2Zmc2V0PSIuOTkiLz4KPC9saW5lYXJHcmFkaWVudD4KPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNnODI0KSIgLz4KPC9zdmc+); + background-image: linear-gradient(to bottom, #ffffff 0%, #f4f4f4 30%, #eeeeee 99%, #cccccc 99%); + border: 1px solid #ccc; + border-radius: 2px; + padding: .1em .5em; + cursor: pointer; +} + +input[type=submit]:hover, +input[type=submit]:active, +input[type=submit]:focus, +input[type=button]:hover, +input[type=button]:active, +input[type=button]:hover, +input[type=reset]:hover, +input[type=reset]:active, +input[type=reset]:hover, +input.button:hover, +input.button:active, +input.button:focus, +a.button:hover, +a.button:active, +a.button:focus, +button:hover, +button:active, +button:focus, +.qq-upload-button:hover { + border-color: #999; + background-color: #ddd; + background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIHZpZXdCb3g9IjAgMCAxIDEiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPgo8bGluZWFyR3JhZGllbnQgaWQ9Imc2NzAiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjAlIiB5Mj0iMTAwJSI+CjxzdG9wIHN0b3AtY29sb3I9IiNGRkZGRkYiIG9mZnNldD0iMCIvPjxzdG9wIHN0b3AtY29sb3I9IiNGNEY0RjQiIG9mZnNldD0iMC4zIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0RERERERCIgb2Zmc2V0PSIwLjk5Ii8+PHN0b3Agc3RvcC1jb2xvcj0iI0JCQkJCQiIgb2Zmc2V0PSIuOTkiLz4KPC9saW5lYXJHcmFkaWVudD4KPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNnNjcwKSIgLz4KPC9zdmc+); + background-image: linear-gradient(to bottom, #ffffff 0%, #f4f4f4 30%, #dddddd 99%, #bbbbbb 99%); +} + +input::-moz-focus-inner, +button::-moz-focus-inner { + border: 0; + padding: 0; +} + +input[disabled], +button[disabled], +select[disabled], +textarea[disabled], +option[disabled], +input[readonly], +button[readonly], +select[readonly], +textarea[readonly] { + cursor: auto; + opacity: .5; + background-color: #eee; +} + + +.img-reporte { + width: 30%; + float: right; + margin: 0 0 10px 10px; + padding: 5px; + border: #ccc 1px solid; + /*background: #E2E1E0;*/ +} + +@media (max-width: 600px) { +.img-reporte { + width: 100%; + float: right; + margin: 0 0 10px 10px; + padding: 5px; + border: #ccc 1px solid; + /*background: #E2E1E0;*/ +} + + +} + + +/* CAMBIOS VARIOS */ + +.dokuwiki textarea.edit, textarea.widearea-fullscreen { + font-family: monospace !important; + font-size: 1em !important; +} + +#dokuwiki__content { + text-align: justify; +} + +.footnotes { + font-size: 80%; +} + +.fn { + border-bottom: 1px #e9e9e9 solid; + padding: 5px; + opacity: 0.8; +} + +li.level1, li.level2, li.level3, li.level4, li.level5 { + text-align: left; +} diff --git a/platform/www/lib/tpl/acervus/css/content.less b/platform/www/lib/tpl/acervus/css/content.less new file mode 100644 index 0000000..4d72c5d --- /dev/null +++ b/platform/www/lib/tpl/acervus/css/content.less @@ -0,0 +1,361 @@ +/* content */ +#dokuwiki__content { + /* existing wikipage */ + a.wikilink1 { + color: @ini_existing; + } + /* not existing wikipage */ + a.wikilink2 { + border-bottom: 1px dashed @ini_missing; + color: @ini_missing !important; + } + /*a.wikilink2:link, + a.wikilink2:visited { + border-bottom: none; + }*/ + a.wikilink2:hover, + a.wikilink2:active, + a.wikilink2:focus { + /* border-bottom-width: 0; */ + text-decoration: none; + color: #31363B !important; + border-bottom: 1px dashed #31363B; + + } + + /*____________ Numbered Headings ____________*/ + + .page.numbered_heading { + /* TOC */ + + // counter-reset: toc-level0; + // #dw__toc ul { + // + // } + // + // + // #dw__toc li.level1 > div > a:before { + // color: @ini_numbered_heading; + // content: counter(toc-level0) ". "; + // counter-increment: toc-level0; + // } + // + // #dw__toc li.level1 { + // counter-reset: toc-level1; + // } + // + // #dw__toc li.level2 > div > a:before { + // color: @ini_numbered_heading; + // content: counter(toc-level0) "." counter(toc-level1) ". "; + // counter-increment: toc-level1; + // } + // #dw__toc li.level2 { + // counter-reset: toc-level2; + // } + // #dw__toc li.level3 > div > a:before { + // color: @ini_numbered_heading; + // content: counter(toc-level0) "." counter(toc-level1) "." counter(toc-level2) ". "; + // counter-increment: toc-level2; + // } + // #dw__toc li.level3 { + // counter-reset: toc-level3; + // } + // #dw__toc li.level4 > div > a:before { + // color: @ini_numbered_heading; + // content: counter(toc-level0) "." counter(toc-level1) "." counter(toc-level2) "." counter(toc-level3) ". "; + // counter-increment: toc-level3; + // } + + /* Contents */ + counter-reset: level1; + h2:before { + color: @ini_numbered_heading; + content: counter(level1) ". "; + counter-increment: level1; + } + h2 { + counter-reset: level2; + } + h3:before { + color: @ini_numbered_heading; + content: counter(level1) "." counter(level2) ". "; + counter-increment: level2; + } + h3 { + counter-reset: level3; + } + h4:before { + color: @ini_numbered_heading; + content: counter(level1) "." counter(level2) "." counter(level3) ". "; + counter-increment: level3; + } + h2:before, + h3:before, + h4:before { + font-size: 90%; + } + + #dw__toc h3:before { + content: ''; + } + } + + div.license { + margin: 0 -1em; + padding: .4em 1em; + background-color: @ini_background_alt; + } + .medialeft { + margin-right: .6em; + } + .mediaright { + margin-left: .6em; + } +} + +/* table of contents */ +#dw__toc { + float: inherit; + display: inline-block; + width: auto; + margin: 0 0 1.4em 0; + border: 1px solid @ini_border; + background-color: @ini_background; + + span { + float: right; + } + h3, + div { + padding: .4em .8em; + } + h3.toggle { + margin: 0; + font-size: 1em; + } + h3.closed { + border: none; + } + a { + color: @ini_text; + } +} + +/* any link to current page */ +.dokuwiki span.curid a { + font-weight: bold; +} + +/* undo "clever" styling from fileuploader.js */ +.qq-upload-button { + cursor: inherit !important; + direction: inherit !important; +} +.qq-upload-button input { + font-family: inherit !important; + font-size: 1em !important; + margin: inherit !important; + opacity: 1 !important; + padding: inherit !important; + position: static !important; +} + +.JSpopup { + padding: 0.2em 0.4em; + border: 1px solid @ini_border; +} + +/* editor */ +.dokuwiki .editBar { + .editButtons, + .summary { + display: block !important; + margin-bottom: .6em; + } +} + + +/* fields */ +.dokuwiki fieldset { + width: auto; + text-align:left; + margin: 0 0 1em 0; + padding: 1em; + border: none; + background: @ini_background_alt; + + legend { + display: block; + padding: 0; + font-weight: bold; + font-size: 1.4em; + } + + span { + display: inline-block; + margin: 0 0 .2em 0; + vertical-align: top; + } + + label.block { + text-align: left; + + span { + display: block; + } + + input.edit { + width: 100%; + max-width: 400px; + } + } +} + +/* login */ +#dw__login, +#dw__register { + label.simple { + margin-left: 0; + } +} + +/* admin */ +/* _admin.less in default template */ + +/* main task grouped in two columns */ +.dokuwiki div.ui-admin { + ul.admin_tasks, + ul.admin_plugins { + float: left; + width: 40%; + list-style-type: none; + + /* general menu item styling */ + li { + margin: 0 0 0.5em 0; + white-space: nowrap; + + a span { + display: inline-block; + + &.icon { + vertical-align: top; + margin-right: 0.5em; + + svg { + width: 1.5em; + height: 1.5em; + } + } + + &.prompt { + white-space: normal; + } + } + } + } + [dir=rtl] & ul.admin_tasks, + [dir=rtl] & ul.admin_plugins { + float: right; + } +} + + +/* DokuWiki version */ +#admin__version { + clear: left; + margin-bottom: 2em; + color: @ini_text_alt; +} +[dir=rtl] & #admin__version { + clear: right; + float: left; +} + + +/* config */ +#config__manager { + fieldset { + margin: 0 0 2em 0; + padding: 0; + border: none; + background: none; + + legend { + text-align: left; + font-size: 1.666em; // same as h3 + } + div.table { + width: 100%; + padding: 0; + background: @ini_background_alt; + } + table { + width: 100%; + } + td.label { + padding: .4em .4em 1em; + span.outkey { + margin-top: -1.2em; + } + } + td { + div.input { + width: auto; + padding: 2px 4px; + } + input.edit { + padding: 4px 6px; + } + input.edit, + select.edit, + textarea.edit { + width: 100%; + border: none; + } + } + div.selection { + width: 40%; + padding: 2px 4px; + + label { + width: 90%; + } + } + div.other { + background: none; + } + } +} + +/* media manager */ +#mediamanager__page { + min-width: 0 !important; + + .namespaces { + min-width: 0; + } + .filelist { + min-width: 0; + .rows li { + dt a { + vertical-align: top; + } + dt a img { + max-width: 100%; + } + .name, + .size, + .filesize, + .date { + white-space: normal; + word-wrap: break-word; + } + } + } + .file { + min-width: 0; + } +} + +pre {white-space: pre-wrap;} diff --git a/platform/www/lib/tpl/acervus/css/design.less b/platform/www/lib/tpl/acervus/css/design.less new file mode 100644 index 0000000..182721a --- /dev/null +++ b/platform/www/lib/tpl/acervus/css/design.less @@ -0,0 +1,301 @@ +/* general */ +.btn_icon { + text-indent: -9999px; +} + +.sidebar, +.breadcrumbs { + a, + a.wikilink1 { + color: @ini_text; + } + a:hover, + a.wikilink1:hover { + color: @ini_existing; + text-decoration: none; + } + a.wikilink2, + a.wikilink2:link { + color: @ini_missing; + border: none; + } +} + +/* header */ +#dokuwiki__header { + background: @ini_background; + border-bottom: 1px solid @ini_border; + + h1 { + margin: 2px 0 0 0; + overflow: hidden; + text-overflow: ellipsis; + font: 1.6em 'Source Sans Pro', 'Segoe UI', 'Times new roman', Times, serif; + white-space: nowrap; + font-weight: 600; + } + a, + a:link, + a:hover, + a:active { + color: @ini_text; + text-decoration: none; + } + button { + width: 30px; + height: 30px; + margin: 5px 0; + border: 0 none; + outline: none; + background: transparent url('images/ipari-simpleline.png') no-repeat; + background-size: 30px; + text-indent: -9999px; + } + div.left { + button:first-child { + margin-left: 16px; + } + button { + margin-left: 8px; + } + } + div.right { + button:last-child { + margin-right: 16px; + } + button { + margin-right: 4px; + } + } + div.search { + display: none; + padding: 6px 10px; + + button { + display: none; + } + input[type=text] { + padding: 4px 6px; + } + } + .btn_left { + background-position: 0 0; + } + .btn_right { + background-position: 0 -90px; + } + .btn_search { + background-position: 0 -45px; + } +} + +/* nav */ +#dokuwiki__aside, +#dokuwiki__tools { + display: none; + background-color: @ini_background; +} +#sidebar_bg { + display: none; + background-color: rgba(0, 0, 0, .75); +} + +#dokuwiki__aside { + > h1, + > h2, + > div.level1, + > div.level2 { + padding-left: 8px; + padding-right: 8px; + margin: 0 0 8px; + } + p, + pre, + table, + hr, + blockquote, + figure, + details, + fieldset, + address { + margin: 0 0 .4em 0; + } + p + p { + margin-top: 1em; + } +} + +.sidebar { + overflow-x: hidden; + overflow-y: auto; + h3 { + font-size: 16px; + margin-bottom: 0; + padding: 9px 12px; + border-bottom: 1px solid @ini_border; + } + ul { + list-style-type: none; + margin: 0 0 .4em 0; + } + li { + margin: 0; + } + li li { + margin-left: 1em; + } + li a { + display: block; + padding: 8px 10px; + } + li a.urlextern { + padding: 10px 12px 10px 30px; + background-position: 10px 10px; + } + li a:hover { + background-color: @ini_background_alt !important; + } + + div.user { + padding: 6px 12px; + } +} + +#dokuwiki__tools { + li a { + height: 30px; + overflow: hidden; + white-space: nowrap; + } + li a:before { + content: url('images/ipari-simpleline.png'); + display: inline-block; + font-size: 0; + line-height: 0; + } + li a span { + display: inline-block; + vertical-align: top; + padding: .2em .6em; + } + li a, + li a:hover, + li a:active, + li a:visited { + background-image: none !important; + } + a.action.admin:before { + margin-top: -720px; + } + a.action.profile:before { + margin-top: -540px; + } + a.action.login:before { + margin-top: -630px; + } + a.action.logout:before { + margin-top: -675px; + } + a.action.register:before { + margin-top: -585px; + } + a.action.create:before { + margin-top: -135px; + } + a.action.show:before { + margin-top: -225px; + } + a.action.source:before { + margin-top: -180px; + } + a.action.edit:before { + margin-top: -90px; + } + a.action.revs:before { + margin-top: -495px; + } + a.action.backlink:before { + margin-top: -450px; + } + a.action.top:before { + margin-top: -405px; + } + a.action.recent:before { + margin-top: -270px; + } + a.action.media:before { + margin-top: -315px; + } + a.action.index:before { + margin-top: -360px; + } + // icons for plugins + a.action.plugin_export_pdf:before { + margin-top: -765px; + } +} + + +#to_top { + input.button { + width: 48px; + height: 48px; + border: 0; + background: transparent url('images/top.png') no-repeat; + opacity: 0.2; + text-indent: -9999px; + } +} + +/* content */ +#dokuwiki__content { + margin-top: 40px; + + div.breadcrumbs { + margin-bottom: 1em; + padding: 0.4em 1em; + opacity: 0.4; + } + div.breadcrumbs:hover { + opacity: 1.0; + } + div.page { + padding: 1em; + } +} + +/* footer */ +#dokuwiki__footer { + border-top: 1px solid @ini_border; + padding: 0.5em 1em; + + div.doc { + margin-bottom: 1em; + } + div.license { + margin-bottom: 1em; + font-size: 85%; + + > a { + float: left; + margin-right: .5em; + padding-top: .3em; + } + a.urlextern { + float: left; + display: block; + background-position: 0 0.2em; + } + :after { + content: ''; + display: block; + clear: both; + } + } + div.footer { + margin: 0 -1em; + padding: 0.5em 1em; + } +} + +/* icons */ diff --git a/platform/www/lib/tpl/acervus/css/fonts/Norwester-Regular.eot b/platform/www/lib/tpl/acervus/css/fonts/Norwester-Regular.eot Binary files differnew file mode 100644 index 0000000..95bb006 --- /dev/null +++ b/platform/www/lib/tpl/acervus/css/fonts/Norwester-Regular.eot diff --git a/platform/www/lib/tpl/acervus/css/fonts/Norwester-Regular.ttf b/platform/www/lib/tpl/acervus/css/fonts/Norwester-Regular.ttf Binary files differnew file mode 100644 index 0000000..091f756 --- /dev/null +++ b/platform/www/lib/tpl/acervus/css/fonts/Norwester-Regular.ttf diff --git a/platform/www/lib/tpl/acervus/css/fonts/Norwester-Regular.woff b/platform/www/lib/tpl/acervus/css/fonts/Norwester-Regular.woff Binary files differnew file mode 100644 index 0000000..4a52852 --- /dev/null +++ b/platform/www/lib/tpl/acervus/css/fonts/Norwester-Regular.woff diff --git a/platform/www/lib/tpl/acervus/css/hacks.css b/platform/www/lib/tpl/acervus/css/hacks.css new file mode 100644 index 0000000..3349974 --- /dev/null +++ b/platform/www/lib/tpl/acervus/css/hacks.css @@ -0,0 +1,187 @@ +#dokuwiki__site { + background: #f8f8f8cc; +} + +#dokuwiki__header { + background: #fff; + border-bottom: 1px solid #ddd; + box-shadow: 1px 1px 24px #dadada94; +} + +#dokuwiki__header strong { + color: darkred; +} + +#dokuwiki__header em { + font-weight: 400; +} + +#dokuwiki__content div.breadcrumbs { + margin-bottom: 1em; + padding: 2em 1em 0em; + opacity: 0.4; +} + +#dokuwiki__content div.download { + /* margin-bottom: 1em; */ + padding: 0.6em 1em 0em; + opacity: 0.6; +} + + +#dokuwiki__content div.page a:link, a:visited { + color: #A00; +} + +h1#sitetitle:hover { + text-shadow: 0px 0px 5px #ccc; +} + +#dokuwiki__footer div.doc { + margin-bottom: 1em; + text-align: center; + font-size: 80%; + color: #5a5a5a; +} + +.dokuwiki form.bureaucracy__plugin fieldset { + width: 100%; +} + +.dokuwiki form.bureaucracy__plugin label input[type=checkbox] { + width: 5%; + margin-right: 45%; + vertical-align: -webkit-baseline-middle; +} + +.dokuwiki form.bureaucracy__plugin label>span { + vertical-align: middle; + padding-right: 5px; +} + +.dokuwiki form.bureaucracy__plugin { + margin: 0; +} + +.dokuwiki div.bureaucracy__plugin { + width: 100%; + font-size: 100%; + padding: 0em; + border-radius: 3px; + animation: highlight 10000ms ease-in; +} + +.dokuwiki div.bureaucracy__plugin:target { + +} +@keyframes highlight { + 0% { + background-color: white; + } + 50% { + background-color: yellow; + } + 100% { + background-color: white; + } +} + + +input[type=text], textarea { + -webkit-transition: all 0.30s ease-in-out; + -moz-transition: all 0.30s ease-in-out; + -ms-transition: all 0.30s ease-in-out; + -o-transition: all 0.30s ease-in-out; + outline: none; + padding: 3px 0px 3px 3px; + margin: 5px 1px 3px 0px; + border: 1px solid #DDDDDD; +} + +input[type=text]:focus, textarea:focus { + box-shadow: 0 0 5px rgba(81, 203, 238, 1); + padding: 3px 0px 3px 3px; + margin: 5px 1px 3px 0px; + border: 1px solid rgba(81, 203, 238, 1); +} + +.anchorjs-link{ +color: #c5c5c5 !important; + transition: all .25s linear; +} +p a.anchorjs-link:hover { + margin-left: -1.125em !important; +color: red !important; +text-decoration:none !important; +} + +h2 a.anchorjs-link, h3 a.anchorjs-link, h4 a.anchorjs-link, h5 a.anchorjs-link, li a.anchorjs-link { + margin-left: -1.8em !important; +} + +h2 a.anchorjs-link:hover, h3 a.anchorjs-link:hover, h4 a.anchorjs-link:hover, h5 a.anchorjs-link:hover { + margin-left: -1.9em !important; +color: red !important; +text-decoration:none !important; +} + +.dw__toc .anchorjs-link { + display: none; +} + +#dokuwiki__content { + counter-reset: paragraph; +} + +.page p a.anchorjs-link:before { + position: absolute; + right: 22px; + color: #c5c5c5; + content: counter(paragraph); + counter-increment: paragraph; + text-align: right; + font-size: 12pt; + top: 1px; +} + + + +.numbered_heading .page {counter-reset: level1;} +.numbered_heading #dw__toc:before, +.numbered_heading #dw__toc:after {counter-reset: level1; content: "";} +.numbered_heading #dw__toc h3:before{content: ""} + +.numbered_heading ul.toc li.level1 {counter-reset: level2;} +.numbered_heading ul.toc li.level2 {counter-reset: level3;} +.numbered_heading ul.toc li.level3 {counter-reset: level4;} +.numbered_heading ul.toc li.level4 {counter-reset: level5;} +.numbered_heading ul.toc li.level5 {} + +.numbered_heading ul.toc li.level1 a:before { + content: counter(level1) ". "; + counter-increment: level1; +} + +.numbered_heading ul.toc li.level1:first-child a:before { + /* content: none; */ +} + +.numbered_heading ul.toc li.level2 a:before { + content: counter(level1) "." counter(level2) ". "; + counter-increment: level2; +} + +.numbered_heading ul.toc li.level3 a:before { + content: counter(level1) "." counter(level2) "." counter(level3) ". "; + counter-increment: level3; +} + +.numbered_heading ul.toc li.level4 a:before { + content: counter(level1) "." counter(level2) "." counter(level3) "." counter(level4) ". "; + counter-increment: level4; +} + +.numbered_heading ul.toc li.level5 a:before { + content: counter(level1) "." counter(level2) "." counter(level3) "." counter(level4) "." counter(level5) ". "; + counter-increment: level5; +} diff --git a/platform/www/lib/tpl/acervus/css/mobile.less b/platform/www/lib/tpl/acervus/css/mobile.less new file mode 100644 index 0000000..79f5888 --- /dev/null +++ b/platform/www/lib/tpl/acervus/css/mobile.less @@ -0,0 +1,136 @@ +@media only screen and (max-width: 760px) { + +/* admin */ +.dokuwiki div.ui-admin { + ul.admin_tasks, + ul.admin_plugins { + float: none; + width: 90%; + margin: 0; + } +} +// before "Frusterick Manners" +.dokuwiki ul.admin_tasks { + float: none; + width: auto; + margin: 0; +} + +/* config */ +#config__manager { + fieldset { + legend { + padding: 0; + } + td.label, + td.value { + display: block; + width: auto !important; + } + td.label { + padding: .2em .4em; + border: none; + } + td.value { + padding: .4em .4em 1.2em; + border: none; + background: @ini_background; + } + div.selection { + float: none; + width: auto; + margin-right: 0; + } + } +} + +/* media manager */ +#mediamanager__page { + .panel { + float: none; + } + .namespaces { + width: auto; + } + .filelist { + width: auto; + min-width: 0; + ul { + margin: 0; + } + ul.rows li { + display: inline-block; + float: left; + width: 50%; + max-height: none !important; + + dt, + dd { + float: none !important; + width: auto !important; + } + dt { + height: 60px; + } + dt a { + text-align: left; + vertical-align: top; + width: auto; + height: 60px; + padding: 0; + } + dt a img { + max-width: none; + max-height: 60px; + } + } + ul.rows li:nth-child(2n+1) { + background: none; + } + ul.rows li:hover { + background: @ini_background_alt; + } + } + .panelHeader { + margin-right: 0; + h3 { + float: none; + } + form.options { + float: none; + } + ul li.listType { + margin-left: -2px; + } + } + .panelContent { + margin: 0 0 20px 0; + } + .file { + width: auto; + + } + .ui-resizable-e { + display: none !important; + } +} + +} /* @media for 760px */ + + +@media only screen and (max-width: 480px) { + /* TOC */ + #dw__toc { + display: block; + } + + /* WRAP plugin */ + .dokuwiki .wrap_left, + .dokuwiki .wrap_right, + .dokuwiki .wrap_center, + .dokuwiki .wrap_column { + float: inherit; + width: 100% !important; + margin: 0; + } +} /* @media for 480px */ diff --git a/platform/www/lib/tpl/acervus/css/print.less b/platform/www/lib/tpl/acervus/css/print.less new file mode 100644 index 0000000..6fe15d4 --- /dev/null +++ b/platform/www/lib/tpl/acervus/css/print.less @@ -0,0 +1,94 @@ +/** + * This file provides the styles for printing. + */ + +/* hide certain sections */ +audio, +video, +.sidebar, +.breadcrumbs, +#dokuwiki__header .left, +#dokuwiki__header .right, +#dokuwiki__header .search, +#dw__toc span, +#dokuwiki__footer .doc, +#to_top { + display: none; +} + +a:link, +a:visited { + text-decoration: none; + border-bottom: 1pt dotted; + color: #333; + background-color: inherit; +} + +#dokuwiki__header, +#dw__toc { + a:link, + a:visited { + border: none; + } +} + +/* code blocks */ +pre { + font-family: monospace; +} +dl.code dt, +dl.file dt { + font-weight: bold; +} + +/* images */ +img { + border-width: 0; + vertical-align: middle; +} +.medialeft { + margin-right: .6em; +} +.mediaright { + margin-left: .6em; +} + +/* tables */ +table { + border-collapse: collapse; +} +th, +td { + text-align: left; + border-bottom: 1px solid #999; +} + + +/*____________ a bit of layout ____________*/ + +#dokuwiki__header { + border-bottom: 1pt solid #999; + + h1 { + font-size: 1.5em; + } +} + +#dokuwiki__footer { + border-top: 1pt solid #999; + div.license { + padding-top: .5em; + > a { + display: inline-block; + float: left; + margin: .2em .5em 0 0; + } + } +} + +.dokuwiki div.footnotes { + clear: both; + border-top: 1pt solid #000; + margin-top: 10pt; + padding: 1em 0; +} diff --git a/platform/www/lib/tpl/acervus/css/responsive.css b/platform/www/lib/tpl/acervus/css/responsive.css new file mode 100644 index 0000000..ecb8db4 --- /dev/null +++ b/platform/www/lib/tpl/acervus/css/responsive.css @@ -0,0 +1,13 @@ +h1#sitetitle-short p, h1#sitetitle p {margin: 0;} + +@media (min-width: 768px) { + h1#sitetitle-short {display:none;} + h1#sitetitle {display:inline-block;} + +} + +@media (max-width: 768px) { + h1#sitetitle-short {display:inline-block;} + h1#sitetitle {display:none;} + +} diff --git a/platform/www/lib/tpl/acervus/css/structure.less b/platform/www/lib/tpl/acervus/css/structure.less new file mode 100644 index 0000000..9b8dab4 --- /dev/null +++ b/platform/www/lib/tpl/acervus/css/structure.less @@ -0,0 +1,64 @@ +/* header */ +#dokuwiki__header { + position: fixed; + z-index: 102; + top: 0; + width: 100%; + max-height: 40px; + + h1 { + display: inline-block; + width: 50%; + text-align: center; + } + div.left { + width: 25%; + float: left; + /* trick for keep width when aside is deactivated */ + min-height: 1px; + } + div.right { + width: 25%; + float: right; + text-align: right; + } + div.search { + float: right; + } +} + +/* nav */ +.sidebar { + position: fixed; + z-index: 104; + width: @ini_sidebar_width; + max-width: 66%; + height: 100%; +} + +#dokuwiki__aside { + left: 0; +} +#dokuwiki__tools { + right: 0; +} +#sidebar_bg { + position: fixed; + z-index: 103; + width: 100%; + height: 100%; +} +#to_top { + position: fixed; + z-index: 101; + right: 10px; + bottom: 10px; +} + +/* content */ +.wrapper { + margin: 0 auto; + max-width: @ini_body_width; +} + +/* footer */ diff --git a/platform/www/lib/tpl/acervus/detail.php b/platform/www/lib/tpl/acervus/detail.php new file mode 100644 index 0000000..e1b4900 --- /dev/null +++ b/platform/www/lib/tpl/acervus/detail.php @@ -0,0 +1,93 @@ +<?php +/** + * DokuWiki Image Detail Page + * + * @author Andreas Gohr <andi@splitbrain.org> + * @author Anika Henke <anika@selfthinker.org> + * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) + */ + +// must be run from within DokuWiki +if (!defined('DOKU_INC')) die(); +@require_once(dirname(__FILE__).'/tpl_functions.php'); +header('X-UA-Compatible: IE=edge,chrome=1'); + +?><!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" + lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction'] ?>" class="no-js"> +<head> + <meta charset="UTF-8" /> + <title> + <?php echo hsc(tpl_img_getTag('IPTC.Headline',$IMG))?> + [<?php echo strip_tags($conf['title'])?>] + </title> + <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script> + <?php tpl_metaheaders()?> + <meta name="viewport" content="width=device-width,initial-scale=1" /> + <?php echo tpl_favicon(array('favicon', 'mobile')) ?> + <?php tpl_includeFile('meta.html') ?> +</head> + +<body> + <div id="dokuwiki__detail" class="<?php echo tpl_classes(); ?>"> + <?php html_msgarea() ?> + + <?php if($ERROR): print $ERROR; ?> + <?php else: ?> + + <?php if($REV) echo p_locale_xhtml('showrev');?> + <h1><?php echo hsc(tpl_img_getTag('IPTC.Headline', $IMG))?></h1> + + <div class="content group"> + <?php tpl_img(900, 700); ?> + + <div class="img_detail"> + <h2><?php print nl2br(hsc(tpl_img_getTag('simple.title'))); ?></h2> + + <?php if(function_exists('tpl_img_meta')): ?> + <?php tpl_img_meta(); ?> + <?php else: /* deprecated since Release 2014-05-05 */ ?> + <dl> + <?php + $config_files = getConfigFiles('mediameta'); + foreach ($config_files as $config_file) { + if(@file_exists($config_file)) { + include($config_file); + } + } + + foreach($fields as $key => $tag){ + $t = array(); + if (!empty($tag[0])) { + $t = array($tag[0]); + } + if(is_array($tag[3])) { + $t = array_merge($t,$tag[3]); + } + $value = tpl_img_getTag($t); + if ($value) { + echo '<dt>'.$lang[$tag[1]].':</dt><dd>'; + if ($tag[2] == 'date') { + echo dformat($value); + } else { + echo hsc($value); + } + echo '</dd>'; + } + } + ?> + </dl> + <?php endif; ?> + <?php //Comment in for Debug// dbg(tpl_img_getTag('Simple.Raw')); ?> + </div> + </div><!-- /.content --> + + <p class="back"> + <?php tpl_action('mediaManager', 1) ?><br /> + ← <?php tpl_action('img_backto', 1) ?> + </p> + + <?php endif; ?> + </div> +</body> +</html> diff --git a/platform/www/lib/tpl/acervus/images/apple-touch-icon.png b/platform/www/lib/tpl/acervus/images/apple-touch-icon.png Binary files differnew file mode 100644 index 0000000..73d2601 --- /dev/null +++ b/platform/www/lib/tpl/acervus/images/apple-touch-icon.png diff --git a/platform/www/lib/tpl/acervus/images/bg.png b/platform/www/lib/tpl/acervus/images/bg.png Binary files differnew file mode 100644 index 0000000..007b812 --- /dev/null +++ b/platform/www/lib/tpl/acervus/images/bg.png diff --git a/platform/www/lib/tpl/acervus/images/bg2.png b/platform/www/lib/tpl/acervus/images/bg2.png Binary files differnew file mode 100644 index 0000000..4b1f61e --- /dev/null +++ b/platform/www/lib/tpl/acervus/images/bg2.png diff --git a/platform/www/lib/tpl/acervus/images/bg3.png b/platform/www/lib/tpl/acervus/images/bg3.png Binary files differnew file mode 100644 index 0000000..1ea6e1e --- /dev/null +++ b/platform/www/lib/tpl/acervus/images/bg3.png diff --git a/platform/www/lib/tpl/acervus/images/favicon.ico b/platform/www/lib/tpl/acervus/images/favicon.ico Binary files differnew file mode 100644 index 0000000..ecbf22f --- /dev/null +++ b/platform/www/lib/tpl/acervus/images/favicon.ico diff --git a/platform/www/lib/tpl/acervus/images/ipari-simpleline.png b/platform/www/lib/tpl/acervus/images/ipari-simpleline.png Binary files differnew file mode 100644 index 0000000..e48025e --- /dev/null +++ b/platform/www/lib/tpl/acervus/images/ipari-simpleline.png diff --git a/platform/www/lib/tpl/acervus/images/top.png b/platform/www/lib/tpl/acervus/images/top.png Binary files differnew file mode 100644 index 0000000..1d43e0c --- /dev/null +++ b/platform/www/lib/tpl/acervus/images/top.png diff --git a/platform/www/lib/tpl/acervus/lang/de/lang.php b/platform/www/lib/tpl/acervus/lang/de/lang.php new file mode 100644 index 0000000..7a8b91b --- /dev/null +++ b/platform/www/lib/tpl/acervus/lang/de/lang.php @@ -0,0 +1,15 @@ +<?php + +/** + * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) + * + * @author LarsDW223 + */ +$lang['__link__'] = 'Allgemeine Linkfarbe'; +$lang['__existing__'] = 'Farbe für Links zu existierenden Seiten'; +$lang['__missing__'] = 'Farbe für Links zu nicht-existierenden Seiten'; +$lang['__numbered_heading__'] = 'Farbe für nummerierte Überschriften'; +$lang['__font_size__'] = 'Globale Schriftgröße (%, px, pt)'; +$lang['__line_height__'] = 'Globale Zeilenhöhe (x.x, %)'; +$lang['__body_width__'] = 'Breite der Seite (%, px, em, ...)'; +$lang['__sidebar_width__'] = 'Breite der Sidebar, falls vorhanden (%, px, em, ...)'; diff --git a/platform/www/lib/tpl/acervus/lang/de/settings.php b/platform/www/lib/tpl/acervus/lang/de/settings.php new file mode 100644 index 0000000..671f49e --- /dev/null +++ b/platform/www/lib/tpl/acervus/lang/de/settings.php @@ -0,0 +1,6 @@ +<?php + +$lang['numberedHeading'] = 'Überschriften nummerieren'; +$lang['tocPosition'] = 'Position des Inhaltsverzeichnisses'; +$lang['tocPosition_o_dokuwiki'] = 'DokuWiki'; +$lang['tocPosition_o_wikipedia'] = 'Wikipedia'; diff --git a/platform/www/lib/tpl/acervus/lang/de/style.txt b/platform/www/lib/tpl/acervus/lang/de/style.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/platform/www/lib/tpl/acervus/lang/de/style.txt @@ -0,0 +1 @@ + diff --git a/platform/www/lib/tpl/acervus/lang/en/lang.php b/platform/www/lib/tpl/acervus/lang/en/lang.php new file mode 100644 index 0000000..1583452 --- /dev/null +++ b/platform/www/lib/tpl/acervus/lang/en/lang.php @@ -0,0 +1,13 @@ +<?php + +// style.ini values + +$lang['download'] = 'Download'; +$lang['__link__'] = 'The general link color'; +$lang['__existing__'] = 'The color for links to existing pages'; +$lang['__missing__'] = 'The color for links to non-existing pages'; +$lang['__numbered_heading__'] = 'The color for numbered heading'; +$lang['__font_size__'] = 'The global font size (%, px, pt)'; +$lang['__line_height__'] = 'The global line height (x.x, %)'; +$lang['__body_width__'] = 'The width of the body (%, px, em, ...)'; +$lang['__sidebar_width__'] = 'The width of the sidebar, if any (%, px, em, ...)'; diff --git a/platform/www/lib/tpl/acervus/lang/en/settings.php b/platform/www/lib/tpl/acervus/lang/en/settings.php new file mode 100644 index 0000000..18fa82c --- /dev/null +++ b/platform/www/lib/tpl/acervus/lang/en/settings.php @@ -0,0 +1,7 @@ +<?php + +$lang['numberedHeading'] = 'Numbering headings'; +$lang['tocPosition'] = 'Position of TOC'; +$lang['tocPosition_o_dokuwiki'] = 'DokuWiki'; +$lang['tocPosition_o_wikipedia'] = 'Wikipedia'; +$lang['footer'] = 'Footer page name, empty field disables the footer'; diff --git a/platform/www/lib/tpl/acervus/lang/en/style.txt b/platform/www/lib/tpl/acervus/lang/en/style.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/platform/www/lib/tpl/acervus/lang/en/style.txt @@ -0,0 +1 @@ + diff --git a/platform/www/lib/tpl/acervus/lang/es/lang.php b/platform/www/lib/tpl/acervus/lang/es/lang.php new file mode 100644 index 0000000..c0e1f6f --- /dev/null +++ b/platform/www/lib/tpl/acervus/lang/es/lang.php @@ -0,0 +1,5 @@ +<?php + +// style.ini values + +$lang['download'] = 'Descargar'; diff --git a/platform/www/lib/tpl/acervus/lang/ko/lang.php b/platform/www/lib/tpl/acervus/lang/ko/lang.php new file mode 100644 index 0000000..09e149a --- /dev/null +++ b/platform/www/lib/tpl/acervus/lang/ko/lang.php @@ -0,0 +1,15 @@ +<?php + +/** + * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) + * + * @author Myeongjin <aranet100@gmail.com> + */ +$lang['__link__'] = '일반 링크 색'; +$lang['__existing__'] = '문서가 존재하는 링크의 색'; +$lang['__missing__'] = '문서가 존재하지 않는 링크의 색'; +$lang['__numbered_heading__'] = '제목 번호 색'; +$lang['__font_size__'] = '전체 사이트 글자 크기 (%, px, pt)'; +$lang['__line_height__'] = '전체 사이트 줄 간격 (x.x, %)'; +$lang['__body_width__'] = '본문 너비 (%, px, em, ...)'; +$lang['__sidebar_width__'] = '사이드바가 있다면, 그것의 너비 (%, px, em, ...)'; diff --git a/platform/www/lib/tpl/acervus/lang/ko/settings.php b/platform/www/lib/tpl/acervus/lang/ko/settings.php new file mode 100644 index 0000000..089d158 --- /dev/null +++ b/platform/www/lib/tpl/acervus/lang/ko/settings.php @@ -0,0 +1,7 @@ +<?php + +$lang['numberedHeading'] = '제목 수준에 번호를 붙힙니다.'; +$lang['tocPosition'] = '목차의 위치'; +$lang['tocPosition_o_dokuwiki'] = '도쿠위키 기본'; +$lang['tocPosition_o_wikipedia'] = '위키백과 스타일'; +$lang['footer'] = '바닥글 문서 이름, 필드를 비우면 바닥글 비활성화'; diff --git a/platform/www/lib/tpl/acervus/lang/ko/style.txt b/platform/www/lib/tpl/acervus/lang/ko/style.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/platform/www/lib/tpl/acervus/lang/ko/style.txt @@ -0,0 +1 @@ + diff --git a/platform/www/lib/tpl/acervus/lang/ru/lang.php b/platform/www/lib/tpl/acervus/lang/ru/lang.php new file mode 100644 index 0000000..2cec63d --- /dev/null +++ b/platform/www/lib/tpl/acervus/lang/ru/lang.php @@ -0,0 +1,12 @@ +<?php + +// style.ini values + +$lang['__link__'] = 'Основной цвет ссылок'; +$lang['__existing__'] = 'Цвет ссылок на существующие страницы'; +$lang['__missing__'] = 'Цвет ссылок на не существующие страницы'; +$lang['__numbered_heading__'] = 'Цвет для нумерованного заголовка'; +$lang['__font_size__'] = 'Основной размер шрифта (%, px, pt)'; +$lang['__line_height__'] = 'Основная высота строки (x.x, %)'; +$lang['__body_width__'] = 'Ширина страницы (%, px, em, ...)'; +$lang['__sidebar_width__'] = 'Ширина боковой панели, если она есть (%, px, em, ...)'; diff --git a/platform/www/lib/tpl/acervus/lang/ru/settings.php b/platform/www/lib/tpl/acervus/lang/ru/settings.php new file mode 100644 index 0000000..0be18f8 --- /dev/null +++ b/platform/www/lib/tpl/acervus/lang/ru/settings.php @@ -0,0 +1,3 @@ +<?php + +$lang['numberedHeading'] = 'Нумерация заголовков'; diff --git a/platform/www/lib/tpl/acervus/lang/ru/style.txt b/platform/www/lib/tpl/acervus/lang/ru/style.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/platform/www/lib/tpl/acervus/lang/ru/style.txt @@ -0,0 +1 @@ + diff --git a/platform/www/lib/tpl/acervus/main.php b/platform/www/lib/tpl/acervus/main.php new file mode 100644 index 0000000..c4dfd1c --- /dev/null +++ b/platform/www/lib/tpl/acervus/main.php @@ -0,0 +1,265 @@ +<?php +/** + * DokuWiki Starter Template + * + * @link http://dokuwiki.org/template:ipari + * @author Kwangyoung Lee <ipari@leaflette.com> + * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) + */ + +if (!defined('DOKU_INC')) die(); +@require_once(dirname(__FILE__).'/tpl_functions.php'); +header('X-UA-Compatible: IE=edge,chrome=1'); +$showSidebar = page_findnearest($conf['sidebar']); +?> +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang'] ?>" + lang="<?php echo $conf['lang'] ?>" dir="<?php echo $lang['direction'] ?>" class="no-js"> +<head> + <meta charset="UTF-8" /> + <title><?php tpl_pagetitle() ?> [<?php echo strip_tags($conf['title']) ?>]</title> + <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script> + <?php tpl_metaheaders() ?> + <meta name="viewport" content="width=device-width,initial-scale=1" /> + <?php echo tpl_favicon(array('favicon', 'mobile')) ?> + <?php tpl_includeFile('meta.html') ?> + +<script src="https://cdn.jsdelivr.net/npm/anchor-js/anchor.min.js"></script> +<!-- <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700;1,900&display=swap" rel="stylesheet"> --> + +<link rel="preconnect" href="https://fonts.googleapis.com"> +<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> +<link href="https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&display=swap" rel="stylesheet"> + +<?php +$translation = plugin_load('helper','translation'); +global $ID; +$startpage = $conf['start']; +$lang2 = $translation->getLangPart($ID); +if ($lang2 != '') { + $startpage = $lang2 .':'.$startpage; +} +?> + +</head> + +<body id="dokuwiki__top"> + <div id="dokuwiki__site" class="<?php echo tpl_classes(); ?> <?php echo ($showSidebar) ? 'hasSidebar' : ''; ?>"> + <?php html_msgarea() ?> + <?php tpl_includeFile('header.html') ?> + + <!-- ********** HEADER ********** --> + <div id="dokuwiki__header"> + <div class="group"> + <!-- <h1 id="sitetitle"><?php tpl_link('/'.$startpage,$title_text,'accesskey="h" title="[H]"') ?></h1> --> + <h1><?php tpl_link('/'.$startpage,$conf['title'],'accesskey="h" title="[H]"') ?></h1> + <div class="left"> + <?php if ($showSidebar): ?> + <button class="btn_left" accesskey="s", title="[S]">Nav</button> + <?php endif; ?> + </div> + <div class="right"> + <button class="btn_search">Search</button> + <button class="btn_right" accesskey="m", title="[M]">Edit</button> + </div> + </div> + <div class="search"> + <?php tpl_searchform(); ?> + </div> + + + </div><!-- /header --> + + <!-- ********** sidebar ********** --> + <div id="sidebar_wrapper"> + <!-- ********** ASIDE ********** --> + <?php if ($showSidebar): ?> + <div id="dokuwiki__aside" class="sidebar"> + <?php tpl_includeFile('sidebarheader.html') ?> + <?php tpl_include_page($conf['sidebar'], 1, 1) ?> + <?php tpl_includeFile('sidebarfooter.html') ?> + </div><!-- /dokuwiki__aside --> + <?php endif; ?> + + <div id="dokuwiki__tools" class="sidebar left"> + <!-- PAGE TOOLS --> + <div id="dokuwiki__pagetools"> + <h3><?php echo $lang['page_tools'] ?></h3> + <ul> + <?php white_toolsevent('pagetools', array( + 'edit' => tpl_action('edit', 1, 'li', 1, '<span>', '</span>'), + 'revisions' => tpl_action('revisions', 1, 'li', 1, '<span>', '</span>'), + 'backlink' => tpl_action('backlink', 1, 'li', 1, '<span>', '</span>'), + 'subscribe' => tpl_action('subscribe', 1, 'li', 1, '<span>', '</span>'), + 'revert' => tpl_action('revert', 1, 'li', 1, '<span>', '</span>'), + )); ?> + </ul> + </div><!-- /dokuwiki__pagetools --> + + <!-- SITE TOOLS --> + <div id="dokuwiki__sitetools"> + <h3><?php echo $lang['site_tools'] ?></h3> + <ul> + <?php white_toolsevent('sitetools', array( + 'recent' => tpl_action('recent', 1, 'li', 1, '<span>', '</span>'), + 'media' => tpl_action('media', 1, 'li', 1, '<span>', '</span>'), + 'index' => tpl_action('index', 1, 'li', 1, '<span>', '</span>'), + )); ?> + </ul> + </div><!-- /dokuwiki__sitetools --> + + <!-- USER TOOLS --> + <?php if ($conf['useacl']): ?> + <div id="dokuwiki__usertools"> + <h3><?php echo $lang['user_tools'] ?></h3> + <ul> + <?php white_toolsevent('usertools', array( + 'admin' => tpl_action('admin', 1, 'li', 1, '<span>', '</span>'), + 'profile' => tpl_action('profile', 1, 'li', 1, '<span>', '</span>'), + 'register' => tpl_action('register', 1, 'li', 1, '<span>', '</span>'), + 'login' => tpl_action('login', 1, 'li', 1, '<span>', '</span>'), + )); ?> + </ul> + <?php + if (!empty($_SERVER['REMOTE_USER'])) { + echo '<div class="user">'; + tpl_userinfo(); + echo '</div>'; + } + ?> + </div><!-- /dokuwiki__usertools --> + <?php endif ?> + </div><!-- /dokuwiki__tools --> + + <div id="sidebar_bg"> + </div> + + <div id="to_top"> + <?php tpl_action('top') ?> + </div> + </div><!-- /sidebar_wrapper --> + + <div class="wrapper group"> + <!-- ********** CONTENT ********** --> + <div id="dokuwiki__content"><div class="group"> + <?php tpl_flush() ?> + <?php tpl_includeFile('pageheader.html') ?> + + <!-- BREADCRUMBS --> + <?php if($conf['breadcrumbs']){ ?> + <div class="breadcrumbs"><?php tpl_breadcrumbs($ret='›') ?></div> + <?php } ?> + <?php if($conf['youarehere']){ ?> + <div class="breadcrumbs"><?php tpl_youarehere() ?></div> + <?php } ?> + + <?php + $filepath = $INFO['filepath']; + $file_markdown = $filepath; + $file_pdf = str_replace('.txt','.pdf',$filepath); + $file_epub = str_replace('.txt','.epub',$filepath); + + if (file_exists($file_pdf)) { + $file_pdf_url = str_replace('/srv/acerv.us/platform/www','',$file_pdf); + $download_link .= '<a href="'. $file_pdf_url .'">pdf</a> | '; + } + + if (file_exists($file_epub)) { + $file_epub_url = str_replace('/srv/acerv.us/platform/www','',$file_epub); + $download_link .= '<a href="'. $file_epub_url .'">epub</a> | '; + } + + if ($download_link) { + $file_markdown_url = str_replace('/srv/acerv.us/platform','',$file_markdown); + echo '<div class="download">' . tpl_getLang('download') . ': ' . $download_link . '</div>'; + $download_link .= '<a href="'. $file_markdown_url .'">markdown</a>'; + } + + + ?> + + + <div class="page group + <?php if(tpl_getConf('numberedHeading')): ?> numbered_heading<?php endif ?> + <?php if(tpl_getConf('tocPosition')): ?> toc_<?php echo tpl_getConf('tocPosition') ?><?php endif ?> + "> + <!-- wikipage start --> + <?php tpl_content() ?> + <!-- wikipage stop --> + </div> + + <?php tpl_flush() ?> + <?php tpl_includeFile('pagefooter.html') ?> + </div></div><!-- /content --> + + <!-- ********** FOOTER ********** --> + <div id="dokuwiki__footer"> + <?php if($INFO['exists']): ?> + <div class="doc"><?php white_pageinfo() ?></div> + <?php endif ?> + <?php tpl_includeFile('sidebarfooter.html') ?> + <?php tpl_license('badge', false, false) ?> + <div class="footer"> + <?php tpl_include_page(tpl_getConf('footer'), 1, 1) ?> + </div> + + <center><?php + if ($translation) echo $translation->showTranslations(); + ?></center> + </div><!-- /footer --> + + <?php tpl_includeFile('footer.html') ?> + </div><!-- /wrapper --> + + </div><!-- /site --> + + <div class="no"><?php tpl_indexerWebBug() /* provide DokuWiki housekeeping, required in all templates */ ?></div> + +<script> + +function getAnchor() { + // alert(decodeURI(document.URL)); + return (decodeURI(document.URL).split('#').length > 1) ? decodeURI(document.URL).split('#')[1] : null; +} + +if (document.URL.toLowerCase().indexOf("index") === -1) { // not show on index + if (document.URL.includes(':en') || + document.URL.includes(':es') || + document.URL.includes(':fr') || + document.URL.includes(':script') || + document.URL.includes(':article') + ) { // only shows number of paragraph in books, articles and scripts pages + anchors.options = { + placement: 'left', + visible: 'always', + icon: '¶' + }; + //anchors.add(''); + anchors.add('#dokuwiki__content p'); + anchors.add('#dokuwiki__content li'); + anchors.add('#dokuwiki__content tr'); + + // highlight referenced paragraph + anchor = getAnchor(); + if (anchor !== null) { + var anchor_element = document.getElementById(anchor); + anchor_element.style.backgroundColor = "#ffff0033"; + (function($) { + $([document.documentElement, document.body]).animate({ + scrollTop: $("#" + anchor).offset().top-50 + }, 2000); + })(jQuery); + + + } + + } + +} + + +</script> + + +</body> +</html> diff --git a/platform/www/lib/tpl/acervus/manager.dat b/platform/www/lib/tpl/acervus/manager.dat new file mode 100644 index 0000000..7a94e4b --- /dev/null +++ b/platform/www/lib/tpl/acervus/manager.dat @@ -0,0 +1,2 @@ +downloadurl=https://github.com/ipari/dokuwiki-template-white/zipball/master +installed=Thu, 07 Jun 2018 20:52:40 -0400 diff --git a/platform/www/lib/tpl/acervus/mediamanager.php b/platform/www/lib/tpl/acervus/mediamanager.php new file mode 100644 index 0000000..d6faf42 --- /dev/null +++ b/platform/www/lib/tpl/acervus/mediamanager.php @@ -0,0 +1,46 @@ +<?php +/** + * DokuWiki Media Manager Popup + * + * @author Andreas Gohr <andi@splitbrain.org> + * @license GPL 2 (http://www.gnu.org/licenses/gpl.html) + */ +// must be run from within DokuWiki +if (!defined('DOKU_INC')) die(); +@require_once(dirname(__FILE__).'/tpl_functions.php'); +header('X-UA-Compatible: IE=edge,chrome=1'); + +?><!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>" + lang="<?php echo $conf['lang']?>" dir="<?php echo $lang['direction'] ?>" class="popup no-js"> +<head> + <meta charset="UTF-8" /> + <title> + <?php echo hsc($lang['mediaselect'])?> + [<?php echo strip_tags($conf['title'])?>] + </title> + <script>(function(H){H.className=H.className.replace(/\bno-js\b/,'js')})(document.documentElement)</script> + <?php tpl_metaheaders()?> + <meta name="viewport" content="width=device-width,initial-scale=1" /> + <?php echo tpl_favicon(array('favicon', 'mobile')) ?> + <?php tpl_includeFile('meta.html') ?> +</head> + +<body> + <div id="media__manager" class="<?php echo tpl_classes(); ?>"> + <?php html_msgarea() ?> + <div id="mediamgr__aside"><div class="group"> + <h1><?php echo hsc($lang['mediaselect'])?></h1> + + <?php /* keep the id! additional elements are inserted via JS here */?> + <div id="media__opts"></div> + + <?php tpl_mediaTree() ?> + </div></div> + + <div id="mediamgr__content"><div class="group"> + <?php tpl_mediaContent() ?> + </div></div> + </div> +</body> +</html> diff --git a/platform/www/lib/tpl/acervus/script.js b/platform/www/lib/tpl/acervus/script.js new file mode 100644 index 0000000..503b135 --- /dev/null +++ b/platform/www/lib/tpl/acervus/script.js @@ -0,0 +1,81 @@ +(function($) { + var fadeOption = {duration: 150}; + + function toggleLeft() { + $('#sidebar_bg').show('fade', fadeOption); + $('#dokuwiki__aside').show(); + } + + function toggleRight() { + $('#sidebar_bg').show('fade', fadeOption); + $('#dokuwiki__tools').show(); + } + + function preventParentWheel(e) { + var curScrollPos = $(this).scrollTop(); + var scrollableDist = $(this).prop('scrollHeight') - $(this).outerHeight(); + var wheelEvent = e.originalEvent; + var dY = wheelEvent.deltaY; + + if (dY < 0 && curScrollPos <= 0) { + return false; + } + if (dY > 0 && curScrollPos >= scrollableDist) { + return false; + } + } + + function showSearch() { + $('div.search').toggle(); + $('div.search').find('input.edit').select(); + } + + function bindEvents() { + $('.sidebar').on('wheel scroll', preventParentWheel); + $('.btn_left').click(function() { + toggleLeft(); + }); + $('.btn_right').click(function() { + toggleRight(); + }); + $('#sidebar_bg').click(function() { + $(this).hide('fade', fadeOption); + $('#dokuwiki__aside').hide(); + $('#dokuwiki__tools').hide(); + }); + $('.btn_search').click(function() { + showSearch(); + }); + $(document).keydown(function(e) { + if (e.which == 70 && e.altKey) { + showSearch(); + e.preventDefault(); + } + }); + } + + function initUI() { + // Move TOC + if ($('.page h2').length > 0) { + $('.toc_wikipedia').find('#dw__toc').insertBefore($('.page h2:first')); + } else { + $('.toc_wikipedia').find('#dw__toc').insertAfter($('.page h1:first').next('.level1')); + } + if ($('.page > .level1 > blockquote').length > 0) { + $('.toc_dokuwiki').find('#dw__toc').insertAfter($('.page > .level1 > blockquote')); + } else { + $('.toc_dokuwiki').find('#dw__toc').insertAfter($('.page h1:first')); + } + // $('.toc_dokuwiki').find('blockquote:first').insertAfter($('.page h1:first')); + + // Anchor link should be shifted by header pixel + $(window).on("hashchange", function () { + window.scrollTo(window.scrollX, window.scrollY - 48); + }); + } + + $(function() { + initUI(); + bindEvents(); + }); +})(jQuery); diff --git a/platform/www/lib/tpl/acervus/style.ini b/platform/www/lib/tpl/acervus/style.ini new file mode 100644 index 0000000..48e316d --- /dev/null +++ b/platform/www/lib/tpl/acervus/style.ini @@ -0,0 +1,86 @@ +; Please see http://www.php.net/manual/en/function.parse-ini-file.php +; for limitations of the ini format used here + +; To extend this file or make changes to it, it is recommended to create +; a local conf/tpl/<template-folder-name>/style.ini file to prevent losing +; any changes after an upgrade. +; Please don't forget to copy the section your changes should be under +; (i.e. [stylesheets] or [replacements]) into that file as well. + +; Define the stylesheets your template uses here. The second value +; defines for which output media the style should be loaded. Currently +; print, screen and all are supported. +; You can reference CSS and LESS files here. Files referenced here will +; be checked for updates when considering a cache rebuild while files +; included through LESS' @import statements are not + +[stylesheets] + +../dokuwiki/css/_imgdetail.css = screen +../dokuwiki/css/_media_popup.css = screen +../dokuwiki/css/_media_fullscreen.css = screen +../dokuwiki/css/_fileuploader.css = screen +../dokuwiki/css/_tabs.css = screen +../dokuwiki/css/_links.css = screen +../dokuwiki/css/_toc.css = screen +../dokuwiki/css/_footnotes.css = screen +../dokuwiki/css/_search.less = screen +../dokuwiki/css/_recent.css = screen +../dokuwiki/css/_diff.css = screen +../dokuwiki/css/_edit.css = screen +../dokuwiki/css/_modal.css = screen +../dokuwiki/css/_forms.css = screen +../dokuwiki/css/_admin.less = screen + +css/basic.less = screen +css/structure.less = screen +css/design.less = screen +css/content.less = screen +css/responsive.css = screen +css/hacks.css = screen + +css/mobile.less = all +css/print.less = print + + +; This section is used to configure some placeholder values used in +; the stylesheets. Changing this file is the simplest method to +; give your wiki a new look. +; Placeholders defined here will also be made available as LESS variables +; (with surrounding underscores removed, and the prefix @ini_ added) + +[replacements] + +;-------------------------------------------------------------------------- +;------ guaranteed dokuwiki color placeholders that every plugin can use + +; main text and background colors +__text__ = "#333" ; @ini_text +__background__ = "#fff" ; @ini_background +; alternative text and background colors +__text_alt__ = "#999" ; @ini_text_alt +__background_alt__ = "#f6f6f6" ; @ini_background_alt +; neutral text and background colors +__text_neu__ = "#666" ; @ini_text_neu +__background_neu__ = "#ddd" ; @ini_background_neu +; border color +__border__ = "#ddd" ; @ini_border + +; highlighted text (e.g. search snippets) +__highlight__ = "#ff9" ; @ini_highlight + +; these are used for links +__link__ = "#AA0000" ; @ini_link +__existing__ = "#800000" ; @ini_existing +__missing__ = "#858585" ; @ini_missing + +__numbered_heading__ = "#ff00cc" ; @ini_numbered_heading + +;-------------------------------------------------------------------------- +; fonts +__font_size__ = "13pt" ; @ini_font_size +__line_height__ = "1.6" ; @ini_line_height + +; widths +__body_width__ = "56em" ; @ini_body_width +__sidebar_width__ = "16em" ; @ini_sidebar_width diff --git a/platform/www/lib/tpl/acervus/template.info.txt b/platform/www/lib/tpl/acervus/template.info.txt new file mode 100644 index 0000000..7c68a3e --- /dev/null +++ b/platform/www/lib/tpl/acervus/template.info.txt @@ -0,0 +1,6 @@ +base acervus +author Franco Augusto +email franco@reevo.org +date 2022 +name Illich theme +desc Theme for Acervus platform. Simple, minimal and responsive template, based in 'White Template' diff --git a/platform/www/lib/tpl/acervus/tpl_functions.php b/platform/www/lib/tpl/acervus/tpl_functions.php new file mode 100644 index 0000000..ae82ea5 --- /dev/null +++ b/platform/www/lib/tpl/acervus/tpl_functions.php @@ -0,0 +1,91 @@ +<?php +/** + * Template Functions + * + * This file provides template specific custom functions that are + * not provided by the DokuWiki core. + * It is common practice to start each function with an underscore + * to make sure it won't interfere with future core functions. + */ + +// must be run from within DokuWiki +if (!defined('DOKU_INC')) die(); + +/** + * copied to core (available since Detritus) + */ +function white_toolsevent($toolsname, $items, $view='main') { + $data = array( + 'view' => $view, + 'items' => $items + ); + + $hook = 'TEMPLATE_'.strtoupper($toolsname).'_DISPLAY'; + $evt = new Doku_Event($hook, $data); + if($evt->advise_before()){ + $actions = array('export_pdf'); + foreach($evt->data['items'] as $k => $html) { + if (in_array($k, $actions)) { + $html = str_replace(' '.$k, ' plugin_'.$k, $html); + } + echo $html; + } + } + $evt->advise_after(); +} + +function white_breadcrumbs() { + global $lang; + global $conf; + + //check if enabled + if(!$conf['breadcrumbs']) return false; + + $crumbs = breadcrumbs(); //setup crumb trace + + $crumbs_sep = ' <span class="bcsep">'.$sep.'</span> '; + + //render crumbs, highlight the last one + print '<h3>'.$lang['breadcrumb'].'</h3>'; + $last = count($crumbs); + $i = 0; + print '<ul>'; + foreach($crumbs as $id => $name) { + $i++; + print '<li>'; + if($i == $last) print '<span class="curid">'; + tpl_link(wl($id), hsc($name), 'class="breadcrumbs" title="'.$id.'"'); + if($i == $last) print '</span>'; + print '</li>'; + } + print '</ul>'; + return true; +} + +function white_pageinfo($ret = false) { + global $conf; + global $lang; + global $INFO; + global $ID; + + // return if we are not allowed to view the page + if(!auth_quickaclcheck($ID)) { + return false; + } + $date = dformat($INFO['lastmod']); + + // print it + if($INFO['exists']) { + $out = ''; + $out .= $lang['lastmod']; + $out .= ' '; + $out .= $date; + if($ret) { + return $out; + } else { + echo $out; + return true; + } + } + return false; +} |