Ejemplo n.º 1
0
<p>Change:</p>
<ul>
  <li>Artist name</li>
  <li>Copyright year</li>
  <li>Date format</li>
  <li>Google Analytics ID</li>
  <li>Site description</li>
  <li>Time zone</li>
  <li>Username/password</li>
</ul>


EOL;
// Group
$view->group_h2('I want to …');
//$view->group_instruction('');
$view->group_contents($link_set_output);
$content_output .= $view->format_group() . '<hr/>' . "\n";
/*
$view->group_h2('Coming up');
$view->group_instruction('The next comic will be …');
$view->group_contents($next_output);
$content_output .= $view->format_group().'<hr/>'."\n";
*/
/* ! Display * * * * * * * */
$output = $view->open_view();
$output .= $view->view_header();
$output .= $alert_output;
$output .= $content_output;
$output .= $view->close_view();
print $output;
<input type="text" style="width:10rem" name="title" id="title" value="{$ad_info['title']}"/>

<label for="code">AdSense Code</label>
<textarea name="code" id="code" rows="10">{$ad_info['code']}</textarea>

EOL;
}
/*****
 * Display
 */
$view->page_title('Adsense editor');
$view->headline('AdSense <span>' . $ad_info['title'] . '</span>');
$view->tooltype('ad');
$view->group_css('ad');
print $view->open_view();
print $view->view_header();
?>

<div id="edit_modal" class="reveal-modal" data-reveal></div>

<?php 
echo $alert_output;
?>
<p><?php 
echo $instruction_output;
?>
</p>
		<form accept-charset="UTF-8" action="ad.adsense-edit.php" method="post" enctype="multipart/form-data">
<?php 
if ($ad_output) {
    echo $ad_output;
            $slot_output .= '<img class="preview" src="' . $this_image . '"/>';
        } else {
            $slot_output .= '<span class="no-image">no image</span>';
        }
        $slot_output .= '</div>';
    }
    $view->group_contents($slot_output);
    $slot_output = $view->format_group() . $form->form_buttons();
}
if ($options_list) {
    $view->tooltype('tone');
    $view->headline($tone_title_output);
    $view->action($tone_action_output);
    $form->multipart(true);
    $form->send_to($_SERVER['SCRIPT_NAME']);
    $form_output = $view->view_header();
    $form_output .= $form->open_form();
    $form->input_hidden('theme_id');
    $form->value($theme_id);
    $form_output .= $form->paint();
    $form->input_hidden('tone_id');
    $form->value($tone_id);
    $form_output .= $form->paint();
    $form_output .= $palette_output;
    $form_output .= $styles_output;
    $form_output .= $slot_output;
    $form_output .= $form->close_form();
} else {
    $form_output = <<<EOL
\t<div class="panel">
\t\t<h3>No tone options</h3>