Suggestions for new themes
-
- Master Bludit
- Posts: 129
- Joined: Fri Jan 15, 2016 6:07 pm
- Has thanked: 1 time
- Been thanked: 3 times
Ah, ok. I will try it...
(I asked the same question in the german forum, sorry for the double post)
(I asked the same question in the german forum, sorry for the double post)
Sorry, for the first option is the name of the pluginClass.
Code: Select all
echo $plugins['all']['pluginTags']->siteSidebar();
-
- Master Bludit
- Posts: 129
- Joined: Fri Jan 15, 2016 6:07 pm
- Has thanked: 1 time
- Been thanked: 3 times
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:
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")
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(); ?>
Can someone give me a hint or something?
THX.
(I also posted it in the "german section")
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.
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.
-
- Master Bludit
- Posts: 129
- Joined: Fri Jan 15, 2016 6:07 pm
- Has thanked: 1 time
- Been thanked: 3 times
Hm, sorry I don´t get it
Maybe something like a variable in the code would be possible? But my php skills are not good enough...
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:
Maybe something like a variable in the code would be possible? But my php skills are not good enough...
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>