'; $FixTags[]='
'; $FixTags[]='{lista}'; //OBTENER DE DONDE SE QUIERE LOS ARTICLES (ARTILCES / BLOGS) define("CONTENT_TYPE", $content_type); define("CONTENT_TYPEName", 'Media'); define("CONTENT_TYPEurl", 'Media'); if($_GET['pag']=='' or $_GET['pag']=='0'){$_GET['pag']='1';} #------------------------------------------------------------------------------------------- # CONTROLLER switch ($_GET['controller']){ case 'videosByAuthor': if($_GET['id']=='' or $_GET['id']=='0'){$_GET['id']='0';} include_once(ENGINES_FOLDER.'/videos/inc/getVideosFromAuthor.php'); $aVideos=getVideosFromAuthor($_GET['id']); if($_GET['ajax']==1){ echo json_encode($aVideos); die(); } $aTags['Metas_Canonical']=''; $aTags['Metas_Canonical'].=($aVideos['canonicalUrl']!='') ? '' : ''; $aTags['Metas_Canonical'].=($aVideos['canonicalNex']!='') ? '' : ''; $aTags['Metas_Canonical'].=($aVideos['canonicalPre']!='') ? '' : ''; $aTags['leftCol']=$aVideos['lista']; $aTags['leftCol']=sFixTags($aTags['leftCol'],$FixTags); $aTags['where_iam']=$aVideos['where_iam']; $aTags['page_title']=SITE_TITLE.' '.$aVideos['page_title']; break; case 'Videobysection': if($_GET['id']=='' or $_GET['id']=='0'){$_GET['id']='0';} include('inc/akisha.rad/akPaginar.php'); $aVideos=getVideosFromSection($_GET['id']); if($_GET['ajax']==1){ echo json_encode($aVideos); die(); } $aTags['Metas_Canonical']=''; $aTags['Metas_Canonical'].=($aVideos['canonicalUrl']!='') ? '' : ''; $aTags['Metas_Canonical'].=($aVideos['canonicalNex']!='') ? '' : ''; $aTags['Metas_Canonical'].=($aVideos['canonicalPre']!='') ? '' : ''; $aTags['leftCol']=$aVideos['lista']; $aTags['leftCol']=sFixTags($aTags['leftCol'],$FixTags); $aTags['where_iam']=$ApiData->getBreadcrumb(CONTENT_TYPE,$_GET['id'],'list'); //$aTags['page_title']=SITE_TITLE.' '. $aVideos['page_title']; $aTags['cTop']= html_entity_decode_php4( $aVideos['top_text']? "
{$aVideos['top_text']}
":'' ); //------------------------------------------------------------------------------------ //IMPLEMENTACION PARA ESTABLECER EL FLEX PAGE PARA UN ENGINE $section_id = $_GET['id']; $q="select cont_sections.id, cont_sections.parent_id from cont_sections where cont_sections.id=".$section_id." LIMIT 1; "; $ress=mysql_query($q); $rs=mysql_fetch_array($ress); $section_id = $rs['id']; $superSection_id = $rs['parent_id']; //------------------------------------------------------------------------------------ break; case 'viewVideo': include('./inc/akisha.rad/akPaginar.php'); include(ENGINES_FOLDER.'/related/getRelatedByTag.php'); $aVideos=getVideosFullView($_GET['id']); # COMMENTS $Comments = akCargarTpl(ENGINES_FOLDER.'disqus/comment.tpl'); $replace["widget_user_actions_name"] = 'comments-box'; $replace["widget_user_actions_id"] = 'dComments'; $replace["widget_user_actions_title"] = 'Comments'; $replace["widget_user_actions_description"] = 'Share your opinion'; $replace["widget_user_actions_content"] = $Comments; $replace["disqus_identifier"] = md5('Media:'.$_GET['id']); $comments_box = akSimpleTemplate(akCargarTpl(THEME_DIR.'tpls/widget-user-actions.tpl'),$replace,'',''); $aVideos['leftCol'] = str_replace('{comments_box}',$comments_box,$aVideos['leftCol']); /* Rating */ $aVideos['leftCol']=str_replace('{rating_box}',"",$aVideos['leftCol']); /* */ $aTags['leftCol']=$aVideos['leftCol']; //$aTags['where_iam']=$aVideos['where_iam']; $aTags['where_iam']=$ApiData->getBreadcrumb(CONTENT_TYPE,$_GET['id'],'full'); $aTags['page_title']=SITE_TITLE; $aTags['cTop'] = $aVideos['contentTop']; /* Related Tags */ include(ENGINES_FOLDER.'related/relatedsContent.php'); $aTags['leftCol']=relatedsContent($_GET['id'],$content_type,$aTags['leftCol']); //------------------------------------------------------------------------------------ //IMPLEMENTACION PARA ESTABLECER EL FLEX PAGE PARA UN ENGINE $videoId = $_GET['id']; $q="select cont_sections.id, cont_sections.parent_id from cont_videos, cont_sections where cont_videos.id=".$videoId." and cont_sections.id=cont_videos.section_id LIMIT 1; "; $ress=mysql_query($q); $rs=mysql_fetch_array($ress); $section_id = $rs['id']; $superSection_id = $rs['parent_id']; //------------------------------------------------------------------------------------ break; default: if($_GET['id']=='' or $_GET['id']=='0'){$_GET['id']='0';} include('inc/akisha.rad/akPaginar.php'); $aVideos=getVideosFromSection('0'); $aTags['Metas_Canonical']=''; $aTags['Metas_Canonical'].=($aVideos['canonicalUrl']!='') ? '' : ''; $aTags['Metas_Canonical'].=($aVideos['canonicalNex']!='') ? '' : ''; $aTags['Metas_Canonical'].=($aVideos['canonicalPre']!='') ? '' : ''; $aTags['leftCol']=$aVideos['lista']; $aTags['leftCol']=sFixTags($aTags['leftCol'],$FixTags); $aTags['where_iam']=$ApiData->getBreadcrumb(CONTENT_TYPE,'0','list'); $aTags['page_title']=SITE_TITLE.' '.'Videos'; $aTags['cTop'] = ''; break; } #------------------------------------------------------------------------------------------- # Define el template a utilizar if($tpl==''){ $tpl=akCargarTpl(THEME_DIR.'index.tpl'); } #------------------------------------------------------------------------------------------- # RIGHT COL $contentTypeFlex = 13; include('engines/flex/flex.rightcol.php'); #------------------------------------------------------------------------------------------- /* Define que cosas se van a cargar entre y , luego de y antes de */ $aTags['body_local'] = akCargarFile('run/body.flex.pages.php'); $aTags['header_local'] = akCargarFile('run/header.flex.pages.php'); $topTextPlace = isset( $aTags['topText'] ) ? '
{topText}
': ''; $aTags['ContentPage']='
{leftCol}
'; include('run/run.end.php'); ?>