本文整理匯總了PHP中TBGSettings::getIconsetName方法的典型用法代碼示例。如果您正苦於以下問題:PHP TBGSettings::getIconsetName方法的具體用法?PHP TBGSettings::getIconsetName怎麽用?PHP TBGSettings::getIconsetName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TBGSettings
的用法示例。
在下文中一共展示了TBGSettings::getIconsetName方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: runCaptcha
/**
* Generate captcha picture
*
* @param TBGRequest $request The request object
* @global array $_SESSION['activation_number'] The session captcha activation number
*/
public function runCaptcha(TBGRequest $request)
{
TBGContext::loadLibrary('ui');
if (!function_exists('imagecreatetruecolor')) {
return $this->return404();
}
$this->getResponse()->setContentType('image/png');
$this->getResponse()->setDecoration(TBGResponse::DECORATE_NONE);
$chain = str_split($_SESSION['activation_number'], 1);
$size = getimagesize(THEBUGGENIE_PATH . THEBUGGENIE_PUBLIC_FOLDER_NAME . DS . 'iconsets' . DS . TBGSettings::getIconsetName() . DS . 'numbers/0.png');
$captcha = imagecreatetruecolor($size[0] * sizeof($chain), $size[1]);
foreach ($chain as $n => $number) {
$pic = imagecreatefrompng(THEBUGGENIE_PATH . THEBUGGENIE_PUBLIC_FOLDER_NAME . DS . 'iconsets' . DS . TBGSettings::getIconsetName() . DS . 'numbers/' . $number . '.png');
imagecopymerge($captcha, $pic, $size[0] * $n, 0, 0, 0, imagesx($pic), imagesy($pic), 100);
imagedestroy($pic);
}
imagepng($captcha);
imagedestroy($captcha);
return true;
}
示例2: url
?>
password_mono.png'); }
#openid-signin-button.persona-button span:after{ background-image: url('<?php
echo TBGContext::getTBGPath() . 'iconsets/' . TBGSettings::getIconsetName() . '/';
?>
openid_providers.small/openid.ico.png'); }
#regular-signin-button.persona-button span:after{ background-image: url('<?php
echo TBGContext::getTBGPath() . 'iconsets/' . TBGSettings::getIconsetName() . '/';
?>
footer_logo.png'); }
#forgot_password_username { background-image: url('<?php
echo TBGContext::getTBGPath() . 'iconsets/' . TBGSettings::getIconsetName() . '/';
?>
user_mono.png'); }
.login_popup .article h1 { background: url('<?php
echo TBGContext::getTBGPath() . 'iconsets/' . TBGSettings::getIconsetName() . '/';
?>
logo_48.png') 0 0 no-repeat; }
table.results_normal th.sort_asc { background-image: url('<?php
echo TBGContext::getTBGPath();
?>
iconsets/oxygen/sort_down.png') !important; padding-left: 25px !important; }
table.results_normal th.sort_desc { background-image: url('<?php
echo TBGContext::getTBGPath();
?>
iconsets/oxygen/sort_up.png') !important; padding-left: 25px !important; }
.markItUp .markItUpButton1 a { background-image:url('<?php
echo TBGContext::getTBGPath();
?>
示例3: image_submit_tag
/**
* Returns an <input type="image"> tag
*
* @param string $image image source
* @param array $params[optional] html parameters
* @param bool $notheme[optional] whether this is a themed image or a top level path
*
* @return string
*/
function image_submit_tag($image, $params = array(), $notheme = false)
{
$params['src'] = !$notheme ? TBGContext::getTBGPath() . 'iconsets/' . TBGSettings::getIconsetName() . '/' . $image : $image;
return '<input type="image" ' . parseHTMLoptions($params) . ' />';
}
示例4: foreach
?>
" id="iconset" style="width: 300px;"<?php
if ($access_level != TBGSettings::ACCESS_FULL) {
?>
disabled<?php
}
?>
>
<?php
foreach ($icons as $anIcon) {
?>
<option value="<?php
echo $anIcon;
?>
"<?php
if (TBGSettings::getIconsetName() == $anIcon) {
?>
selected<?php
}
if ($access_level != TBGSettings::ACCESS_FULL) {
?>
disabled<?php
}
?>
><?php
echo $anIcon;
?>
</option>
<?php
}
?>