}
if ($theme->toInstallOutput) {
    $message = new GrlxAlert();
    //	$alert_output .= $message->info_dialog($theme->toInstallOutput);
}
// Assignment section
$button->url($_SERVER['SCRIPT_NAME']);
$button->query('toggle-multi=true');
$sl->setName('new_tone_id');
$sl->setList($theme->toneSelectList);
$sl->setValueID('id');
$sl->setValueTitle('title');
if ($theme->multiTone < 1) {
    $button->title('With this you can set a different theme or tone for nearly every page of your site.');
    $button->tap('Turn on multi-theme');
    $action_output = $button->button_secondary('power');
    $instruction = 'By default, your site uses one theme &amp; tone. Choose it here.';
    $label_output = 'Site theme &amp; tone';
    $form->input_hidden('sel');
    $form->value('milieu-' . $theme->milieuID['tone']);
    $list_output = $form->paint();
    $sl->setCurrent($theme->defaultToneID);
    $tone_select = $sl->buildSelect();
} else {
    $button->title('Serve one theme/tone to your entire site.');
    $button->tap('Turn off multi-theme');
    $action_output = $button->button_tertiary('power');
    $instruction = 'Multi-theme allows you to choose a unique setting for every group of pages listed here.';
    $label_output = 'Apply to selection';
    // Get book sections
    $list = new GrlxList();
                $comment_link->tap('Reset service');
                $comment_link->query("reset_comments={$comments_info['service_id']}");
                $reset_output = $comment_link->button_tertiary('reset');
                $comment_output .= '<div class="note reset">Do you need to switch to another comment service?' . $reset_output . '</div>';
            } else {
                $comment_link->tap('Setup');
                $comment_output = '<p>You can choose one of these comment services to plug into Grawlix. <strong>Sign up with your chosen service and follow their directions.</strong> Next, we’ll need you to enter a unique ID that they will provide.</p>';
                $comment_output .= '<div class="row comments">';
                foreach ($section_group['items'] as $key => $val) {
                    $comment_link->query("service_id={$val['service_id']}");
                    $comment_output .= '<div>';
                    $comment_output .= '<a href="' . $val['url'] . '">';
                    $comment_output .= '<img class="logo" src="img/' . $val['logo'] . '" alt="' . $val['title'] . '" />';
                    $comment_output .= '<p>Sign up with ' . $val['title'] . '</p>';
                    $comment_output .= '</a>';
                    $comment_output .= $comment_link->button_secondary('select');
                    $comment_output .= '</div>';
                }
                $comment_output .= '</div>';
            }
            $view->group_contents($comment_output);
            $content_output .= $view->format_group() . '<hr/>';
            unset($heading_list);
        }
    }
}
if ($widget_info) {
    $view->group_h2('Widgets');
    $view->group_instruction('If your site theme supports widgets, you can turn them on here.');
    $edit_link->title('Edit this widget’s info.');
    $form->title('Show/hide this widget on your site.');
\t\t\t</a>
\t\t</div>
\t\t</li>
EOL;
    }
    $page_list_output .= '</ul>' . "\n";
}
$view->page_title('Static pages');
$view->tooltype('sttc');
$view->headline('Static pages');
$link->url('site.nav.php');
$link->tap('Edit order and URLs');
$action_output = $link->text_link('menu');
$link->url('sttc.xml-new.php');
$link->tap('New page');
$action_output .= $link->button_secondary('new');
$view->action($action_output);
/*****
 * Display
 */
$output = $view->open_view();
$output .= $view->view_header();
$output .= $modal->modal_container();
$output .= $alert_output;
print $output;
?>
	<section class="sttc">
<?php 
if ($page_list_output) {
    print $page_list_output;
} else {