Permalink
Browse files

Make path for CSS/JS independent of local paths

  • Loading branch information...
1 parent 2ca2529 commit 65cd9b79dde418c8f66f35be0f09ecbb7db83e64 Sanket Agarwal committed May 5, 2012
Showing with 27 additions and 117 deletions.
  1. +1 −1 application/config/config.php
  2. +1 −1 application/config/config.php~
  3. +12 −35 application/views/header.php
  4. +13 −80 application/views/header.php~
@@ -14,7 +14,7 @@
| path to your installation.
|
*/
-$config['base_url'] = 'http://localhost/';
+$config['base_url'] = 'http://localhost/cnerg/';
/*
|--------------------------------------------------------------------------
@@ -14,7 +14,7 @@
| path to your installation.
|
*/
-$config['base_url'] = 'http://http://10.102.43.64/';
+$config['base_url'] = 'http://localhost/';
/*
|--------------------------------------------------------------------------
@@ -2,32 +2,9 @@
<title>CNeRG - CSE, IIT Kharagpur</title>
<meta name="description" content="research laboratory">
<meta name="keywords" content="epidemic modeling, computational epidemiology, complex systems, complex networks,">
-<meta property="og:site_name" content="MoBS">
-<meta property="og:title" content="MoBS">
-<meta property="og:description" content="research laboratory">
-<meta property="og:image" content="http://www.mobs-lab.org/uploads/6/7/8/7/6787877/1319556564.jpg">
-<meta property="og:image" content="http://www.mobs-lab.org/uploads/6/7/8/7/6787877/6570562.png?158">
-<meta property="og:image" content="http://www.mobs-lab.org/uploads/6/7/8/7/6787877/8481547.jpg">
-<meta property="og:image" content="http://www.mobs-lab.org/uploads/6/7/8/7/6787877/3314892.png?213">
-<meta property="og:image" content="http://www.mobs-lab.org/uploads/6/7/8/7/6787877/3298728.jpg?232">
-<meta property="og:image" content="http://www.mobs-lab.org/uploads/6/7/8/7/6787877/1319556620.jpg">
-<meta property="og:image" content="http://www.mobs-lab.org/uploads/6/7/8/7/6787877/7964207.png">
-<meta property="og:image" content="http://www.mobs-lab.org/uploads/6/7/8/7/6787877/4832515.png?273">
-<meta property="og:image" content="http://www.mobs-lab.org/uploads/6/7/8/7/6787877/1319556187.jpg">
-<meta property="og:url" content="http://www.mobs-lab.org/">
-
- <!--[if lt IE 7]>
-<style>
-#content
-{
- height:400px !important;
-}
-</style>
-<![endif]-->
-
-<link rel="stylesheet" href='<?php echo base_url()."cnerg/css/common-v2.css"?>' type="text/css">
-<link rel="stylesheet" type="text/css" href='<?php echo base_url()."cnerg/css/main_style.css"?>' title="wsite-theme-css">
+<link rel="stylesheet" href='<?php echo base_url()."css/common-v2.css"?>' type="text/css">
+<link rel="stylesheet" type="text/css" href='<?php echo base_url()."css/main_style.css"?>' title="wsite-theme-css">
<style type="text/css">
#wsite-content div.paragraph, #wsite-content p, #wsite-content .product-description, .blog-sidebar div.paragraph, .blog-sidebar p, .wsite-form-field label, .wsite-form-field label {font-family:helvetica !important;font-size:14px !important;color:#000000 !important;line-height:20px !important;}
#wsite-content h2, #wsite-content .product-title, .blog-sidebar h2{color:#333333 !important;}
@@ -37,20 +14,20 @@
<style type="text/css">
</style>
-<link rel="stylesheet" type="text/css" href='<?php echo base_url()."cnerg/css/slideshow.css"?>'>
-<script type="text/javascript" async="" src='<?php echo base_url()."cnerg/js/ga.js"?>'></script><script type="text/javascript"><!--
+<link rel="stylesheet" type="text/css" href='<?php echo base_url()."css/slideshow.css"?>'>
+<script type="text/javascript" async="" src='<?php echo base_url()."js/ga.js"?>'></script><script type="text/javascript"><!--
var STATIC_BASE = 'http://cdn1.editmysite.com/';
var STYLE_PREFIX = 'wsite';
//-->
</script>
-<script type="text/javascript" src='<?php echo base_url()."cnerg/js/prototype.min.js"?>'></script>
-<script type="text/javascript" src='<?php echo base_url()."cnerg/js/effects.min.js"?>'></script>
-<script type="text/javascript" src='<?php echo base_url()."cnerg/js/utilities.js"?>'></script>
-<script type="text/javascript" src='<?php echo base_url()."cnerg/js/lightbox202.js"?>'></script>
-<script type="text/javascript" src='<?php echo base_url()."cnerg/js/flyout_menus.js"?>'></script>
-<script type="text/javascript" src='<?php echo base_url()."cnerg/js/slideshow.js"?>'></script>
+<script type="text/javascript" src='<?php echo base_url()."js/prototype.min.js"?>'></script>
+<script type="text/javascript" src='<?php echo base_url()."js/effects.min.js"?>'></script>
+<script type="text/javascript" src='<?php echo base_url()."js/utilities.js"?>'></script>
+<script type="text/javascript" src='<?php echo base_url()."js/lightbox202.js"?>'></script>
+<script type="text/javascript" src='<?php echo base_url()."js/flyout_menus.js"?>'></script>
+<script type="text/javascript" src='<?php echo base_url()."js/slideshow.js"?>'></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
-<script src='<?php echo base_url()."cnerg/js/galleria-1.2.6.min.js"?>'></script>
+<script src='<?php echo base_url()."cjs/galleria-1.2.6.min.js"?>'></script>
<script type="text/javascript"><!--
function initFlyouts(){initPublishedFlyoutMenus([{"id":"153948863391882933","title":"Home","url":"index.html"},{"id":"873600280878711087","title":"About","url":"about.html"},{"id":"849208609319064705","title":"Projects","url":"projects.html"},{"id":"289405349604947483","title":"Publications","url":"publications1.html"},{"id":"604785984957670984","title":"Media","url":"media.html"},{"id":"513741096409430388","title":"People","url":"people.html"},{"id":"328664862367688996","title":"News","url":"news.html"},{"id":"667435914845654009","title":"Contacts","url":"contacts.html"}],'153948863391882933',"<li class='wsite-nav-more'><a href='#'>more...<\/a><\/li>",'active',false)}
@@ -77,7 +54,7 @@ function initFlyouts(){initPublishedFlyoutMenus([{"id":"153948863391882933","tit
<style>
h1 { font-size:40px; font-weight:bold; color:#FFFFFF; line-height:1.5; padding: 5px 0px 5px 0px; }
h2 { font-size:20px; color:#FFFFFF; line-height:1.5; padding: 5px 0px 5px 0px; }
- .wsite-header { background-image: url(<?php echo base_url()."cnerg/images/facebookmapoftheworld.jpg"?>) !important; }
+ .wsite-header { background-image: url(<?php echo base_url()."images/facebookmapoftheworld.jpg"?>) !important; }
</style>
@@ -2,32 +2,9 @@
<title>CNeRG - CSE, IIT Kharagpur</title>
<meta name="description" content="research laboratory">
<meta name="keywords" content="epidemic modeling, computational epidemiology, complex systems, complex networks,">
-<meta property="og:site_name" content="MoBS">
-<meta property="og:title" content="MoBS">
-<meta property="og:description" content="research laboratory">
-<meta property="og:image" content="http://www.mobs-lab.org/uploads/6/7/8/7/6787877/1319556564.jpg">
-<meta property="og:image" content="http://www.mobs-lab.org/uploads/6/7/8/7/6787877/6570562.png?158">
-<meta property="og:image" content="http://www.mobs-lab.org/uploads/6/7/8/7/6787877/8481547.jpg">
-<meta property="og:image" content="http://www.mobs-lab.org/uploads/6/7/8/7/6787877/3314892.png?213">
-<meta property="og:image" content="http://www.mobs-lab.org/uploads/6/7/8/7/6787877/3298728.jpg?232">
-<meta property="og:image" content="http://www.mobs-lab.org/uploads/6/7/8/7/6787877/1319556620.jpg">
-<meta property="og:image" content="http://www.mobs-lab.org/uploads/6/7/8/7/6787877/7964207.png">
-<meta property="og:image" content="http://www.mobs-lab.org/uploads/6/7/8/7/6787877/4832515.png?273">
-<meta property="og:image" content="http://www.mobs-lab.org/uploads/6/7/8/7/6787877/1319556187.jpg">
-<meta property="og:url" content="http://www.mobs-lab.org/">
-
- <!--[if lt IE 7]>
-<style>
-#content
-{
- height:400px !important;
-}
-</style>
-<![endif]-->
-
-<link rel="stylesheet" href='<?php echo base_url()."cnerg/css/common-v2.css"?>' type="text/css">
-<link rel="stylesheet" type="text/css" href='<?php echo base_url()."cnerg/css/main_style.css"?>' title="wsite-theme-css">
+<link rel="stylesheet" href='<?php echo base_url()."css/common-v2.css"?>' type="text/css">
+<link rel="stylesheet" type="text/css" href='<?php echo base_url()."css/main_style.css"?>' title="wsite-theme-css">
<style type="text/css">
#wsite-content div.paragraph, #wsite-content p, #wsite-content .product-description, .blog-sidebar div.paragraph, .blog-sidebar p, .wsite-form-field label, .wsite-form-field label {font-family:helvetica !important;font-size:14px !important;color:#000000 !important;line-height:20px !important;}
#wsite-content h2, #wsite-content .product-title, .blog-sidebar h2{color:#333333 !important;}
@@ -37,20 +14,20 @@
<style type="text/css">
</style>
-<link rel="stylesheet" type="text/css" href='<?php echo base_url()."cnerg/css/slideshow.css"?>'>
-<script type="text/javascript" async="" src='<?php echo base_url()."cnerg/js/ga.js"?>'></script><script type="text/javascript"><!--
+<link rel="stylesheet" type="text/css" href='<?php echo base_url()."css/slideshow.css"?>'>
+<script type="text/javascript" async="" src='<?php echo base_url()."js/ga.js"?>'></script><script type="text/javascript"><!--
var STATIC_BASE = 'http://cdn1.editmysite.com/';
var STYLE_PREFIX = 'wsite';
//-->
</script>
-<script type="text/javascript" src='<?php echo base_url()."cnerg/js/prototype.min.js"?>'></script>
-<script type="text/javascript" src='<?php echo base_url()."cnerg/js/effects.min.js"?>'></script>
-<script type="text/javascript" src='<?php echo base_url()."cnerg/js/utilities.js"?>'></script>
-<script type="text/javascript" src='<?php echo base_url()."cnerg/js/lightbox202.js"?>'></script>
-<script type="text/javascript" src='<?php echo base_url()."cnerg/js/flyout_menus.js"?>'></script>
-<script type="text/javascript" src='<?php echo base_url()."cnerg/js/slideshow.js"?>'></script>
+<script type="text/javascript" src='<?php echo base_url()."js/prototype.min.js"?>'></script>
+<script type="text/javascript" src='<?php echo base_url()."js/effects.min.js"?>'></script>
+<script type="text/javascript" src='<?php echo base_url()."js/utilities.js"?>'></script>
+<script type="text/javascript" src='<?php echo base_url()."js/lightbox202.js"?>'></script>
+<script type="text/javascript" src='<?php echo base_url()."js/flyout_menus.js"?>'></script>
+<script type="text/javascript" src='<?php echo base_url()."js/slideshow.js"?>'></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
-<script src='<?php echo base_url()."cnerg/js/galleria-1.2.6.min.js"?>'></script>
+<script src='<?php echo base_url()."cjs/galleria-1.2.6.min.js"?>'></script>
<script type="text/javascript"><!--
function initFlyouts(){initPublishedFlyoutMenus([{"id":"153948863391882933","title":"Home","url":"index.html"},{"id":"873600280878711087","title":"About","url":"about.html"},{"id":"849208609319064705","title":"Projects","url":"projects.html"},{"id":"289405349604947483","title":"Publications","url":"publications1.html"},{"id":"604785984957670984","title":"Media","url":"media.html"},{"id":"513741096409430388","title":"People","url":"people.html"},{"id":"328664862367688996","title":"News","url":"news.html"},{"id":"667435914845654009","title":"Contacts","url":"contacts.html"}],'153948863391882933',"<li class='wsite-nav-more'><a href='#'>more...<\/a><\/li>",'active',false)}
@@ -77,7 +54,7 @@ if (Prototype.Browser.IE) window.onload=initFlyouts; else document.observe('dom:
<style>
h1 { font-size:40px; font-weight:bold; color:#FFFFFF; line-height:1.5; padding: 5px 0px 5px 0px; }
h2 { font-size:20px; color:#FFFFFF; line-height:1.5; padding: 5px 0px 5px 0px; }
- .wsite-header { background-image: url(<?php echo base_url()."cnerg/images/facebookmapoftheworld.jpg"?>) !important; }
+ .wsite-header { background-image: url(<?php echo base_url()."images/facebookmapoftheworld.jpg"?>) !important; }
</style>
@@ -86,48 +63,4 @@ if (Prototype.Browser.IE) window.onload=initFlyouts; else document.observe('dom:
<h2 align="center" > Complex Network Research Group </h2>
<h2 align="center" > CSE, Indian Institute of technology, Kharagpur </h2>
</div>
- <div id="navigation">
- <table>
- <tr>
- <td width="72%">
- <ul>
- <li id="active" style="position: relative; ">
- <a href="home" style="position: relative; ">Home</a>
- </li>
- <li id="pg873600280878711087" style="position: relative; ">
- <a href="about" style="position: relative; ">About</a>
- </li>
- <li id="pg849208609319064705" style="position: relative; ">
- <a href="projects" style="position: relative; ">Projects</a>
- </li>
- <li id="pg289405349604947483" style="position: relative; ">
- <a href="publications1" style="position: relative; ">Publications</a>
- </li>
- <li id="pg604785984957670984" style="position: relative; ">
- <a href="courses" style="position: relative; ">Courses</a>
- </li>
- <li id="pg513741096409430388" style="position: relative; ">
- <a href="people" style="position: relative; ">People</a>
- </li>
- <li id="pg328664862367688996" style="position: relative; ">
- <a href="news" style="position: relative; ">News</a>
- </li>
- <li id="pg667435914845654009" style="position: relative; ">
- <a href="activities" style="position: relative; ">Activities</a>
- </li>
- </ul>
-
- </td>
- <td width="17%">
-
- <div class="fb-like" data-href="https://www.facebook.com/pages/CNeRG/122322841226800" data-send="true" data-layout="button_count" data-width="50" data-show-faces="true"></div>
-
- </td>
- <td width="11%">
- <a href="https://twitter.com/CNeRGIITKgp" class="twitter-follow-button" data-show-count="false" data-show-screen-name="false">Follow @CNeRGIITKgp</a>
-<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
- </td>
- </tr>
-
- </table>
- </div>
+

0 comments on commit 65cd9b7

Please sign in to comment.