blog title to page title
@@ -32,6 +32,9 @@ | ||
32 | 32 | $view = $BlogCNF['default_view']; |
33 | 33 | $select_uid = isset($_GET['uid']) ? intval($_GET['uid']) : 0; |
34 | 34 | //print_r($params); |
35 | + | |
36 | +$xoopsTpl->assign('popimg',PopnupBlogUtils::mail_popimg()); // get email | |
37 | + | |
35 | 38 | if($params['trackback']) { |
36 | 39 | $blog = new PopnupBlog($params['blogid'],$params['postid']); |
37 | 40 | $tb = $blog->useTrackBack(); |
@@ -108,6 +111,11 @@ | ||
108 | 111 | $xoopsTpl->assign('trackbacks', $blog->getTrackBack($params['postid'])); |
109 | 112 | } |
110 | 113 | 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 | + } | |
111 | 119 | $xoopsOption['template_main'] = 'popnupblog_view.html'; |
112 | 120 | $mh = ''; |
113 | 121 | $mh .= '<link rel="alternate" type="application/rss+xml" title="RSS" href="'.PopnupBlogUtils::createRssURL($params['blogid']).'">'."\n"; |
@@ -119,7 +127,7 @@ | ||
119 | 127 | }else{ |
120 | 128 | // $popimg = PopnupBlogUtils::mail_popimg(); |
121 | 129 | // print($popimg); |
122 | - $xoopsTpl->assign('popimg',PopnupBlogUtils::mail_popimg()); // get email | |
130 | +// $xoopsTpl->assign('popimg',PopnupBlogUtils::mail_popimg()); // get email | |
123 | 131 | $cat_id=0; |
124 | 132 | if (isset($_GET['cat_id'])) $cat_id = intval($_GET['cat_id']); |
125 | 133 | if (isset($_POST['cat_id'])) $cat_id = intval($_POST['cat_id']); |
@@ -25,9 +25,11 @@ | ||
25 | 25 | <a href="<{$xoops_url}>/modules/popnupblog/edit.php?today=<{$popnupblog_targetBid}>"> |
26 | 26 | <{$smarty.const._MD_POPNUPBLOG_WRITE}> |
27 | 27 | </a> |
28 | +<{/if}> | |
29 | +<{if $xoops_isuser==$blog_uid }> | |
28 | 30 | | |
31 | + <a href="edit.php?today=preference"><{$smarty.const._MD_POPNUPBLOG_APPLICATION_PREFERENCE}></a> | |
29 | 32 | <{/if}> |
30 | -<a href="edit.php?today=preference"><{$smarty.const._MD_POPNUPBLOG_APPLICATION_PREFERENCE}></a> | |
31 | 33 | <{if $popnupblog_votable eq true}> |
32 | 34 | | |
33 | 35 | <a href="<{$xoops_url}>/modules/popnupblog/index.php?param=<{$params}>&vote=1"> |
@@ -197,6 +199,8 @@ | ||
197 | 199 | --> |
198 | 200 | <{include file='db:system_notification_select.html'}> |
199 | 201 | |
202 | +<{$popimg}> | |
203 | + | |
200 | 204 | <!-- end of popnup blog main block --> |
201 | 205 | </div> |
202 | 206 | </div> |