diff --git a/e107_admin/credits.php b/e107_admin/credits.php index 265adb034..b9d914e31 100644 --- a/e107_admin/credits.php +++ b/e107_admin/credits.php @@ -22,7 +22,7 @@ $css = "body { text-align: left; font-size:13px; line-height:1.5em; font-wei a:hover { color:#134B63; text-decoration:none; } .bold { font-weight:bold; } .center { text-align:center; } - .wrapper { width:800px; height:415px; margin:0px auto 0px 0px; padding-bottom:10px; background-color: #ebeef0; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; } + .wrapper { width:800px; height:415px; margin:0px auto 0px 0px; padding-bottom:10px; } .wrapper-top { height:10px; } .wrapper-bottom { height:6px; } .wrapper-middle { min-height:389px; background-color:#FDFDFD0; } diff --git a/e107_admin/newspost.php b/e107_admin/newspost.php index 5662b3f44..1d4684827 100644 --- a/e107_admin/newspost.php +++ b/e107_admin/newspost.php @@ -319,7 +319,7 @@ class news_sub_form_ui extends e_admin_form_ui if($approved == 0) { //$text = $this->submit_image('submitnews['.$id.']', 1, 'execute', NWSLAN_58); - $text = "".ADMIN_EXECUTE_ICON.""; + $text = "".ADMIN_EXECUTE_ICON.""; // NWSLAN_103; } else // Already submitted; @@ -327,7 +327,7 @@ class news_sub_form_ui extends e_admin_form_ui } - $text .= $this->submit_image('etrigger_delete['.$id.']', $id, 'delete', LAN_DELETE.' [ ID: '.$id.' ]', array('class' => 'action delete'.$delcls)); + $text .= $this->submit_image('etrigger_delete['.$id.']', $id, 'delete', LAN_DELETE.' [ ID: '.$id.' ]', array('class' => 'btn btn-large action delete'.$delcls)); $text .= ""; return $text; } diff --git a/e107_admin/prefs.php b/e107_admin/prefs.php index 99e30cc64..1e75c9fec 100644 --- a/e107_admin/prefs.php +++ b/e107_admin/prefs.php @@ -1452,9 +1452,8 @@ $text .= " ".PRFLAN_48.": - -
".$frm->radio_multi('user_tracking', array('cookie' => PRFLAN_49, 'session' => PRFLAN_50), $pref['user_tracking'])."
- ".PRFLAN_55.":
".$frm->text('cookie_name', $pref['cookie_name'], 20)." + + ".$frm->radio_multi('user_tracking', array('cookie' => PRFLAN_49, 'session' => PRFLAN_50), $pref['user_tracking'])." ".PRFLAN_55.": ".$frm->text('cookie_name', $pref['cookie_name'], 20)." @@ -1731,8 +1730,9 @@ $text .= " $js_types = array( - array('id' => 'prototype', 'name'=> 'Prototype (local)'), array('id' => 'jquery', 'name'=> 'jQuery (local)'), + array('id' => 'prototype', 'name'=> 'Prototype (local)'), + ); //TODO // separate switch for CDN.. or automatic fall-back. diff --git a/e107_admin/search.php b/e107_admin/search.php index 06e9c627e..bd3506bc7 100644 --- a/e107_admin/search.php +++ b/e107_admin/search.php @@ -243,14 +243,14 @@ if ($query[0] == 'settings') ".SEALAN_12." - + ".$frm->radio_multi('time_restrict', array(0 => LAN_DISABLED, 1 => SEALAN_13), $search_prefs['time_restrict'])."  ".$frm->text('time_secs', $tp -> toForm($search_prefs['time_secs']), 3, 'class=tbox&size=5')." ".SEALAN_14." ".SEALAN_3." - + ".$frm->radio_switch('search_sort', $search_prefs['mysql_sort'], 'MySQL', SEALAN_31)."  ".$frm->text('php_limit', $tp -> toForm($search_prefs['php_limit']), 5, 'class=tbox&size=5')." ".SEALAN_32." ".SEALAN_49." @@ -385,7 +385,7 @@ else - ".ADMIN_EDIT_ICON." + ".ADMIN_EDIT_ICON." "; @@ -411,7 +411,7 @@ else - ".ADMIN_EDIT_ICON." + ".ADMIN_EDIT_ICON." "; diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index ebc14a282..bab5bb429 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -2472,7 +2472,7 @@ class e_form } $thsrc = $tp->thumbUrl(vartrue($parms['pre']).$value, $thparms, varset($parms['thumb_urlraw'])); $alt = $src; - $ttl = ''.$alt.''; + $ttl = ''.$alt.''; $value = ''.$ttl.''; } else diff --git a/e107_handlers/theme_handler.php b/e107_handlers/theme_handler.php index 29da7572b..e0d9f53b4 100644 --- a/e107_handlers/theme_handler.php +++ b/e107_handlers/theme_handler.php @@ -1722,7 +1722,7 @@ class themeHandler $custom = array(); - + /* foreach ($vars['layouts'] as $layout) { foreach ($layout as $key=>$val) @@ -1730,31 +1730,49 @@ class themeHandler $name = $val['@attributes']['name']; unset($val['@attributes']['name']); $lays[$name] = $val; + if(isset($val['customPages'])) { - $custom[$name] = array_filter(explode(" ", $val['customPages'])); + $cusArray = explode(" ", $val['customPages']); + $custom[$name] = array_filter($cusArray); } if(isset($val['custompages'])) { + $cusArray = explode(" ", $val['custompages']); $custom[$name] = array_filter(explode(" ", $val['custompages'])); } } } + */ + + foreach($vars['layouts']['layout'] as $k=>$val) + { + $name = $val['@attributes']['name']; + unset($val['@attributes']['name']); + $lays[$name] = $val; + + if(is_string($val['custompages'])) + { + $custom[$name] = array_filter(explode(" ", $val['custompages'])); + } + } + $vars['layouts'] = $lays; $vars['path'] = $path; $vars['custompages'] = $custom; $mes = e107::getMessage(); // DEBUG - /* - if($path == "bootstrap" || $path == "e107v4a") + + if($path == "bootstrap" ) { + $mes->addDebug("

".$path."

"); $mes->addDebug(print_a($vars,true)); $mes->addDebug("
"); } - */ + return $vars; }