error general.php

error general.php

de mijail cohen -
Número de respuestas: 1

que tal tengo un problema con este archivo de layout,

aparentemente en ciertas secciones me tira el error de que no encuentra "<?php echo $OUTPUT->main_content() ?>"

<?php
// This file is part of Moodle - http://moodle.org/
//
// 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/>;.

$hasheading = ($PAGE->heading);
$hasnavbar = (empty($PAGE->layout_options['nonavbar']) && $PAGE->has_navbar());
$hasfooter = (empty($PAGE->layout_options['nofooter']));
$hasheader = (empty($PAGE->layout_options['noheader']));

$hassidepre = (empty($PAGE->layout_options['noblocks']) && $PAGE->blocks->region_has_content('side-pre', $OUTPUT));
$hassidepost = (empty($PAGE->layout_options['noblocks']) && $PAGE->blocks->region_has_content('side-post', $OUTPUT));

$showsidepre = ($hassidepre && !$PAGE->blocks->region_completely_docked('side-pre', $OUTPUT));
$showsidepost = ($hassidepost && !$PAGE->blocks->region_completely_docked('side-post', $OUTPUT));

$custommenu = $OUTPUT->custom_menu();
$hascustommenu = (empty($PAGE->layout_options['nocustommenu']) && !empty($custommenu));

$courseheader = $coursecontentheader = $coursecontentfooter = $coursefooter = '';

if (empty($PAGE->layout_options['nocourseheaderfooter'])) {
$courseheader = $OUTPUT->course_header();
$coursecontentheader = $OUTPUT->course_content_header();
if (empty($PAGE->layout_options['nocoursefooter'])) {
$coursecontentfooter = $OUTPUT->course_content_footer();
$coursefooter = $OUTPUT->course_footer();
}
}

$layout = 'pre-and-post';
if ($showsidepre && !$showsidepost) {
if (!right_to_left()) {
$layout = 'side-pre-only';
} else {
$layout = 'side-post-only';
}
} else if ($showsidepost && !$showsidepre) {
if (!right_to_left()) {
$layout = 'side-post-only';
} else {
$layout = 'side-pre-only';
}
} else if (!$showsidepost && !$showsidepre) {
$layout = 'content-only';
}
$bodyclasses[] = $layout;

echo $OUTPUT->doctype() ?>
<html <?php echo $OUTPUT->htmlattributes() ?>>
<head>
<title><?php echo $PAGE->title ?></title>
<link rel="shortcut icon" href="<?php echo $OUTPUT->pix_url('favicon', 'theme')?>" />
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.1/css/font-awesome.css" rel="stylesheet">
<?php echo $OUTPUT->standard_head_html() ?>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>

<body id="<?php p($PAGE->bodyid) ?>" class="<?php p($PAGE->bodyclasses.' '.join($bodyclasses)) ?>">

<div class="nova-header">
<div class="container-fluid"> 
<div class="centrar-2 pads">
<div class="logo-fv"></div>
<div class="dos">
<p class="peque">Facultad Latinoamericana dc Ciencias Sociales<br>
SEDE ARGENTINA</p>
<h1 class="campusv">campus virtual</h1>
</div>

<div class="pull-right infologeo">

<?php

if (isloggedin()) {

global $USER,$PAGE,$COURSE,$CFG; 
$user_picture=new user_picture($USER);
$src=$user_picture->get_url($PAGE);
$src = str_replace("f2","f1",$src);?>
<div class="textolog"> <span class="bienv">Bienvenido,</span><br>
<a href="/user/profile.php?id=<?php echo $USER->id; ?>"><?php echo $USER->firstname; ?> 
<?php echo $USER->lastname; ?></a><br>
<a class="cerrar_sesion" href="/login/logout.php?sesskey=<?php echo $USER->sesskey; ?>">Cerrar sesion</a> </div>
<img src="<?php echo $src; ?>" class="imagenperfil">
<?php }else{ ?>

<?php echo $OUTPUT->login_info() ?>
<?php } ?>

</div>
</div>
</div>
</div>

<?php echo $OUTPUT->standard_top_of_body_html() ?>


<?php if ($hasheader) { ?>
<header id="page-header" class="clearfix barra">

<?php if ($hasnavbar) { ?>

<div class="container-fluid">
<nav class="breadcrumb-button"><?php echo $PAGE->button; ?></nav>
<?php echo $OUTPUT->navbar(); ?>
</div>
<?php } ?>


<?php if (!empty($courseheader)) { ?>
<div id="course-header"><?php echo $courseheader; ?></div>
<?php } ?>
</header>
<?php } ?>
<div id="page" class="container-fluid">

 

<div id="page-content" class="row-fluid">

<?php if ($layout !== 'content-only') {
if ($layout === 'pre-and-post') { ?>
<aside id="region-pre" class="span4 block-region desktop-first-column region-content">
<?php } else if ($layout === 'side-pre-only') { ?>
<aside id="region-pre" class="span3 block-region desktop-first-column region-content">
<?php } ?>
<?php
if (!right_to_left()) {
echo $OUTPUT->blocks_for_region('side-pre');
} else if ($hassidepost) {
echo $OUTPUT->blocks_for_region('side-post');
}
?>
</aside>
<?php if ($layout === 'pre-and-post') {
?><?php // Close row-fluid and span9.
}
?>


<div id="region-bs-main-and-pre" class="span9">
<div class="row-fluid">


<?php echo $coursecontentheader; ?>

<div class="matine">
<?php echo $OUTPUT->main_content() ?>
</div> 
<?php echo $coursecontentfooter; ?>
</div></div>
</section>
<?php if ($layout == 'content-only'){
echo $OUTPUT->main_content();
} ?>

 

<?php
if ($layout === 'side-post-only' OR $layout === 'pre-and-post') { ?>
<aside id="region-post" class="span3 block-region region-content">
<?php if (!right_to_left()) {
echo $OUTPUT->blocks_for_region('side-post');
} else {
echo $OUTPUT->blocks_for_region('side-pre');
} ?>
</aside>
<?php } ?>
<?php } ?>
</div>

<footer id="page-footer">
<?php echo $OUTPUT->standard_footer_html(); ?>
</footer>

<?php echo $OUTPUT->standard_end_of_body_html() ?>

</body>
</html>

 

 

 

 

Promedio de valoraciones: -