本文整理汇总了PHP中BxTemplVotingView::getExtraJs方法的典型用法代码示例。如果您正苦于以下问题:PHP BxTemplVotingView::getExtraJs方法的具体用法?PHP BxTemplVotingView::getExtraJs怎么用?PHP BxTemplVotingView::getExtraJs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BxTemplVotingView
的用法示例。
在下文中一共展示了BxTemplVotingView::getExtraJs方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getFileIdByUri
* see license.txt file; if not, write to marketing@boonex.com
***************************************************************************/
require_once 'inc/header.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'sharing.inc.php';
require_once BX_DIRECTORY_PATH_CLASSES . 'BxDolSharedMediaView.php';
$iFile = 0;
if (isset($_GET['fileUri'])) {
$iFile = getFileIdByUri($_GET['fileUri'], 'photo');
} elseif (isset($_GET['fileID'])) {
$iFile = (int) $_GET['fileID'];
}
$member['ID'] = (int) $_COOKIE['memberID'];
check_logged();
$oNew = new BxDolSharedMediaView($iFile, 'photo', $site, $dir, $member);
$oVotingView = new BxTemplVotingView('gphoto', 0, 0);
$_page['extra_js'] = $oVotingView->getExtraJs();
$_page['name_index'] = 81;
$_ni = $_page['name_index'];
$_page['css_name'] = $oNew->oShared->sCssName;
$_page['extra_css'] = $oNew->oCmtsView->getExtraCss();
$_page['extra_js'] .= $oNew->oCmtsView->getExtraJs();
$_page['header'] = _t("_view Photo");
$_ni = $_page['name_index'];
$check_res = checkAction($member['ID'], $oNew->oShared->sViewActionName);
if ($check_res[CHECK_ACTION_RESULT] != CHECK_ACTION_RESULT_ALLOWED && !$logged['admin'] && !$logged['moderator']) {
$sCode = "\r\n \t<table width=100% height=100% cellpadding=0 cellspacing=0 class=text2>\r\n \t\t<td align=center bgcolor={$boxbg2}>\r\n \t\t\t" . $check_res[CHECK_ACTION_MESSAGE] . "<br />\r\n \t\t</td>\r\n \t</table>\n";
$_page['name_index'] = 0;
$_page_cont[0]['page_main_code'] = $sCode;
PageCode();
exit;
}