Permalink
Browse files

Create logic.php

  • Loading branch information...
1 parent 7dc1b03 commit c33c97f0f463a82e0c0df4037237c2cc9b5a9f1c @Bloggerschmidt committed Nov 25, 2014
Showing with 19 additions and 0 deletions.
  1. +19 −0 logic.php
View
@@ -0,0 +1,19 @@
+<?php defined( '_JEXEC' ) or die;
+
+// variables
+$app = JFactory::getApplication();
+$doc = JFactory::getDocument();
+$menu = $app->getMenu();
+$active = $app->getMenu()->getActive();
+$params = $app->getParams();
+$pageclass = $params->get('pageclass_sfx');
+$tpath = $this->baseurl.'/templates/'.$this->template;
+
+// generator tag
+$this->setGenerator(null);
+
+// template js
+$doc->addScript($tpath.'/js/logic.js');
+
+// template css
+$doc->addStyleSheet($tpath.'/css/template.css.php');

0 comments on commit c33c97f

Please sign in to comment.