diff --git a/e107_admin/header.php b/e107_admin/header.php index f85d6f398..e9530f505 100644 --- a/e107_admin/header.php +++ b/e107_admin/header.php @@ -541,7 +541,7 @@ echo "
\n"; echo getModal(); -// echo getAlert(); +echo getAlert(); function getModal($caption = '', $type='') { @@ -575,11 +575,11 @@ echo getModal(); function getAlert($caption='') { - - return ' '; + // style="box-shadow:0px 15px 8px #000;width:300px;position:absolute;left:40%;right:40%;top:15%;z-index:10000" + + + + return ''; } diff --git a/e107_core/templates/admin_icons_template.php b/e107_core/templates/admin_icons_template.php index 175b3d44b..6cf680831 100644 --- a/e107_core/templates/admin_icons_template.php +++ b/e107_core/templates/admin_icons_template.php @@ -443,10 +443,11 @@ define("E_32_TRUE", ""); define("ADMIN_TRUE_ICON", ""); define("ADMIN_FALSE_ICON", ""); - + define("ADMIN_WARNING_ICON", ""); + define("ADMIN_EDIT_ICON", ""); define("ADMIN_DELETE_ICON", ""); - define("ADMIN_WARNING_ICON", ""); + define("ADMIN_ADD_ICON", ""); define("ADMIN_INFO_ICON", ""); define("ADMIN_CONFIGURE_ICON", ""); diff --git a/e107_handlers/admin_ui.php b/e107_handlers/admin_ui.php index a3b96db54..d6ca3abdd 100644 --- a/e107_handlers/admin_ui.php +++ b/e107_handlers/admin_ui.php @@ -1549,6 +1549,16 @@ class e_admin_dispatcher /*$var[$key]['text'] = $val['caption']; $var[$key]['link'] = (vartrue($val['url']) ? $tp->replaceConstants($val['url'], 'abs') : e_SELF).'?mode='.$tmp[0].'&action='.$tmp[1]; $var[$key]['perm'] = $val['perm']; */ + if(!empty($val['modal'])) + { + $var[$key]['link_class'] = ' e-modal'; + if(!empty($val['modal-caption'])) + { + $var[$key]['link_data'] = array('data-modal-caption' => $val['modal-caption']); + } + + } + } diff --git a/e107_handlers/sitelinks_class.php b/e107_handlers/sitelinks_class.php index 8b1b93e24..c7103728b 100644 --- a/e107_handlers/sitelinks_class.php +++ b/e107_handlers/sitelinks_class.php @@ -1177,13 +1177,16 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; } $search[7] = '/\{LINK_CLASS\}(.*?)/si'; $search[8] = '/\{SUB_CLASS\}(.*?)/si'; $search[9] = '/\{LINK_IMAGE\}(.*?)/si'; - + $search[10] = '/\{LINK_DATA\}/si'; + foreach (array_keys($e107_vars) as $act) { if (isset($e107_vars[$act]['perm']) && !getperms($e107_vars[$act]['perm'])) // check perms first. { continue; } + + if (isset($e107_vars[$act]['header'])) { @@ -1209,6 +1212,9 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; } // print_a($e107_vars[$act]); $replace = array(); + + + $rid = str_replace(array(' ', '_'), '-', $act).($id ? "-{$id}" : ''); @@ -1272,6 +1278,19 @@ i.e-cat_users-32{ background-position: -555px 0; width: 32px; height: 32px; } { $replace[9] = varset($e107_vars[$act]['image']); } + + if(!empty($e107_vars[$act]['link_data'])) + { + + $dataTmp = array(); + foreach($e107_vars[$act]['link_data'] as $k=>$v) + { + $dataTmp[] = $k.'="'.$v.'"'; + } + + $replace[10] = implode(" ", $dataTmp); // $e107_vars[$act]['link_data'] + + } if($rid == 'logout' || $rid == 'home' || $rid == 'language') diff --git a/e107_themes/bootstrap/admin_style.css b/e107_themes/bootstrap/admin_style.css index 437934fc8..73ac6f326 100644 --- a/e107_themes/bootstrap/admin_style.css +++ b/e107_themes/bootstrap/admin_style.css @@ -1017,6 +1017,16 @@ li.rssRow > div { } + +/* uiAlert Styling */ + +.notifications{position:fixed;}.notifications.top-right{right:10px;top:25px;} +.notifications.top-left{left:10px;top:25px;} +.notifications.bottom-left{left:10px;bottom:25px;} +.notifications.bottom-right{right:10px;bottom:25px;} +.notifications>div{position:relative;z-index:9999;margin:5px 0px;} +.notifications.center{top:30%;left:0;width:100%;}.notifications.center>div{margin:5px auto;width:20%;text-align:center;} + /* body { background-color: rgb(68, 68, 68); } diff --git a/e107_themes/bootstrap/admin_template.php b/e107_themes/bootstrap/admin_template.php index 8c199bff8..8f9f2667a 100644 --- a/e107_themes/bootstrap/admin_template.php +++ b/e107_themes/bootstrap/admin_template.php @@ -331,13 +331,13 @@ $E_ADMIN_MENU['start'] = ' $E_ADMIN_MENU['button'] = '