if ($service_list) { $view->group_css('social'); $list = new GrlxList(); $list->draggable(false); $edit_link = new GrlxLinkStyle(); $edit_link->url('xtra.edit-info.ajax.php'); $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'];
$dupe_check = array_count_values($path_items); foreach ($dupe_check as $key => $val) { if ($val > 1) { $dupes[] = $key; } } } if (isset($dupes)) { $dupe_alert_output = $message->alert_dialog('Duplicates detected! You should create unique path names to avoid problems.'); } // Build output if ($nav_item) { $list->row_class('menu'); $list->sort_by('menu'); $list->draggable(true); $form->title('Show/hide this item in the site menu.'); $vis_link = new GrlxLinkStyle(); $vis_link->i_only(true); $edit_link = new GrlxLinkStyle(); $edit_link->url('site.nav-edit.ajax.php'); $edit_link->title('Change this item’s tappable text or destination URL.'); $edit_link->reveal(true); $edit_link->action('edit'); foreach ($nav_item as $item) { $edit_link->query("edit_id={$item['id']}"); if ($item['rel_type'] == 'external') { $vis_link->action('delete'); $vis_link->id("delete-{$item['id']}"); $vis_link->title('Delete this link from your site’s menu.'); $vis_output = $vis_link->icon_link(); } else {