Exemplo n.º 1
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>