Changeset 1689 in ExiteCMS
- Timestamp:
- 08/25/08 18:34:23 (3 years ago)
- Location:
- themes/PLi-Fusion/PLiXmas/php-files/themes/PLiXmas
- Files:
-
- 2 edited
-
exitecms.css (modified) (1 diff)
-
templates/templates/_header.tpl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
themes/PLi-Fusion/PLiXmas/php-files/themes/PLiXmas/exitecms.css
r1677 r1689 44 44 45 45 /* column definitions (left, center, right) */ 46 .side-border-left { padding:0px 5px 0px 0px; }46 .side-border-left { text-align:left; padding:0px 5px 0px 0px; } 47 47 .main-bg { padding:0px 0px 0px 0px; } 48 .side-border-right { padding:0px 0px 0px 5px; }48 .side-border-right { text-align:left; padding:0px 0px 0px 5px; } 49 49 50 50 /* panels in the center column */ 51 .main-body { color:#003300; background-color:#fff; padding:4px; }51 .main-body { text-align:left; color:#003300; background-color:#fff; padding:4px; } 52 52 53 53 /* panels in the left & right columns (with and without padding, p.e. for images) */ -
themes/PLi-Fusion/PLiXmas/php-files/themes/PLiXmas/templates/templates/_header.tpl
r1677 r1689 151 151 // check for new forum messages 152 152 var newmsg = AjaxCall("includes/ajax.response.php?request=posts"); 153 if ( document.getElementById("new_posts_header")) {153 if (newmsg != null && document.getElementById("new_posts_header")) { 154 154 if (newmsg > 0) { 155 155 document.getElementById("new_posts_header").innerHTML = "<a href='{/literal}{$smarty.const.BASEDIR}{literal}modules/forum_threads_list_panel/new_posts.php'><img src='{/literal}{$smarty.const.THEME}{literal}images/newposts.gif' height='9' alt='{/literal}{$locale.028}{literal}' /></a> "; 156 document.getElementById("new_posts_header").style.display = 'inline'; 157 } else { 158 document.getElementById("new_posts_header").style.display = 'none'; 159 } 160 } 161 if (document.getElementById("new_posts_panel")) { 156 } else { 157 document.getElementById("new_posts_header").innerHTML = ""; 158 } 159 } 160 if (newmsg != null && document.getElementById("new_posts_panel")) { 162 161 if (newmsg > 0) { 163 162 document.getElementById("new_posts_panel_value").innerHTML = AjaxCall("includes/ajax.response.php?request=posts&parms=text"); … … 169 168 // check for new pm messages 170 169 var newpm = AjaxCall("includes/ajax.response.php?request=pm"); 171 if ( document.getElementById("new_pm_header")) {170 if (newpm != null && document.getElementById("new_pm_header")) { 172 171 if (newpm > 0) { 173 172 document.getElementById("new_pm_header").innerHTML = "<a href='{/literal}{$smarty.const.BASEDIR}{literal}pm.php?action=show_new'><img src='{/literal}{$smarty.const.THEME}{literal}images/newmsgs.gif' height='9' alt='' /></a> "; 174 document.getElementById("new_pm_header").style.display = 'inline'; 175 } else { 176 document.getElementById("new_pm_header").style.display = 'none'; 177 } 178 } 179 if (document.getElementById("new_pm_panel")) { 173 } else { 174 document.getElementById("new_pm_header").innerHTML = ""; 175 } 176 } 177 if (newpm != null && document.getElementById("new_pm_panel")) { 180 178 if (newpm > 0) { 181 179 document.getElementById("new_pm_panel_value").innerHTML = AjaxCall("includes/ajax.response.php?request=pm&parms=text"); … … 188 186 msgtimerid = setTimeout("checkMessages()", 300000); 189 187 } 190 191 // wait 15 secconds, then check for messages 188 {/literal} 189 {if iMEMBER} 190 // wait 15 seconds, then check for messages 192 191 msgtimerid = setTimeout("checkMessages()", 15000); 193 192 {/if} 194 193 /* ]]> */ 195 194 </script>{/literal} … … 200 199 <div style='display:inline;float:left;margin-top:135px;margin-left:10px;width:100px;'> 201 200 <a href='.' onclick='fontGroter(-0.1); return false' title='Decrease font-size'><img src='{$smarty.const.THEME}images/minus.gif' alt='' border='0' /></a><a href='.' onclick='fontReset(0.7); return false' title='Restore default font-sizes'><img src='{$smarty.const.THEME}images/reset.gif' hspace='2' alt='' border='0' /></a><a href='.' onclick='fontGroter(0.1); return false' title='Increase font-size'><img src='{$smarty.const.THEME}images/plus.gif' alt='' border='0' /></a> 202 <div id='new_posts_header' style='display:{if $new_posts}inline{else}none{/if};'>{if $new_posts}<a href='{$smarty.const.BASEDIR}modules/forum_threads_list_panel/new_posts.php'><img src='{$smarty.const.THEME}images/newposts.gif' height='9' alt='{$locale.028}' /></a>{/if}</div> 203 <div id='new_pm_header' style='display:none;'>[placeholder for new pm image and link]</div> 201 <div id='new_posts_header' style='display:inline;'> 202 {if $new_posts} 203 <a href='{$smarty.const.BASEDIR}modules/forum_threads_list_panel/new_posts.php'><img src='{$smarty.const.THEME}images/newposts.gif' height='9' alt='{$locale.028}' /></a> 204 {/if} 205 </div> 206 <div id='new_pm_header' style='display:inline;'> 207 </div> 204 208 </div> 205 209 <div style='display:inline;float:left;margin-top:32px;margin-left:15px;'><img src='{$smarty.const.THEME}images/bells.gif' alt='' /></div>
Note: See TracChangeset
for help on using the changeset viewer.
