Book Image

concrete5 Beginner's Guide

Book Image

concrete5 Beginner's Guide

Overview of this book

Table of Contents (19 chapters)
concrete5
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – integrating CSS fix in the package


Carry out the following step:

  1. Open the controller from packages/c5book/controller.php and modify the on_start method to match the following code:

    function on_start() {         
      $html = Loader::helper('html');
    
      // add advanced tooltips to every page
      $v = View::getInstance();
      $v->addHeaderItem($html->javascript('jquery.tipTip.minified.js', $this->pkgHandle));
      $v->addHeaderItem($html->css('tipTip.css', $this->pkgHandle));
    
      $v->addHeaderItem('<script type="text/javascript">$(function(){ $("[title]").tipTip(); });</script>');
    
      // inform about new users
      Events::extend('on_user_add', 
           'UserInformation', 
           'userAdd', 
           'packages/' . $this->pkgHandle . '/models/user_information.php');
    
    // include MSIE fix
    $v->addHeaderItem('<!--[if lt IE 8]><script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js"></script><![endif]-->');
    }
    

What just happened...