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


PHP toolbox::get_setting方法代码示例

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


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

示例1: theme_essentials_process_css

/**
 * Essentials is a basic child theme of Essential to help you as a theme
 * developer create your own child theme of Essential.
 *
 * @package     theme_essentials
 * @copyright   2015 Gareth J Barnard
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */
function theme_essentials_process_css($css, $theme)
{
    /* Change to 'false' if you don't want to use Essential's settings and remove '$THEME->parents_exclude_sheets' in config.php.
     *
     * If you want to override any Essential setting with a separate version in this child theme, then define it in 'settings.php' with the
     * same name bar the theme name prefix and 'theme_essential_process_css' will do the rest via 'toolbox.php'.  Please look at the examples
     * already coded in 'settings.php'.
     *  
     * If you want the alternative colours, then remove the overridden method 'custom_menu_themecolours' in the 'theme_essentials_core_renderer'
     * class in the 'core_renderer.php' file in the 'classes' folder. */
    $usingessentialsettings = true;
    if ($usingessentialsettings) {
        global $CFG;
        if (file_exists("{$CFG->dirroot}/theme/essential/lib.php")) {
            require_once "{$CFG->dirroot}/theme/essential/lib.php";
        } else {
            if (!empty($CFG->themedir) and file_exists("{$CFG->themedir}/essential/lib.php")) {
                require_once "{$CFG->themedir}/essential/lib.php";
            }
        }
        // else will just fail when cannot find theme_essential_process_css!
        $css = theme_essential_process_css($css, $theme);
    }
    // If you have your own additional settings, then add them here.
    $css = essentials_set_frontpagetitlestyle($css, \theme_essential\toolbox::get_setting('frontpagetitlestyle', false, $theme));
    // Finally return processed CSS
    return $css;
}
开发者ID:nadavkav,项目名称:moodle-accessibility,代码行数:36,代码来源:lib.php

示例2: theme_essential_insert_analytics_tracking

function theme_essential_insert_analytics_tracking()
{
    $siteurl = \theme_essential\toolbox::get_setting('analyticssiteurl');
    $tracking = '';
    if (!empty($siteurl)) {
        $imagetrack = \theme_essential\toolbox::get_setting('analyticsimagetrack');
        $siteid = \theme_essential\toolbox::get_setting('analyticssiteid');
        $trackadmin = \theme_essential\toolbox::get_setting('analyticstrackadmin');
        $cleanurl = \theme_essential\toolbox::get_setting('analyticscleanurl');
        if ($imagetrack) {
            $addition = '<noscript><p><img src="//' . $siteurl . '/piwik.php?idsite=' . $siteid . '" style="border:0" alt="" /></p></noscript>';
        } else {
            $addition = '';
        }
        if ($cleanurl) {
            $doctitle = "_paq.push(['setDocumentTitle', " . theme_essential_analytics_trackurl() . "]);";
        } else {
            $doctitle = "";
        }
        if (!is_siteadmin() || $trackadmin) {
            $tracking = "<script type='text/javascript'>\n                    var _paq = _paq || [];\n                    " . $doctitle . "\n                    _paq.push(['enableLinkTracking']);\n                    _paq.push(['trackPageView']);\n                    (function(){\n                        var u=(('https:' == document.location.protocol) ? 'https' : 'http') + '://" . $siteurl . "/';\n                        _paq.push(['setSiteId', " . $siteid . "]);\n                        _paq.push(['setTrackerUrl', u+'piwik.php']);\n                        var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.defer=true; g.async=true; g.src=u+'piwik.js';\n                        s.parentNode.insertBefore(g,s);\n                    })();\n                </script>\n                " . $addition;
        }
    }
    return $tracking;
}
开发者ID:RobsonTK,项目名称:Moodle,代码行数:25,代码来源:piwik.php

示例3: insert_analytics_tracking

function insert_analytics_tracking()
{
    global $PAGE, $OUTPUT;
    $trackingid = \theme_essential\toolbox::get_setting('analyticstrackingid');
    $trackadmin = \theme_essential\toolbox::get_setting('analyticstrackadmin');
    $cleanurl = \theme_essential\toolbox::get_setting('analyticscleanurl');
    $tracking = '';
    if ($cleanurl) {
        $addition = "{'hitType' : 'pageview',\n            'page' : " . analytics_trackurl() . ",\n            'title' : '" . addslashes($PAGE->heading) . "'\n            }";
    } else {
        $addition = "'pageview'";
    }
    if (!is_siteadmin() || $trackadmin) {
        $tracking = "\n            <script>\n            (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\n            m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n            })(window,document,'script','//www.google-analytics.com/analytics.js','ga');\n            ga('create', '" . $trackingid . "', {'siteSpeedSampleRate': 50});\n            ga('send', " . $addition . ");\n\n            </script>";
    }
    return $tracking;
}
开发者ID:igormateus,项目名称:moodle-theme_essential,代码行数:17,代码来源:guniversal.php

示例4: preg_replace

?>
">
        <div class="container-fluid">
            <div class="row-fluid">
                <!-- HEADER: LOGO AREA -->
                <div class="<?php 
echo $logoclass;
echo !$left ? ' pull-right' : ' pull-left';
?>
">
<?php 
if (!$haslogo) {
    echo '<a class="textlogo" href="';
    echo preg_replace("(https?:)", "", $CFG->wwwroot);
    echo '">';
    echo '<i id="headerlogo" class="fa fa-' . \theme_essential\toolbox::get_setting('siteicon') . '"></i>';
    echo '<div class="titlearea">' . $OUTPUT->get_title('header') . '</div>';
    echo '</a>';
} else {
    echo '<a class="logo" href="' . preg_replace("(https?:)", "", $CFG->wwwroot) . '" title="' . get_string('home') . '"></a>';
}
?>
                </div>
                <?php 
if ($hassocialnetworks || $hasmobileapps) {
    ?>
                <a class="btn btn-icon" data-toggle="collapse" data-target="#essentialicons">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
开发者ID:jpahullo,项目名称:moodle-theme_essential,代码行数:31,代码来源:header.php

示例5:

    $iphoneicon = \theme_essential\toolbox::get_setting('iphoneicon');
} else {
    $iphoneicon = $OUTPUT->pix_url('homeicon/iphone', 'theme');
}
if (\theme_essential\toolbox::get_setting('ipadicon')) {
    $ipadicon = \theme_essential\toolbox::get_setting('ipadicon');
} else {
    $ipadicon = $OUTPUT->pix_url('homeicon/ipad', 'theme');
}
if (\theme_essential\toolbox::get_setting('iphoneretinaicon')) {
    $iphoneretinaicon = \theme_essential\toolbox::get_setting('iphoneretinaicon');
} else {
    $iphoneretinaicon = $OUTPUT->pix_url('homeicon/iphone_retina', 'theme');
}
if (\theme_essential\toolbox::get_setting('ipadretinaicon')) {
    $ipadretinaicon = \theme_essential\toolbox::get_setting('ipadretinaicon');
} else {
    $ipadretinaicon = $OUTPUT->pix_url('homeicon/ipad_retina', 'theme');
}
?>

<link rel="apple-touch-icon-precomposed" sizes="57x57" href="<?php 
echo $iphoneicon;
?>
"/>
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php 
echo $ipadicon;
?>
"/>
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php 
echo $iphoneretinaicon;
开发者ID:RobsonTK,项目名称:Moodle,代码行数:31,代码来源:iosicons.php

示例6:

    ?>
                        <section id="region-main" class="span12">
                    <?php 
} else {
    if ($hasboringlayout && $left || !$left) {
        ?>
                        <section id="region-main" class="span9 pull-right">
                    <?php 
    } else {
        ?>
                        <section id="region-main" class="span9 desktop-first-column">
                    <?php 
    }
}
if ($COURSE->id > 1) {
    echo \theme_essential\toolbox::get_setting(format_string($COURSE->fullname), 1, 'coursetitle');
    echo '<div class="bor"></div>';
}
echo $OUTPUT->course_content_header();
echo $OUTPUT->main_content();
if (empty($PAGE->layout_options['nocoursefooter'])) {
    echo $OUTPUT->course_content_footer();
}
?>
                        </section>
                    <?php 
if (!$footerregion) {
    if ($hasboringlayout && $left || !$left) {
        echo $OUTPUT->blocks('side-pre', 'span3 desktop-first-column');
    } else {
        echo $OUTPUT->blocks('side-pre', 'span3 pull-right');
开发者ID:seyduna,项目名称:moodle-theme_essential,代码行数:31,代码来源:admin.php

示例7: preg_replace

            <div class="row-fluid">
                <!-- HEADER: LOGO AREA -->
                <div class="<?php 
echo $logoclass;
echo !$left ? ' pull-right' : ' pull-left';
?>
">
                    <?php 
if (!$haslogo) {
    ?>
                        <a class="textlogo" href="<?php 
    echo preg_replace("(https?:)", "", $CFG->wwwroot);
    ?>
">
                            <i id="headerlogo" class="fa fa-<?php 
    echo \theme_essential\toolbox::get_setting('siteicon');
    ?>
"></i>
                            <?php 
    echo $OUTPUT->get_title('header');
    ?>
                        </a>
                    <?php 
} else {
    ?>
                        <a class="logo" href="<?php 
    echo preg_replace("(https?:)", "", $CFG->wwwroot);
    ?>
" title="<?php 
    print_string('home');
    ?>
开发者ID:nadavkav,项目名称:moodle-accessibility,代码行数:31,代码来源:header.php

示例8: favicon

 /**
  * Returns the url of the custom favicon.
  */
 public function favicon()
 {
     $favicon = \theme_essential\toolbox::get_setting('favicon', 'format_file_url');
     if (empty($favicon)) {
         return $this->page->theme->pix_url('favicon', 'theme');
     } else {
         return $favicon;
     }
 }
开发者ID:julenpardo,项目名称:moodle-theme_essential,代码行数:12,代码来源:core_renderer.php

示例9: theme_essential_process_css

function theme_essential_process_css($css, $theme)
{
    // Set the theme width.
    $pagewidth = \theme_essential\toolbox::get_setting('pagewidth', false, $theme);
    $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', false, $theme);
    $css = \theme_essential\toolbox::set_color($css, $themecolor, '[[setting:themecolor]]', '#30add1');
    // Set the theme text colour.
    $themetextcolor = \theme_essential\toolbox::get_setting('themetextcolor', false, $theme);
    $css = \theme_essential\toolbox::set_color($css, $themetextcolor, '[[setting:themetextcolor]]', '#047797');
    // Set the theme url colour.
    $themeurlcolor = \theme_essential\toolbox::get_setting('themeurlcolor', false, $theme);
    $css = \theme_essential\toolbox::set_color($css, $themeurlcolor, '[[setting:themeurlcolor]]', '#FF5034');
    // Set the theme hover colour.
    $themehovercolor = \theme_essential\toolbox::get_setting('themehovercolor', false, $theme);
    $css = \theme_essential\toolbox::set_color($css, $themehovercolor, '[[setting:themehovercolor]]', '#F32100');
    // Set the theme header text colour.
    $themetextcolor = \theme_essential\toolbox::get_setting('headertextcolor', false, $theme);
    $css = \theme_essential\toolbox::set_color($css, $themetextcolor, '[[setting:headertextcolor]]', '#217a94');
    // Set the theme icon colour.
    $themeiconcolor = \theme_essential\toolbox::get_setting('themeiconcolor', false, $theme);
    $css = \theme_essential\toolbox::set_color($css, $themeiconcolor, '[[setting:themeiconcolor]]', '#30add1');
    // Set the theme navigation colour.
    $themenavcolor = \theme_essential\toolbox::get_setting('themenavcolor', false, $theme);
    $css = \theme_essential\toolbox::set_color($css, $themenavcolor, '[[setting:themenavcolor]]', '#ffffff');
    // Set the footer colour.
    $footercolor = \theme_essential\toolbox::hex2rgba(\theme_essential\toolbox::get_setting('footercolor', false, $theme), '0.95');
    $css = \theme_essential\toolbox::set_color($css, $footercolor, '[[setting:footercolor]]', '#30add1');
    // Set the footer text colour.
    $footertextcolor = \theme_essential\toolbox::get_setting('footertextcolor', false, $theme);
    $css = \theme_essential\toolbox::set_color($css, $footertextcolor, '[[setting:footertextcolor]]', '#ffffff');
    // Set the footer block background colour.
    $footerheadingcolor = \theme_essential\toolbox::get_setting('footerblockbackgroundcolour', false, $theme);
    $css = \theme_essential\toolbox::set_color($css, $footerheadingcolor, '[[setting:footerblockbackgroundcolour]]', '#cccccc');
    // Set the footer block heading colour.
    $footerheadingcolor = \theme_essential\toolbox::get_setting('footerheadingcolor', false, $theme);
    $css = \theme_essential\toolbox::set_color($css, $footerheadingcolor, '[[setting:footerheadingcolor]]', '#cccccc');
    // Set the footer text colour.
    $footertextcolor = \theme_essential\toolbox::get_setting('footerblocktextcolour', false, $theme);
    $css = \theme_essential\toolbox::set_color($css, $footertextcolor, '[[setting:footerblocktextcolour]]', '#000000');
    // Set the footer block URL colour.
    $footerurlcolor = \theme_essential\toolbox::get_setting('footerblockurlcolour', false, $theme);
    $css = \theme_essential\toolbox::set_color($css, $footerurlcolor, '[[setting:footerblockurlcolour]]', '#000000');
    // Set the footer block hover colour.
    $footerhovercolor = \theme_essential\toolbox::get_setting('footerblockhovercolour', false, $theme);
    $css = \theme_essential\toolbox::set_color($css, $footerhovercolor, '[[setting:footerblockhovercolour]]', '#555555');
    // Set the footer separator colour.
    $footersepcolor = \theme_essential\toolbox::get_setting('footersepcolor', false, $theme);
    $css = \theme_essential\toolbox::set_color($css, $footersepcolor, '[[setting:footersepcolor]]', '#313131');
    // Set the footer URL colour.
    $footerurlcolor = \theme_essential\toolbox::get_setting('footerurlcolor', false, $theme);
    $css = \theme_essential\toolbox::set_color($css, $footerurlcolor, '[[setting:footerurlcolor]]', '#cccccc');
    // Set the footer hover colour.
    $footerhovercolor = \theme_essential\toolbox::get_setting('footerhovercolor', false, $theme);
    $css = \theme_essential\toolbox::set_color($css, $footerhovercolor, '[[setting:footerhovercolor]]', '#bbbbbb');
    // Set the slide header colour.
    $slideshowcolor = \theme_essential\toolbox::get_setting('slideshowcolor', false, $theme);
    $css = \theme_essential\toolbox::set_color($css, $slideshowcolor, '[[setting:slideshowcolor]]', '#30add1');
    // Set the slide header colour.
    $slideheadercolor = \theme_essential\toolbox::get_setting('slideheadercolor', false, $theme);
    $css = \theme_essential\toolbox::set_color($css, $slideheadercolor, '[[setting:slideheadercolor]]', '#30add1');
    // Set the slide caption text colour.
    $slidecaptiontextcolor = \theme_essential\toolbox::get_setting('slidecaptiontextcolor', false, $theme);
    $css = \theme_essential\toolbox::set_color($css, $slidecaptiontextcolor, '[[setting:slidecaptiontextcolor]]', '#ffffff');
    // Set the slide caption background colour.
    $slidecaptionbackgroundcolor = \theme_essential\toolbox::get_setting('slidecaptionbackgroundcolor', false, $theme);
    $css = \theme_essential\toolbox::set_color($css, $slidecaptionbackgroundcolor, '[[setting:slidecaptionbackgroundcolor]]', '#30add1');
    // Set the slide button colour.
    $slidebuttoncolor = \theme_essential\toolbox::get_setting('slidebuttoncolor', false, $theme);
    $css = \theme_essential\toolbox::set_color($css, $slidebuttoncolor, '[[setting:slidebuttoncolor]]', '#30add1');
    // Set the slide button hover colour.
    $slidebuttonhcolor = \theme_essential\toolbox::get_setting('slidebuttonhovercolor', false, $theme);
    $css = \theme_essential\toolbox::set_color($css, $slidebuttonhcolor, '[[setting:slidebuttonhovercolor]]', '#217a94');
    if (\theme_essential\toolbox::get_setting('enablealternativethemecolors1', false, $theme) || \theme_essential\toolbox::get_setting('enablealternativethemecolors2', false, $theme) || \theme_essential\toolbox::get_setting('enablealternativethemecolors3', false, $theme) || \theme_essential\toolbox::get_setting('enablealternativethemecolors4', false, $theme)) {
        // Set theme alternative colours.
        $defaultcolors = array('#a430d1', '#d15430', '#5dd130', '#006b94');
        $defaulthovercolors = array('#9929c4', '#c44c29', '#53c429', '#4090af');
        foreach (range(1, 4) as $alternative) {
            $default = $defaultcolors[$alternative - 1];
            $defaulthover = $defaulthovercolors[$alternative - 1];
            $css = \theme_essential\toolbox::set_alternativecolor($css, 'color' . $alternative, \theme_essential\toolbox::get_setting('alternativethemecolor' . $alternative, false, $theme), $default);
            $css = \theme_essential\toolbox::set_alternativecolor($css, 'textcolor' . $alternative, \theme_essential\toolbox::get_setting('alternativethemetextcolor' . $alternative, false, $theme), $default);
            $css = \theme_essential\toolbox::set_alternativecolor($css, 'urlcolor' . $alternative, \theme_essential\toolbox::get_setting('alternativethemeurlcolor' . $alternative, false, $theme), $default);
            $css = \theme_essential\toolbox::set_alternativecolor($css, 'iconcolor' . $alternative, \theme_essential\toolbox::get_setting('alternativethemeiconcolor' . $alternative, false, $theme), $default);
            $css = \theme_essential\toolbox::set_alternativecolor($css, 'navcolor' . $alternative, \theme_essential\toolbox::get_setting('alternativethemenavcolor' . $alternative, false, $theme), $default);
            $css = \theme_essential\toolbox::set_alternativecolor($css, 'hovercolor' . $alternative, \theme_essential\toolbox::get_setting('alternativethemehovercolor' . $alternative, false, $theme), $defaulthover);
            $css = \theme_essential\toolbox::set_alternativecolor($css, 'footercolor' . $alternative, \theme_essential\toolbox::get_setting('alternativethemefootercolor' . $alternative, false, $theme), '#30add1');
            $css = \theme_essential\toolbox::set_alternativecolor($css, 'footertextcolor' . $alternative, \theme_essential\toolbox::get_setting('alternativethemefootertextcolor' . $alternative, false, $theme), '#30add1');
            $css = \theme_essential\toolbox::set_alternativecolor($css, 'footerblockbackgroundcolour' . $alternative, \theme_essential\toolbox::get_setting('alternativethemefooterblockbackgroundcolour' . $alternative, false, $theme), '#cccccc');
            $css = \theme_essential\toolbox::set_alternativecolor($css, 'footerblocktextcolour' . $alternative, \theme_essential\toolbox::get_setting('alternativethemefooterblocktextcolour' . $alternative, false, $theme), '#000000');
            $css = \theme_essential\toolbox::set_alternativecolor($css, 'footerblockurlcolour' . $alternative, \theme_essential\toolbox::get_setting('alternativethemefooterblockurlcolour' . $alternative, false, $theme), '#000000');
            $css = \theme_essential\toolbox::set_alternativecolor($css, 'footerblockhovercolour' . $alternative, \theme_essential\toolbox::get_setting('alternativethemefooterblockhovercolour' . $alternative, false, $theme), '#555555');
            $css = \theme_essential\toolbox::set_alternativecolor($css, 'footerheadingcolor' . $alternative, \theme_essential\toolbox::get_setting('alternativethemefooterheadingcolor' . $alternative, false, $theme), '#cccccc');
            $css = \theme_essential\toolbox::set_alternativecolor($css, 'footersepcolor' . $alternative, \theme_essential\toolbox::get_setting('alternativethemefootersepcolor' . $alternative, false, $theme), '#313131');
            $css = \theme_essential\toolbox::set_alternativecolor($css, 'footerurlcolor' . $alternative, \theme_essential\toolbox::get_setting('alternativethemefooterurlcolor' . $alternative, false, $theme), '#cccccc');
            $css = \theme_essential\toolbox::set_alternativecolor($css, 'footerhovercolor' . $alternative, \theme_essential\toolbox::get_setting('alternativethemefooterhovercolor' . $alternative, false, $theme), '#bbbbbb');
//.........这里部分代码省略.........
开发者ID:nadavkav,项目名称:moodle-accessibility,代码行数:101,代码来源:lib.php

示例10: jQuery

    </section>
</div>

<footer>
    <a href="#top" class="back-to-top" ><i class="fa fa-angle-up "></i></a>
    <script type="text/javascript">
        jQuery(document).ready(function () {
            <?php 
if (\theme_essential\toolbox::not_lte_ie9()) {
    echo "jQuery('#essentialnavbar').affix({";
    echo "offset: {";
    echo "top: \$('#page-header').height()";
    echo "}";
    echo "});";
    if ($breadcrumbstyle == '1') {
        echo "\$('.breadcrumb').jBreadCrumb();";
    }
}
if (\theme_essential\toolbox::get_setting('fitvids')) {
    echo "\$('#page').fitVids();";
}
?>
        });
    </script>
</footer>

<?php 
echo $OUTPUT->standard_end_of_body_html();
?>
</body>
</html>
开发者ID:RobsonTK,项目名称:Moodle,代码行数:31,代码来源:secure.php

示例11:

/**
 * Essentials is a basic child theme of Essential to help you as a theme
 * developer create your own child theme of Essential.
 *
 * @package     theme_essentials
 * @copyright   2015 Gareth J Barnard
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */
require_once \theme_essential\toolbox::get_include_file('additionaljs');
require_once \theme_essential\toolbox::get_include_file('header');
?>
<div id="page" class="container-fluid">
    <section class="slideshow">
        <!-- Start Slideshow -->
        <?php 
$toggleslideshow = \theme_essential\toolbox::get_setting('toggleslideshow');
if ($toggleslideshow == 1) {
    require_once \theme_essential\toolbox::get_include_file('slideshow');
} else {
    if ($toggleslideshow == 2 && !isloggedin()) {
        require_once \theme_essential\toolbox::get_include_file('slideshow');
    } else {
        if ($toggleslideshow == 3 && isloggedin()) {
            require_once \theme_essential\toolbox::get_include_file('slideshow');
        }
    }
}
?>
        <!-- End Slideshow -->
    </section>
    <section role="main-content">
开发者ID:uwidcit,项目名称:Moodle-Themes,代码行数:31,代码来源:frontpage.php

示例12: test_textcolour

 public function test_textcolour()
 {
     $ourcolour = \theme_essential\toolbox::get_setting('themetextcolor');
     $this->assertEquals('#00ff00', $ourcolour);
 }
开发者ID:ging,项目名称:moodle-theme_essential,代码行数:5,代码来源:corerenderer_test.php

示例13:

    $iphoneicon = \theme_essential\toolbox::get_setting('iphoneicon', 'format_file_url');
} else {
    $iphoneicon = $OUTPUT->pix_url('homeicon/iphone', 'theme');
}
if (\theme_essential\toolbox::get_setting('ipadicon')) {
    $ipadicon = \theme_essential\toolbox::get_setting('ipadicon', 'format_file_url');
} else {
    $ipadicon = $OUTPUT->pix_url('homeicon/ipad', 'theme');
}
if (\theme_essential\toolbox::get_setting('iphoneretinaicon')) {
    $iphoneretinaicon = \theme_essential\toolbox::get_setting('iphoneretinaicon', 'format_file_url');
} else {
    $iphoneretinaicon = $OUTPUT->pix_url('homeicon/iphone_retina', 'theme');
}
if (\theme_essential\toolbox::get_setting('ipadretinaicon')) {
    $ipadretinaicon = \theme_essential\toolbox::get_setting('ipadretinaicon', 'format_file_url');
} else {
    $ipadretinaicon = $OUTPUT->pix_url('homeicon/ipad_retina', 'theme');
}
?>

<link rel="apple-touch-icon-precomposed" sizes="57x57" href="<?php 
echo $iphoneicon;
?>
"/>
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php 
echo $ipadicon;
?>
"/>
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php 
echo $iphoneretinaicon;
开发者ID:igormateus,项目名称:moodle-theme_essential,代码行数:31,代码来源:iosicons.php

示例14:

    echo \theme_essential\toolbox::get_setting('marketing' . $mspot, true);
    ?>
            </span></h5></div>
            <?php 
    if ($spotimage[$mspot]) {
        ?>
                <div class="marketing-image-container">
                    <div class="marketing-image" id="marketing-image<?php 
        echo $mspot;
        ?>
"></div>
                </div>
            <?php 
    }
    ?>
            <div class="content<?php 
    echo $additionalmarketingcontentclass ? ' withbutton' : '';
    ?>
">
                <?php 
    echo \theme_essential\toolbox::get_setting('marketing' . $mspot . 'content', 'format_html');
    echo $spotbutton[$mspot];
    ?>
            </div>
        </div>
        <?php 
}
?>
    </div>
</div>
开发者ID:lucisgit,项目名称:moodle-theme_essential,代码行数:30,代码来源:marketingspots.php

示例15:

// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
/**
 * This is built using the bootstrapbase template to allow for new theme's using
 * Moodle's new Bootstrap theme engine
 *
 * @package     theme_essential
 * @copyright   2013 Julian Ridden
 * @copyright   2014 Gareth J Barnard, David Bezemer
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */
if (\theme_essential\toolbox::get_setting('analyticsenabled')) {
    $analytics = \theme_essential\toolbox::get_setting('analytics');
    if ($analytics === "piwik") {
        require_once \theme_essential\toolbox::get_tile_file('piwik');
    } else {
        if ($analytics === "guniversal") {
            require_once \theme_essential\toolbox::get_tile_file('guniversal');
        }
    }
}
开发者ID:ging,项目名称:moodle-theme_essential,代码行数:31,代码来源:analytics.php


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