Changeset 1688 in ExiteCMS
- Timestamp:
- 08/25/08 18:33:12 (3 years ago)
- Location:
- themes/PLi-Fusion/PLiTheme/php-files/themes/PLiTheme
- Files:
-
- 2 edited
-
exitecms.css (modified) (1 diff)
-
templates/templates/_header.tpl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
themes/PLi-Fusion/PLiTheme/php-files/themes/PLiTheme/exitecms.css
r1679 r1688 43 43 44 44 /* column definitions (left, center, right) */ 45 .side-border-left { padding:5px 5px 0px 0px; }45 .side-border-left { text-align:left; padding:5px 5px 0px 0px; } 46 46 .main-bg { padding:5px 0px 5px 0px; } 47 .side-border-right { padding:5px 0px 0px 5px; }47 .side-border-right { text-align:left; padding:5px 0px 0px 5px; } 48 48 49 49 /* panels in the center column */ 50 .main-body { color:#444; background-color:#eee; padding:4px 0px 6px 0px; }50 .main-body { text-align:left;color:#444; background-color:#eee; padding:4px 0px 6px 0px; } 51 51 52 52 /* panels in the left & right columns (with and without padding, p.e. for images) */ -
themes/PLi-Fusion/PLiTheme/php-files/themes/PLiTheme/templates/templates/_header.tpl
r1679 r1688 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 188 {/literal} 189 {if iMEMBER} 191 190 // wait 15 seconds, then check for messages 192 191 msgtimerid = setTimeout("checkMessages()", 15000); 193 192 {/if} 194 193 /* ]]> */ 195 194 </script>{/literal} … … 245 244 <td class='sub-cap-main'> 246 245 <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> 247 <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> 248 <div id='new_pm_header' style='display:none;'>[placeholder for new pm image and link]</div> 246 <div id='new_posts_header' style='display:inline;'> 247 {if $new_posts} 248 <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> 249 {/if} 250 </div> 251 <div id='new_pm_header' style='display:inline;'> 252 </div> 249 253 {section name=index loop=$headermenu} 250 254 {if !$smarty.section.index.first} ·{/if} <a href='{$headermenu[index].link_url}' {if $headermenu[index].link_window == 1}target='_blank' {/if}><span class='small'>{$headermenu[index].link_name}</span></a>
Note: See TracChangeset
for help on using the changeset viewer.
