static function show() { if (count(self::$error)) { foreach (self::$error as $error) { echo '<div style="max-width: 700px;" class="box y"><h3>' . $error[0] . '</h3><p>' . $error[1] . '</p></div>'; } self::$error = array(); } if (count(self::$success)) { foreach (self::$success as $success) { echo '<div style="max-width: 700px;" class="box g"><h3>' . $success[0] . '</h3><p>' . $success[1] . '</p></div>'; } self::$success = array(); } if (count(self::$notice)) { foreach (self::$notice as $notice) { echo '<div style="max-width: 700px;" class="box r"><h3>' . $notice[0] . '</h3><p>' . $notice[1] . '</p></div>'; } self::$notice = array(); } if (count(self::$message)) { foreach (self::$message as $message) { echo '<div style="max-width: 700px;" class="box"><h3>' . $message[0] . '</h3><p>' . $message[1] . '</p></div>'; } self::$message = array(); } }
echo NextendText::_('Possible problems'); ?> </h2> <div class="doc"> <?php if (nextendIsWordPress()) { $nextenderror = get_option('nextend_error'); if ($nextenderror !== false && is_array($nextenderror)) { if (isset($nextenderror['missinghead'])) { foreach ($nextenderror['missinghead'] as $url) { NextendMessage::error(NextendText::_('get_header() or wp_head() call is missing from the template!'), 'Related page: ' . $url . '<br /><br />Make sure that get_header() exists in the current template of the page or post at the beginning<br />Make sure that wp_head() exists before the closing </head> tag in the [theme folder]/header.php<br /><a href="http://codex.wordpress.org/Function_Reference/wp_head" target="_blank">http://codex.wordpress.org/Function_Reference/wp_head</a>'); } } if (isset($nextenderror['missingfooter'])) { foreach ($nextenderror['missingfooter'] as $url) { NextendMessage::error(NextendText::_('get_footer() or wp_footer() call is missing from the template!'), 'Related page: ' . $url . '<br /><br />Make sure that get_footer() exists in the current template of the page or post at the end of the file<br />Make sure that wp_footer() exists before the closing </body> tag in the [theme folder]/footer.php<br /><a href="http://codex.wordpress.org/Function_Reference/wp_footer" target="_blank">http://codex.wordpress.org/Function_Reference/wp_footer</a>'); } } } } ob_start(); NextendMessage::show(); $messages = ob_get_clean(); if ($messages) { echo $messages; } else { NextendMessage::success(NextendText::_('Everything_seems_fine')); NextendMessage::show(); } ?> <div style="margin: 0 15px;">
function importlocalAction() { if ($this->canDo('slider.create')) { $path = NEXTEND_SMART_SLIDER2_ASSETS . 'admin/smart/'; if (NextendRequest::getInt('full', 0)) { $path .= 'full_smart/'; } else { $path .= 'free_smart/'; } $filepath = $path . basename(NextendRequest::getVar('slider', '')) . '.smart'; if (NextendFilesystem::fileexists($filepath)) { $sliderid = $this->importFile($filepath); header('LOCATION: ' . $this->route('controller=sliders&view=sliders_slider&action=dashboard&sliderid=' . $sliderid)); exit; } else { NextendMessage::error(NextendText::_('Error'), NextendText::_('The .smart file not found!')); } $this->display('default', 'create'); } else { $this->noaccess(); } }