本文整理汇总了PHP中theme_essential\toolbox::hexadjust方法的典型用法代码示例。如果您正苦于以下问题:PHP toolbox::hexadjust方法的具体用法?PHP toolbox::hexadjust怎么用?PHP toolbox::hexadjust使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类theme_essential\toolbox
的用法示例。
在下文中一共展示了toolbox::hexadjust方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: theme_essential_process_css
function theme_essential_process_css($css, $theme)
{
global $PAGE;
$outputus = $PAGE->get_renderer('theme_essential', 'core');
\theme_essential\toolbox::set_core_renderer($outputus);
// Set the theme width.
$pagewidth = \theme_essential\toolbox::get_setting('pagewidth');
$css = \theme_essential\toolbox::set_pagewidth($css, $pagewidth);
// Set the theme font.
$css = \theme_essential\toolbox::set_font($css, 'heading', \theme_essential\toolbox::get_setting('fontnameheading'));
$css = \theme_essential\toolbox::set_font($css, 'body', \theme_essential\toolbox::get_setting('fontnamebody'));
// Set the theme colour.
$themecolor = \theme_essential\toolbox::get_setting('themecolor');
$css = \theme_essential\toolbox::set_color($css, $themecolor, '[[setting:themecolor]]', '#30add1');
// Input focus colour.
$css = \theme_essential\toolbox::set_color($css, $themecolor, '[[setting:inputfocusbordercolor]]', '#30add1', '0.8');
$css = \theme_essential\toolbox::set_color($css, $themecolor, '[[setting:inputfocusshadowcolor]]', '#30add1', '0.6');
// Set the theme text colour.
$themetextcolor = \theme_essential\toolbox::get_setting('themetextcolor');
$css = \theme_essential\toolbox::set_color($css, $themetextcolor, '[[setting:themetextcolor]]', '#047797');
// Set the theme url colour.
$themeurlcolor = \theme_essential\toolbox::get_setting('themeurlcolor');
$css = \theme_essential\toolbox::set_color($css, $themeurlcolor, '[[setting:themeurlcolor]]', '#FF5034');
// Set the theme hover colour.
$themehovercolor = \theme_essential\toolbox::get_setting('themehovercolor');
$css = \theme_essential\toolbox::set_color($css, $themehovercolor, '[[setting:themehovercolor]]', '#F32100');
// Set the theme header text colour.
$themetextcolor = \theme_essential\toolbox::get_setting('headertextcolor');
$css = \theme_essential\toolbox::set_color($css, $themetextcolor, '[[setting:headertextcolor]]', '#217a94');
// Set the theme icon colour.
$themeiconcolor = \theme_essential\toolbox::get_setting('themeiconcolor');
$css = \theme_essential\toolbox::set_color($css, $themeiconcolor, '[[setting:themeiconcolor]]', '#30add1');
// Set the theme default button text colour.
$themedefaultbuttontextcolour = \theme_essential\toolbox::get_setting('themedefaultbuttontextcolour');
$css = \theme_essential\toolbox::set_color($css, $themedefaultbuttontextcolour, '[[setting:themedefaultbuttontextcolour]]', '#ffffff');
// Set the theme default button text hover colour.
$themedefaultbuttontexthovercolour = \theme_essential\toolbox::get_setting('themedefaultbuttontexthovercolour');
$css = \theme_essential\toolbox::set_color($css, $themedefaultbuttontexthovercolour, '[[setting:themedefaultbuttontexthovercolour]]', '#ffffff');
// Set the theme default button background colour.
$themedefaultbuttonbackgroundcolour = \theme_essential\toolbox::get_setting('themedefaultbuttonbackgroundcolour');
$css = \theme_essential\toolbox::set_color($css, $themedefaultbuttonbackgroundcolour, '[[setting:themedefaultbuttonbackgroundcolour]]', '#30add1');
$css = \theme_essential\toolbox::set_color($css, $themedefaultbuttonbackgroundcolour, '[[setting:themedefaultbuttonbackgroundcolourimage]]', '#30add1');
$css = \theme_essential\toolbox::set_color($css, \theme_essential\toolbox::hexadjust($themedefaultbuttonbackgroundcolour, 10), '[[setting:themedefaultbuttonbackgroundcolourrgba]]', '#30add1', '0.25');
// Set the theme default button background hover colour.
$themedefaultbuttonbackgroundhovercolour = \theme_essential\toolbox::get_setting('themedefaultbuttonbackgroundhovercolour');
$css = \theme_essential\toolbox::set_color($css, $themedefaultbuttonbackgroundhovercolour, '[[setting:themedefaultbuttonbackgroundhovercolour]]', '#3ad4ff');
$css = \theme_essential\toolbox::set_color($css, $themedefaultbuttonbackgroundhovercolour, '[[setting:themedefaultbuttonbackgroundhovercolourimage]]', '#3ad4ff');
$css = \theme_essential\toolbox::set_color($css, \theme_essential\toolbox::hexadjust($themedefaultbuttonbackgroundhovercolour, 10), '[[setting:themedefaultbuttonbackgroundhovercolourrgba]]', '#3ad4ff', '0.25');
// Set the theme navigation colour.
$themenavcolor = \theme_essential\toolbox::get_setting('themenavcolor');
$css = \theme_essential\toolbox::set_color($css, $themenavcolor, '[[setting:themenavcolor]]', '#ffffff');
// Set the footer colour.
$footercolor = \theme_essential\toolbox::get_setting('footercolor');
$css = \theme_essential\toolbox::set_color($css, $footercolor, '[[setting:footercolor]]', '#30add1', '0.95');
// Set the footer text colour.
$footertextcolor = \theme_essential\toolbox::get_setting('footertextcolor');
$css = \theme_essential\toolbox::set_color($css, $footertextcolor, '[[setting:footertextcolor]]', '#ffffff');
// Set the footer block background colour.
$footerheadingcolor = \theme_essential\toolbox::get_setting('footerblockbackgroundcolour');
$css = \theme_essential\toolbox::set_color($css, $footerheadingcolor, '[[setting:footerblockbackgroundcolour]]', '#cccccc');
// Set the footer block heading colour.
$footerheadingcolor = \theme_essential\toolbox::get_setting('footerheadingcolor');
$css = \theme_essential\toolbox::set_color($css, $footerheadingcolor, '[[setting:footerheadingcolor]]', '#cccccc');
// Set the footer text colour.
$footertextcolor = \theme_essential\toolbox::get_setting('footerblocktextcolour');
$css = \theme_essential\toolbox::set_color($css, $footertextcolor, '[[setting:footerblocktextcolour]]', '#000000');
// Set the footer block URL colour.
$footerurlcolor = \theme_essential\toolbox::get_setting('footerblockurlcolour');
$css = \theme_essential\toolbox::set_color($css, $footerurlcolor, '[[setting:footerblockurlcolour]]', '#000000');
// Set the footer block hover colour.
$footerhovercolor = \theme_essential\toolbox::get_setting('footerblockhovercolour');
$css = \theme_essential\toolbox::set_color($css, $footerhovercolor, '[[setting:footerblockhovercolour]]', '#555555');
// Set the footer separator colour.
$footersepcolor = \theme_essential\toolbox::get_setting('footersepcolor');
$css = \theme_essential\toolbox::set_color($css, $footersepcolor, '[[setting:footersepcolor]]', '#313131');
// Set the footer URL colour.
$footerurlcolor = \theme_essential\toolbox::get_setting('footerurlcolor');
$css = \theme_essential\toolbox::set_color($css, $footerurlcolor, '[[setting:footerurlcolor]]', '#cccccc');
// Set the footer hover colour.
$footerhovercolor = \theme_essential\toolbox::get_setting('footerhovercolor');
$css = \theme_essential\toolbox::set_color($css, $footerhovercolor, '[[setting:footerhovercolor]]', '#bbbbbb');
// Set the slide header colour.
$slideshowcolor = \theme_essential\toolbox::get_setting('slideshowcolor');
$css = \theme_essential\toolbox::set_color($css, $slideshowcolor, '[[setting:slideshowcolor]]', '#30add1');
// Set the slide header colour.
$slideheadercolor = \theme_essential\toolbox::get_setting('slideheadercolor');
$css = \theme_essential\toolbox::set_color($css, $slideheadercolor, '[[setting:slideheadercolor]]', '#30add1');
// Set the slide caption text colour.
$slidecaptiontextcolor = \theme_essential\toolbox::get_setting('slidecaptiontextcolor');
$css = \theme_essential\toolbox::set_color($css, $slidecaptiontextcolor, '[[setting:slidecaptiontextcolor]]', '#ffffff');
// Set the slide caption background colour.
$slidecaptionbackgroundcolor = \theme_essential\toolbox::get_setting('slidecaptionbackgroundcolor');
$css = \theme_essential\toolbox::set_color($css, $slidecaptionbackgroundcolor, '[[setting:slidecaptionbackgroundcolor]]', '#30add1');
// Set the slide button colour.
$slidebuttoncolor = \theme_essential\toolbox::get_setting('slidebuttoncolor');
$css = \theme_essential\toolbox::set_color($css, $slidebuttoncolor, '[[setting:slidebuttoncolor]]', '#30add1');
// Set the slide button hover colour.
$slidebuttonhcolor = \theme_essential\toolbox::get_setting('slidebuttonhovercolor');
$css = \theme_essential\toolbox::set_color($css, $slidebuttonhcolor, '[[setting:slidebuttonhovercolor]]', '#217a94');
if (\theme_essential\toolbox::get_setting('enablealternativethemecolors1') || \theme_essential\toolbox::get_setting('enablealternativethemecolors2') || \theme_essential\toolbox::get_setting('enablealternativethemecolors3') || \theme_essential\toolbox::get_setting('enablealternativethemecolors4')) {
//.........这里部分代码省略.........