Note:

This site is no longer used and is in read-only mode. Instead please go to our new Moodle Developer Resource site.

Header logo: Difference between revisions

From MoodleDocs
No edit summary
Undo revision 29726 by Vicentina (talk)
Line 36: Line 36:
; WRONG
; WRONG


  <?xml version='1.0' encoding='utf-8'?>
  <?php echo "$CFG->wwwroot/theme/$CFG->theme/image.jpg" ?>  
<!--
  DEBUG: Content-Type: application/xhtml+xml
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="pt-br" xml:lang="pt-br">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="http://nte-coxim.freewebclass.com/theme/standard/styles.php" />
<link rel="stylesheet" type="text/css" href="http://nte-coxim.freewebclass.com/theme/standardwhite/styles.php" />
<meta name="description" content="
  " />
<!--[if IE 7]>
    <link rel="stylesheet" type="text/css" href="http://nte-coxim.freewebclass.com/theme/standard/styles_ie7.css" />
<![endif]-->
<!--[if IE 6]>
    <link rel="stylesheet" type="text/css" href="http://nte-coxim.freewebclass.com/theme/standard/styles_ie6.css" />
<![endif]-->




<title>Online Courses - Distance Learning - Núcleo de Tecnologias Educacionais</title>
Using $CFG->theme gets the path for the site's default theme rather than the currently selected one. As a result, logos do not appear because they are not in the specified directory. $CFG->wwwroot images throw unsecure warning in IE when using loginhttps.
<meta name="description" content="Free Web Hosting for Online Classes, Distance Learning and Online Courses offered by worldwide.">
<META Name="Keywords" Content="internet degree, online university, distance learning, online education, distance education, online courses">


<link rel="shortcut icon" href="http://nte-coxim.freewebclass.com/theme/standardwhite/favicon.ico" />
<code php n>
<!--<style type="text/css">/*<![CDATA[*/ body{behavior:url(http://nte-coxim.freewebclass.com/lib/csshover.htc);} /*]]>*/</style>-->
<?php if ($home) { 
// This is what gets printed on the home page only 
?>
<div id="header-home">
    <div class="headermain"><img src="<?php echo
      $CFG->themewww.'/'.current_theme() ?>/pix/big_logo.gif" width="300"
        height="100" alt="mycompany" title="mycompany" id="logo" />
    </div>
    <div class="headermenu"><?php echo $menu ?></div>
</div>
<?php } else if ($heading) {
// This is what gets printed on any other page with a heading
?>
<div id="header">
  <div class="headermain"><img src="<?php echo
        $CFG->themewww.'/'.current_theme() ?>/pix/small_logo.gif" width="210"
        height="70" alt="mycompany" title="mycompany" id="logo" />
  </div>
  <div class="headermenu"><?php echo $menu ?></div>
</div>
<?php } ?>
</code>


<script type="text/javascript" src="http://nte-coxim.freewebclass.com/lib/javascript-static.js"></script>
Moodle offers one header for all pages and a different header for the front/home page. You may, for example, make the header for your front page higher and place a bigger logo on it.
<script type="text/javascript" src="http://nte-coxim.freewebclass.com/lib/javascript-mod.php"></script>
<script type="text/javascript" src="http://nte-coxim.freewebclass.com/lib/overlib/overlib.js"></script>
<script type="text/javascript" src="http://nte-coxim.freewebclass.com/lib/overlib/overlib_cssstyle.js"></script>
<script type="text/javascript" src="http://nte-coxim.freewebclass.com/lib/cookies.js"></script>
<script type="text/javascript" src="http://nte-coxim.freewebclass.com/lib/ufo.js"></script>
<script type="text/javascript" src="http://nte-coxim.freewebclass.com/lib/dropdown.js"></script> 


<script type="text/javascript" defer="defer">
The logo position in the page header is defined in the CSS file ''styles_layout.css''. Please change the values for the CLASS <code>.headermain</code> and eventually for the IDs <code>#header</code> and <code>#header-home</code> if needed. You can find the definitions in the section header of the CSS file.  
//<![CDATA[
setTimeout('fix_column_widths()', 20);
//]]>
</script>
<script type="text/javascript">
//<![CDATA[
function openpopup(url, name, options, fullscreen) {
    var fullurl = "http://nte-coxim.freewebclass.com" + url;
    var windowobj = window.open(fullurl, name, options);
    if (!windowobj) {
        return true;
    }
    if (fullscreen) {
        windowobj.moveTo(0, 0);
        windowobj.resizeTo(screen.availWidth, screen.availHeight);
    }
    windowobj.focus();
    return false;
}


function uncheckall() {
'''A tip for a fast jump to the header section of the CSS file:''' Select and copy the word "header" in the section list at the beginning of the file. Then call find in your program and paste "header" into the search dialogue. After you click "find" in your dialogue your program will find the start of the header section.
    var inputs = document.getElementsByTagName('input');
    for(var i = 0; i < inputs.length; i++) {
        inputs[i].checked = false;
    }
}


function checkall() {
===Use an image from your Course files===
    var inputs = document.getElementsByTagName('input');
<code php n>
    for(var i = 0; i < inputs.length; i++) {
<div class="headermain">
        inputs[i].checked = true;
   <img src="<?php if (file_exists("$CFG->dataroot/$COURSE->id/header.png"))  
    }
    { echo "$CFG->httpswwwroot/file.php/$COURSE->id/header.png"; } ?>" width="210"  
}
    height="70" alt="mycompany" title="mycompany" id="logo" />
 
</div>
function inserttext(text) {
</code>
  text = ' ' + text + ' ';
  if ( opener.document.forms['theform'].message.createTextRange && opener.document.forms['theform'].message.caretPos) {
    var caretPos = opener.document.forms['theform'].message.caretPos;
    caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
  } else {
    opener.document.forms['theform'].message.value  += text;
   }
  opener.document.forms['theform'].message.focus();
}
 
function getElementsByClassName(oElm, strTagName, oClassNames){
var arrElements = (strTagName == "*" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName);
var arrReturnElements = new Array();
var arrRegExpClassNames = new Array();
if(typeof oClassNames == "object"){
for(var i=0; i<oClassNames.length; i++){
arrRegExpClassNames.push(new RegExp("(^|\\s)" + oClassNames[i].replace(/\-/g, "\\-") + "(\\s|$)"));
}
}
else{
arrRegExpClassNames.push(new RegExp("(^|\\s)" + oClassNames.replace(/\-/g, "\\-") + "(\\s|$)"));
}
var oElement;
var bMatchesAll;
for(var j=0; j<arrElements.length; j++){
oElement = arrElements[j];
bMatchesAll = true;
for(var k=0; k<arrRegExpClassNames.length; k++){
if(!arrRegExpClassNames[k].test(oElement.className)){
bMatchesAll = false;
break;
}
}
if(bMatchesAll){
arrReturnElements.push(oElement);
}
}
return (arrReturnElements)
}
//]]>
 
</script>
</head>
 
<body  class="course course-1 notloggedin dir-ltr lang-pt_br_utf8" id="site-index">
 
 
 
 
 
 
 
 
 
 
<style type="text/css"> 
#blockblockA {position:absolute;top:0px;left:0px;background-color:#E7E8E8;width:100%;height:100%;}
#blockblockA td {text-align:center;width:100%;height:100%;}
#blockblockA td p {font: bold 20px Arial;color:#333333;}
#blockblockA td div {font: bold 13px Arial;color:#333333;}
#blockblockB {visibility:invisible;display:none;}
 
</style>
 
<noscript>
<style type="text/css">
#blockblockA {visibility:invisible!important;display:none!important;}
#blockblockA td {visibility:invisible!important;display:none!important;}
#blockblockA td p {visibility:invisible!important;display:none!important;}
#blockblockB {visibility:visible!important;display:block!important;}
</style>
</noscript>
 
 
<script type="text/javascript" src="http://freewebclass.com/advertisement.js"></script>
 
 
<table id="blockblockA"><tr><td>
 
<!-- DISPLAY HTML CODE HERE -->
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
 
<td width="500" style="border:1px solid #D9DADA; padding:25px;">
<p>FreeWebClass.com is supported by advertisements.</p>
<p>Please disable Advertising Blocking Software in your browser to view this website.</p>
<p>You can use FreeWebClass.com without advertisement by <a href="http://freewebclass.com" target="_blank">subscribing to Plus or Pro account</a>.</p>
<p>For more information please visit <a href="http://freewebclass.com" target="_blank">http://freewebclass.com</a> or email support@freewebclass.com. Thank you.</p>
</td>
</tr>
</table>
 
<!-- DISPLAY HTML CODE HERE -->
 
<div align="right">&nbsp;</div>
 
</td></tr></table>
 
<span id="blockblockB">
 
 
 
 
 
 
 
<script type="text/javascript">
 
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-7416464-17']);
_gaq.push(['_setDomainName', '.freewebclass.com']);
_gaq.push(['_trackPageview']);
 
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
 
 
</script>
 
 
 
 
 
<script type="text/javascript">


  var _gaq = _gaq || [];
Or even have your own custom CSS override the theme's CSS rules, When it is placed inside the Course's files folder. see MDL-20590
  _gaq.push(['_setAccount', 'UA-3485212-63']);
  _gaq.push(['_setDomainName', '.freewebclass.com']);
  _gaq.push(['_trackPageview']);


  (function() {
== See also: ==
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
* [[Themes FAQ]]
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
* [[CSS FAQ]]
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
 
</script>
 
<div id="page">
<a class="skip" href="#maincontent">Ir para o conteúdo principal</a>
 
    <div id="header-home" class=" clearfix">        <h1 class="headermain">Núcleo de Tecnologias Educacionais</h1>
 
        <div class="headermenu"><div class="logininfo">Você ainda não se identificou (<a  href="http://nte-coxim.freewebclass.com/login/index.php">Acesso</a>)</div><form action="http://nte-coxim.freewebclass.com/course/jumpto.php" method="get"  id="chooselang" class="popupform"><div><label for="chooselang_jump"><span class="accesshide " >Idioma</span></label><select id="chooselang_jump" name="jump" onchange="self.location=document.getElementById('chooselang').jump.options[document.getElementById('chooselang').jump.selectedIndex].value;">
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=af_utf8">Afrikaans (af)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=ar_utf8">عربي (ar)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=ast_utf8">Asturianu (ast)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=be_utf8">Беларуская (be)</option>
 
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=bg_utf8">Български (bg)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=bn_utf8">বাংলা (bn)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=bs_utf8">Bosanski (bs)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=ca_utf8">Català (ca)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=cs_utf8">Čeština (cs)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=cy_utf8">Cymraeg (cy)</option>
 
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=da_utf8">Dansk (da)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=de_du_utf8">Deutsch - Du (de_du)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=de_utf8">Deutsch (de)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=dv_utf8">ދިވެހި (dv)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=dz_utf8">Dzongkha (dz)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=el_utf8">Ελληνικά (el)</option>
 
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=en_us_utf8">English (en_us)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=en_utf8">English (en)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=es_ar_utf8">Español - Argentina (es_ar)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=es_mx_utf8">Español - Mexico (es_mx)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=es_utf8">Español - Internacional (es)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=et_utf8">Eesti (et)</option>
 
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=eu_utf8">Euskara (eu)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=fa_utf8">فارسی (fa)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=fi_utf8">Suomi (fi)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=fil_utf8">Filipino (fil)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=fr_ca_utf8">Français - Canada (fr_ca)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=fr_utf8">Français (fr)</option>
 
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=ga_utf8">Gaeilge (ga)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=gl_utf8">Galego (gl)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=gu_utf8">ગુજરાતી (gu)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=he_utf8">עברית (he)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=hi_utf8">िहन्दी (hi)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=hr_utf8">Hrvatski (hr)</option>
 
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=hu_utf8">magyar (hu)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=hy_utf8">Հայերեն (hy)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=id_utf8">Indonesian (id)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=is_utf8">&Iacute;slenska (is)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=it_utf8">Italiano (it)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=ja_utf8">日本語 (ja)</option>
 
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=ka_utf8">ქართული (ka)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=kk_utf8">Қазақша (kk)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=km_utf8">ខ្មែរ (km)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=kn_utf8">ಕನ್ನಡ (kn)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=ko_utf8">한국어 (ko)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=la_utf8">Latin (la)</option>
 
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=lo_utf8">Laotian (lo)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=lt_utf8">Lietuvių (lt)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=lv_utf8">Latviešu (lv)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=mi_tn_utf8">Māori - Tainui (mi_tn)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=mi_wwow_utf8">Māori - Waikato (mi_wwow)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=mk_utf8">Македонски (mk)</option>
 
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=ml_utf8">മലയാളം (ml)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=mn_utf8">Монгол (mn)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=mr_utf8">मराठी (mr)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=ms_utf8">Bahasa Melayu (ms)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=nl_utf8">Nederlands (nl)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=nn_utf8">Norsk - nynorsk (nn)</option>
 
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=no_gr_utf8">Norsk (no_gr)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=no_utf8">Norsk - bokmål (no)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=pl_utf8">Polski (pl)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=pt_br_utf8" selected="selected">Português - Brasil (pt_br)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=pt_utf8">Português - Portugal (pt)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=ro_utf8">Română (ro)</option>
 
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=ru_utf8">Русский (ru)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=si_utf8">සිංහල  (si)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=sk_utf8">Slovenčina (sk)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=sl_utf8">Sloven&#353;&#269;ina (sl)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=sm_utf8">Samoan (sm)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=so_utf8">Soomaali (so)</option>
 
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=sq_utf8">Shqip (sq)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=sr_cr_bo_utf8">Српски (sr_cr_bo)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=sr_cr_utf8">Српски (sr_cr)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=sr_lt_utf8">Srpski (sr_lt)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=sv_utf8">Svenska (sv)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=ta_lk_utf8">தமிழ் (ta_lk)</option>
 
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=ta_utf8">Tamil (ta)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=th_utf8">Thai (th)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=tl_utf8">Tagalog (tl)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=to_utf8">Tongan (to)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=tr_utf8">Türkçe (tr)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=uk_utf8">Українська (uk)</option>
 
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=ur_utf8">اردو (ur)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=uz_utf8">O'zbekcha (uz)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=vi_utf8">Vietnamese (vi)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=zh_cn_utf8">简体中文 (zh_cn)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=zh_tw_utf8">正體中文 (zh_tw)</option>
  <option value="http://nte-coxim.freewebclass.com/index.php?lang=zu_utf8">isiZulu (zu)</option>
 
</select><input type="hidden" name="sesskey" value="lQrVAJCaBm" /><div id="noscriptchooselang" style="display: inline;"><input type="submit" value="Vai" /></div><script type="text/javascript">
//<![CDATA[
document.getElementById("noscriptchooselang").style.display = "none";
//]]>
</script></div></form></div>
    </div>        <hr />
    <!-- END OF HEADER -->
 
 
 
<table border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#fafafa">
<tr>
<td style="padding-top:10px;">
 
<script type="text/javascript"><!--
google_ad_client = "ca-pub-1015063944539735";
/* FreeWebClass.com */
google_ad_slot = "6525208159";
google_ad_width = 728;
google_ad_height = 90;
//-->
 
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
 
</td>
</tr>
</table>
 
    <div id="content" class=" clearfix">
 
<table id="layout-table" summary="layout">
  <tr>
  <td style="width: 210px;" id="left-column"><div><a href="#sb-1" class="skip-block">Saltar Menu Principal</a><div  id="inst1" class="block_site_main_menu sideblock"><div class="header"><div class="title"><input type="image" src="http://nte-coxim.freewebclass.com/pix/t/switch_minus.gif" id="togglehide_inst1" onclick="elementToggleHide(this, true, function(el) {return findParentNode(el, 'DIV', 'sideblock'); }, 'Mostrar o bloco Menu Principal', 'Esconder o bloco Menu Principal'); return false;" alt="Esconder o bloco Menu Principal" title="Esconder o bloco Menu Principal" class="hide-show-image" /><h2>Menu Principal</h2></div></div><div class="content">
 
<ul class='list'>
<li class="r0"><div class="icon column c0"><img src="http://nte-coxim.freewebclass.com/mod/assignment/icon.gif" class="icon" alt="" /></div><div class="column c1"><a title="Tarefas"  href="http://nte-coxim.freewebclass.com/mod/assignment/view.php?id=15">Atividade 1 – Enviando Mensagens </a></div></li>
<li class="r1"><div class="icon column c0"><img src="http://nte-coxim.freewebclass.com/mod/forum/icon.gif" class="icon" alt="" /></div><div class="column c1"><a title="Fóruns"  href="http://nte-coxim.freewebclass.com/mod/forum/view.php?id=38">Projeto "Rede de Leituras"</a></div></li>
</ul>
</div></div><script type="text/javascript">
//<![CDATA[
elementCookieHide("inst1","Mostrar o bloco Menu Principal","Esconder o bloco Menu Principal");
//]]>
</script><span id="sb-1" class="skip-block-to"></span></div></td><td id="middle-column"><span id="maincontent"></span><div><div class="generalbox sitetopic box">
<div style="text-align: center;"><img width="230" vspace="0" hspace="0" height="171" border="0" title="mmm" alt="mmm" src="http://nte-coxim.freewebclass.com/file.php/1/logo_NTE.jpg" /> </div></div><h2 class="headingblock header ">Cursos disponíveis</h2><ul class="unlist"><li><div class="coursebox clearfix"><div class="info"><div class="name"><a title="Clique para entrar neste curso" href="http://nte-coxim.freewebclass.com/course/view.php?id=4">Projeto "Rede de Leituras"</a></div></div><div class="summary"></div></div></li>
<li><div class="coursebox clearfix"><div class="info"><div class="name"><a title="Clique para entrar neste curso" href="http://nte-coxim.freewebclass.com/course/view.php?id=3">Uso Pedagógico do Google Docs</a></div></div><div class="summary"><br />
<table width="100%" border="1"><tbody><tr><td width="50%" valign="top" style="color: rgb(0, 0, 255); font-weight: bold;">Oficina Google Docs - Para Professores das STE's/jurisdição NTE/Coxim<br /></td></tr></tbody></table> </div></div></li>
 
</ul>
<br /></div></td><td style="width: 210px;" id="right-column"><div><a href="#sb-2" class="skip-block">Saltar Acesso</a><div  id="inst16" class="block_login sideblock"><div class="header"><div class="title"><input type="image" src="http://nte-coxim.freewebclass.com/pix/t/switch_minus.gif" id="togglehide_inst16" onclick="elementToggleHide(this, true, function(el) {return findParentNode(el, 'DIV', 'sideblock'); }, 'Mostrar o bloco Acesso', 'Esconder o bloco Acesso'); return false;" alt="Esconder o bloco Acesso" title="Esconder o bloco Acesso" class="hide-show-image" /><h2>Acesso</h2></div></div><div class="content">
<form class="loginform" id="login" method="post" action="http://nte-coxim.freewebclass.com/login/index.php"><div class="c1 fld username"><label for="login_username">Nome de usuário</label><input type="text" name="username" id="login_username" value="a5a1e19" /></div><div class="c1 fld password"><label for="login_password">Senha</label><input type="password" name="password" id="login_password" value="" /></div><div class="c1 btn"><input type="submit" value="Acesso" /></div></form>
<div class="footer"><div><a href="http://nte-coxim.freewebclass.com/login/signup.php">Cadastramento de usuários</a></div><div><a href="http://nte-coxim.freewebclass.com/login/forgot_password.php">Perdeu a senha?</a></div></div></div></div><script type="text/javascript">
//<![CDATA[
elementCookieHide("inst16","Mostrar o bloco Acesso","Esconder o bloco Acesso");
//]]>
</script><span id="sb-2" class="skip-block-to"></span><a href="#sb-3" class="skip-block">Saltar Usuários Online</a><div  id="inst18" class="block_online_users sideblock"><div class="header"><div class="title"><input type="image" src="http://nte-coxim.freewebclass.com/pix/t/switch_minus.gif" id="togglehide_inst18" onclick="elementToggleHide(this, true, function(el) {return findParentNode(el, 'DIV', 'sideblock'); }, 'Mostrar o bloco Usuários Online', 'Esconder o bloco Usuários Online'); return false;" alt="Esconder o bloco Usuários Online" title="Esconder o bloco Usuários Online" class="hide-show-image" /><h2>Usuários Online</h2></div></div><div class="content"><div class="info">(últimos 5 minutos)</div><div class="info">Nenhum</div></div></div><script type="text/javascript">
 
//<![CDATA[
elementCookieHide("inst18","Mostrar o bloco Usuários Online","Esconder o bloco Usuários Online");
//]]>
</script><span id="sb-3" class="skip-block-to"></span><a href="#sb-4" class="skip-block">Saltar Calendário</a><div  id="inst4" class="block_calendar_month sideblock"><div class="header"><div class="title"><input type="image" src="http://nte-coxim.freewebclass.com/pix/t/switch_minus.gif" id="togglehide_inst4" onclick="elementToggleHide(this, true, function(el) {return findParentNode(el, 'DIV', 'sideblock'); }, 'Mostrar o bloco Calendário', 'Esconder o bloco Calendário'); return false;" alt="Esconder o bloco Calendário" title="Esconder o bloco Calendário" class="hide-show-image" /><h2>Calendário</h2></div></div><div class="content"><div id="overDiv" style="position: absolute; visibility: hidden; z-index:1000;"></div><script type="text/javascript" src="http://nte-coxim.freewebclass.com/calendar/overlib.cfg.php"></script>
<div class="calendar-controls"><a class="previous" href="index.php?cal_m=8&amp;cal_y=2011" title="Mês anterior"><span class="arrow ">&#x25C4;</span><span class="accesshide " >&nbsp;Mês anterior</span></a><span class="hide"> | </span><span class="current"><a href="http://nte-coxim.freewebclass.com/calendar/view.php?view=month&amp;course=1&amp;cal_d=1&amp;cal_m=9&amp;cal_y=2011">setembro 2011</a></span><span class="hide"> | </span><a class="next" href="index.php?cal_m=10&amp;cal_y=2011" title="Próximo mês"><span class="accesshide " >Próximo mês&nbsp;</span><span class="arrow ">&#x25BA;</span></a>
<span class="clearer"><!-- --></span></div>
<table class="minicalendar" summary="Tabela de dados, setembro 2011 Calendário"><tr class="weekdays"><th scope="col"><abbr title="Domingo">Dom</abbr></th>
<th scope="col"><abbr title="Segunda-feira">Seg</abbr></th>
 
<th scope="col"><abbr title="Terça-feira">Ter</abbr></th>
<th scope="col"><abbr title="Quarta-feira">Qua</abbr></th>
<th scope="col"><abbr title="Quinta-feira">Qui</abbr></th>
<th scope="col"><abbr title="Sexta-feira">Sex</abbr></th>
<th scope="col"><abbr title="Sábado">Sáb</abbr></th>
</tr><tr><td class="dayblank">&nbsp;</td>
<td class="dayblank">&nbsp;</td>
<td class="dayblank">&nbsp;</td>
<td class="dayblank">&nbsp;</td>
<td class="day">1</td>
<td class="day">2</td>
 
<td class="weekend day">3</td>
</tr><tr><td class="weekend day">4</td>
<td class="day">5</td>
<td class="day">6</td>
<td class="day">7</td>
<td class="day">8</td>
<td class="day">9</td>
<td class="weekend day">10</td>
</tr><tr><td class="weekend day">11</td>
 
<td class="day">12</td>
<td class="day">13</td>
<td class="day">14</td>
<td class="day">15</td>
<td class="day">16</td>
<td class="weekend day">17</td>
</tr><tr><td class="weekend day">18</td>
<td class="day today eventnone"><span class="accesshide " >Hoje segunda,  19 setembro </span><a href="#" onmouseover="return overlib('Nenhum evento', CAPTION, 'Hoje segunda,  19 setembro');" onmouseout="return nd();">19</a></td>
 
<td class="day">20</td>
<td class="day">21</td>
<td class="day">22</td>
<td class="day">23</td>
<td class="weekend day">24</td>
</tr><tr><td class="weekend day">25</td>
<td class="day">26</td>
<td class="day">27</td>
<td class="day">28</td>
 
<td class="day">29</td>
<td class="day">30</td>
<td class="dayblank">&nbsp;</td></tr></table></div></div><script type="text/javascript">
//<![CDATA[
elementCookieHide("inst4","Mostrar o bloco Calendário","Esconder o bloco Calendário");
//]]>
</script><span id="sb-4" class="skip-block-to"></span></div></td>
  </tr>
</table>
 
</div><div id="footer"><hr /><p class="helplink"></p><div class="logininfo">Você ainda não se identificou (<a  href="http://nte-coxim.freewebclass.com/login/index.php">Acesso</a>)</div><div class="sitelink"><a title="Moodle" href="http://moodle.org/"><img style="width:100px;height:30px" src="pix/moodlelogo.gif" alt="moodlelogo" /></a></div></div>
</div>


</body>
[[Category:Themes]]
</html>

Revision as of 08:21, 20 September 2011

This article refers to Moodle 1.9 only:

To show your logo in the page header, the file header.html in your theme folder requires editing.

In the file header.html you see the following lines (or similar):

<?php if ($home) { // This is what gets printed on the home page only ?>

<?php echo $heading ?>
<?php echo $menu ?>

<?php } else if ($heading) { // This is what gets printed on any other page with a heading ?>

<?php } ?>

The following code example shows a part from a header file with a logo. Please replace lines 5 and 12 above with lines 5 and 12 from the code example below. In particular, pay close attention to the following statement:

RIGHT

<?php echo $CFG->httpswwwroot.'/theme/'.current_theme() ?>/image.jpg

Some theme designers have mistakenly used:

WRONG
<?php echo "$CFG->wwwroot/theme/$CFG->theme/image.jpg" ?> 


Using $CFG->theme gets the path for the site's default theme rather than the currently selected one. As a result, logos do not appear because they are not in the specified directory. $CFG->wwwroot images throw unsecure warning in IE when using loginhttps.

<?php if ($home) { // This is what gets printed on the home page only ?>

<img src="<?php echo
      $CFG->themewww.'/'.current_theme() ?>/pix/big_logo.gif" width="300" 
       height="100" alt="mycompany" title="mycompany" id="logo" />
<?php echo $menu ?>

<?php } else if ($heading) { // This is what gets printed on any other page with a heading ?>

<?php } ?>

Moodle offers one header for all pages and a different header for the front/home page. You may, for example, make the header for your front page higher and place a bigger logo on it.

The logo position in the page header is defined in the CSS file styles_layout.css. Please change the values for the CLASS .headermain and eventually for the IDs #header and #header-home if needed. You can find the definitions in the section header of the CSS file.

A tip for a fast jump to the header section of the CSS file: Select and copy the word "header" in the section list at the beginning of the file. Then call find in your program and paste "header" into the search dialogue. After you click "find" in your dialogue your program will find the start of the header section.

Use an image from your Course files

 <img src="<?php if (file_exists("$CFG->dataroot/$COURSE->id/header.png")) 
   { echo "$CFG->httpswwwroot/file.php/$COURSE->id/header.png"; } ?>" width="210" 
   height="70" alt="mycompany" title="mycompany" id="logo" />

Or even have your own custom CSS override the theme's CSS rules, When it is placed inside the Course's files folder. see MDL-20590

See also: