Пример #1
0
     $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();
         }
         $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.');
Пример #2
0
    $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 {
            $form->id("id-{$item['id']}");
            $vis_output = $form->checkbox_switch($item['in_menu']);
        }
        //		$action_output = $edit_link->icon_link();
        if (isset($dupes) && in_array($item['url'], $dupes)) {
            $item['url'] = '<span class="fixme">' . $item['url'] . '</span>';
        }
        $list_items[$item['id'] . '||' . $item['in_menu']] = array($item['title'], $item['url'], $vis_output, $edit_link->icon_link());
    }
}
$view->page_title('Main menu');
$view->tooltype('menu');
$view->headline('Main menu');
$link->url('sttc.xml-new.php');
$link->tap('New page');
$action_output = $link->text_link('static');