modules/comment/comment.controller.php 1 location
|
@@ 1279-1295 (lines=17) @@
|
| 1276 |
|
* @param strgin $target |
| 1277 |
|
* @return void |
| 1278 |
|
*/ |
| 1279 |
|
function addCommentPopupMenu($url, $str, $icon = '', $target = 'self') |
| 1280 |
|
{ |
| 1281 |
|
$comment_popup_menu_list = Context::get('comment_popup_menu_list'); |
| 1282 |
|
if(!is_array($comment_popup_menu_list)) |
| 1283 |
|
{ |
| 1284 |
|
$comment_popup_menu_list = array(); |
| 1285 |
|
} |
| 1286 |
|
|
| 1287 |
|
$obj = new stdClass(); |
| 1288 |
|
$obj->url = $url; |
| 1289 |
|
$obj->str = $str; |
| 1290 |
|
$obj->icon = $icon; |
| 1291 |
|
$obj->target = $target; |
| 1292 |
|
$comment_popup_menu_list[] = $obj; |
| 1293 |
|
|
| 1294 |
|
Context::set('comment_popup_menu_list', $comment_popup_menu_list); |
| 1295 |
|
} |
| 1296 |
|
|
| 1297 |
|
/** |
| 1298 |
|
* Save the comment extension form for each module |
modules/document/document.controller.php 1 location
|
@@ 2125-2138 (lines=14) @@
|
| 2122 |
|
* @param string $target |
| 2123 |
|
* @return void |
| 2124 |
|
*/ |
| 2125 |
|
function addDocumentPopupMenu($url, $str, $icon = '', $target = 'self') |
| 2126 |
|
{ |
| 2127 |
|
$document_popup_menu_list = Context::get('document_popup_menu_list'); |
| 2128 |
|
if(!is_array($document_popup_menu_list)) $document_popup_menu_list = array(); |
| 2129 |
|
|
| 2130 |
|
$obj = new stdClass(); |
| 2131 |
|
$obj->url = $url; |
| 2132 |
|
$obj->str = $str; |
| 2133 |
|
$obj->icon = $icon; |
| 2134 |
|
$obj->target = $target; |
| 2135 |
|
$document_popup_menu_list[] = $obj; |
| 2136 |
|
|
| 2137 |
|
Context::set('document_popup_menu_list', $document_popup_menu_list); |
| 2138 |
|
} |
| 2139 |
|
|
| 2140 |
|
/** |
| 2141 |
|
* Saved in the session when an administrator selects a post |
modules/member/member.controller.php 1 location
|
@@ 1881-1894 (lines=14) @@
|
| 1878 |
|
/** |
| 1879 |
|
* Nickname and click Log In to add a pop-up menu that appears when the method |
| 1880 |
|
*/ |
| 1881 |
|
function addMemberPopupMenu($url, $str, $icon = '', $target = 'self') |
| 1882 |
|
{ |
| 1883 |
|
$member_popup_menu_list = Context::get('member_popup_menu_list'); |
| 1884 |
|
if(!is_array($member_popup_menu_list)) $member_popup_menu_list = array(); |
| 1885 |
|
|
| 1886 |
|
$obj = new stdClass; |
| 1887 |
|
$obj->url = $url; |
| 1888 |
|
$obj->str = $str; |
| 1889 |
|
$obj->icon = $icon; |
| 1890 |
|
$obj->target = $target; |
| 1891 |
|
$member_popup_menu_list[] = $obj; |
| 1892 |
|
|
| 1893 |
|
Context::set('member_popup_menu_list', $member_popup_menu_list); |
| 1894 |
|
} |
| 1895 |
|
|
| 1896 |
|
/** |
| 1897 |
|
* Add users to the member table |