An example?

Permalink Browser Info Environment
Hello, how would you incorporate this utility for something like the following?

/elements/header_required.php:
$html = Loader::helper('html');
if($u->isRegistered()) {
  $this->addHeaderItem($html->css('ccm.base.css'), 'CORE');
  $this->addHeaderItem($html->javascript('jquery.js'), 'CORE');
  $this->addHeaderItem($html->javascript('ccm.base.js'), 'CORE');
}
else {
  echo '<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>';
}


/themes/some/header.php:
<script src="<?php echo $this->getThemePath(); ?>/css_browser_selector.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" media="screen, projection" href="<?php echo $this->getStyleSheet('blueprint/screen.css'); ?>" />
<link rel="stylesheet" type="text/css" media="print" href="<?php echo $this->getStyleSheet('blueprint/print.css'); ?>" />
<!--[if IE]><link rel="stylesheet" type="text/css" media="print" href="<?php echo $this->getStyleSheet('blueprint/ie.css'); ?>" /><![endif]-->
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $this->getStyleSheet('main.css'); ?>" />
<link rel="stylesheet" type="text/css" media="screen"  href="<?php echo $this->getStyleSheet('typography.css'); ?>" />
<script type="text/javascript" src="<?php echo $this->getThemePath(); ?>/jQuery/jquery.dbPopWin.js"></script>

Type: Discussion
Status: New
jasteele12
View Replies:

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.