add design tool menu to appropriate pages

This commit is contained in:
friendica
2013-09-03 19:55:26 -07:00
parent 50d4206e9f
commit ab1c9dc9c9
7 changed files with 63 additions and 2 deletions
+17 -1
View File
@@ -1826,4 +1826,20 @@ function json_decode_plus($s) {
$x = json_decode(str_replace(array('\\"','\\\\'),array('"','\\'),$s),true);
return $x;
}
}
function design_tools() {
// FIXME - this should be a template
$o = '<div class="widget design-tools">';
$o .= '<h3>' . t('Design') . '</h3>';
$o .= '<a href="blocks">' . t('Blocks') . '</a>' . EOL;
$o .= '<a href="menu">' . t('Menus') . '</a>' . EOL;
$o .= '<a href="layout">' . t('Layouts') . '</a>' . EOL;
$o .= '<a href="webpages">' . t('Pages') . '</a>' . EOL;
$o .= '</div>';
return $o;
}