Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div style="width:305px; float:right; padding-left:22px; margin: 5px 3px 20px 0">
- <div id="something">
- <?php $practice_area = new Pod('practice_areas', pods_url_variable(-1)); // Area of practice for this page ?>
- <?php
- $params = array(
- 'orderby' => 'sort_order ASC'
- );
- $categories = new Pod('attorneys_category', $params); // Retrieve all categories
- ?>
- <?php while ($categories->fetchRecord()) { ?>
- <?php
- // Get just the attorneys for this category and area of practice
- $params = array(
- 'where' => "category.id = " . $categories->get_field('id') . " AND practice_area.id = " . $practice_area->get_field('id'),
- 'orderby' => 'last_name ASC'
- );
- $attorneys = new Pod('attorneys', $params);
- ?>
- <?php if ($attorneys->getTotalRows() > 0) { ?>
- <h3><?php echo $categories->get_field('name'); ?></h3>
- <ul class="logoblockgrid">
- <?php while($attorneys->fetchRecord()) { ?>
- <a href="/attorneys/<?php echo $attorneys->get_field( 'slug' );?>"><li><img src="<?php echo $attorneys->get_field('nav_photo.guid'); ?>"><?php echo $attorneys->get_field('name'); ?></li></a>
- <?php } // End attorneys for this category ?>
- </ul>
- <div style="clear:both"></div>
- <?php } // endif any attorneys to be listed ?>
- <?php } // End category loop ?>
- </div>
- </div>
- <h1>{@name} Law</h1>
- {@description}
Advertisement
Add Comment
Please, Sign In to add comment