当前位置: 首页>>代码示例>>PHP>>正文


PHP toolbox::set_course_pagebackground方法代码示例

本文整理汇总了PHP中theme_essential\toolbox::set_course_pagebackground方法的典型用法代码示例。如果您正苦于以下问题:PHP toolbox::set_course_pagebackground方法的具体用法?PHP toolbox::set_course_pagebackground怎么用?PHP toolbox::set_course_pagebackground使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在theme_essential\toolbox的用法示例。


在下文中一共展示了toolbox::set_course_pagebackground方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: theme_essential_process_css


//.........这里部分代码省略.........
                            \theme_essential\toolbox::get_setting('alternativethemefootercolor' . $alternative),
                            '#30add1');

            $css = \theme_essential\toolbox::set_alternativecolor($css, 'footertextcolor' . $alternative,
                            \theme_essential\toolbox::get_setting('alternativethemefootertextcolor' . $alternative),
                            '#30add1');
            $css = \theme_essential\toolbox::set_alternativecolor($css, 'footerblockbackgroundcolour' . $alternative,
                            \theme_essential\toolbox::get_setting('alternativethemefooterblockbackgroundcolour' . $alternative),
                            '#cccccc');
            $css = \theme_essential\toolbox::set_alternativecolor($css, 'footerblocktextcolour' . $alternative,
                            \theme_essential\toolbox::get_setting('alternativethemefooterblocktextcolour' . $alternative),
                            '#000000');
            $css = \theme_essential\toolbox::set_alternativecolor($css, 'footerblockurlcolour' . $alternative,
                            \theme_essential\toolbox::get_setting('alternativethemefooterblockurlcolour' . $alternative),
                            '#000000');
            $css = \theme_essential\toolbox::set_alternativecolor($css, 'footerblockhovercolour' . $alternative,
                            \theme_essential\toolbox::get_setting('alternativethemefooterblockhovercolour' . $alternative),
                            '#555555');
            $css = \theme_essential\toolbox::set_alternativecolor($css, 'footerheadingcolor' . $alternative,
                            \theme_essential\toolbox::get_setting('alternativethemefooterheadingcolor' . $alternative),
                            '#cccccc');
            $css = \theme_essential\toolbox::set_alternativecolor($css, 'footersepcolor' . $alternative,
                            \theme_essential\toolbox::get_setting('alternativethemefootersepcolor' . $alternative),
                            '#313131');
            $css = \theme_essential\toolbox::set_alternativecolor($css, 'footerurlcolor' . $alternative,
                            \theme_essential\toolbox::get_setting('alternativethemefooterurlcolor' . $alternative),
                            '#cccccc');
            $css = \theme_essential\toolbox::set_alternativecolor($css, 'footerhovercolor' . $alternative,
                            \theme_essential\toolbox::get_setting('alternativethemefooterhovercolor' . $alternative),
                            '#bbbbbb');

            $css = \theme_essential\toolbox::set_alternativecolor($css, 'slidecaptiontextcolor' . $alternative,
                            \theme_essential\toolbox::get_setting('alternativethemeslidecaptiontextcolor' . $alternative),
                            $default);
            $css = \theme_essential\toolbox::set_alternativecolor($css, 'slidecaptionbackgroundcolor' . $alternative,
                            \theme_essential\toolbox::get_setting('alternativethemeslidecaptionbackgroundcolor' . $alternative),
                            $default);
            $css = \theme_essential\toolbox::set_alternativecolor($css, 'slidebuttoncolor' . $alternative,
                            \theme_essential\toolbox::get_setting('alternativethemeslidebuttoncolor' . $alternative),
                            $default);
            $css = \theme_essential\toolbox::set_alternativecolor($css, 'slidebuttonhovercolor' . $alternative,
                            \theme_essential\toolbox::get_setting('alternativethemeslidebuttonhovercolor' . $alternative),
                            $defaulthover);
        }
    }

    // Set the background image for the logo.
    $logo = \theme_essential\toolbox::setting_file_url('logo', 'logo');
    $css = \theme_essential\toolbox::set_logo($css, $logo);

    // Set the logo height.
    $logoheight = \theme_essential\toolbox::get_setting('logoheight');
    $css = \theme_essential\toolbox::set_logoheight($css, $logoheight);

    // Set the background image for the header.
    $headerbackground = \theme_essential\toolbox::setting_file_url('headerbackground', 'headerbackground');
    $css = \theme_essential\toolbox::set_headerbackground($css, $headerbackground);

    // Set the background image for the page.
    $pagebackground = \theme_essential\toolbox::setting_file_url('pagebackground', 'pagebackground');
    $css = \theme_essential\toolbox::set_pagebackground($css, $pagebackground);

    // Set the background style for the page.
    $pagebgstyle = \theme_essential\toolbox::get_setting('pagebackgroundstyle');
    $css = \theme_essential\toolbox::set_pagebackgroundstyle($css, $pagebgstyle);

    // Set marketing height.
    $marketingheight = \theme_essential\toolbox::get_setting('marketingheight');
    $marketingimageheight = \theme_essential\toolbox::get_setting('marketingimageheight');
    $css = \theme_essential\toolbox::set_marketingheight($css, $marketingheight, $marketingimageheight);

    // Set marketing images.
    $setting = 'marketing1image';
    $marketingimage = \theme_essential\toolbox::setting_file_url($setting, $setting);
    $css = \theme_essential\toolbox::set_marketingimage($css, $marketingimage, $setting);

    $setting = 'marketing2image';
    $marketingimage = \theme_essential\toolbox::setting_file_url($setting, $setting);
    $css = \theme_essential\toolbox::set_marketingimage($css, $marketingimage, $setting);

    $setting = 'marketing3image';
    $marketingimage = \theme_essential\toolbox::setting_file_url($setting, $setting);
    $css = \theme_essential\toolbox::set_marketingimage($css, $marketingimage, $setting);

    // Set custom CSS.
    $customcss = \theme_essential\toolbox::get_setting('customcss');
    $css = \theme_essential\toolbox::set_customcss($css, $customcss);

    
    // Set the background image for the page.
    $login_background = \theme_essential\toolbox::setting_file_url('login_background', 'login_background');
    $css = \theme_essential\toolbox::set_login_pagebackground($css, $login_background);
    
     //Set the background image for the page.
    $coursepage_background_image = \theme_essential\toolbox::setting_file_url('coursepage_background_image', 'coursepage_background_image');
    $css = \theme_essential\toolbox::set_course_pagebackground($css, $coursepage_background_image);
    
    // Finally return processed CSS.
    return $css;
}
开发者ID:syedhameed,项目名称:sc,代码行数:101,代码来源:lib.php


注:本文中的theme_essential\toolbox::set_course_pagebackground方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。