• R/O
  • SSH
  • HTTPS

popnupblog: Commit


Commit MetaInfo

Revision17 (tree)
Time2010-10-21 11:29:46
Authordashboard

Log Message

blog title to page title

Change Summary

Incremental Difference

--- index.php (revision 16)
+++ index.php (revision 17)
@@ -32,6 +32,9 @@
3232 $view = $BlogCNF['default_view'];
3333 $select_uid = isset($_GET['uid']) ? intval($_GET['uid']) : 0;
3434 //print_r($params);
35+
36+$xoopsTpl->assign('popimg',PopnupBlogUtils::mail_popimg()); // get email
37+
3538 if($params['trackback']) {
3639 $blog = new PopnupBlog($params['blogid'],$params['postid']);
3740 $tb = $blog->useTrackBack();
@@ -108,6 +111,11 @@
108111 $xoopsTpl->assign('trackbacks', $blog->getTrackBack($params['postid']));
109112 }
110113 if (isset($_GET['view'])) $view = intval($_GET['view']);
114+ if ( count($result['blog'])==1 ){
115+ $xoopsTpl->assign('xoops_pagetitle', $result['blog'][0]['title']);
116+ }else{
117+ $xoopsTpl->assign('xoops_pagetitle', $blog->getTitle());
118+ }
111119 $xoopsOption['template_main'] = 'popnupblog_view.html';
112120 $mh = '';
113121 $mh .= '<link rel="alternate" type="application/rss+xml" title="RSS" href="'.PopnupBlogUtils::createRssURL($params['blogid']).'">'."\n";
@@ -119,7 +127,7 @@
119127 }else{
120128 // $popimg = PopnupBlogUtils::mail_popimg();
121129 // print($popimg);
122- $xoopsTpl->assign('popimg',PopnupBlogUtils::mail_popimg()); // get email
130+// $xoopsTpl->assign('popimg',PopnupBlogUtils::mail_popimg()); // get email
123131 $cat_id=0;
124132 if (isset($_GET['cat_id'])) $cat_id = intval($_GET['cat_id']);
125133 if (isset($_POST['cat_id'])) $cat_id = intval($_POST['cat_id']);
--- templates/popnupblog_view.html (revision 16)
+++ templates/popnupblog_view.html (revision 17)
@@ -25,9 +25,11 @@
2525 <a href="<{$xoops_url}>/modules/popnupblog/edit.php?today=<{$popnupblog_targetBid}>">
2626 <{$smarty.const._MD_POPNUPBLOG_WRITE}>
2727 </a>
28+<{/if}>
29+<{if $xoops_isuser==$blog_uid }>
2830 &nbsp;|&nbsp;
31+ <a href="edit.php?today=preference"><{$smarty.const._MD_POPNUPBLOG_APPLICATION_PREFERENCE}></a>
2932 <{/if}>
30-<a href="edit.php?today=preference"><{$smarty.const._MD_POPNUPBLOG_APPLICATION_PREFERENCE}></a>
3133 <{if $popnupblog_votable eq true}>
3234 &nbsp;|&nbsp;
3335 <a href="<{$xoops_url}>/modules/popnupblog/index.php?param=<{$params}>&vote=1">
@@ -197,6 +199,8 @@
197199 -->
198200 <{include file='db:system_notification_select.html'}>
199201
202+<{$popimg}>
203+
200204 <!-- end of popnup blog main block -->
201205 </div>
202206 </div>
Show on old repository browser