The Kitchen Novice

                    Easy Recipes in Minutes

Bookmark this page
Facebook Google Bookmarks Stumbleupon
 
 
 
assign('categorytitle', $categorytitle); $page=abs(intval($_REQUEST['page'])); if ($page==0) $page=1; $perpage=2; $pagination=""; //////// if ($rowcatresult['category_count']>0) { $result = mysql_query("SELECT * FROM `wp_posts` WHERE post_status='publish' AND post_parent='0' ORDER BY `post_modified` DESC LIMIT ".((abs(intval($page)-1))*$perpage).",$perpage"); $rn=0; while ($row = mysql_fetch_array($result)) { $rn++; /*$filename = $disk_thumbspath.$row['original_title'].'.jpg'; if (!file_exists($filename)) { $tpl->assign('thumburl', $thumbspath.'default.jpg'); } else { $tpl->assign('thumburl', $filename); } $itemurl=seolink(1,"$rootpath/items.php?itemid=$row[ContentID]","$rootpath/","item",array(str_replace("_"," ",$row['content_title']),$row['ContentID']));*/ $itemurl="items.php?id=".$row['ID']; $tpl->assign('itemurl', $itemurl); $tpl->assign('itemtitle', $row['post_title']); $tpl->assign('itemdate', $row['post_modified']); $tpl->assign('itemcontent', $row['post_content']); $generalrecords.= $tpl->parse($filethemepath.'/item_box.html'); } $pagedlink=seolink(0,"$rootpath/category.php?cid=$maincat","$rootpath/","categorywithpage",array($categorytitle,$maincat,'##PAGE##')); $my_array=GenerateAllPaginationArray($pagedlink,"",$recordsnumber,$perpage,$page,"1"); if (count($my_array)>1) for ($k=0;$kassign("pagination",$pagination); } $tpl->assign('generalrecords', $generalrecords); /* START GET SEO DATA*/ if ($_metatitle=="") $metatitle=$defaultmetatitle; if ($_metakeywords=="") $metakeywords=$defaultmetakeywords; if ($_metadescription=="") $metadescription=$defaultmetadescription; /* END GET SEO DATA */ $tpl->assign('metatitle', $metatitle); $tpl->assign('metakeywords', $metakeywords); $tpl->assign('metadescription', $metadescription); $pagecontent= $tpl->parse($filethemepath.'/categories_content.html'); $tpl->assign('pagecontent', $pagecontent); $tpl->assign('sidebar', $sidebar); $tpl->assign('httpthemepath', $httpthemepath); $tpl->display($filethemepath.'/index.html'); /* ---------------------------------------------------------------------- */ ?>

       

Site Search

food network ca
fresh strawberry dessert recipes

Blog