echo removeHyphen($data['article'][$i]['SEC']); ?> </a></li> <li class="divide"></li> <li><?php echo date('M dS', strtotime($data['article'][$i]['DATE'])); ?> </li> <li class="divide"></li> <li><a href="<?php echo PUBLICPATH . $data['article'][$i]['LINK']; ?> #disqus_thread">Comments</a></li> </ul> <p><?php echo elliStr($data['article'][$i]['DES'], 150); ?> <a href="<?php echo PUBLICPATH . $data['article'][$i]['LINK']; ?> " class="p-anchor">Read More</a></p> </div> <?php } ?> </div> </div> <div class="row"> <div class="text-center border padd-4"> <a href="<?php echo PUBLICPATH;
echo $data['items'][$i]['TITLE']; ?> " /> </div> </a> </div> <div class="column small-12 medium-12 medium-only-text-center large-7"> <a href="<?php echo PUBLICPATH . $data['items'][$i]['LINK']; ?> "><h3 class="post-title-3 push-2-bottom push-2-top"><?php echo $data['items'][$i]['TITLE']; ?> </h3></a> <p><?php echo elliStr($data['items'][$i]['DES'], 200); ?> </p> <ul class="inline-list post-meta"> <li><a href="<?php echo PUBLICPATH . $data['items'][$i]['SECURL']; ?> "><?php echo removeHyphen($data['items'][$i]['SECURL']); ?> </a></li> <li class="divide"></li> <li><?php echo date('M dS', strtotime($data['items'][$i]['DATE'])); ?> </li>
function post_list($article_id, $type = 0) { /** * Post List Printing * * Prints Posts in list templates * * Arguments ( $article_id ) * -------------------------------------- * * $article_id -> Article ID * **/ if (isset($article_id) == true) { $data = article_data($article_id); if ($type == 0) { echo '<div class="row">'; //echo ' <h3 class="post-list-title hide-large view-xsmall"><a href="'.static_url('main',1).$data->ar_url.'" class="post-title-a">'.$data->ar_title.'</a></h3>'; echo ' <div class="column-xsmall-4 padd0 post-image"><a href="' . static_url('main', 1) . $data->ar_url . '""><img src="' . static_url('images', 1) . $data->ar_image . '"/><div class="overlay-box hide-large view-xsmall"><h1 class="overlay-heading">' . $data->ar_title . '</h1></div></a></div>'; echo ' <div class="column-xsmall-8 padd0-xsmall">'; echo ' <h3 class="post-list-title hide-xsmall"><a href="' . static_url('main', 1) . $data->ar_url . '" class="post-title-a">' . $data->ar_title . '</a></h3>'; echo ' <p>' . elliStr($data->ar_description, 200) . ' .. <a href="' . static_url('main', 1) . $data->ar_url . '">Read More</a></p>'; echo ' <p class="article-add-info"><i class="fa fa-file"></i> Posted in <a href="' . static_url('main', 1) . $data->ar_section_url . '">' . $data->ar_section . '</a> | <i class="fa fa-calendar"></i> ' . date('F jS Y', strtotime($data->ar_created_date)) . ' | <i class="fa fa-comment"></i> <a href="' . static_url('main', 1) . $data->ar_url . '#disqus_thread">Comments</a></p>'; echo ' </div>'; echo '</div>'; } elseif ($type == 1) { //echo ' <h3 class="post-list-title hide-large view-xsmall"><a href="'.static_url('main',1).$data->ar_url.'" class="post-title-a">'.$data->ar_title.'</a></h3>'; echo ' <div class="column-small-3 padd0-xsmall">'; echo ' <div class="post-image"><a href="' . static_url('main', 1) . $data->ar_url . '"><img src="' . static_url('images', 1) . $data->ar_image . '"></a></div>'; echo ' <h3 class="post-list-title"><a href="' . static_url('main', 1) . $data->ar_url . '" class="post-title-a">' . $data->ar_title . '</a></h3>'; echo ' <p>' . elliStr($data->ar_description, 90) . '..<a href="' . static_url('main', 1) . $data->ar_url . '">Read More</a></p>'; echo ' <p class="article-add-info hide-med"><i class="fa fa-file"></i> <a href="' . static_url('main', 1) . $data->ar_section_url . '">' . $data->ar_section . '</a> | <i class="fa fa-calendar"></i> ' . date('M jS', strtotime($data->ar_created_date)) . ' | <i class="fa fa-comment"></i> <a href="' . static_url('main', 1) . $data->ar_url . '#disqus_thread">#</a></p>'; echo ' </div>'; } else { echo '<div class="row">'; echo ' <div class="column-xxsmall-3 padd0 post-image-small"><a href="' . static_url('main', 1) . $data->ar_url . '"><img src="' . static_url('img', 1) . $data->ar_image_small . '"></a></div>'; echo ' <div class="column-xxsmall-9">'; echo ' <h3 class="post-list-title"><a href="' . static_url('main', 1) . $data->ar_url . '" class="post-title-a">' . $data->ar_title . '</a></h3>'; // echo ' <p>'.elliStr($data->ar_description,200).' .. <a href="'.static_url('main',1).$data->ar_url.'">Read More</a></p>'; echo ' <p class="article-add-info"><i class="fa fa-file"></i> <a href="' . static_url('main', 1) . $data->ar_section_url . '">' . $data->ar_section . '</a> | <i class="fa fa-comment"></i> <a href="' . static_url('main', 1) . $data->ar_url . '#disqus_thread">Comments</a></p>'; echo ' </div>'; echo '</div>'; } } else { echo '<div class="row">'; echo ' <div class="column-xsmall-3 padd0 post-image-small"></div>'; echo ' <div class="column-xsmall-9">'; echo ' <h3 class="post-list-title"><a href="#" class="post-title-a">No Posts Found</a></h3>'; echo ' <p>No posts Found</p>'; echo ' <p class="article-add-info">No data</p>'; echo ' </div>'; echo '</div>'; } }