Page 2 of 2

Re: Suggestions for new themes

Posted: Sat Jan 16, 2016 3:25 pm
by dirtdiver2010
Ah, ok. I will try it...
(I asked the same question in the german forum, sorry for the double post)

Re: Suggestions for new themes

Posted: Thu Jan 21, 2016 2:36 am
by diego
Sorry, for the first option is the name of the pluginClass.

Code: Select all

echo $plugins['all']['pluginTags']->siteSidebar();

Re: Suggestions for new themes

Posted: Tue Dec 05, 2017 1:10 pm
by dirtdiver2010
Hi. I have a question, maybe someone can help me with that.

I would like to use the plugins for it´s own, like I did it before. I will use the plugins on special places in the theme. An I will use Categories - I think the Code should be like this:

Code: Select all

<?php echo $plugins['all']['pluginCategory']->siteSidebar(); ?>
But I would like to give the different categories classes in CSS, so I am able to style them. Is this possible? Maybe it would be possible to give the class the same name like the category?

Can someone give me a hint or something?
THX.

(I also posted it in the "german section")

Re: Suggestions for new themes

Posted: Tue Dec 05, 2017 1:22 pm
by diego
You can define a method (hook) called siteHead and add your CSS, with the <style>.
Take a look to this plugins, https://github.com/bludit/bludit/blob/m ... plugin.php
This plugin runs on the admin panel but you can do similar with siteHead instead of adminHead.

Re: Suggestions for new themes

Posted: Tue Dec 05, 2017 1:33 pm
by dirtdiver2010
Hm, sorry I don´t get it :shock:

Maybe something like a variable in the code would be possible? But my php skills are not good enough... :roll:

Should something like:
Call the plugin category
define a variable for the class
class name = category name

This could be used in the theme without any hooks. And it is not influenced if system is updated...

It should something look like this:

Code: Select all

<div class="plugin-content">
  <ul>
    <li>
      <a href="#" class="category-name">Category-Name (1)</a>
    </li>
  </ul>
</div>