Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function Base_Render_Before($Sender) {
- $Sender->AddCssFile('/plugins/Traditional/design/breadcrumb.popup.css');
- $Sender->AddJsFile('jquery.defaults.js', 'plugins/Traditional/'); //default "search" text in textbox
- if ($Sender->ControllerName == 'categoriescontroller')
- $Sender->AddJsFile('jquery.cookie.js', 'plugins/Traditional/'); //keep track of which categories are expanded/hidden
- //News ticker stuff
- if ($Sender->SelfUrl == 'activity' || ((strpos($Sender->SelfUrl, 'discussions/p') !== FALSE)) || $Sender->SelfUrl === 'discussions') {
- $Sender->AddJsFile('jquery.ticker.js', 'plugins/Traditional/'); //for LESS CSS -> Regular CSS
- $Sender->AddCssFile('/plugins/Traditional/design/ticker-style.css');
- if (property_exists($Sender, 'Head') && is_object($Sender->Head)) {
- $Sender->Head->AddString(
- '<script type="text/javascript">
- $(function () {
- $("#js-news").ticker({
- htmlFeed: false,
- ajaxFeed: true,
- feedUrl: "' . Gdn::Request()->Domain() . '/' . Gdn::Request()->WebRoot() . '/discussions.rss",
- feedType: "xml"
- });
- });
- </script>');
- }
- }
- //TEMPPORARYRYRYRYRYRYRY
- $Controller = strtolower($Sender->ControllerName);
- $Application = strtolower($Sender->ApplicationFolder);
- $Session = Gdn::Session();
- $ShowOnController = array();
- if ($Sender->SelfUrl != 'categories/all')
- return;
- include_once(PATH_PLUGINS . DS . 'Traditional' . DS . 'class.profilemodule.php');
- $ProfileModule = new ProfileModule($Sender);
- $Sender->AddModule($ProfileModule);
- include_once(PATH_PLUGINS . DS . 'Traditional' . DS . 'class.forumstatsmodule.php');
- $ForumStatsModule = new ForumStatsModule($Sender);
- $Sender->AddModule($ForumStatsModule);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement