templates/themes/blank/includes/view_helpers.php in pave-0.9.0 vs templates/themes/blank/includes/view_helpers.php in pave-0.10.0
- old
+ new
@@ -1,14 +1,20 @@
<?
- function editmode() {
+
+ function is_edit_mode() {
global $c;
if ($c->isEditMode()) {
- echo "editMode";
+ echo "edit-mode";
}
}
function image_tag($t, $img) {
$imgPath = ($t->getThemePath()) . "/images/";
echo "<img src='" . $imgPath . $img . "' />";
}
+
+ function has_blocks($area) {
+ global $c;
+ return $area->getTotalBlocksInArea($c) > 0;
+ }
?>
\ No newline at end of file