Esempio n. 1
0
 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();
     }
 }
Esempio n. 2
0
        }
        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 &lt;/body&gt; 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;">
            <a class="button b" href="<?php 
echo $this->route('controller=help&clearlog=1');
?>
">Clear error log</a>
            <?php 
if (nextendIsWordPress()) {
    ?>
                <br /><br /><br />
                <p>You can disable this log on the Nextend configuration with "<b>Log possible problems</b>" parameter: <a class="button small" href="<?php 
    echo admin_url('options-general.php?page=nextend_settings_page');
    ?>
">Nextend configuration</a></p>
Esempio n. 3
0
 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();
     }
 }