本文整理汇总了PHP中theme_essential\toolbox::get_tile_file方法的典型用法代码示例。如果您正苦于以下问题:PHP toolbox::get_tile_file方法的具体用法?PHP toolbox::get_tile_file怎么用?PHP toolbox::get_tile_file使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类theme_essential\toolbox
的用法示例。
在下文中一共展示了toolbox::get_tile_file方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: test_get_tilefile_slideshow
public function test_get_tilefile_slideshow()
{
$this->setup_renderer();
$thefile = \theme_essential\toolbox::get_tile_file('slideshow');
global $CFG;
$withoutdirroot = str_replace($CFG->dirroot, '', $thefile);
$this->assertEquals('/theme/essential/layout/tiles/slideshow.php', $withoutdirroot);
}
示例2:
</li>
<li class="navbar-text"><?php
echo $OUTPUT->user_menu();
?>
</li>
</ul>
</div>
</div>
</nav>
</header>
<div id="page" class="container-fluid">
<header id="page-header" class="clearfix">
<?php
require_once \theme_essential\toolbox::get_tile_file('pagenavbar');
echo $OUTPUT->page_heading();
?>
<div id="course-header">
<?php
echo $OUTPUT->course_header();
?>
</div>
</header>
<div id="page-content" class="row-fluid">
<section id="region-main" class="span12">
<?php
echo $OUTPUT->course_content_header();
echo $OUTPUT->main_content();
echo $OUTPUT->course_content_footer();
示例3:
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');
}
}
?>
</div>
<?php
if ($footerregion) {
echo $OUTPUT->essential_blocks('side-pre', 'row-fluid', 'aside', 4);
}
?>
</div>
</div>
<!-- End Main Regions -->
</section>
</div>
<?php
require_once \theme_essential\toolbox::get_tile_file('footer');
?>
</body>
</html>
示例4: urlencode
// 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
*/
require_once \theme_essential\toolbox::get_tile_file('additionaljs');
$fontselect = \theme_essential\toolbox::get_setting('fontselect');
if ($fontselect === '2') {
$fontcharacterset = '&subset=latin';
if (\theme_essential\toolbox::get_setting('fontcharacterset')) {
$fontcharacterset = '&subset=latin,' . \theme_essential\toolbox::get_setting('fontcharacterset');
}
$headingfont = urlencode(\theme_essential\toolbox::get_setting('fontnameheading'));
$bodyfont = urlencode(\theme_essential\toolbox::get_setting('fontnamebody'));
}
echo $OUTPUT->doctype();
?>
<html <?php
echo $OUTPUT->htmlattributes();
?>
>
示例5: require_once
$background_image1 = '';
$loginimage = (!empty($PAGE->theme->settings->loginpage_background_image));
if ($loginimage) {
//$background_image1 = $PAGE->theme->setting_file_url('loginpage_background_image', 'loginpage_background_image');
}
?>
<?php
//echo '<img src="'.$background_image1.'">';
//echo '<img src="'.$CFG->wwwroot.'/theme/essential/pix/logo.png">';
echo '<div class="login-logo_container" ><a class="login_logo" href="'.preg_replace("(https?:)", "", $CFG->wwwroot).'" title="'.get_string('home').'"></a></div>';
?>
<section role="main-content">
<!-- Start Main Regions -->
<div id="page-content" class="row-fluid">
<section id="region-main" class="span12">
<?php
echo $OUTPUT->course_content_header();
echo $OUTPUT->main_content();
echo $OUTPUT->course_content_footer();
?>
</section>
</div>
<!-- End Main Regions -->
</section>
</div>
<?php require_once(\theme_essential\toolbox::get_tile_file('footer')); ?>
</body>
</html>
示例6:
// 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');
}
}
}
示例7:
// 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
*/
require_once \theme_essential\toolbox::get_tile_file('additionaljs');
require_once \theme_essential\toolbox::get_tile_file('pagesettings');
echo $OUTPUT->doctype();
?>
<html <?php
echo $OUTPUT->htmlattributes();
?>
>
<head>
<title><?php
echo $OUTPUT->page_title();
?>
</title>
<link rel="shortcut icon" href="<?php
echo $OUTPUT->favicon();
?>
"/>
示例8:
<?php
echo \theme_essential\toolbox::get_csswww();
echo $OUTPUT->standard_head_html();
?>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Google web fonts -->
<?php
require_once \theme_essential\toolbox::get_tile_file('fonts');
?>
<!-- iOS Homescreen Icons -->
<?php
require_once \theme_essential\toolbox::get_tile_file('iosicons');
?>
<!-- Start Analytics -->
<?php
require_once \theme_essential\toolbox::get_tile_file('analytics');
?>
<!-- End Analytics -->
</head>
<body <?php
echo $OUTPUT->body_attributes($bodyclasses);
?>
>
<?php
echo $OUTPUT->standard_top_of_body_html();
?>
<header role="banner">
<div id="page-header" class="clearfix<?php
示例9: require_once
?>
<html <?php echo $OUTPUT->htmlattributes(); ?> class="no-js">
<head>
<title><?php echo $OUTPUT->page_title(); ?></title>
<link rel="shortcut icon" href="<?php echo $OUTPUT->favicon(); ?>"/>
<?php
echo \theme_essential\toolbox::get_csswww();
echo $OUTPUT->standard_head_html();
?>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Google web fonts -->
<?php require_once(\theme_essential\toolbox::get_tile_file('fonts')); ?>
<!-- iOS Homescreen Icons -->
<?php require_once(\theme_essential\toolbox::get_tile_file('iosicons')); ?>
<!-- Start Analytics -->
<?php require_once(\theme_essential\toolbox::get_tile_file('analytics')); ?>
<!-- End Analytics -->
</head>
<body <?php echo $OUTPUT->body_attributes($bodyclasses); ?>>
<?php echo $OUTPUT->standard_top_of_body_html(); ?>
<header role="banner">
<div id="page-header" class="clearfix<?php echo ($oldnavbar) ? ' oldnavbar' : ''; ?>">
<div class="container-fluid">
<div class="row-fluid">
<!-- HEADER: LOGO AREA -->
<div class="<?php echo $logoclass;
echo (!$left) ? ' pull-right' : ' pull-left'; ?>">
<?php