0) $categoryRow = getCategoryRow($cid); if($scid>0) $subCategoryRow = getCategoryRow($scid); if($categoryRow['father_id']>0) $fatherCategoryRow = getCategoryRow($categoryRow['father_id']); if($fatherCategoryRow['father_id'] != 607) rd_301('http://www.estetica.co.il/'); if($id > 0) { $articleItem = getArticleItem($id); if($articleItem['id']=='') rd_301('http://www.estetica.co.il/'); if($articleItem['rd_301']==1 && $articleItem['active']==0) rd_301('http://www.estetica.co.il/articles_list.php?cid='. $cid .'&scid='.$scid); $app_image_src = mediaURL($articleItem["main_media"]); $sql = 'select c.* from categories c, event_categories ec where c.id=ec.category_id and ec.event_id='. $articleItem['id'] .' and ec.pri=0'; $result = mysql_query($sql); $category = mysql_fetch_array($result); mysql_free_result($result); if($category['id']=='') rd_301('http://www.estetica.co.il/'); $fcategory = getCategoryRow($category['father_id']); if($category['category_type']==190) rd_301('http://www.estetica.co.il/articles_list.php?cid='. $category['father_id'] .'&scid='. $category['id']); // tip item $url = 'http://www.estetica.co.il/articles_list.php?cid='. $category['father_id'] .'&scid='. $category['id'] .'&id='.$articleItem['id']; $app_meta_canonical = $url; if($app_meta_description=='') $app_meta_description = $articleItem['subtitle']; } else if($scid>0){ if($subCategoryRow['id']=='' || $subCategoryRow['active']!=1) rd_301('http://www.estetica.co.il/articles_list.php?cid='. $categoryRow['id']); $url = 'http://www.estetica.co.il/articles_list.php?cid='. $subCategoryRow['father_id'] .'&scid='. $subCategoryRow['id']; $app_meta_canonical = $url; } else { if($categoryRow['id']=='' || $categoryRow['active']!=1) rd_301('http://www.estetica.co.il/'); $app_meta_canonical = 'http://www.estetica.co.il/articles_list.php?cid='.$categoryRow['id']; rd_301('http://www.estetica.co.il/category.php?cid='. $fatherCategoryRow['id']); } if($id>0 && $articleItem['provider_id']>0) $app_providers_array = getProvidersArray($articleItem['provider_id']); else $app_providers_array = getProvidersArray(); //$rightNav_selectedID = array(24=>4, 27=>5, 74=>25, 76=>24, 77=>93, 79=>95, 31=>34, 32=>35, 45=>14, 46=>15, 89=>104, 90=>105, 91=>103, 92=>148, 93=>150, 94=>149, 98=>166, 99=>164, 100=>165, 95=>180, 96=>174, 97=>176, 101=>185, 102=>183, 103=>184, 189=>10); $app_tochen_type = $categoryRow['category_type']; $app_headers_btns = $app_headers_btns_array[$fatherCategoryRow['id']]; $sheelon_cid = $categoryRow['father_id']; // category for right side sheelon $app_global_category = $categoryRow['father_id']; // main root category $categoriesArray = getCategories_GroupBy($cid); $app_middle_nav_category = $cid; include "layout_1p.php"; function centerLayout(){ global $app_main_category_array, $fatherCategoryRow, $categoryRow, $subCategoryRow, $id, $scid, $cid; $options = array( 'id' => $app_main_category_array[$fatherCategoryRow['id']], ); if($id>0) { $options['hardcoded_title'] = $subCategoryRow['category_name']; $options['disable_subtitle'] = 1; } else if($scid>0){ $options['hardcoded_title'] = $subCategoryRow['category_name']; $options['hardcoded_subtitle'] = $subCategoryRow['category_text']; if($options['hardcoded_subtitle']=='') $options['disable_subtitle'] = 1; } else { $options['hardcoded_title'] = $categoryRow['category_name']; $options['hardcoded_subtitle'] = $categoryRow['category_text']; if($options['hardcoded_subtitle']=='') $options['disable_subtitle'] = 1; } /* if($id>0) categoryRootTitle($app_main_category_array[$fatherCategoryRow['id']], $subCategoryRow['category_name'], ""); else if($scid>0)categoryRootTitle($app_main_category_array[$fatherCategoryRow['id']], $subCategoryRow['category_name'], $subCategoryRow['category_text']); else categoryRootTitle($app_main_category_array[$fatherCategoryRow['id']], $categoryRow['category_name'], $categoryRow['category_text']); */ page_h1_data($options); breadcrams(); global $articleItem; if($GLOBALS["app_tochen_type"]==310 && $articleItem['iframe_src'] !=''){ echo '
'; } echo "
"; echo ""; echo ""; echo ""; echo ""; echo "
"; if($scid>0 && $subCategoryRow['treatment_id']>0) confused_form_treatment($subCategoryRow['treatment_id']); else if($scid==0 && $categoryRow['treatment_id']>0) confused_form_treatment($categoryRow['treatment_id']); middlePinkLayout(); echo ""; if($GLOBALS["id"]==0){ articlesLayout(1); } else { articlesLayout(2); } //text_box_467(); echo " 
"; echo "
"; multipleBanner(607,93,16,1,15,$GLOBALS['app_global_category'],1); } function middlePinkFunction(){ global $fatherCategoryRow; include "inc/m_panel_".$fatherCategoryRow['id'].".php"; include "inc/google_ads.php"; } function rightLayout(){ global $fatherCategoryRow; include "inc/r_panel_".$fatherCategoryRow['id'].".php"; } function articlesTopFunctions_1(){ global $categoryRow; echo '

'. $categoryRow['category_name'] .'

'; } function articlesFunctions_1(){ global $categoriesArray, $subCategoryRow; print_dropdown_categories(); if($GLOBALS["app_tochen_type"]==139) echo "
"; // havaya if($GLOBALS["app_tochen_type"]==190) echo "
"; // tips for($i=0; $i0) confused_article_treatment($subCategoryRow['treatment_id']); //if($subCategoryRow['treatment_id']>0) echo ""; if($subCategoryRow['seo_event_id']>0) echo print_seo_text($subCategoryRow['seo_event_id']); if($subCategoryRow['menu_id']>0) print_menu_links($subCategoryRow['menu_id']); } function articlesTopFunctions_2(){ global $articleItem; echo '

'. $articleItem['title'] .'

'; //echo "".$articleItem['title'].""; } function articlesFunctions_2(){ global $articleItem, $zone_2_Translate, $app_providers_array, $fatherCategoryRow, $subCategoryRow, $app_icons_dir; echo "
".facebook_like_iframe()."".facebook_share_iframe()."
"; if($articleItem['provider_id']>0)echo "
(באדיבות ".$app_providers_array[$articleItem['provider_id']]['provider_name'].")
"; if($GLOBALS["app_tochen_type"]==(323*100)){ // before & after include "inc/articles_ba.php"; } else if($GLOBALS["app_tochen_type"]==(142*100)){ // video include "inc/article_video.php"; if($articleItem['advertisement']==1 && $articleItem['advertisement_form']==1) include "inc/advertisement_form.php"; } else { printArticleItem($GLOBALS["id"]); //echo sp(1,8)."
".$zone_2_Translate[306]['phrase']." ".$zone_2_Translate[294]['phrase']."
".sp(1,8)."
"; include "inc/article_toolbar.php"; //if($subCategoryRow['treatment_id']>0 && $articleItem['advertisement']==0)echo ""; if($subCategoryRow['treatment_id']>0 && $articleItem['advertisement']==0) confused_article_treatment($subCategoryRow['treatment_id']); // if($articleItem['advertisement']==0)echo "
".$zone_2_Translate[123]['phrase']."

"; //if($articleItem['advertisement']==0) echo "
".print_clinic_link()."

"; if($articleItem['advertisement']==1 && $articleItem['advertisement_form']==1)include "inc/advertisement_form.php"; printMoreArticles($GLOBALS["scid"]); } $tb_object_id = $articleItem['id']; $tb_object_type = 1; include "inc/talkbacks.php"; if($subCategoryRow['menu_id']>0) print_menu_links($subCategoryRow['menu_id']); } function breadcrams(){ global $zone_2_Translate, $categoryRow, $subCategoryRow, $fatherCategoryRow, $articleItem; $sql = "SELECT * FROM categories where active=1 and father_id='".$fatherCategoryRow['id']."' and category_type=199 limit 1"; $result = mysql_query($sql); $row = mysql_fetch_array($result); mysql_free_result($result); $forum_url_address = url_friendly("/forums.php?cid=".$row['id']); $forum_url_category = $row['category_name']; if($row['id']>0) $forum_button_template = "לפורום בנושא"; $clinics_link = Get_Clinic_Link($fatherCategoryRow['id'],1); echo "
".$zone_2_Translate[5]['phrase']." "; if($GLOBALS["id"]>0) echo breadcram()."".$fatherCategoryRow['category_name']."".breadcram()."".$subCategoryRow['category_name']."".breadcram().$articleItem['title']; else if($GLOBALS["scid"]>0) echo breadcram()."".$fatherCategoryRow['category_name']."".breadcram().$subCategoryRow['category_name']; else if($GLOBALS["cid"]>0) echo breadcram()."".$fatherCategoryRow['category_name']."".breadcram().$categoryRow['category_name']; echo "
".$forum_button_template.$clinics_link."
"; } function print_menu_links($menu_id = 0){ $sql = 'SELECT mt.* FROM menus m, menu_tabs mt where m.id = '. $menu_id .' and mt.menu_id=m.id and mt.active=1 order by mt.pri desc'; $result = mysql_query($sql); while($row = mysql_fetch_array($result)) $tabs[] = $row; mysql_free_result($result); if(count($tabs)==0) return; echo ''; } echo '
'; } function confused_article_treatment($treatment_id){ $treatment_row = get_treatmentRow($treatment_id); if($treatment_row['id']!='') include 'inc/confused_article_treatment.php'; }