Login   Register  
PHP Classes
elePHPant
Icontem

File: ie9test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Timothy Tocci  >  IE9 Helper  >  ie9test.php  >  Download  
File: ie9test.php
Role: Example script
Content type: text/plain
Description: test file for ie9 helper class
Class: IE9 Helper
Add pinned menus to for Web sites in IE 9
Author: By
Last change: changed example addresses to be more generic and added/clarified comments
Date: 2012-07-22 03:36
Size: 3,353 bytes
 

Contents

Class file image Download
<?php
require_once 'Ie9_helper.php';
?>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <?php
        $ie 
= new Ie9_helper("IE 9 Test""IE 9 Test""http://somedomain/ie9test.php""Red"530600);
        
$ie->add_meta_task("Home Page""http://somedomain/index.php""http://somedomain/images/favicon.ico");
        
$ie->add_meta_task("Some Other Page""http://somedomain/ie9test.php""http://somedomain/images/favicon.ico");
        
// up to 5 meta tasks like above
        // now try the js list
        
$ie->create_js_jumplist("New JS Jump List");
        
$ie->add_js_jumplist_item("item1""http://somedomain/ie9test.php""http://somedomain/images/favicon.ico");
        
$ie->add_js_jumplist_item("item2""http://somedomain/ie9test.php""http://somedomain/images/favicon.ico");
        
$ie->add_js_jumplist_item("item3""http://somedomain/ie9test.php""http://somedomain/images/favicon.ico");
        
$ie->add_js_jumplist_item("item4""http://somedomain/ie9test.php""http://somedomain/images/favicon.ico");
        
$ie->add_js_jumplist_item("item5""http://somedomain/ie9test.php""http://somedomain/images/favicon.ico");
        
$ie->add_js_jumplist_item("item6""http://somedomain/ie9test.php""http://somedomain/images/favicon.ico");
        
$ie->add_js_jumplist_item("item7""http://somedomain/ie9test.php""http://somedomain/images/favicon.ico");
        
$ie->add_js_jumplist_item("item8""http://somedomain/ie9test.php""http://somedomain/images/favicon.ico");
        
$ie->add_js_jumplist_item("item9""http://somedomain/ie9test.php""http://somedomain/images/favicon.ico");
        
$ie->add_js_jumplist_item("item10""http://somedomain/ie9test.php""http://somedomain/images/favicon.ico");
        
// MS says 10 are shown by default but 
        // you can add 20 in case the user changes settings
        
$ie->add_js_jumplist_item("item11""http://somedomain/ie9test.php""http://somedomain/images/favicon.ico");
        
$ie->add_js_jumplist_item("item12""http://somedomain/ie9test.php""http://somedomain/images/favicon.ico");
        
$ie->add_js_jumplist_item("item13""http://somedomain/ie9test.php""http://somedomain/images/favicon.ico");
        
$ie->add_js_jumplist_item("item14""http://somedomain/ie9test.php""http://somedomain/images/favicon.ico");
        
$ie->add_js_jumplist_item("item15""http://somedomain/ie9test.php""http://somedomain/images/favicon.ico");
        
$ie->add_js_jumplist_item("item16""http://somedomain/ie9test.php""http://somedomain/images/favicon.ico");
        
$ie->add_js_jumplist_item("item17""http://somedomain/ie9test.php""http://somedomain/images/favicon.ico");
        
$ie->add_js_jumplist_item("item18""http://somedomain/ie9test.php""http://somedomain/images/favicon.ico");
        
$ie->add_js_jumplist_item("item19""http://somedomain/ie9test.php""http://somedomain/images/favicon.ico");
        
$ie->add_js_jumplist_item("item20""http://somedomain/ie9test.php""http://somedomain/images/favicon.ico");
        
        echo 
$ie;
        
?>
        <title>IE 9 Test Page</title>
        <link rel="shortcut icon" href="http://somedomain/images/favicon.ico" >
        
    </head>
    <body>
        <?php
        
echo $ie->add_to_all_programs_menu();
        
?>
    </body>
</html>