Example #1
0
<div id="plugin_settings">
	<?php 
$result = '';
$forumLink = "http://forums.hotarucms.org/resources/";
if ($h->vars['settings_plugin']) {
    $displayName = ucfirst(make_name($plugin)) . ' v.' . $pluginData->plugin_version;
    $urlLink = $pluginData->plugin_resourceId != 0 ? $forumLink . $pluginData->plugin_resourceId : null;
    $urlHref = $urlLink ? '<a href="' . $urlLink . '" target="_blank" class="btn btn-primary">' . $displayName . '&nbsp;&nbsp;<i class="fa fa-comments"></i></a>' : '<a href="#" class="btn btn-info">' . $displayName . '</a>';
    echo '<ul class="nav nav-tabs" id="Admin_Plugins_Tab">';
    echo '<li>' . $urlHref . '</li>';
    $h->pluginHook('admin_plugin_tabLabel_pre_first', $plugin);
    echo '<li class="active"><a href="#settings" data-toggle="tab">Settings</a></li>
                        <li><a href="#home" data-toggle="tab">Overview</a></li>
                        <li><a href="#about" data-toggle="tab">About</a></li> 
                        <li class="pull-right dropdown">';
    echo \Libs\PluginSettings::getSettingsDropdownList($h, "Other Plugins");
    echo '</li>';
    $h->pluginHook('admin_plugin_tabLabel_after_last', $plugin);
    echo '</ul>';
    echo '<div class="tab-content">';
    echo '<br/>';
    $h->pluginHook('admin_plugin_tabContent_pre_first', $plugin);
    echo '<div class="form tab-pane active" id="settings">';
    $result = $h->pluginHook('admin_plugin_settings', $plugin);
    if (!$result) {
        echo "No settings found for this plugin";
    }
    echo '</div>';
    echo '<div class="tab-pane" id="home">';
    echo 'Latest Version : ' . $plugin_latest_version;
    echo '<br/>';
Example #2
0
$h->pluginHook('plugins_top');
$h->template('admin_sidebar');
$h->showMessages();
?>

<div class="bs-example bs-example-tabs">
    <ul id="myTab" class="nav nav-tabs" role="tablist">
      <li class="active"><a href="#main" role="tab" data-toggle="tab">Main</a></li>
      <li><a href="#performance" role="tab" data-toggle="tab">Performance</a></li>
      <li><a href="#mail" role="tab" data-toggle="tab">Mail</a></li>
<!--      <li><a href="#spam" role="tab" data-toggle="tab">Spam</a></li>-->
      <li><a href="#security" role="tab" data-toggle="tab">Security</a></li>
<!--      <li><a href="#notifications" role="tab" data-toggle="tab">Notifications</a></li>-->
      <li class="dropdown">
        <?php 
echo \Libs\PluginSettings::getSettingsDropdownList($h);
?>
      </li>
    </ul>


<?php 
$page = 'settings';
$active = " active";
$names = array('Main', 'Performance', 'Mail', 'Security', 'Notifications');
echo '<div class="tab-content">';
foreach ($names as $name) {
    echo '<div class="tab-pane fade-in ' . $active . '" id="' . strtolower($name) . '">';
    $h->template($page . '/' . strtolower($name), 'admin');
    if ($active == " active") {
        $active = '';