'; $FixTags[]='
'; $FixTags[]='{lista}'; /* //OBTENER DE DONDE SE QUIERE LOS ARTICLES (ARTILCES / BLOGS) $content_type = $_GET["content_type"]; $content_type = ($content_type == '') ? $_POST["content_type"] : $content_type; $content_type = ($content_type == '') ? '1' : $content_type; define("CONTENT_TYPE", $content_type); define("CONTENT_TYPEName", ($content_type == '1')?'Article':'Blog'); define("CONTENT_TYPEurl", ($content_type == '1')?'articles':'blogs'); */ $OpenGraph = ''; #------------------------------------------------------------------------------------------- # CONTROLLER switch ($_POST['action']){ case 'search': $ajax = (isset($_POST['ajaxReq']))?true:false; $init = (isset($_POST['init']) and $_POST['init'] > 0)?$_POST['init'] : 0; $aRes = searchAll($_POST['str'], $init, $ajax); $ApiData->getBreadcrumb('',$_GET['id'],'search'); if($_GET['ajax']==1){ echo json_encode($aRes); die(); } $aTags['Metas_Canonical']=''; $aTags['Metas_Canonical'].=($aRes['canonicalUrl']!='') ? '' : ''; $aTags['Metas_Canonical'].=($aRes['canonicalNex']!='') ? '' : ''; $aTags['Metas_Canonical'].=($aRes['canonicalPre']!='') ? '' : ''; $aTags['where_iam'] = $ApiData->getBreadcrumb('','0','search'); $aTags['page_title']= $aRes['page_title']; $aTags['leftCol'] = $aRes['lista']; break; default: $ajax = (isset($_POST['ajaxReq']))?true:false; $aRes = searchAllByTags($_POST['tag'], $init, $ajax); if($_GET['ajax']==1){ echo json_encode($aRes); die(); } $aTags['Metas_Canonical']=''; $aTags['Metas_Canonical'].=($aRes['canonicalUrl']!='') ? '' : ''; $aTags['Metas_Canonical'].=($aRes['canonicalNex']!='') ? '' : ''; $aTags['Metas_Canonical'].=($aRes['canonicalPre']!='') ? '' : ''; $aTags['where_iam'] = $ApiData->getBreadcrumb('','0','tags'); $aTags['page_title']= $aRes['page_title']; $aTags['leftCol'] = $aRes['lista']; break; } #------------------------------------------------------------------------------------------- # Define el template a utilizar if($tpl==''){ $tpl=akCargarTpl(THEME_DIR.'index.tpl'); } if(!isset($_POST['ajax'])){ #------------------------------------------------------------------------------------------- # RIGHT COL $contentTypeFlex = 1; include('engines/flex/flex.rightcol.php'); #------------------------------------------------------------------------------------------- /* Define que cosas se van a cargar entre y , luego de y antes de */ $aTags['Metas_OpenGraph'] .= $OpenGraph; $aTags['header_local'] .= akCargarFile('run/header.flex.pages.php'); $aTags['body_local'] = akCargarFile('run/body.flex.pages.php'); $aTags['ContentPage']='
{leftCol}
'; include('run/run.end.php'); } ?>