Advertisement
retesere20

wordpress--my-old-template

Jan 25th, 2020
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.42 KB | None | 0 0
  1. <?php
  2. function aa_my_plugin_outputttt() {
  3. main_HEADER_OUTPUT();
  4. main_INDEX_OUTPUT();
  5. main_FOOTER_OUTPUT();
  6. }
  7.  
  8.  
  9.  
  10.  
  11.  
  12. function main_HEADER_OUTPUT() {
  13.  
  14. foreach($GLOBALS as $name => $value) {global $$name;} //import all global variables
  15.  
  16. global $odd,$page_TEMPNAME,$wpdb,$SITE_LANGUAGES,$post;
  17. //we need to check 404 here (i have commented this problem in "____language_SETUP.php")
  18.  
  19. //dont remove the php close tags away from the start of "DOCTYPE"
  20.  
  21. ?><!DOCTYPE html>
  22. <html id="pagehtml" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://opengraphprotocol.org/schema/" xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo LnG;?>" xml:lang="<?php echo LnG;?>">
  23. <head><?php //echo header_parts('','', true); ?>
  24.  
  25. <?php
  26. // Remove original REL=CANONICAL, and CREATE NEW
  27. remove_action('wp_head', 'rel_canonical'); add_action('wp_head', 'add_myRela'); function add_myRela(){ echo '<link rel="canonical" href="'. currentURL.'" />'; }
  28.  
  29.  
  30. remove_action('wp_head', 'start_post_rel_link', 10, 0 );
  31. remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0);
  32.  
  33. //remove <title>, because we manually output that...
  34. remove_action('wp_head', '_wp_render_title_tag', 1, 0 );
  35. //load default wordpress HEAD lines
  36. wp_head();
  37.  
  38. add_filter('wp_title_parts', 'myfun329', 10,1); function myfun329($titlearray){
  39. //$title_array = apply_filters( 'wp_title_parts', explode( $t_sep, $title ) );
  40. return $titlearray;
  41. }
  42.  
  43. ?>
  44.  
  45. <?php
  46. global $odd;
  47. $cat_id=get_query_var('cat'); $current_cat = get_category($cat_id);
  48. if(!empty($cat_id)){
  49. $odd['current_catID'] = $current_cat->term_id; $odd['current_catSLUG'] = $current_cat->slug;
  50. $odd['current_catNAME'] = $current_cat->name; $odd['exlds']=get_option('exluded_cats');
  51. }
  52. else{
  53. $odd['current_catID'] = ''; $odd['current_catSLUG'] = '';
  54. $odd['current_catNAME'] = ''; $odd['exlds']=get_option('exluded_cats');
  55. }
  56.  
  57. // ----------------------------------------------------------------------------------------------- //
  58. // ------------------------------------- MAKING META PROPERTY-ies ---------------------- //
  59. // ----------------------------------------------------------------------------------------------- //
  60. $final_title='';$final_desc='';$final_imag=''; global $wp_query;
  61.  
  62.  
  63. $default_titlee = ( $GLOBALS['IS_SINGULARR'] ? get_the_title() : wp_title('|',false));
  64. $default_desc = ( $GLOBALS['IS_SINGULARR'] ? customm_word_length_sentence( $GLOBALS['post']->post_content ,35) : customm_word_length_sentence( $default_titlee ,35) );
  65. $default_imag = FullBase_link.'/custom_files/media/header_cutcentre.png';
  66.  
  67. $MAIN_TITLL =TRANSLL2('main_titl'); //get_bloginfo('name');
  68. $MAIN_TITLL_DISPL=TRANSLL2('main_titl_DISPL', LnG, array('eng'=>'Archpriest Theodore Gignadze (Sermons)', 'rus'=>' Протоиерей Теодоре Гигнадзе (Проповеди)', 'qar'=>'დეკანოზ თეოდორე გიგნაძის ქადაგებები') );
  69.  
  70. $MAIN_TITLL_OFC =TRANSLL2('main_titl_OFC');
  71. $MAIN_TITLL_heading_FullBracketed = '( '. $MAIN_TITLL_DISPL .' - '.$MAIN_TITLL_OFC .' )';
  72. $MAIN_TITLL_heading_HalfBracketed = $MAIN_TITLL_DISPL .' ['.$MAIN_TITLL_OFC .']';
  73. $MAIN_TITLL_bracketed = '('.$MAIN_TITLL.')';
  74.  
  75. $whichPaged = ($x = get_query_var('paged')) ? " - $x " : "";
  76. $out = '';
  77.  
  78. $is_homepag= ($GLOBALS['IS_PAGEE'] && $post->ID == $odd['START_page_id']) || $GLOBALS['IS_FRONT_PAGEE'];
  79.  
  80.  
  81.  
  82.  
  83. //Detect Front Page ( is_home is detection only for posts index. front_page is detection while it's posts index OR home PAGE)
  84. if ($is_homepag) { $page_TEMPNAME = 'start_PAGEEEEEE';
  85. $final_title= $MAIN_TITLL .$whichPaged; $final_desc = $MAIN_TITLL_heading_FullBracketed; $out .= ''; $og_final_title= $MAIN_TITLL_DISPL;
  86. }
  87. //if CATEGORY
  88. elseif ($GLOBALS['IS_ARCHIVEE']) {
  89. $final_title = single_cat_title( $prefix = '', $display = false ) .$whichPaged;
  90. $final_desc = (!empty($wp_query->queried_object) && !empty($wp_query->queried_object->category_description)) ? $wp_query->queried_object->category_description : $MAIN_TITLL_heading_HalfBracketed;
  91. $out .='';
  92. }
  93. //if any kind of "PAGE" type
  94. elseif ($GLOBALS['IS_PAGEE']) {
  95. //if biography pagee
  96. if ($post->ID == $odd['bio_page_id']) {
  97. $final_title= get_post_meta($post->ID,'MetaName_BIO_sataur_'.LnG, true) . '('. $MAIN_TITLL_heading_FullBracketed . ')';
  98. $final_desc= customm_word_length_sentence(35, get_post_meta($post->ID, 'MetaName_BIO_content_'.LnG, true ));
  99. $page_TEMPNAME = 'biographyy_PAGEEEEEE';
  100. }
  101. else{
  102. $final_title= $default_titlee;
  103. $final_desc = $default_desc;
  104. }
  105. $final_title .= $whichPaged;
  106. $out .='';
  107. }
  108. //if post
  109. elseif ($GLOBALS['IS_SINGLEE']){
  110. //VIDEOS CATEGORY
  111. if (stristr(requestURI, '/'.$odd['post_Types2']['videosi'])|| post_or_cat_is_in_ansector( $odd['CatIDs__'.LnG]['video'])) { $page_TEMPNAME = 'videoo_PAGEEEEEE';
  112. $final_title = $default_titlee; $final_desc = $MAIN_TITLL_heading_HalfBracketed;
  113.  
  114. //others
  115. $y_ID = get_youtube_id_from_VIDEOPOST($post); $out .=
  116. '<meta property="og:type" content="movie" />
  117.  
  118. <meta property="og:video" content="'.currentURL.'" />
  119. <meta property="og:video:secure_url" content="https://www.youtube.com/v/'.$y_ID.'&fs=1&version=3&showinfo=0&autohide=0&autoplay=1&rel=0&modestbranding=1" />
  120. <!-- <meta property="og:video" content="http://www.youtube.com/v/'.$y_ID.'&fs=1&version=3&showinfo=0&autohide=0&autoplay=1&rel=0&modestbranding=1" />
  121. <meta property="og:video:secure_url" content="https://www.youtube.com/v/'.$y_ID.'&fs=1&version=3&showinfo=0&autohide=0&autoplay=1&rel=0&modestbranding=1" />
  122. -->
  123. <meta property="og:video:type" content="application/x-shockwave-flash" />
  124. <meta property="og:video:width" content="560" /> <meta property="og:video:height" content="340" />';
  125.  
  126. //re-set image for this post_type
  127. $final_imag = str_ireplace('mqdefault','hqdefault',videos_thumb_FINDD2($post));
  128.  
  129.  
  130. }
  131. //AUDIOS CATEGORY
  132. elseif (stristr(requestURI, '/'.$odd['post_Types2']['audiosi'])|| post_or_cat_is_in_ansector( $odd['CatIDs__'.LnG]['audio'] )){ $page_TEMPNAME = 'audioo_PAGEEEEEE';
  133. $final_title = $default_titlee; $final_desc = $MAIN_TITLL_heading_HalfBracketed;
  134.  
  135. $aud_file_linki=homeURL.'/wp-content/uploads/'.get_MyAttachment_path($post); $out .=
  136. '<meta name="medium" content="audio" />
  137. <meta property="og:type" content="music.song"/><META PROPERTY="og:audio:title" CONTENT="'. $default_titlee .'"><meta property="og:audio" content="'.$aud_file_linki.'"/>
  138. <!-- <meta PROPERTY="sssssssssssssssssssog:audio:artist" CONTENT="NO NAME">
  139. <META PROPERTY="sssssssssssssssssssog:audio:album" CONTENT="NO NAME">
  140. <meta property="sssssssssssssssssssaudio:secure_url" content="'.$aud_file_linki.'" /> -->
  141. <meta property="og:audio:type" content="application/mp3"/> ';
  142.  
  143. //re-set image for this post_type
  144. $final_imag = FullBase_link.'/custom_files/media/default_audio_page_image1.jpg';
  145. }
  146. //BOOKS CATEGORY
  147. elseif (stristr(requestURI, '/'.$odd['post_Types2']['booksi']) || post_or_cat_is_in_ansector( $odd['CatIDs__'.LnG]['book'])) { $page_TEMPNAME = 'bookk_PAGEEEEEE';
  148. $final_title = $default_titlee; $final_desc = $MAIN_TITLL_heading_HalfBracketed; $out .='';
  149.  
  150. //re-set image for this post_type
  151. $final_imag = bookk_thumb_FINDD2($post);
  152. }
  153. //if unknownn
  154. else { $page_TEMPNAME = 'unknownn_PAGEEEEEE';}
  155. }
  156. //if SEARCH-RESULTS PAGE
  157. elseif ( $GLOBALS['IS_SEARCHH'] ) { $page_TEMPNAME = 'searchh_PAGEEEEEE';
  158. $final_title = $default_titlee; $final_desc= $default_desc; $out .='';
  159. // TRANSLL2('searchRESULTS').': '.get_search_query();
  160. }
  161. //if any other page type
  162. else { $page_TEMPNAME = 'unknownn_PAGEEEEEE';
  163. $final_title = $default_titlee; $final_desc= $default_desc; $out .='';
  164. }
  165. $og_final_title = isset($og_final_title) ? $og_final_title : $final_title;
  166.  
  167. // ======== ###END### Meta Titles
  168. $out = '
  169. <title>'. $final_title .'</title>
  170. <meta name="title" content="'. $final_title .'" >
  171. <meta name="description" content="'. $final_desc .'" >
  172. <meta property="og:title" content="'. $og_final_title .'" />
  173. <meta property="og:description" content="'. $final_desc .'" />'
  174. .
  175. $out
  176. .
  177. //default parameters for all pages
  178. '
  179. <meta property="og:site_name" content="'. $MAIN_TITLL .'" />
  180. <meta property="og:url" content="'. currentURL .'" />
  181. <meta property="og:image" content="'. myIMGurlencode( (!empty($final_imag)? $final_imag : $default_imag) ) .'" />
  182. <!-- <meta property="fb:admins" content="289779097755458" />
  183. <meta property="fb:app_id" content="156494594499046" /> -->
  184. ';
  185. echo $out;
  186.  
  187. utf8_declarationn_auto();
  188. default_rss_head_tags();
  189. ?>
  190.  
  191. <?php //wp_get_archives('type=monthly&format=link&echo=1'); //https://codex.wordpress.org/Function_Reference/wp_get_archives ?>
  192.  
  193. <!-- - - - - - - fancybox POPUP Player - - - - - - -->
  194. <link rel="stylesheet" type="text/css" href="<?php echo MyBaseLink;?>/library/js/fancybox/source/jquery.fancybox.css" media="screen">
  195. <script type="text/javascript" src="<?php echo MyBaseLink;?>/library/js/fancybox/source/jquery.fancybox.js"></script>
  196. <script type="text/javascript">
  197. //load the block after document loading finished [same as: $(document).ready(function() ]
  198. jQuery(document).ready(function()
  199. {
  200. //"WATCH VIDEO" clicked...
  201. jQuery(".videoitem_popup , .bookk_popup").click(function(e) {
  202. var IsVideo = this.className.indexOf("videoitem_popup") > -1;
  203. if(e.which == 1) { //left click
  204. if(this.className.indexOf("videoitem_popup") > -1){
  205. jQuery.fancybox({
  206. 'padding' :0, 'transitionIn' :'none', 'showCloseButton': true, 'transitionOut' : 'none',
  207. 'titleShow' : false, 'title' : '', 'titlePosition' :'inside', 'overlayOpacity': 0.8,
  208. 'scrolling' :'no', 'autoScale' :false, 'centerOnScroll': true, 'hideOnOverlayClick': false,
  209. //add parameter to the opening link
  210. 'href' : '<?php echo $GLOBALS['odd']['FancyBoxOpenACTIONLINK'];?>video_popup_fancy&id='+this.getAttribute("pidd"),
  211.  
  212. 'type' : 'iframe',
  213. 'frameWidth': 670, 'frameHeight': 383,
  214. 'width': 650, 'height': "auto", 'minWidth' : '200px' , 'maxWidth' :'650px', 'minHeight' :'440px', 'maxHeight' :'99%',
  215. //'swf' : { 'wmode' : 'transparent', 'allowfullscreen' : 'true'},
  216. 'helpers' : { 'overlay':{ 'closeClick': false, 'locked': false, } }
  217. });
  218. }
  219. else if (this.className.indexOf("bookk_popup") > -1) {
  220. jQuery.fancybox({
  221. 'padding' : 0, 'transitionIn' :'none', 'showCloseButton': true,
  222. 'titleShow' : false, 'title' : '', 'titlePosition' :'inside', 'overlayOpacity': 0.8,
  223. 'transitionOut' : 'none', 'hideOnOverlayClick': false, 'centerOnScroll': true,
  224. 'helpers' : { 'overlay':{ 'closeClick': false, 'locked': false, } },
  225. //add parameter to the opening link
  226. 'href' : '<?php echo $GLOBALS['odd']['FancyBoxOpenACTIONLINK'];?>book_popup_fancy&id='+this.getAttribute("pidd"),
  227.  
  228. 'type' : 'ajax',
  229. 'ajax' : {dataFilter: function(data) { return data; } }, //return function(data).find('#div_name_for_fancy ');
  230. 'autoScale' :true, 'scrolling' :'auto', 'autoSize' :true, 'fitToView' :true,
  231. 'minWidth' :'200px', 'maxWidth' :'1000px', 'minHeight' :'100', 'maxHeight' :'99999',
  232. 'onUpdate' : function(){
  233. //$('.bookk_content').css({'margin': '0px 1px 0 0'}); //$.fancybox.update();
  234. jQuery('.bookk_content').find('a').click(function() {
  235. var ch1=false;
  236. setInterval(function()
  237. { if (!ch1)
  238. {
  239. //check if really exists
  240. if(document.getElementById("PAPER_SINGLED_PAGE")) { $.fancybox.update(); ch1=true; }
  241. }
  242. },
  243. 10);
  244. });
  245. },
  246. });
  247. }
  248. return false;
  249. }
  250. });
  251.  
  252. });
  253. </script>
  254.  
  255.  
  256. <?php if (LOAD_GOOGLE_FONTS) { echo googlefonts(); } ?>
  257.  
  258.  
  259. </head><!-- - - - - - - - - - - ### HEAD - - - - - - - - - - -->
  260. <?php
  261. if ($GLOBALS['IS_SINGLEE'] || $GLOBALS['IS_PAGEE']) {$pclass= 'pp__'.$post->post_name;}
  262. elseif ($GLOBALS['IS_ARCHIVEE']) {$pclass= 'categg__'.$odd['current_catSLUG'];}
  263. else {$pclass= 'unknownnnnn';}
  264. ?>
  265. <body id="bodyy" <?php body_class();?>>
  266. <?php do_action('output_after_body'); ?>
  267. <div id="FULL_INSIDE">
  268. <div id="FULL_Container">
  269. <div id="HEADER_container">
  270. <?php do_action('output_headblock_1');?>
  271. </div> <!-- ###HEADER_container -->
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280. <?php echo check_if_JS_enabled(); //echo check_if_COOKIES_enabled(); ?>
  281.  
  282.  
  283.  
  284. <?php
  285.  
  286.  
  287.  
  288.  
  289.  
  290. add_action('output_my_main_head_1','func112'); function func112(){
  291. ?>
  292.  
  293. <div id="curentHeading" class="<?php echo LnG.'__curent_url_title';?>">
  294. <div id="cat_bigTitlee1"><?php echo $GLOBALS['big_block_HEADING'];?></div>
  295. <div id="subcat_small_titlee1"><?php if (!empty($GLOBALS['subcategoryyy_HEADING'])) {echo $GLOBALS['subcategoryyy_HEADING'];}?></div>
  296. <!-- this DIV is then set By javascript (see in bottom) -->
  297. </div>
  298. <div class="whiteline"></div>
  299.  
  300. <?php
  301. }
  302.  
  303.  
  304.  
  305.  
  306. function main_INDEX_OUTPUT(){ ?>
  307. <div id="WRAPPER_container">
  308.  
  309. <div class="wrapper_holder">
  310. <?php do_action('output_before_my_container'); ?>
  311. <div id="my_container">
  312. <div id="my_sidebar1" class="def_sidebar">
  313. <?php do_action('output_my_sidebar1'); ?>
  314. </div><!-- my_sidebar1 -->
  315. <div id="my_sidebar_DIVIDER_main"></div>
  316. <div id="my_main">
  317. <div id="content" class="dd">
  318. <?php
  319. do_action('output_my_main_head_1'); if (function_exists('yoast_breadcrumb')) { echo $breadcrumbs = yoast_breadcrumb("","",false); }
  320.  
  321. if ($GLOBALS['IS_HOMEE'] || $GLOBALS['IS_FRONT_PAGEE']) {$target="Homepagee";} elseif ($GLOBALS['IS_CATEGORYY']){$target="Categoryy";} elseif ($GLOBALS['IS_PAGEE']){$target="Pagee";} elseif ($GLOBALS['IS_SINGLEE']){$target="Postt";} elseif ($GLOBALS['IS_SEARCHH']){$target="Searchh";} elseif ($GLOBALS['IS_4044']){$target="4044";} else{$target="unknownn";}
  322.  
  323. ?>
  324. <div id="location__<?php echo $target;?>" class="DefaultLoc <?php echo $target;?>_CLASS">
  325. <?php do_action('output_query_area',$target); ?>
  326. </div><!-- location__<?php echo $target;?> -->
  327. </div><!-- content -->
  328. </div> <!-- my_main -->
  329. <div id="my_sidebar2" class="def_sidebar">
  330. <?php do_action('output_my_sidebar2'); ?>
  331. </div><!-- my_sidebar2 -->
  332. <div class="clearboth"></div>
  333. </div><!-- my_container --><div class="clearboth"></div>
  334. </div><!-- wrapper_holder -->
  335. </div><!-- WRAPPER_container -->
  336. <?php
  337.  
  338. }
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349. function main_FOOTER_OUTPUT() { ?>
  350.  
  351. <div style="clear:both;"></div>
  352. </div><!-- FULL_Container -->
  353. <div class="footer_holder" align="center">
  354. <div class="page-border-topbottom2"></div>
  355. <div class="footer_holder">
  356. <div class="fh_1"><div class="fh_1a"><?php output_footer_holder_1(); ?></div></div>
  357. <div class="fh_2"><div class="fh_2a"><div class="wpfooter_holder"><?php wp_footer(); ?></div></div><!-- wp_footer --></div>
  358. <div class="clearboth"></div>
  359. </div><div class="clearboth"></div>
  360. </div> <!-- ###FOOTER_container -->
  361. </div> <!-- ###FULL_INSIDE -->
  362. </body>
  363. </html>
  364.  
  365.  
  366. <?php
  367. }
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374. function output_footer_holder_1(){
  375. global $odd,$page_TEMPNAME;
  376. ?>
  377.  
  378.  
  379. <div class="conttacttt" align="right">
  380. <a id="showCntFancyID" href="<?php echo $odd['contct_lnk'].LnG;?>" onclick="javascript:showContactFormmm();return false;" class="rghh" target="_blank"><?php echo TRANSLL2('kontakti');?></a>
  381.  
  382. <div id="contac_container_DIV" style="display:none;">
  383. <?php echo contacttt_form('<tr><td colspan="2" style="font-style:italic; color:red;" >('. TRANSLL2('contactDeliveredAdmin', LnG).')</td></tr>'); ?>
  384.  
  385. <script type="text/javascript">
  386. //function showContactFormmm(){ show_my_popup( document.getElementById('contac_DIV').innerHTML);}
  387. function showContactFormmm(){
  388. jQuery.fancybox({
  389. 'href' : '#contac_DIV',
  390. 'width' : 125,
  391. 'titleShow' : false,
  392. 'showCloseButton': false,
  393. 'centerOnScroll': true,
  394. 'scrolling' :'no',
  395. 'helpers' : { 'overlay':{ 'closeClick': false, 'locked': false, } }
  396. });
  397. }
  398.  
  399. if (window.jQuery) {
  400. $("#contactFormID").on("submit", function(evt){
  401. evt.preventDefault();
  402. SHOW_waiting();
  403. jQuery.ajax({
  404. method: "POST", url: "<?php echo homeURL;?>/index.php", data: $("#contactFormID").serialize() //{ name: "John", location: "Boston" }
  405. })
  406. .done(function( msg ) {
  407. HIDE_waiting(); document.getElementsByClassName("fancybox-close")[0].click(); show_my_popup(msg);
  408. });
  409. });
  410. }
  411. </script>
  412. </div>
  413. </div>
  414. <?php
  415. }
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432. add_action('output_query_area','myfunc_131',10, 2);function myfunc_131($namee){
  433.  
  434. global $odd, $wp_query,$post;
  435. foreach($GLOBALS as $name => $value) {global $$name;} //import all global variables
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442. // ============================ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.
  443.  
  444. if ($GLOBALS['IS_CATEGORYY']) { ?>
  445. <!-- - - - - If visitor is on category - - - - -->
  446.  
  447.  
  448. <div id="category_PAGE" class="subcat_records categoryy">
  449. <?php
  450. //for category, QUERY is already set from FUNCTIONS.PHP
  451. ?>
  452.  
  453. <?php if(have_posts()) : ?>
  454. <?php while(have_posts()) : the_post(); ?>
  455. <div class="categoryy_eachh ListedEach">
  456. <?php
  457. EachTypeIncludee();
  458. ?>
  459. </div>
  460. <?php endwhile; ?>
  461.  
  462. <div class="navigationn">
  463. <ul>
  464. <?php echo wpbeginner_numeric_posts_nav();?>
  465. </ul>
  466. </div>
  467.  
  468. <?php else : ?><?php echo TRANSLL2('no_posts_found_in_categ');?>
  469. <?php endif; ?>
  470. </div><!-- "category_PAGE" -->
  471.  
  472.  
  473.  
  474.  
  475. <?php } elseif ($GLOBALS['IS_PAGEE']) { ?>
  476. <!-- - - - - if visitor is on "PAGE" type - - - - -->
  477.  
  478. <div id="page_PAGE" class="subcat_records pagee" >
  479.  
  480. <?php
  481.  
  482. // ----- if it is the start page, then show all categories(appended under the current main LANGUAGE) posts
  483. if ($post->ID==$odd['START_page_id'])
  484. {
  485. stickyPosts2();
  486.  
  487. // ============================================== NORMAL POSTS ============================================== //
  488. my_MainPage_Queryy();
  489. ?>
  490. <?php if(have_posts()) : ?>
  491. <?php while(have_posts()) : the_post(); ?>
  492. <div class="pagee_eachhs ListedEach">
  493.  
  494. <?php EachTypeIncludee();?>
  495. </div>
  496. <?php endwhile; ?>
  497.  
  498. <div class="navigationn">
  499. <ul>
  500. <?php echo wpbeginner_numeric_posts_nav();?>
  501. </ul>
  502. </div>
  503.  
  504. <?php else : ?><?php echo TRANSLL2('no_page_found');?>
  505. <?php endif; ?>
  506.  
  507. <?php
  508. }
  509.  
  510. // ----- if BIOGRAPHY page
  511. elseif ($post->ID==$odd['bio_page_id'])
  512. { ?>
  513. <?php if(have_posts()) : ?>
  514. <?php while(have_posts()) : the_post(); ?>
  515.  
  516. <div class="pagee_eachh">
  517. <!-- hide sidebar, and stretch the full width -->
  518. <script type="text/javascript">
  519. document.getElementById("my_main").className += " FULLCONTENTTT";
  520. var sidebarDIVV = document.getElementById("my_sidebar1");
  521. if(sidebarDIVV) {sidebarDIVV.parentNode.removeChild(sidebarDIVV);}
  522. </script>
  523.  
  524. <!-- <h2><?php the_permalink(); ?> <?php the_title(); ?> <?php edit_post_link('Edit', ' &#124; ', ''); ?></h2> -->
  525. <div class="bidefault_imag">
  526. <?php
  527. if (has_post_thumbnail())
  528. {$imgu=get_the_post_thumbnail();} /*the_post_thumbnail();*/
  529. else
  530. {$imgu=MyBaseLink.'/custom_files/media/biography_images/default_biogr_image4.jpg';}
  531. echo '<img class="biooimage" src="'.$imgu.'" alt="" />';
  532. ?>
  533. </div>
  534.  
  535. <div class="entryy biogrentry">
  536. <?php
  537. //the_content();
  538.  
  539. $original_contnnt = htmlspecialchars_decode(get_post_meta($post->ID, 'MetaName_BIO_content_'.LnG,true));
  540. echo apply_filters('the_content', $original_contnnt );
  541. ?>
  542. </div>
  543.  
  544. <div style="clear:both;"></div>
  545.  
  546. <div class="tagss">
  547. <?php the_tags('Tags: ', ', ', ''); ?>
  548. </div>
  549. <!--
  550. <div class="comments-templatee">
  551. <?php //comments_template(); ?>
  552. </div>
  553. -->
  554. </div>
  555.  
  556. <?php endwhile; ?><?php else : ?><div class="postrs"><?php echo TRANSLL2('no_page_found');?> </div>
  557. <?php endif; ?>
  558. <?php
  559. }
  560.  
  561.  
  562.  
  563. // ------ if just a single "PAGE" page (currently, maybe we dont have any typical "page" published
  564. else
  565. { ?>
  566. <?php if(have_posts()) : ?>
  567. <?php while(have_posts()) : the_post(); ?>
  568.  
  569. <div class="pagee_eachh">
  570. <!-- <h2><?php //the_permalink(); ?> <?php the_title(); ?> <?php edit_post_link('Edit', ' &#124; ', ''); ?></h2> -->
  571. <div class="tagss">
  572. <?php the_tags('Tags: ', ', ', ''); ?>
  573. </div>
  574. <div class="entryy">
  575. <?php the_content(); ?>
  576. </div>
  577. <!-- <div class="comments-templatee">
  578. <?php //comments_template(); ?>
  579. </div> -->
  580. </div>
  581.  
  582. <?php endwhile; ?><?php else : ?><div class="postrs"><?php echo TRANSLL2('no_page_found');?> </div>
  583. <?php endif; ?>
  584. <?php
  585. } ?>
  586.  
  587. </div><!-- "page_PAGE" -->
  588.  
  589.  
  590.  
  591.  
  592.  
  593. <?php } elseif ($GLOBALS['IS_SINGLEE']) { ?>
  594. <!-- - - - - IF typical,single "post" page - - - - -->
  595.  
  596. <div id="single_post_PAGE" class="singlee" >
  597.  
  598. <?php if(have_posts()) : ?>
  599. <?php while(have_posts()) : the_post(); ?>
  600.  
  601. <div class="singlee_eachh">
  602. <!-- due to reason, that h2 style is clear:both, it spoils styling, so not use <h2><?php // the_title(); edit_post_link('Edit', ' &#124; ', ''); ?></h2> -->
  603. <div class="tagss">
  604. <?php the_tags('Tags: ', ', ', ''); ?>
  605. </div>
  606.  
  607. <div class="entryy">
  608. <?php
  609. if ($page_TEMPNAME == 'videoo_PAGEEEEEE') { Video_page_outputt(); }
  610. elseif ($page_TEMPNAME == 'audioo_PAGEEEEEE') { Audio_page_outputt();
  611. //because the page was opened directly, then make it auto-play
  612. echo '<script type="text/javascript"> //window.setTimeout(\'document.getElementsByClassName("Aud_PlayTrigger")[0].click();\',1000); </script>'; }
  613. elseif ($page_TEMPNAME == 'bookk_PAGEEEEEE') { Book_page_outputt(); }
  614. ?>
  615. </div>
  616. </div>
  617. <?php //comments_template(); ?>
  618. <?php endwhile; ?>
  619.  
  620. <div class="navigationn">
  621. <ul><?php echo wpbeginner_numeric_posts_nav();?></ul>
  622. </div>
  623.  
  624. <?php else : ?><div class="postt"><?php echo TRANSLL2('no_page_found');?> </div>
  625. <?php endif; ?>
  626. </div><!-- "single_post_PAGE" -->
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635. <?php } elseif ($GLOBALS['IS_SEARCHH']) { ?>
  636. <!-- - - - - if SEARCH-RESULTS page- - - - -->
  637.  
  638. <?php global $odd;
  639. //query_posts( 'post_type='.$odd['post_Types2'])
  640. //QUERY for this search, is already set from function.php
  641. ;?>
  642.  
  643. <div id="search_result_PAGE" class="subcat_records searchh" >
  644.  
  645. <?php if(have_posts()) : ?>
  646. <!-- IF SOME RESULTS ARE FOUND -->
  647. <div class="found search_page_result_mini_title">
  648. <?php
  649. $looking_phraze =get_search_query();
  650. //now JAVASCRIPT sets "subcat_small_titlee1", with its phraze(word)
  651. echo '
  652. <script type="text/javascript">
  653. document.getElementById("subcat_small_titlee1").innerHTML = " <div class=\"black_txt\">'. addslashes(TRANSLL2('search_FOUNDD1')) .'</div>";
  654. document.getElementById("r0").innerHTML = "'. $looking_phraze .'";
  655. document.getElementById("r1").innerHTML = "'. $wp_query->found_posts .'";
  656. </script>';
  657. ?>
  658. </div>
  659.  
  660. <?php while ( have_posts() ) : the_post(); ?>
  661. <div class="searchh_eachh ListedEach">
  662. <?php
  663. EachTypeIncludee(); ?>
  664. </div>
  665. <?php endwhile; ?>
  666.  
  667. <div class="navigationn">
  668. <ul>
  669. <?php echo wpbeginner_numeric_posts_nav();?>
  670. </ul>
  671. </div>
  672.  
  673. <?php else : ?>
  674. <!-- IF couldnt FIND any SEARCH-RESULTS -->
  675.  
  676. <div class="Notfound search_page_result_mini_title">
  677. <script type="text/javascript">
  678. //now JAVASCRIPT sets "subcat_small_titlee1", with its phraze(word)
  679. document.getElementById("subcat_small_titlee1").innerHTML = '<div class="black_txt"><?php echo addslashes(TRANSLL2('search_NOFOUND1')) . ' (<span id="auto_PHRAZEE">'.get_search_query().'</span>)' ;?></div>';
  680. </script>
  681. </div>
  682.  
  683. <ul class="warning_list">
  684. <?php
  685. echo '<li>'. TRANSLL2('NOT_FOUND_HINT1') .'</li>';
  686. ?>
  687. </ul>
  688.  
  689. <?php endif; ?>
  690. </div><!-- "search_result_PAGE" -->
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697. <?php } elseif ($GLOBALS['IS_4044']) { ?>
  698. <!-- - - - - IF 404 (NON_EXISING) GVERDIA- - - - -->
  699.  
  700. <div id="404_PAGE">
  701. <?php
  702.  
  703. //var_dump($wp_query);
  704. //die('error_404');
  705. //wp_redirect(home_url(), 301);
  706. //get_header(); ?>
  707.  
  708. <div class="4044_contt">
  709. 404 - <?php echo TRANSLL2('no_page_found');?>
  710. </div>
  711.  
  712. </div><!-- "404_PAGE" -->
  713.  
  714.  
  715.  
  716.  
  717. <?php } elseif ($GLOBALS['IS_HOMEE'] || $GLOBALS['IS_FRONT_PAGEE']) { ?>
  718. <!-- - - - - if INDEX page (maybe this wont ever happen, because start page is redirected) - - - - -->
  719.  
  720. <div id="indexxxxx_PAGE" class="subcat_records indexx">
  721.  
  722. <?php if(have_posts()) : ?>
  723. <?php while(have_posts()) : the_post(); ?>
  724. <div class="index_mtavari_blog">
  725. <?php EachTypeIncludee(); ?>
  726. </div>
  727. <?php endwhile; ?>
  728. <?php else : ?> No index posts Found
  729. <?php endif; ?>
  730. </div><!-- "indexxxxx_PAGE" -->
  731.  
  732.  
  733.  
  734. <?php } else { //if still other location, then i dont know what to show )) ; ?>
  735.  
  736.  
  737. <?php }
  738.  
  739. }
  740.  
  741.  
  742.  
  743.  
  744. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement