當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。