Git Product home page Git Product logo

dokuwiki_template_starter's People

Contributors

alexgearbox avatar andreashaerter avatar araname avatar dploeger avatar klap-in avatar sawachan avatar schplurtz avatar selfthinker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

dokuwiki_template_starter's Issues

Incompatible with Angua

The DokuWiki website states that the starter template is compatible with the "Angua" release of DokuWiki. This seems to be incorrect: I get "Call to undefined function page_findnearest()" errors when trying to use it.

I had to check the 2012-09-09 tagged version out to make it work.

wrong formatting for combined styles

Formatting a monospaced text doesn't work because there's a style that resets all other styles.

try this:

  **__//''combine''//__**

and you'll see that there's no bold, italic or underline.

_tpl_discussion() and _tpl_userpage() should return instead of echo

I was recently building my own template based on the starter template and noticed a problem with the functions _tpl_discussion() and _tpl_userpage().
E.g. for the user tools there is the following code (main.php starting at line 76):

<?php _tpl_toolsevent('usertools', array(
  'admin' => tpl_action('admin', 1, 'li', 1),
  'userpage' => _tpl_action('userpage', 1, 'li', 1),
  'profile' => tpl_action('profile', 1, 'li', 1),
  'register' => tpl_action('register', 1, 'li', 1),
  'login' => tpl_action('login', 1, 'li', 1),
)); ?>

Now (if userpage is enabled in the config) this will display the link for the user page first and afterwards the ones for the admin, profile page and so on. However if you look at the code above one would expect the link for the admin page to be displayed first.

The reason is, that the functions _tpl_discussion() and _tpl_userpage() echo their output while the core function tpl_action() returns it.

I think that the code should be changed so that _tpl_discussion() and _tpl_userpage() (and subsequently _tpl_action()) also return instead of echo.

Remove "!important"s

There are three !importants in css/_search.css which should be resolved through other means.

Move _tpl_discussion() and _tpl_userpage() out of the template

The only two remaining functions in tpl_functions.php which the starter template "needs" and which is not provided by the core by now are _tpl_discussion() and _tpl_userpage().

Those should be moved into a plugin instead so that the starter template can stay relatively lean.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.