Not Solved How to programatically include theme CSS
#1
Not Solved
Ok, I've got most of my plugin working. Is there a static variable that returns the main CSS file of the current theme?

My Template is:
<html>
<head>
<title>{$mybb->settings[bbname]} - Example Page</title>
{$headerinclude}
</head>
<body>
{$header}
<br />
<!-- Content: Start -->
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder"><tr><td class="thead"><strong>BOX NAME</strong>
</td>
</tr><tr>
<td class="trow1">BOX CONTENT</td></tr>
</table>
<!-- Content: End -->
{$footer}
</body>
</html>

But I want to include the CSS of the theme somehow Toungue
Reply
#2
Not Solved
Wouldn't it be included in "{$headerinclude}"?
[Image: premium_mybb_themes-500x100.png]
Latest Theme: MiniColor.
Reply
#3
Not Solved
In your hook that calls the template, globalize the $theme variable:
function myfunction_hook()
{
   global $theme;
   //...
}
Reply
#4
Not Solved
I have included header include in my template, but it hasn't worked Sad I'm not using hook either Toungue
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)