$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();
    $list->draggable(false);
    $heading_list[] = array('value' => 'Select', 'class' => null);
    $heading_list[] = array('value' => 'Group', 'class' => 'nudge');
    $heading_list[] = array('value' => 'Theme/tone', 'class' => 'nudge');
    $list->row_class('theme');
    $list->headings($heading_list);
    $list_output = $list->format_headings();
    $book = new GrlxComicBook();
    $book->getMarkerList();
    // Chapters
    if ($book->markerList) {
     $comment_output = $list->format_headings();
     $vis_link = new GrlxLinkStyle();
     $vis_link->url($comments_info['url']);
     $vis_link->title('Go to ' . $comments_info['title']);
     $vis_link->action('extlink');
     $comment_link->title('Edit your user info.');
     $comment_link->action('edit');
     $comment_link->query("service_id={$comments_info['service_id']}");
     $action_output = $vis_link->icon_link() . $comment_link->icon_link();
     $comment_list[$comments_info['service_id'] . '||1'] = array($comments_info['title'], $comments_info['value'], $action_output);
     $list->content($comment_list);
     $comment_output .= $list->format_content();
     $comment_link->url('xtra.social.php');
     $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>';
     }
	}
}*/
if ($theme_info['url'] !== null && $theme_info['url'] != 'None listed.') {
    if (substr($theme_info['url'], 0, 7) != 'http://') {
        $theme_info['url'] = 'http://' . $theme_info['url'];
    }
    $theme_info['url'] = '<a href="' . $theme_info['url'] . '">' . $theme_info['url'] . '</a>';
}
// Output for theme meta
$meta_list = array('Description' => $theme_info['description'], 'Author' => $theme_info['author'], 'URL' => $theme_info['url'], 'Version' => $theme_info['version'], 'Installed' => $theme_info['date']);
// Add actions for this tone
if ($theme_info['user_made'] == 1) {
    $link->url($_SERVER['SCRIPT_NAME']);
    $link->query("theme_id={$theme_id}&delete_id={$tone_id}");
    $link->tap('Delete');
    $tone_action_output .= $link->button_tertiary('delete');
}
$link->url('site.theme-dupetone.ajax.php');
$link->reveal(true);
$link->query("theme_id={$theme_id}&tone_id={$tone_id}");
$link->tap('Create new');
$tone_action_output .= $link->button_secondary('new');
// Build a list of all tones for this theme
$cols = array('id', 'title');
$result = $db->where('theme_id', $theme_id)->orderBy('title', 'ASC')->get('theme_tone', NULL, $cols);
if ($result) {
    foreach ($result as $item) {
        $tone_list[$item['id']] = ucfirst($item['title']);
    }
}
if (count($tone_list) > 1) {