Exemplo n.º 1
0
            $publish_frequency_output .= '<option selected="selected" value="' . $key . '">- ' . $val . '</option>' . "\n";
        } else {
            $publish_frequency_output .= '<option value="' . $key . '">' . $val . '</option>' . "\n";
        }
    }
    $publish_frequency_output .= '</select>' . "\n";
}
$marker_output = '<p><a href="marker-type.list.php">Edit marker types</a> (chapter, scene, etc)</p>';
$new_title_output = '<input type="text" name="new_title" value="' . $book->info['title'] . '" size="16" style="width:16rem"/>' . "\n";
$view->page_title("Book: {$book_info['title']}");
$view->tooltype('chap');
$view->headline('Book <span>' . $book->info['title'] . '</span>');
// Group
$view->group_h2('Title');
$view->group_instruction('Change the name of your book.');
$view->group_contents($new_title_output);
$content_output .= $view->format_group() . '<hr />';
// Group
$view->group_h2('Frequency');
$view->group_instruction('How often you publish new pages.');
$view->group_contents($publish_frequency_output);
$content_output .= $view->format_group() . '<hr />';
// Group
$link->title('Learn more about markers');
$link->url('http://www.getgrawlix.com/docs/' . DOCS_VERSION . '/markers');
$link->tap('Markers');
$view->group_h2('Markers');
$view->group_instruction($link->external_link() . ' are sections of a book, like chapters, scenes or supplemental material.');
$view->group_contents($marker_output);
$content_output .= $view->format_group();
/*****
if ($palette_list) {
    $view->group_h3('Palette');
    $view->group_css('tone colors');
    $palette_output = '<ul class="option-list">';
    foreach ($palette_list as $label => $val) {
        unset($this_option);
        $this_label = ucfirst($val['title']);
        $this_option = '<input type="text" id="color-' . $label . '" name="input[' . $label . ']" value="' . $val['value'] . '" />';
        $palette_output .= '<li><h5><span>' . $this_option . '</span>' . $this_label . '</h5></li>';
        $js_call .= "\$('#" . $label . "').css('background-color', '" . $val['value'] . "')\n";
    }
    $palette_output .= '</ul></div>';
    $l = new GrlxLayout();
    $l->filler = '&nbsp;';
    $layout_output = '<div class="palette">' . $l->decode($theme_info['palette']);
    $view->group_contents($palette_output . $layout_output);
    $palette_output = $view->format_group() . $form->form_buttons() . '<hr class="sub"/>';
}
if ($options_list) {
    $view->group_h3('Styles');
    $view->group_css('tone');
    $styles_output = '<ul class="option-list">';
    $x = 1;
    foreach ($options_list as $type => $set) {
        foreach ($set as $label => $val) {
            unset($this_option);
            $this_label = ucfirst($val['title']);
            if ($val['type'] == 'border-style') {
                $this_option = build_select_val_as_key("input[{$label}]", array('none', 'hidden', 'dotted', 'dashed', 'solid', 'double', 'groove', 'ridge'), $val['value']);
            }
            if ($val['type'] == 'border-width') {
Exemplo n.º 3
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;
Exemplo n.º 4
0
        $form->input_email("email[{$val['id']}]");
        $form->size(16);
        $form->value($val['email']);
        $details_output .= $form->paint();
        $details_output .= $form->form_buttons();
        $password_output = $form->new_password("password[{$val['id']}]");
        $password_output .= $form->form_buttons();
    }
}
$view->page_title('User info');
$view->tooltype('user');
$view->headline('User info');
$form->send_to($_SERVER['SCRIPT_NAME']);
$view->group_css('user');
$view->group_h2('Details');
$view->group_contents($details_output);
$content_output = $view->format_group() . '<hr />';
$view->group_h2('Password');
$view->group_css('user');
$view->group_contents($password_output);
$content_output .= $view->format_group();
/*****
 * Display
 */
$output = $view->open_view();
$output .= $view->view_header();
$output .= $alert_output;
$output .= $form->open_form();
$output .= $content_output;
$output .= $form->close_form();
$output .= $view->close_view();
\t\t\t\t\t\t{$action}
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</li>
EOL;
    }
    $all_themes_output .= '</ul>';
}
$view->page_title('Themes');
$view->tooltype('theme');
$view->headline('Themes');
$view->action($action_output);
$view->group_css('theme');
$view->group_h2('Assign');
$view->group_instruction($instruction);
$view->group_contents($assign_output);
$content_output .= $view->format_group() . '<hr/>';
$view->group_h3('List');
$view->group_css('theme');
$view->group_instruction('Manage your installed themes here.');
$view->group_contents($all_themes_output);
$content_output .= $view->format_group();
/* ! Display * * * * * * * */
$output = $view->open_view();
$output .= $view->view_header();
//$output .= '<div id="result"></div>';
$output .= $alert_output;
$output .= $content_output;
/*
$js_call = <<<EOL
	$('a[href="#"]').click(function(e){
$alert_output .= $fileops->check_or_make_dir('..' . $image_path);
$view->page_title('Link list');
$view->tooltype('link');
$view->headline('Link list');
if ($list_items) {
    $list->headings(array('Title', 'URL', 'Actions'));
    $list->content($list_items);
    $links_output = $list->format_headings();
    $links_output .= $list->format_content();
}
if (!$links_output) {
    $links_output = '<b>You have no links to other sites.</b>';
}
$view->group_css('link');
$view->group_h2('Your links');
$view->group_contents($links_output);
$content_output = $view->format_group() . '<hr />';
$form->multipart(true);
$form->send_to($_SERVER['SCRIPT_NAME']);
$form->input_title('input[title]');
$form->size('20');
$form->value('Site name');
$form_output = $form->paint();
$form->input_url('input[url]');
$form->value('http://');
$form_output .= $form->paint();
$form->input_file('icon_file');
$form->label('Icon');
$form_output .= $form->paint();
$form->contents($form_output);
$form_output = $form->build_form();
$quick_upload_field = <<<EOL
<form action="uploadtome.php" class="dropzone" method="post" enctype="multipart/form-data">
<div class="fallback">
  <input name="file[]" type="file" multiple />
</div>
</form>
EOL;
$link->url('./book.page-create.php');
$link->tap('Create one comic page');
$link->reveal(false);
$action_output = $link->button_secondary('new');
$view->action($action_output);
$view->group_css('page');
$view->group_h2('Upload images');
$view->group_instruction('Add page(s) to the end of your book.');
$view->group_contents($quick_upload_field);
$content_output .= $view->format_group() . "\n";
/*****
 * Display
 */
$view->page_title('Comic page creator');
$view->tooltype('page');
$view->headline('Create multiple comic pages');
$view->action($action_output);
$output = $view->open_view();
$output .= $view->view_header();
$output .= $alert_output;
//$output .= $modal->modal_container();
//$output .= $content_output;
print $output;
?>
Exemplo n.º 8
0
    foreach ($slot_list as $key => $val) {
        $link->query('slot_id=' . $key);
        $slot_list_content[$key] = array($val['title'], $val['max_width'] . ' &times; ' . $val['max_height'], $val['ad_count'], $link->icon_link());
    }
}
$list->content($slot_list_content);
$slot_list_output = $list->format_headings();
$slot_list_output .= $list->format_content();
///////// Assemble the overall page view.
$view->page_title('Advertisements');
$view->tooltype('ad');
$view->headline("Advertisements");
$view->group_css('ad');
$view->group_h2('Ad slots');
$view->group_instruction('Slots are locations on your site’s pages that contain ads.');
$view->group_contents($slot_list_output);
$content_output .= $view->format_group() . '<hr />';
$view->group_h2('House ads');
$view->group_instruction('A.k.a. promos, these are custom graphics and links you upload yourself.');
$view->group_contents($ad_list_output);
$content_output .= $view->format_group() . '<hr />';
$view->group_h2('Project Wonderful');
$view->group_instruction('Ads served by this wonderful third-party service.');
$view->group_contents($wonderful_ad_list_output . $wonderful_info_output . $wonderful_refresh_output);
$content_output .= $view->format_group() . '<hr />';
$view->group_h2('Google Adsense');
$view->group_instruction('Ads served by the internet juggernaut.');
$view->group_contents($adsense_list_output);
$content_output .= $view->format_group();
/*****
 * Display
//$new_upload_field .= 'Uploading more than '.$fileops-> up_get_max_file_uploads().' images? Try the <a href="book.import.php">bulk importer</a>.';
$result = $db->get('book_page', 1, 'MAX(sort_order) AS endpage');
if ($result) {
    $end_page = number_format($result[0]['endpage']) + 1;
} else {
    $end_page = 1;
}
$new_order_field = '<input name="new_order" id="new_order" size="3" style="width:3rem" type="text" value="' . $end_page . '" />';
$view->page_title('New pages');
$view->tooltype('chap');
$view->headline('New pages');
$view->action($action_output);
if (count($this_type) > 1) {
    $view->group_h2('Type');
    $view->group_instruction('What kind of marker is this?');
    $view->group_contents($select_options);
    $content_output .= $view->format_group() . '<hr />';
} else {
    $id = reset($marker_type_list);
    $id = $id['id'];
    $content_output .= '<input type="hidden" name="add-marker-type" value="' . $id . '"/>';
}
$quick_upload_field = <<<EOL
<form action="uploadtome.php" class="dropzone" method="post" enctype="multipart/form-data">
<div class="fallback">
  <input name="file[]" type="file" multiple />
</div>
</form>
EOL;
$view->group_h2('Quick add');
$view->group_instruction('Just add pages to the end of your book with no frills.');
Exemplo n.º 10
0
    $heading_list = array('Ad', 'Action');
    $list->headings($heading_list);
    $list->row_class('ad');
    $list->content($ad_list);
    //	$ad_list_instructions  = '<p>This slot measures <strong>'.$slot_info['max_width'].' &times; '.$slot_info['max_height'].'</strong> pixels. That means <strong>'.$number_o_ads.'</strong> can fit here.</p>'."\n";
    $ad_list_output .= $list->format_headings();
    $ad_list_output .= $list->format_content();
} else {
    $ad_list_output = '<h2>No ad images fit into this slot.</h2>' . "\n";
}
$label_output = '<input type="text" name="label" id="label" value="' . $slot_info['label'] . '"/>';
$code_output = '<input type="text" id="template-code" value="&lt;?=show_ad(\'' . $slot_info['label'] . '\') ?&gt;"';
// Group
$view->group_h2('Ad list');
$view->group_instruction($ad_list_instructions);
$view->group_contents($ad_list_output);
$content_output .= $view->format_group() . '<hr />';
// Group
$view->group_h2('Template code');
$view->group_instruction('Every slot in your site — the places where ads go — needs a unique ID. <strong>Change this only if you’re willing to edit your site’s theme.</strong>');
$view->group_contents($label_output . $code_output);
$content_output .= $view->format_group();
// Setup
$view->page_title('Ad slot');
$view->headline('Ad slot <span>' . $slot_info['title'] . '</span>');
$view->tooltype('ad');
$view->group_css('ad');
/*****
 * Display
 */
print $view->open_view();
    	$select_options .= '</select>';
    */
}
$upload_output = <<<EOL

<form action="uploadtome.php" class="dropzone" method="post" enctype="multipart/form-data">
<div class="fallback">
  <input name="file[]" type="file" multiple />
</div>
</form>


EOL;
$view->group_h2('Add images');
$view->group_instruction('Upload images from your computer to make comic pages.');
$view->group_contents($upload_output);
$content_output .= $view->format_group() . '<hr />';
/*
$view->group_h2('Starting at');
$view->group_instruction('Where in your story should the new pages go?');
$view->group_contents($new_order_field);
$content_output .= $view->format_group().'<hr />';

$link-> title = 'Learn more about markers';
$link-> url = 'http://getgrawlix.com/docs/'.DOCS_VERSION.'/marker';
$link-> tap = 'mark these pages';

$view->group_h2('Title');
$view->group_instruction('Optionally, you can '.$link-> external_link().' with a new '.$this_type.'.');
$view->group_contents($new_title_field);
$content_output .= $view->format_group().'<hr />';
Exemplo n.º 12
0
$view->action($action_output);
/*
$view->group_h2('Add marker');
$view->group_instruction('INSTRUCTIONS GO HERE');
$view->group_contents($add_marker_output);
$content_output .= '<hr/>' . $view->format_group();
*/
/*
$view->group_h2('Remove marker');
$view->group_instruction('INSTRUCTIONS GO HERE');
$view->group_contents($delete_marker_output);
$content_output .= $view->format_group().'<hr/>';
*/
$view->group_h2('Add pages');
$view->group_instruction('Upload images to create new pages here.');
$view->group_contents($new_upload_field);
$upload_output .= $view->format_group();
/*****
 * Display
 */
$output = $view->open_view();
$output .= $view->view_header();
$output .= $alert_output;
//$output .= $modal->modal_container();
$output .= '<form accept-charset="UTF-8" method="post" action="marker.view.php" enctype="multipart/form-data">' . "\n";
if ($pages_displayed && $pages_displayed > 10) {
    $output .= $upload_output . '<hr/>';
    $output .= $content_output;
} else {
    $output .= $content_output . '<hr/>';
    $output .= $upload_output;
Exemplo n.º 13
0
<input type="text" name="blog_headline" id="blog_headline" value="{$headline_output}"/>
<label for="blog_post">Post</label>
<textarea name="blog_post" id="blog_post" rows="32">{$page->pageInfo[blog_post]}</textarea>

EOL;
$transcript_output = <<<EOL
<label for="transcript">Transcript</label>
<textarea name="transcript" id="transcript" rows="32">{$page->pageInfo[transcript]}</textarea>

EOL;
$content_output = '<hr />';
$link1->url('http://www.getgrawlix.com/docs/' . DOCS_VERSION . '/seo');
$link1->tap('Metadata');
$view->group_css('page');
$view->group_h2('Meta');
$view->group_contents($meta_output);
$view->group_instruction($link1->external_link() . ' is information that describes this comic page.');
$content_output .= $view->format_group() . '<hr />';
$link1->url('http://daringfireball.net/projects/markdown');
$link1->tap('Markdown');
$view->group_css('page');
$view->group_h2('Blog');
$view->group_instruction('Write your thoughts for the day on this comic page. The post accepts HTML and ' . $link1->external_link() . '.');
$view->group_contents($blog_output);
$content_output .= $view->format_group() . '<hr />';
$link1->url('http://www.getgrawlix.com/docs/' . DOCS_VERSION . '/seo');
$link1->tap('SEO');
$view->group_css('page');
$view->group_h2('Transcript');
$view->group_instruction('Transcript is a record of the the dialog, events and scenes in a comic page. In short, a script. Use this to improve accessibility and ' . $link1->external_link() . '.');
$view->group_contents($transcript_output);
$link->tap('Create multiple comic pages');
$link->reveal(false);
$action_output = $link->button_secondary('new');
//$action_output .= '<a href="#multiple">Upload multiple pics</a>'."\n";
$view->action($action_output);
$new_image = <<<EOL
<label for="file_change">Comic page image</label>
<input type="file" id="file_change" name="file_change[]" value="" multiple/>


EOL;
$content_output .= '<form accept-charset="UTF-8" action="book.page-create.php" method="post" enctype="multipart/form-data">' . "\n";
$view->group_css('page');
$view->group_h2('Image');
$view->group_instruction('Upload the graphic(s) that readers will see on this page.');
$view->group_contents($new_image);
$content_output .= $view->format_group() . "<hr/>\n";
$view->group_css('page');
$view->group_h3('Order');
$view->group_instruction('Choose where in your book the new page will go.');
$view->group_contents($choose_marker_output);
$content_output .= $view->format_group() . "<hr/>\n";
$link->title = 'Learn more about metadata';
$link->url = 'http://www.getgrawlix.com/docs/' . DOCS_VERSION . '/metadata';
$link->tap = 'information that describes';
$link->transpose = false;
$view->group_css('page');
$view->group_h3('Metadata');
$view->group_instruction('Enter information about this page. Learn more about ' . $link->external_link() . ' this comic page.');
$view->group_contents($meta_output);
$content_output .= $view->format_group() . "<hr/>\n";
Exemplo n.º 15
0
    $list->draggable(false);
    $list->row_class('chapter');
    $list->headings($heading_list);
    $list->content($list_items);
    $folder_output = $list->format_headings();
    $folder_output .= $list->format_content();
}
// Group
if ($folder_output) {
    $link->url('http://www.getgrawlix.com/docs/' . DOCS_VERSION . '/ftp');
    $link->tap('via FTP');
    $link1->url('http://www.getgrawlix.com/docs/' . DOCS_VERSION . '/importing');
    $link1->tap('Learn more.');
    $view->group_h2('Folders');
    $view->group_instruction('This tool lets you copy images from the “/import” folder (' . $link->external_link() . ') into ' . $marker_type_list[1]['title'] . 's. ' . $link1->external_link());
    $view->group_contents($folder_output . $submit_output);
    $content_output .= $view->format_group() . "\n";
}
$view->page_title('Create pages from FTP');
$view->tooltype('Chapter');
$view->headline('Create pages from FTP');
$link->url('./book.page-create.php');
$link->tap('Create one comic page');
$link->reveal(false);
$action_output = $link->button_secondary('new');
$view->action($action_output);
$output = $view->open_view();
$output .= $view->view_header();
print $output;
?>
Exemplo n.º 16
0
}
if ($xml->saveResult == 'error') {
    $message = new GrlxAlert();
    $alert_output = $message->alert_dialog('Changes failed to save.');
}
/* ! Display * * * * * * * */
$view->page_title('Archives');
$view->tooltype('arcv');
$view->headline('Comic archive editor');
$form->input_hidden('book_id');
$form->value($book_id);
$book_info = $form->paint();
$view->group_css('arcv');
$view->group_h2('Behavior');
$view->group_instruction('Select how you want readers to navigate through your archives.');
$view->group_contents($behavior_output);
$content_output .= $view->format_group() . '<hr/>';
$view->group_h2('Layout');
$view->group_instruction('Select how you want to arrange information.');
$view->group_contents($layout_output);
$content_output .= $view->format_group() . '<hr/>';
$view->group_h2('Metadata');
$view->group_instruction('Select the types of information to display.');
$view->group_contents($meta_output);
$content_output .= $view->format_group() . '<hr/>';
$content_output .= $form->form_buttons();
$output = $view->open_view();
$output .= $view->view_header();
$output .= $alert_output;
$output .= $form->open_form();
$output .= $book_info;
Exemplo n.º 17
0
    $home_output .= '<div><label for="home-id">Homepage</label></div>';
    $home_output .= '<div>' . $home_options . '</div>';
    $home_output .= '</div>';
    $home_output .= $form->form_buttons($edit_home);
}
$link->url('http://www.getgrawlix.com/docs/' . DOCS_VERSION . '/settings');
$link->tap('Read the docs');
$instruction = 'Use this panel to customize your overall site. ' . $link->external_link() . ' for details.';
$content_output = $form->open_form();
$view->page_title('Site settings');
$view->tooltype('config');
$view->headline('Site settings');
$view->group_css('config');
$view->group_h2('Basics');
$view->group_instruction($instruction);
$view->group_contents($form_output);
$content_output .= $view->format_group() . '<hr />';
$view->group_h2('Homepage');
$view->group_instruction($home_instruction);
$view->group_contents($home_output);
$content_output .= $view->format_group();
$content_output .= $form->close_form();
/*****
 * Display
 */
$output = $view->open_view();
$output .= $view->view_header();
$output .= $alert_output;
$output .= $content_output;
$output .= $view->close_view();
print $output;
    $htaccess_module['status'] = 0;
    $htaccess_module['anchor'] = 'htaccess';
    $htaccess_module['heading'] = 'Routes';
    $htaccess_module['report'] = '<p>.htaccess file found.</p>';
} else {
    $htaccess_module['status'] = 1;
    $htaccess_module['anchor'] = 'htaccess';
    $htaccess_module['heading'] = 'Routes';
    $htaccess_module['report'] = '<p>.htaccess file not found.</p>';
}
/////////// Display
// Group
$report = display_module($permissions_module, $link);
$view->group_h2($report[1] . ' Permissions');
$view->group_instruction('This checks the ability to add or edit files on your behalf.');
$view->group_contents($report[0]);
$content_output .= $view->format_group() . '<hr />';
// Group
$report = display_module($panel_file_module, $link);
$view->group_h2($report[1] . ' Panel files');
$view->group_instruction('The panel should only have Grawlix files. Extras could indicate a hack attempt.');
$view->group_contents($report[0]);
$content_output .= $view->format_group() . '<hr />';
// Group
$report = display_module($htaccess_module, $link);
$view->group_h2($report[1] . ' Access');
$view->group_instruction('Grawlix needs permission to add images to certain folders.');
$view->group_contents($report[0]);
$content_output .= $view->format_group() . '<hr />';
// Group
$link->url('http://www.getgrawlix.com/docs/' . DOCS_VERSION . '/seo');
Exemplo n.º 19
0
// ! Build the edit form
$edit_form_output .= '<form accept-charset="UTF-8" action="marker.edit.php" method="post">' . "\n";
$edit_form_output .= '	<p><label for="new_title">Title</label>' . "\n";
$edit_form_output .= '	<input type="text" id="new_title" name="new_title" size="12" style="width:12rem" value="' . $marker->markerInfo['title'] . '"/></p>' . "\n";
$edit_form_output .= '	<label for="edit_marker_type">Type</label>' . "\n";
$edit_form_output .= $select_options . "\n";
$edit_form_output .= '	<button class="btn primary save" name="submit" type="submit" value="save"><i></i>Save</button>' . "\n";
$edit_form_output .= '	<input type="hidden" name="marker_id" value="' . $marker_id . '"/>' . "\n";
$edit_form_output .= '</form>' . "\n";
// ! Build the overall view
$view->page_title('Marker: ' . $marker->markerInfo['title']);
$view->tooltype('chap');
$view->headline('Marker <span>' . $marker->markerInfo['title'] . '</span>');
$view->group_h2('General info');
$view->group_instruction('Change this marker’s name and type.');
$view->group_contents($edit_form_output);
$content_output .= $view->format_group();
// Let artists jump to the marker type manager
// from here because it’s contextual.
$link1->url('marker-type.list.php');
$link1->tap('Edit marker types');
$link1->id('edit-types');
$action_output = $link1->text_link('editmeta');
$view->action($action_output);
// ! Display
$output = $view->open_view();
$output .= $view->view_header();
$output .= $alert_output;
$output .= $content_output;
$output .= $view->close_view();
print $output;
Exemplo n.º 20
0
	    <p><strong>Order:</strong> Rearrange your pages by changing their numbers …</p>
	  </li>
	  <li data-id="sort-with-me" data-button="Done" data-prev-text="Prev" data-options="tip_location:bottom;">
	    <p>… then tap here to execute the move.</p>
	  </li>
	</ol>
EOL;
	$view->setJoyride($joyride);
}
*/
// Group
if ($total_shown > 1) {
    // Group
    $view->group_h2('Reorder pages');
    $view->group_instruction('Change the pages’ numbers above to move them around the book.');
    $view->group_contents('<button class="btn primary save" name="submit" id="sort-with-me" type="submit" value="reorder"><i></i>Sort</button>' . "\n");
    $reorder_output .= $view->format_group();
}
/*
$link-> title('Learn more about markers');
$link-> url('http://www.getgrawlix.com/docs/'.DOCS_VERSION.'/markers');
$link-> tap('Markers');

$view->group_h2('Add marker');
$view->group_instruction($link-> external_link().' are sections of a book, like chapters, scenes or supplemental material. Use the checkboxes above to choose page(s) to begin new sections.');
$view->group_contents(
	$select_options .
 '<button class="btn primary new" name="submit" type="submit" value="add"><i></i>Add</button>'
);
$select_output .= $view->format_group();
*/
        $list_items[$key] = array('select' => $val['rank'], 'title' => $val['title'], 'tally' => $val['tally'], 'action' => $action_output);
    }
    $list->draggable(false);
    $list->row_class('chapter');
    $list->headings($heading_list);
    $list->content($list_items);
    $list_output = $list->format_headings();
    $list_output .= $list->format_content();
} else {
    $list_output .= 'I didn’t find any types of marker.';
}
$link->url('marker-type.create.php');
$link->tap('Create');
$create_output = $link->button_primary('new');
$view->group_h2('Organization');
$view->group_instruction('Markers denote the beginnings of sections, like chapters, scenes and supplemental pages. Tap to edit each type.');
$view->group_contents($list_output);
$content_output .= $view->format_group() . '<hr />';
$view->group_h2('Create');
$view->group_instruction('Make a new marker type.');
$view->group_contents($create_output);
$content_output .= $view->format_group();
$view->page_title('Marker types: ' . $book->info['title']);
$view->tooltype('chapter');
$view->headline('Marker types');
$output = $view->open_view();
$output .= $view->view_header();
$output .= $alert_output;
$output .= $content_output;
print $output;
print $view->close_view();
Exemplo n.º 22
0
             $username = '******';
             $edit_link->query("service_id={$val['service_id']}&match_id={$val['match_id']}");
             $action_output = $edit_link->icon_link();
         } else {
             $row_css = $val['active'];
             $username = strfunc_check_empty($val['value']);
             $edit_link->query("service_id={$val['service_id']}");
             $form->id("id-{$val['match_id']}");
             $vis_output = $form->checkbox_switch($val['active']);
             $action_output = $vis_output . $edit_link->icon_link();
         }
         $follow_list[$val['service_id'] . '||' . $row_css] = array($val['title'], $username, $action_output);
     }
     $list->content($follow_list);
     $follow_output .= $list->format_content();
     $view->group_contents($follow_output);
     $content_output = $view->format_group() . '<hr />';
     unset($heading_list);
 }
 // ! Share
 //
 if ($function_id == 2) {
     $form->title('Show/hide a share link for this service next to your comic.');
     $heading_list[] = array('value' => 'Service', 'class' => 'nudge');
     $heading_list[] = array('value' => 'Actions', 'class' => null);
     $list->row_class('share');
     $list->headings($heading_list);
     $share_output = $list->format_headings();
     foreach ($section_group['items'] as $key => $val) {
         $row_css = $val['active'];
         $form->id("id-{$val['match_id']}");
EOL;
$tablet_form = <<<EOL
\t\t<label for="medium_image_url">Tablet image</label>
\t\t<input type="file" id="medium_image_url" name="medium_image_url" value=""/>

EOL;
$widescreen_form = <<<EOL
\t\t<label for="large_image_url">Widescreen image</label>
\t\t<input type="file" id="large_image_url" name="large_image_url" value=""/>

EOL;
$destination_form = '<input type="text" id="destination" size="24" style="width:24rem" name="destination" value="http://"/>';
$code_form = '<textarea name="code" id="code" height="8" width="24" style="height:8rem;width:24rem"></textarea>';
$view->group_h2('Destination');
$view->group_instruction('Where this ad will take people when they tap its graphics.');
$view->group_contents($destination_form);
$content_output .= $view->format_group() . '<hr />';
/*
$view->group_h2('Mobile-optimized');
$view->group_instruction('Graphic for this ad on smartphones.');
$view->group_contents($mobile_form);
$content_output .= $view->format_group().'<hr />';

$view->group_h2('Tablet-sized');
$view->group_instruction('Graphic for this ad on small screens and tablets.');
$view->group_contents($tablet_form);
$content_output .= $view->format_group().'<hr />';
*/
$view->group_h2('Image');
$view->group_instruction('Graphic that readers will tap.');
$view->group_contents($widescreen_form);
Exemplo n.º 24
0
 */
// Group
/*
$view->group_h2('Mobile image');
$view->group_instruction('Image that will appear on small screens, e.g. smartphones.');
$view->group_contents($mobile_content);
$content_output .= $view->format_group().'<hr />';

$view->group_h2('Tablet image');
$view->group_instruction('Image will appear on smallish screens.');
$view->group_contents($tablet_content);
$content_output .= $view->format_group().'<hr />';
*/
$view->group_h2('Title');
$view->group_instruction('Name of the website.');
$view->group_contents($title_content);
$content_output .= $view->format_group() . '<hr />';
$view->group_h2('Image');
$view->group_instruction('Image that readers will see.');
$view->group_contents($widescreen_content);
$content_output .= $view->format_group() . '<hr />';
$view->group_h2('Destination');
$view->group_instruction('Where the ad, when tapped, will take readers.');
$view->group_contents($destination_content);
$content_output .= $view->format_group() . '<hr />';
$view->group_h2('Code');
$view->group_instruction('Optional JS or HTML to use in lieu of images and destination. <strong>Entering code will override the image and link above.</strong>');
$view->group_contents($code_content);
$content_output .= $view->format_group();
$view->page_title('Ad editor');
$view->tooltype('ad');
Exemplo n.º 25
0
$form->size('10');
if ($static->info['title'] == 'Home') {
    $form->readonly(true);
}
$form->value($static->info['title']);
$settings_form = $form->paint();
$form->input_description('new_description');
$form->value($static->info['description']);
$settings_form .= $form->paint();
$settings_form .= $path_link_output;
$layout_form = $layout_select_output;
$layout_form .= $pattern_select_output;
$view->group_css('sttc');
$view->group_h2('Settings');
$view->group_instruction('General information for this static page.');
$view->group_contents($settings_form);
$settings_output = $view->format_group() . $form->form_buttons() . '<hr />';
if ($mode != 'plaintext') {
    $view->group_css('sttc');
    $view->group_h2('Layout');
    $view->group_instruction('How items on this static page are arranged.');
    $view->group_contents($layout_form);
    $settings_output .= $view->format_group() . $form->form_buttons() . '<hr />';
}
if ($mode == 'plaintext') {
    $form_output .= '<p>Freeform content:</p>';
    $form_output .= '<textarea name="raw_content" rows="10" style="height:12rem">' . $static->info['options'] . '</textarea>';
    //	$form_output .= '<p><a href="#to-do" target="_blank">Get sample XML</a></p>';
}
$form_output .= $form->form_buttons();
$view->group_h2('Items');