Example #1
0
    while (have_posts()) {
        the_post();
        ?>
		<?php 
        the_content();
        ?>
	<?php 
    }
    ?>
	</div>
<?php 
}
?>

<?php 
$agentsMgr = new AgentsManager();
if (isset($_GET['by_agency'])) {
    $agents = $agentsMgr->getAllByAgency($_GET['by_agency']);
} else {
    $agents = $agentsMgr->getAll();
}
if (!empty($agents)) {
    ?>

<div class="component-cards">
	<ul class="items list">
		<?php 
    foreach ($agents as $agent) {
        ?>
		<li class="card">
			<div class="photo">
Example #2
0
 function estetico_get_default_agent_id()
 {
     $agent = AgentsManager::getDefaultAgent();
     if (!$agent) {
         return false;
     }
     return $agent->ID;
 }