} $delete_link->id("id-{$item['id']}"); $action_output = $delete_link->icon_link(); $edit_link->query("edit_id={$item['id']}"); $action_output .= $edit_link->icon_link(); $list_items[$item['id']] = array($icon . ' ' . $item['title'], $item['url'], $action_output); } } $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();
$edit_link->title('Edit this service’s info.'); $edit_link->reveal(true); $edit_link->action('edit'); foreach ($service_list as $function_id => $section_group) { $view->group_h2($section_group['title']); $view->group_instruction($section_group['description']); // ! Follow // if ($function_id == 1) { $form->title('Show/hide a follow link for this service.'); $heading_list[] = array('value' => 'Service', 'class' => 'nudge'); $heading_list[] = array('value' => 'Your info', 'class' => 'nudge'); $heading_list[] = array('value' => 'Actions', 'class' => null); $list->row_class('follow'); $list->headings($heading_list); $follow_output = $list->format_headings(); foreach ($section_group['items'] as $key => $val) { // Get the id entered before activating the service if (!$val['value']) { $row_css = ' unset'; $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(); }
} // We’re done with the marker data for this item in the list. Whew. // Simple edit-this-page link. $link->url('book.page-edit.php?page_id=' . $val['id']); $link->title('Edit page ' . number_format($val['sort_order']) . '.'); $link->tap($title); // Assemble the list item. $list_items[$val['id']] = array('select' => $select, 'title' => $link->paint(), 'sort_order' => $order, 'marker' => $this_marker, 'action' => $action_output); // Track how many items appear on the page. // We need this to know whether or not the artist needs a “sort” option. $total_shown++; } } // Mix it all together. $list->content($list_items); $content_output = $list->format_headings(); $content_output .= $list->format_content(); } /* if ( $marker_type_list ) { $sl-> setName('add_marker_type'); $sl-> setList($marker_type_list); // $sl-> setCurrent(); $sl-> setValueID('id'); $sl-> setValueTitle('title'); $sl-> setStyle('width:12rem'); $select_options = $sl-> buildSelect().'<br/>'."\n"; } */
} $link->url('?update_wonderful&current_group=panel-wonderful'); $link->tap('Get the latest data'); $link->title('Download ad information from your PW account to Grawix. Do this any time you finish making changes at Project Wonderful.'); $wonderful_refresh_output = '<br/><h3>Refresh ad data</h3>' . "\n"; $wonderful_refresh_output .= '<p>Have you changed your bids at Project Wonderful? ' . $link->paint() . '.</p>' . "\n"; $link->tap('Project Wonderful'); $link->url('https://www.projectwonderful.com'); $link->title('Visit this advertising service’s website.'); $wonderful_info_output .= '<br/><form accept-charset="UTF-8" action="ad.list.php" method="post">' . "\n"; $wonderful_info_output .= '<p><label for="wonderful_id" class="instructions">Enter your ' . $link->paint() . ' account ID, or leave blank if you’re not a member.</label>' . "\n"; $wonderful_info_output .= '<input type="text" name="wonderful_id" id="wonderful_id" size="4" style="width:5rem;" value="' . $wonderful_third_data['user_info'] . '"/>' . "\n"; $wonderful_info_output .= '<button class="btn primary save" name="submit" type="submit" value="save"><i></i>Save</button></p><br/> ' . "\n"; $wonderful_info_output .= '</form>' . "\n"; $list->content($wonderful_ad_list_content); $wonderful_ad_list_output .= $list->format_headings(); $wonderful_ad_list_output .= $list->format_content(); ///////// Build the Google Adsense panel. if ($ad_list) { $link->url('ad.adsense-edit.php'); $edit_link->url('ad.adsense-edit.php'); $edit_link->title('Edit this ad.'); $edit_link->action('edit'); $delete_link->url('ad.list.php'); $delete_link->title('Permanently delete this ad.'); $delete_link->action('delete'); foreach ($ad_list as $key => $val) { if ($val['source_id'] == 3) { $link->query('ad_id=' . $key); $link->tap('ID ' . $key); $delete_link->query('delete_ad_id=' . $key);
} } if ($permissions_error_found === true) { $alert_output .= $message->alert_dialog('I may not be able to work with these files. Try temporarily setting them to 777 in FTP.'); } /***** * Display */ if ($list && $list_items && count($list_items) > 0) { $heading_list = array(' ', 'Title', 'Images', 'Warnings'); $list->headings($heading_list); $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');
} elseif ($val['code'] !== null) { $view_me = '(PW code)'; } else { $view_me = '-'; } $ad_list[] = array($title, $view_me, $action); } } $number_o_ads = qty('ad', count($possible_ad_list)); if ($ad_list) { $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'].' × '.$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="<?=show_ad(\'' . $slot_info['label'] . '\') ?>"'; // 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);
$link->tap('New page'); $action_output = $link->text_link('static'); $link->url('site.nav-edit.ajax.php'); $link->reveal(true); $link->query('edit_id=new'); $link->title = 'External links go to other websites — like those you enjoy reading soooo much you just have to share it with your readers.'; $link->tap('New external link'); $action_output .= $link->button_secondary('new'); $view->action($action_output); $heading_list[] = array('value' => 'Title', 'class' => null); $heading_list[] = array('value' => 'URL', 'class' => null); $heading_list[] = array('value' => 'In menu', 'class' => null); $heading_list[] = array('value' => 'Actions', 'class' => null); $list->headings($heading_list); $list->content($list_items); $display_output = $list->format_headings(); $display_output .= $list->format_content(); /***** * Display */ $output = $view->open_view(); $output .= $view->view_header(); $output .= $alert_output; $output .= $modal->modal_container(); $output .= $current_alert_output; $output .= $dupe_alert_output; $output .= '<p>Drag to reorder the items in your main site menu.</p>'; $output .= '<form>' . $display_output . '</form>'; print $output; $js_call = <<<EOL \t\$( '[id^="delete-"]' ).click( // delete an item