function amr_list_user_admin_headings($l) { global $amain; global $ausersadminurl; if (!is_admin()) { return; } //echo '<div class="wrap"><div id="icon-users" class="icon32"><br /></div><h2>'; echo PHP_EOL . '<div class="wrap"><!-- the nested wrap -->' . PHP_EOL . '<br /><h2>'; echo $amain['names'][$l]; echo '</h2>'; echo '<table><tr><td>' . '<ul class="subsubsub" style="float:left; white-space:normal;">'; $t = __('CSV Export', 'amr-users'); $n = $amain['names'][$l]; if (current_user_can('list_users') or current_user_can('edit_users')) { echo '<li style="display:block; float:left;">' . au_csv_link($t, $l, $n . __(' - Standard CSV.', 'amr-users')) . '</li>'; echo '<li style="display:block; float:left;"> |' . au_csv_link(__('Txt Export', 'amr-users'), $l . '&csvfiltered', $n . __('- a .txt file, with CR/LF filtered out, html stripped, tab delimiters, no quotes ', 'amr-users')) . '</li>'; } if (current_user_can('manage_options')) { echo '<li style="display:block; float:left;"> | ' . au_configure_link(__('Configure this list', 'amr-users'), $l, $n) . '</li>'; } echo '</ul>'; //echo '<ul class="row-actions subsubsub" style="float:left; white-space:normal;">'; echo '<ul class="subsubsub" style="float:left; white-space:normal;">'; if (current_user_can('manage_options')) { echo '<li style="display:block; float:left;"> | ' . au_headings_link($l, $n) . '</li>'; echo '<li style="display:block; float:left;"> | ' . au_filter_link($l, $n) . '</li>'; echo '<li style="display:block; float:left;"> | ' . au_custom_nav_link($l, $n) . '</li>'; echo '<li style="display:block; float:left;"> | ' . au_grouping_link($l, $n); /* echo '<li style="display:block; float:left;"> | ' .'<a style="color:#D54E21;" href="'.$ausersadminurl.'">'.__('Main Settings','amr-users').'</a></li>'; echo '<li style="display:block; float:left;"> | ' .'<a '.a_currentclass('nicenames').' href="' .wp_nonce_url(add_query_arg('am_page','nicenames',$ausersadminurl),'amr-meta') .'" title="'.__('Find fields and update nice names','amr-users').'" >' .__('Find Fields','amr-users').'</a></li>'; */ } echo '<li style="display:block; float:left;"> | ' . au_buildcache_view_link(__('Rebuild cache now', 'amr-users'), $l, $n) . '</li>'; echo '</ul></td></tr></table>' . PHP_EOL . '</div><!-- end the nested wrap -->' . PHP_EOL; }
function amr_userlist_submenu($listindex) { global $amain; //echo PHP_EOL.'<div class="clear"> '; //echo '<b>'.sprintf(__('Configure list %s: %s','amr-users'),$listindex,$amain['names'][$listindex]). echo au_buildcache_view_link(__('Rebuild cache now', 'amr-users'), $listindex, $amain['names'][$listindex]) . ' | ' . au_headings_link($listindex, $amain['names'][$listindex]) . ' | ' . au_filter_link($listindex, $amain['names'][$listindex]) . ' | ' . au_custom_nav_link($listindex, $amain['names'][$listindex]) . ' | ' . au_grouping_link($listindex, $amain['names'][$listindex]) . ' | ' . au_view_link(__('View', 'amr-users'), $listindex, $amain['names'][$listindex]); // .'</b>'; // .'</div>'; }