Proyectos de Subversion Moodle

Rev

Rev 1298 | Rev 1300 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1298 Rev 1299
Línea 2206... Línea 2206...
2206
 
2206
 
2207
            }
2207
            }
2208
        }
2208
        }
2209
        return $html;
2209
        return $html;
-
 
2210
    }
-
 
2211
 
-
 
2212
    public function render_statics_blocks($userid = null)
-
 
2213
    {
-
 
2214
        global $USER;
-
 
2215
 
-
 
2216
        if (!$userid) {
-
 
2217
            $userid = $USER->id;
-
 
2218
        }
-
 
2219
 
-
 
2220
        // Instanciamos StaticsBlocks para renderizar los bloques
-
 
2221
        $statics_blocks = new \StaticsBlocks(
-
 
2222
            'side-pre',
-
 
2223
            ['messageteacher', 'comments', 'cesa_course_rating', 'cesa_notes']
-
 
2224
        );
-
 
2225
 
-
 
2226
        $blocks = $statics_blocks->renderBlocks();
-
 
2227
 
-
 
2228
        return $blocks;
2210
    }
2229
    }