Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
69b9d87f6d
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
56 lines (55 sloc) 1.94 KB
<?php
/**
Template Name: User Table
* This page template has no padding, and does not display the page title.
* Useful for large images, iframes, or other edge cases.
*/
get_header(); ?>
<div id="page-usertable">
<?php include('inc/sidebar-check.php')?>
<?php while ( have_posts() ) : the_post(); ?>
<?php include('inc/submenu-check.php')?>
<div class="row">
<div class="col-sm-<?php echo (is_active_sidebar( $sidebar )?9:12); ?>">
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
<header class="entry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
<div class="user-index">
<?php $thing = get_the_ID(); $userTags = get_post_meta($thing, 'userTags', true);
$userTags = str_replace(' ', '', $userTags);
$userTags = explode(',',$userTags);
$args = array(
'tags' => $userTags,
'name' => true,
'image' => true,
'title' => true,
'phone1' => true,
'phone2' => false,
'email' => true,
'fax' => false,
'officeLocation' => false,
'officeHours' => false,
'mailingAddress' => false
);
echo table_list_all_public($args);
?>
</div>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php edit_post_link( __( 'Edit', 'cs' ), '<span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->
</main>
</div>
</div>
<?php include('inc/sidebar-if-active.php')?>
</div>
<?php include('inc/submenu-closing-tags.php')?>
<?php endwhile; // end of the loop. ?>
</div>
<?php get_footer(); ?>