|
@@ -290,14 +290,12 @@ Plugin::addHook('widget',function(&$models){
|
|
|
Plugin::need('dashboard/DashboardWidget');
|
|
|
|
|
|
|
|
|
- if(empty($widget->meta['label'])){
|
|
|
- $widget->meta['label'] = 'Bloc Menu';
|
|
|
- }else{
|
|
|
- $widget->meta['label'] = '';
|
|
|
- $widget->meta['icon'] = '';
|
|
|
- }
|
|
|
-
|
|
|
+ if(empty($widget->meta['label'])) $widget->meta['label'] = 'Bloc Menu';
|
|
|
if(empty($widget->meta['url'])) $widget->meta['url'] = '';
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
ob_start();
|
|
|
|
|
|
$icon = empty($widget->meta['icon']) ? 'far fa-bookmark' : $widget->meta['icon'];
|
|
@@ -306,7 +304,9 @@ Plugin::addHook('widget',function(&$models){
|
|
|
$url = navigation_meta_link($widget->meta['url']);
|
|
|
$label = navigation_meta_link($widget->meta['label']);
|
|
|
|
|
|
+
|
|
|
?>
|
|
|
+
|
|
|
<div style="background: <?php echo $color; ?>" class="widgetNavigationContainer">
|
|
|
<?php if(!empty($widget->meta['label'])): ?>
|
|
|
<a href="<?php echo $url; ?>" <?php if(!empty($widget->meta['redirect'])) echo 'target="_blank"'; ?> >
|
|
@@ -321,11 +321,15 @@ Plugin::addHook('widget',function(&$models){
|
|
|
<?php
|
|
|
|
|
|
$widget->content = ob_get_clean();
|
|
|
+ $widget->headerBackground = $widget->meta['color'];
|
|
|
+ $widget->label = '';
|
|
|
+ $widget->icon = '';
|
|
|
};
|
|
|
|
|
|
$model->configure = function($widget){
|
|
|
if(empty($widget->meta['label'])) $widget->meta['label'] = 'Bloc Menu';
|
|
|
if(empty($widget->meta['url'])) $widget->meta['url'] = '';
|
|
|
+ if(empty($widget->meta['redirect'])) $widget->meta['redirect'] = '';
|
|
|
?>
|
|
|
<div id="navigation-widget-form">
|
|
|
<label for="">Icone / Titre / Couleur :</label>
|