X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Faction.php;h=fce59ba8a008f54583f400e7721ee4cbbc8d1c61;hb=4cdb3e64ccd98953dc4477aa2ca9f0bcab7fcec6;hp=0ba4b8b8ff1dbb03c594d0711f48c0ced2466ec6;hpb=c6f9baf78cce7ca2e2e5d2f6c4752209e0a74616;p=quix0rs-gnu-social.git diff --git a/lib/action.php b/lib/action.php index 0ba4b8b8ff..fce59ba8a0 100644 --- a/lib/action.php +++ b/lib/action.php @@ -293,11 +293,19 @@ class Action extends HTMLOutputter // lawsuit { if (Event::handle('StartShowScripts', array($this))) { if (Event::handle('StartShowJQueryScripts', array($this))) { - $this->script('jquery.min.js'); - $this->script('jquery.form.min.js'); - $this->script('jquery.cookie.min.js'); - $this->inlineScript('if (typeof window.JSON !== "object") { $.getScript("'.common_path('js/json2.min.js').'"); }'); - $this->script('jquery.joverlay.min.js'); + if (common_config('site', 'minify')) { + $this->script('jquery.min.js'); + $this->script('jquery.form.min.js'); + $this->script('jquery.cookie.min.js'); + $this->inlineScript('if (typeof window.JSON !== "object") { $.getScript("'.common_path('js/json2.min.js').'"); }'); + $this->script('jquery.joverlay.min.js'); + } else { + $this->script('jquery.js'); + $this->script('jquery.form.js'); + $this->script('jquery.cookie.js'); + $this->inlineScript('if (typeof window.JSON !== "object") { $.getScript("'.common_path('js/json2.js').'"); }'); + $this->script('jquery.joverlay.js'); + } Event::handle('EndShowJQueryScripts', array($this)); } if (Event::handle('StartShowStatusNetScripts', array($this)) && @@ -602,9 +610,11 @@ class Action extends HTMLOutputter // lawsuit 'class' => 'input_form_nav_tab'); if ($tag == 'status') { + // We're actually showing the placeholder form, + // but we special-case the 'Status' tab as if + // it were a small version of it. $attrs['class'] .= ' current'; } - $this->elementStart('li', $attrs); $this->element('a', @@ -615,15 +625,18 @@ class Action extends HTMLOutputter // lawsuit $this->elementEnd('ul'); + $attrs = array('class' => 'input_form current', + 'id' => 'input_form_placeholder'); + $this->elementStart('div', $attrs); + $form = new NoticePlaceholderForm($this); + $form->show(); + $this->elementEnd('div'); + foreach ($tabs as $tag => $title) { $attrs = array('class' => 'input_form', 'id' => 'input_form_'.$tag); - if ($tag == 'status') { - $attrs['class'] .= ' current'; - } - $this->elementStart('div', $attrs); $form = null; @@ -668,6 +681,9 @@ class Action extends HTMLOutputter // lawsuit function showCore() { $this->elementStart('div', array('id' => 'core')); + $this->elementStart('div', array('id' => 'aside_primary_wrapper')); + $this->elementStart('div', array('id' => 'content_wrapper')); + $this->elementStart('div', array('id' => 'site_nav_local_views_wrapper')); if (Event::handle('StartShowLocalNavBlock', array($this))) { $this->showLocalNavBlock(); Event::handle('EndShowLocalNavBlock', array($this)); @@ -681,6 +697,9 @@ class Action extends HTMLOutputter // lawsuit Event::handle('EndShowAside', array($this)); } $this->elementEnd('div'); + $this->elementEnd('div'); + $this->elementEnd('div'); + $this->elementEnd('div'); } /**