"> <img class="img img-thumbnail img-responsive" src="<?php echo $src; ?> " /></a> </div> <div class="pull-left"> <a href="<?php echo get_url($this->database, "user", $all_user['id'], $all_user['Author_slug']); ?> "><?php echo text_limit($all_user['firstname'], 20); ?> </a> <br> <small>(<?php echo get_user_poems($this->database, $all_user['id'], array("ONLYCOUNT" => true)); ?> <?php echo POEMS; ?> ) </small> </div> </div> </div> <?php $count++; ?> <?php } ?> </div>
if (strpos($var, 'p:') === 0) { $page_no_var = $var; //get the current Page from URL } } //--PAGINATION--// $perpage = poems_by_author_per_page; $paginate = paginate($perpage, $page_no_var); $next_number = $paginate['next_number']; //--get author informations--// $user = get_user_info($database, $user_id); $tpl->user_info = $user[0]; //--increment of author views--// $update_poet = user_view_increment($database, $user_id); //--get all poems of author--// $page_poems = get_user_poems($database, $user_id, ['LIMIT' => array($next_number, $perpage), 'COUNT' => true]); $tpl->page_poems = $page_poems['data']; $count_records = $page_poems['count']; $total_pages = ceil($count_records / $perpage); $current_count = count($page_poems['data']); $page_array = array(); $page_array['current_page'] = $paginate['page_no']; $page_array['total_pages'] = $total_pages; $page_array['total_records'] = $count_records; $page_array['current_count'] = $current_count; $page_array['param_vars'] = $vars; $page_array['page_no_var'] = $page_no_var; $tpl->page_array = $page_array; // Send SEO Data if (!$user['seo_title']) { $tpl->page_title = $user['firstname'];