本文整理汇总了PHP中thebuggenie\core\framework\Settings::getIconsetName方法的典型用法代码示例。如果您正苦于以下问题:PHP Settings::getIconsetName方法的具体用法?PHP Settings::getIconsetName怎么用?PHP Settings::getIconsetName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类thebuggenie\core\framework\Settings
的用法示例。
在下文中一共展示了Settings::getIconsetName方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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 ? \thebuggenie\core\framework\Context::getWebroot() . 'iconsets/' . Settings::getIconsetName() . '/' . $image : $image;
return '<input type="image" ' . parseHTMLoptions($params) . ' />';
}
示例2: url
?>
openid_providers.small/openid.ico.png'); }
#regular-signin-button.persona-button span:after{ background-image: url('<?php
echo $webroot . 'iconsets/' . \thebuggenie\core\framework\Settings::getIconsetName() . '/';
?>
footer_logo.png'); }
#forgot_password_username { background-image: url('<?php
echo $webroot . 'iconsets/' . \thebuggenie\core\framework\Settings::getIconsetName() . '/';
?>
user_mono.png'); }
#planning_filter_title_input { background-image: url('<?php
echo $webroot . 'iconsets/' . \thebuggenie\core\framework\Settings::getIconsetName() . '/';
?>
icon-mono-search.png'); }
.login_popup .article h1 { background: url('<?php
echo $webroot . 'iconsets/' . \thebuggenie\core\framework\Settings::getIconsetName() . '/';
?>
logo_48.png') 0 0 no-repeat; }
table.results_normal th.sort_asc { background-image: url('<?php
echo $webroot;
?>
iconsets/oxygen/sort_down.png') !important; padding-left: 25px !important; }
table.results_normal th.sort_desc { background-image: url('<?php
echo $webroot;
?>
iconsets/oxygen/sort_up.png') !important; padding-left: 25px !important; }
.module .rating { background-image:url('<?php
echo $webroot;
?>
示例3: runCaptcha
/**
* Generate captcha picture
*
* @Route(name="captcha", url="/captcha/*")
* @AnonymousRoute
*
* @param \thebuggenie\core\framework\Request $request The request object
* @global array $_SESSION['activation_number'] The session captcha activation number
*/
public function runCaptcha(framework\Request $request)
{
framework\Context::loadLibrary('ui');
if (!function_exists('imagecreatetruecolor')) {
return $this->return404();
}
$this->getResponse()->setContentType('image/png');
$this->getResponse()->setDecoration(\thebuggenie\core\framework\Response::DECORATE_NONE);
$chain = str_split($_SESSION['activation_number'], 1);
$size = getimagesize(THEBUGGENIE_PATH . THEBUGGENIE_PUBLIC_FOLDER_NAME . DS . 'iconsets' . DS . framework\Settings::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 . framework\Settings::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;
}