modules/member/member.controller.php 1 location
|
@@ 2082-2095 (lines=14) @@
|
2079 |
|
/** |
2080 |
|
* Nickname and click Log In to add a pop-up menu that appears when the method |
2081 |
|
*/ |
2082 |
|
function addMemberPopupMenu($url, $str, $icon = '', $target = 'self') |
2083 |
|
{ |
2084 |
|
$member_popup_menu_list = Context::get('member_popup_menu_list'); |
2085 |
|
if(!is_array($member_popup_menu_list)) $member_popup_menu_list = array(); |
2086 |
|
|
2087 |
|
$obj = new stdClass; |
2088 |
|
$obj->url = $url; |
2089 |
|
$obj->str = $str; |
2090 |
|
$obj->icon = $icon; |
2091 |
|
$obj->target = $target; |
2092 |
|
$member_popup_menu_list[] = $obj; |
2093 |
|
|
2094 |
|
Context::set('member_popup_menu_list', $member_popup_menu_list); |
2095 |
|
} |
2096 |
|
|
2097 |
|
/** |
2098 |
|
* Add users to the member table |
modules/comment/comment.controller.php 1 location
|
@@ 1288-1304 (lines=17) @@
|
1285 |
|
* @param strgin $target |
1286 |
|
* @return void |
1287 |
|
*/ |
1288 |
|
function addCommentPopupMenu($url, $str, $icon = '', $target = 'self') |
1289 |
|
{ |
1290 |
|
$comment_popup_menu_list = Context::get('comment_popup_menu_list'); |
1291 |
|
if(!is_array($comment_popup_menu_list)) |
1292 |
|
{ |
1293 |
|
$comment_popup_menu_list = array(); |
1294 |
|
} |
1295 |
|
|
1296 |
|
$obj = new stdClass(); |
1297 |
|
$obj->url = $url; |
1298 |
|
$obj->str = $str; |
1299 |
|
$obj->icon = $icon; |
1300 |
|
$obj->target = $target; |
1301 |
|
$comment_popup_menu_list[] = $obj; |
1302 |
|
|
1303 |
|
Context::set('comment_popup_menu_list', $comment_popup_menu_list); |
1304 |
|
} |
1305 |
|
|
1306 |
|
/** |
1307 |
|
* Save the comment extension form for each module |
modules/document/document.controller.php 1 location
|
@@ 2141-2154 (lines=14) @@
|
2138 |
|
* @param string $target |
2139 |
|
* @return void |
2140 |
|
*/ |
2141 |
|
function addDocumentPopupMenu($url, $str, $icon = '', $target = 'self') |
2142 |
|
{ |
2143 |
|
$document_popup_menu_list = Context::get('document_popup_menu_list'); |
2144 |
|
if(!is_array($document_popup_menu_list)) $document_popup_menu_list = array(); |
2145 |
|
|
2146 |
|
$obj = new stdClass(); |
2147 |
|
$obj->url = $url; |
2148 |
|
$obj->str = $str; |
2149 |
|
$obj->icon = $icon; |
2150 |
|
$obj->target = $target; |
2151 |
|
$document_popup_menu_list[] = $obj; |
2152 |
|
|
2153 |
|
Context::set('document_popup_menu_list', $document_popup_menu_list); |
2154 |
|
} |
2155 |
|
|
2156 |
|
/** |
2157 |
|
* Saved in the session when an administrator selects a post |