Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function aa_my_plugin_outputttt() {
- main_HEADER_OUTPUT();
- main_INDEX_OUTPUT();
- main_FOOTER_OUTPUT();
- }
- function main_HEADER_OUTPUT() {
- foreach($GLOBALS as $name => $value) {global $$name;} //import all global variables
- global $odd,$page_TEMPNAME,$wpdb,$SITE_LANGUAGES,$post;
- //we need to check 404 here (i have commented this problem in "____language_SETUP.php")
- //dont remove the php close tags away from the start of "DOCTYPE"
- ?><!DOCTYPE html>
- <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;?>">
- <head><?php //echo header_parts('','', true); ?>
- <?php
- // Remove original REL=CANONICAL, and CREATE NEW
- remove_action('wp_head', 'rel_canonical'); add_action('wp_head', 'add_myRela'); function add_myRela(){ echo '<link rel="canonical" href="'. currentURL.'" />'; }
- remove_action('wp_head', 'start_post_rel_link', 10, 0 );
- remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0);
- //remove <title>, because we manually output that...
- remove_action('wp_head', '_wp_render_title_tag', 1, 0 );
- //load default wordpress HEAD lines
- wp_head();
- add_filter('wp_title_parts', 'myfun329', 10,1); function myfun329($titlearray){
- //$title_array = apply_filters( 'wp_title_parts', explode( $t_sep, $title ) );
- return $titlearray;
- }
- ?>
- <?php
- global $odd;
- $cat_id=get_query_var('cat'); $current_cat = get_category($cat_id);
- if(!empty($cat_id)){
- $odd['current_catID'] = $current_cat->term_id; $odd['current_catSLUG'] = $current_cat->slug;
- $odd['current_catNAME'] = $current_cat->name; $odd['exlds']=get_option('exluded_cats');
- }
- else{
- $odd['current_catID'] = ''; $odd['current_catSLUG'] = '';
- $odd['current_catNAME'] = ''; $odd['exlds']=get_option('exluded_cats');
- }
- // ----------------------------------------------------------------------------------------------- //
- // ------------------------------------- MAKING META PROPERTY-ies ---------------------- //
- // ----------------------------------------------------------------------------------------------- //
- $final_title='';$final_desc='';$final_imag=''; global $wp_query;
- $default_titlee = ( $GLOBALS['IS_SINGULARR'] ? get_the_title() : wp_title('|',false));
- $default_desc = ( $GLOBALS['IS_SINGULARR'] ? customm_word_length_sentence( $GLOBALS['post']->post_content ,35) : customm_word_length_sentence( $default_titlee ,35) );
- $default_imag = FullBase_link.'/custom_files/media/header_cutcentre.png';
- $MAIN_TITLL =TRANSLL2('main_titl'); //get_bloginfo('name');
- $MAIN_TITLL_DISPL=TRANSLL2('main_titl_DISPL', LnG, array('eng'=>'Archpriest Theodore Gignadze (Sermons)', 'rus'=>' Протоиерей Теодоре Гигнадзе (Проповеди)', 'qar'=>'დეკანოზ თეოდორე გიგნაძის ქადაგებები') );
- $MAIN_TITLL_OFC =TRANSLL2('main_titl_OFC');
- $MAIN_TITLL_heading_FullBracketed = '( '. $MAIN_TITLL_DISPL .' - '.$MAIN_TITLL_OFC .' )';
- $MAIN_TITLL_heading_HalfBracketed = $MAIN_TITLL_DISPL .' ['.$MAIN_TITLL_OFC .']';
- $MAIN_TITLL_bracketed = '('.$MAIN_TITLL.')';
- $whichPaged = ($x = get_query_var('paged')) ? " - $x " : "";
- $out = '';
- $is_homepag= ($GLOBALS['IS_PAGEE'] && $post->ID == $odd['START_page_id']) || $GLOBALS['IS_FRONT_PAGEE'];
- //Detect Front Page ( is_home is detection only for posts index. front_page is detection while it's posts index OR home PAGE)
- if ($is_homepag) { $page_TEMPNAME = 'start_PAGEEEEEE';
- $final_title= $MAIN_TITLL .$whichPaged; $final_desc = $MAIN_TITLL_heading_FullBracketed; $out .= ''; $og_final_title= $MAIN_TITLL_DISPL;
- }
- //if CATEGORY
- elseif ($GLOBALS['IS_ARCHIVEE']) {
- $final_title = single_cat_title( $prefix = '', $display = false ) .$whichPaged;
- $final_desc = (!empty($wp_query->queried_object) && !empty($wp_query->queried_object->category_description)) ? $wp_query->queried_object->category_description : $MAIN_TITLL_heading_HalfBracketed;
- $out .='';
- }
- //if any kind of "PAGE" type
- elseif ($GLOBALS['IS_PAGEE']) {
- //if biography pagee
- if ($post->ID == $odd['bio_page_id']) {
- $final_title= get_post_meta($post->ID,'MetaName_BIO_sataur_'.LnG, true) . '('. $MAIN_TITLL_heading_FullBracketed . ')';
- $final_desc= customm_word_length_sentence(35, get_post_meta($post->ID, 'MetaName_BIO_content_'.LnG, true ));
- $page_TEMPNAME = 'biographyy_PAGEEEEEE';
- }
- else{
- $final_title= $default_titlee;
- $final_desc = $default_desc;
- }
- $final_title .= $whichPaged;
- $out .='';
- }
- //if post
- elseif ($GLOBALS['IS_SINGLEE']){
- //VIDEOS CATEGORY
- if (stristr(requestURI, '/'.$odd['post_Types2']['videosi'])|| post_or_cat_is_in_ansector( $odd['CatIDs__'.LnG]['video'])) { $page_TEMPNAME = 'videoo_PAGEEEEEE';
- $final_title = $default_titlee; $final_desc = $MAIN_TITLL_heading_HalfBracketed;
- //others
- $y_ID = get_youtube_id_from_VIDEOPOST($post); $out .=
- '<meta property="og:type" content="movie" />
- <meta property="og:video" content="'.currentURL.'" />
- <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" />
- <!-- <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" />
- <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" />
- -->
- <meta property="og:video:type" content="application/x-shockwave-flash" />
- <meta property="og:video:width" content="560" /> <meta property="og:video:height" content="340" />';
- //re-set image for this post_type
- $final_imag = str_ireplace('mqdefault','hqdefault',videos_thumb_FINDD2($post));
- }
- //AUDIOS CATEGORY
- elseif (stristr(requestURI, '/'.$odd['post_Types2']['audiosi'])|| post_or_cat_is_in_ansector( $odd['CatIDs__'.LnG]['audio'] )){ $page_TEMPNAME = 'audioo_PAGEEEEEE';
- $final_title = $default_titlee; $final_desc = $MAIN_TITLL_heading_HalfBracketed;
- $aud_file_linki=homeURL.'/wp-content/uploads/'.get_MyAttachment_path($post); $out .=
- '<meta name="medium" content="audio" />
- <meta property="og:type" content="music.song"/><META PROPERTY="og:audio:title" CONTENT="'. $default_titlee .'"><meta property="og:audio" content="'.$aud_file_linki.'"/>
- <!-- <meta PROPERTY="sssssssssssssssssssog:audio:artist" CONTENT="NO NAME">
- <META PROPERTY="sssssssssssssssssssog:audio:album" CONTENT="NO NAME">
- <meta property="sssssssssssssssssssaudio:secure_url" content="'.$aud_file_linki.'" /> -->
- <meta property="og:audio:type" content="application/mp3"/> ';
- //re-set image for this post_type
- $final_imag = FullBase_link.'/custom_files/media/default_audio_page_image1.jpg';
- }
- //BOOKS CATEGORY
- elseif (stristr(requestURI, '/'.$odd['post_Types2']['booksi']) || post_or_cat_is_in_ansector( $odd['CatIDs__'.LnG]['book'])) { $page_TEMPNAME = 'bookk_PAGEEEEEE';
- $final_title = $default_titlee; $final_desc = $MAIN_TITLL_heading_HalfBracketed; $out .='';
- //re-set image for this post_type
- $final_imag = bookk_thumb_FINDD2($post);
- }
- //if unknownn
- else { $page_TEMPNAME = 'unknownn_PAGEEEEEE';}
- }
- //if SEARCH-RESULTS PAGE
- elseif ( $GLOBALS['IS_SEARCHH'] ) { $page_TEMPNAME = 'searchh_PAGEEEEEE';
- $final_title = $default_titlee; $final_desc= $default_desc; $out .='';
- // TRANSLL2('searchRESULTS').': '.get_search_query();
- }
- //if any other page type
- else { $page_TEMPNAME = 'unknownn_PAGEEEEEE';
- $final_title = $default_titlee; $final_desc= $default_desc; $out .='';
- }
- $og_final_title = isset($og_final_title) ? $og_final_title : $final_title;
- // ======== ###END### Meta Titles
- $out = '
- <title>'. $final_title .'</title>
- <meta name="title" content="'. $final_title .'" >
- <meta name="description" content="'. $final_desc .'" >
- <meta property="og:title" content="'. $og_final_title .'" />
- <meta property="og:description" content="'. $final_desc .'" />'
- .
- $out
- .
- //default parameters for all pages
- '
- <meta property="og:site_name" content="'. $MAIN_TITLL .'" />
- <meta property="og:url" content="'. currentURL .'" />
- <meta property="og:image" content="'. myIMGurlencode( (!empty($final_imag)? $final_imag : $default_imag) ) .'" />
- <!-- <meta property="fb:admins" content="289779097755458" />
- <meta property="fb:app_id" content="156494594499046" /> -->
- ';
- echo $out;
- utf8_declarationn_auto();
- default_rss_head_tags();
- ?>
- <?php //wp_get_archives('type=monthly&format=link&echo=1'); //https://codex.wordpress.org/Function_Reference/wp_get_archives ?>
- <!-- - - - - - - fancybox POPUP Player - - - - - - -->
- <link rel="stylesheet" type="text/css" href="<?php echo MyBaseLink;?>/library/js/fancybox/source/jquery.fancybox.css" media="screen">
- <script type="text/javascript" src="<?php echo MyBaseLink;?>/library/js/fancybox/source/jquery.fancybox.js"></script>
- <script type="text/javascript">
- //load the block after document loading finished [same as: $(document).ready(function() ]
- jQuery(document).ready(function()
- {
- //"WATCH VIDEO" clicked...
- jQuery(".videoitem_popup , .bookk_popup").click(function(e) {
- var IsVideo = this.className.indexOf("videoitem_popup") > -1;
- if(e.which == 1) { //left click
- if(this.className.indexOf("videoitem_popup") > -1){
- jQuery.fancybox({
- 'padding' :0, 'transitionIn' :'none', 'showCloseButton': true, 'transitionOut' : 'none',
- 'titleShow' : false, 'title' : '', 'titlePosition' :'inside', 'overlayOpacity': 0.8,
- 'scrolling' :'no', 'autoScale' :false, 'centerOnScroll': true, 'hideOnOverlayClick': false,
- //add parameter to the opening link
- 'href' : '<?php echo $GLOBALS['odd']['FancyBoxOpenACTIONLINK'];?>video_popup_fancy&id='+this.getAttribute("pidd"),
- 'type' : 'iframe',
- 'frameWidth': 670, 'frameHeight': 383,
- 'width': 650, 'height': "auto", 'minWidth' : '200px' , 'maxWidth' :'650px', 'minHeight' :'440px', 'maxHeight' :'99%',
- //'swf' : { 'wmode' : 'transparent', 'allowfullscreen' : 'true'},
- 'helpers' : { 'overlay':{ 'closeClick': false, 'locked': false, } }
- });
- }
- else if (this.className.indexOf("bookk_popup") > -1) {
- jQuery.fancybox({
- 'padding' : 0, 'transitionIn' :'none', 'showCloseButton': true,
- 'titleShow' : false, 'title' : '', 'titlePosition' :'inside', 'overlayOpacity': 0.8,
- 'transitionOut' : 'none', 'hideOnOverlayClick': false, 'centerOnScroll': true,
- 'helpers' : { 'overlay':{ 'closeClick': false, 'locked': false, } },
- //add parameter to the opening link
- 'href' : '<?php echo $GLOBALS['odd']['FancyBoxOpenACTIONLINK'];?>book_popup_fancy&id='+this.getAttribute("pidd"),
- 'type' : 'ajax',
- 'ajax' : {dataFilter: function(data) { return data; } }, //return function(data).find('#div_name_for_fancy ');
- 'autoScale' :true, 'scrolling' :'auto', 'autoSize' :true, 'fitToView' :true,
- 'minWidth' :'200px', 'maxWidth' :'1000px', 'minHeight' :'100', 'maxHeight' :'99999',
- 'onUpdate' : function(){
- //$('.bookk_content').css({'margin': '0px 1px 0 0'}); //$.fancybox.update();
- jQuery('.bookk_content').find('a').click(function() {
- var ch1=false;
- setInterval(function()
- { if (!ch1)
- {
- //check if really exists
- if(document.getElementById("PAPER_SINGLED_PAGE")) { $.fancybox.update(); ch1=true; }
- }
- },
- 10);
- });
- },
- });
- }
- return false;
- }
- });
- });
- </script>
- <?php if (LOAD_GOOGLE_FONTS) { echo googlefonts(); } ?>
- </head><!-- - - - - - - - - - - ### HEAD - - - - - - - - - - -->
- <?php
- if ($GLOBALS['IS_SINGLEE'] || $GLOBALS['IS_PAGEE']) {$pclass= 'pp__'.$post->post_name;}
- elseif ($GLOBALS['IS_ARCHIVEE']) {$pclass= 'categg__'.$odd['current_catSLUG'];}
- else {$pclass= 'unknownnnnn';}
- ?>
- <body id="bodyy" <?php body_class();?>>
- <?php do_action('output_after_body'); ?>
- <div id="FULL_INSIDE">
- <div id="FULL_Container">
- <div id="HEADER_container">
- <?php do_action('output_headblock_1');?>
- </div> <!-- ###HEADER_container -->
- <?php echo check_if_JS_enabled(); //echo check_if_COOKIES_enabled(); ?>
- <?php
- add_action('output_my_main_head_1','func112'); function func112(){
- ?>
- <div id="curentHeading" class="<?php echo LnG.'__curent_url_title';?>">
- <div id="cat_bigTitlee1"><?php echo $GLOBALS['big_block_HEADING'];?></div>
- <div id="subcat_small_titlee1"><?php if (!empty($GLOBALS['subcategoryyy_HEADING'])) {echo $GLOBALS['subcategoryyy_HEADING'];}?></div>
- <!-- this DIV is then set By javascript (see in bottom) -->
- </div>
- <div class="whiteline"></div>
- <?php
- }
- function main_INDEX_OUTPUT(){ ?>
- <div id="WRAPPER_container">
- <div class="wrapper_holder">
- <?php do_action('output_before_my_container'); ?>
- <div id="my_container">
- <div id="my_sidebar1" class="def_sidebar">
- <?php do_action('output_my_sidebar1'); ?>
- </div><!-- my_sidebar1 -->
- <div id="my_sidebar_DIVIDER_main"></div>
- <div id="my_main">
- <div id="content" class="dd">
- <?php
- do_action('output_my_main_head_1'); if (function_exists('yoast_breadcrumb')) { echo $breadcrumbs = yoast_breadcrumb("","",false); }
- 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";}
- ?>
- <div id="location__<?php echo $target;?>" class="DefaultLoc <?php echo $target;?>_CLASS">
- <?php do_action('output_query_area',$target); ?>
- </div><!-- location__<?php echo $target;?> -->
- </div><!-- content -->
- </div> <!-- my_main -->
- <div id="my_sidebar2" class="def_sidebar">
- <?php do_action('output_my_sidebar2'); ?>
- </div><!-- my_sidebar2 -->
- <div class="clearboth"></div>
- </div><!-- my_container --><div class="clearboth"></div>
- </div><!-- wrapper_holder -->
- </div><!-- WRAPPER_container -->
- <?php
- }
- function main_FOOTER_OUTPUT() { ?>
- <div style="clear:both;"></div>
- </div><!-- FULL_Container -->
- <div class="footer_holder" align="center">
- <div class="page-border-topbottom2"></div>
- <div class="footer_holder">
- <div class="fh_1"><div class="fh_1a"><?php output_footer_holder_1(); ?></div></div>
- <div class="fh_2"><div class="fh_2a"><div class="wpfooter_holder"><?php wp_footer(); ?></div></div><!-- wp_footer --></div>
- <div class="clearboth"></div>
- </div><div class="clearboth"></div>
- </div> <!-- ###FOOTER_container -->
- </div> <!-- ###FULL_INSIDE -->
- </body>
- </html>
- <?php
- }
- function output_footer_holder_1(){
- global $odd,$page_TEMPNAME;
- ?>
- <div class="conttacttt" align="right">
- <a id="showCntFancyID" href="<?php echo $odd['contct_lnk'].LnG;?>" onclick="javascript:showContactFormmm();return false;" class="rghh" target="_blank"><?php echo TRANSLL2('kontakti');?></a>
- <div id="contac_container_DIV" style="display:none;">
- <?php echo contacttt_form('<tr><td colspan="2" style="font-style:italic; color:red;" >('. TRANSLL2('contactDeliveredAdmin', LnG).')</td></tr>'); ?>
- <script type="text/javascript">
- //function showContactFormmm(){ show_my_popup( document.getElementById('contac_DIV').innerHTML);}
- function showContactFormmm(){
- jQuery.fancybox({
- 'href' : '#contac_DIV',
- 'width' : 125,
- 'titleShow' : false,
- 'showCloseButton': false,
- 'centerOnScroll': true,
- 'scrolling' :'no',
- 'helpers' : { 'overlay':{ 'closeClick': false, 'locked': false, } }
- });
- }
- if (window.jQuery) {
- $("#contactFormID").on("submit", function(evt){
- evt.preventDefault();
- SHOW_waiting();
- jQuery.ajax({
- method: "POST", url: "<?php echo homeURL;?>/index.php", data: $("#contactFormID").serialize() //{ name: "John", location: "Boston" }
- })
- .done(function( msg ) {
- HIDE_waiting(); document.getElementsByClassName("fancybox-close")[0].click(); show_my_popup(msg);
- });
- });
- }
- </script>
- </div>
- </div>
- <?php
- }
- add_action('output_query_area','myfunc_131',10, 2);function myfunc_131($namee){
- global $odd, $wp_query,$post;
- foreach($GLOBALS as $name => $value) {global $$name;} //import all global variables
- // ============================ >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.
- if ($GLOBALS['IS_CATEGORYY']) { ?>
- <!-- - - - - If visitor is on category - - - - -->
- <div id="category_PAGE" class="subcat_records categoryy">
- <?php
- //for category, QUERY is already set from FUNCTIONS.PHP
- ?>
- <?php if(have_posts()) : ?>
- <?php while(have_posts()) : the_post(); ?>
- <div class="categoryy_eachh ListedEach">
- <?php
- EachTypeIncludee();
- ?>
- </div>
- <?php endwhile; ?>
- <div class="navigationn">
- <ul>
- <?php echo wpbeginner_numeric_posts_nav();?>
- </ul>
- </div>
- <?php else : ?><?php echo TRANSLL2('no_posts_found_in_categ');?>
- <?php endif; ?>
- </div><!-- "category_PAGE" -->
- <?php } elseif ($GLOBALS['IS_PAGEE']) { ?>
- <!-- - - - - if visitor is on "PAGE" type - - - - -->
- <div id="page_PAGE" class="subcat_records pagee" >
- <?php
- // ----- if it is the start page, then show all categories(appended under the current main LANGUAGE) posts
- if ($post->ID==$odd['START_page_id'])
- {
- stickyPosts2();
- // ============================================== NORMAL POSTS ============================================== //
- my_MainPage_Queryy();
- ?>
- <?php if(have_posts()) : ?>
- <?php while(have_posts()) : the_post(); ?>
- <div class="pagee_eachhs ListedEach">
- <?php EachTypeIncludee();?>
- </div>
- <?php endwhile; ?>
- <div class="navigationn">
- <ul>
- <?php echo wpbeginner_numeric_posts_nav();?>
- </ul>
- </div>
- <?php else : ?><?php echo TRANSLL2('no_page_found');?>
- <?php endif; ?>
- <?php
- }
- // ----- if BIOGRAPHY page
- elseif ($post->ID==$odd['bio_page_id'])
- { ?>
- <?php if(have_posts()) : ?>
- <?php while(have_posts()) : the_post(); ?>
- <div class="pagee_eachh">
- <!-- hide sidebar, and stretch the full width -->
- <script type="text/javascript">
- document.getElementById("my_main").className += " FULLCONTENTTT";
- var sidebarDIVV = document.getElementById("my_sidebar1");
- if(sidebarDIVV) {sidebarDIVV.parentNode.removeChild(sidebarDIVV);}
- </script>
- <!-- <h2><?php the_permalink(); ?> <?php the_title(); ?> <?php edit_post_link('Edit', ' | ', ''); ?></h2> -->
- <div class="bidefault_imag">
- <?php
- if (has_post_thumbnail())
- {$imgu=get_the_post_thumbnail();} /*the_post_thumbnail();*/
- else
- {$imgu=MyBaseLink.'/custom_files/media/biography_images/default_biogr_image4.jpg';}
- echo '<img class="biooimage" src="'.$imgu.'" alt="" />';
- ?>
- </div>
- <div class="entryy biogrentry">
- <?php
- //the_content();
- $original_contnnt = htmlspecialchars_decode(get_post_meta($post->ID, 'MetaName_BIO_content_'.LnG,true));
- echo apply_filters('the_content', $original_contnnt );
- ?>
- </div>
- <div style="clear:both;"></div>
- <div class="tagss">
- <?php the_tags('Tags: ', ', ', ''); ?>
- </div>
- <!--
- <div class="comments-templatee">
- <?php //comments_template(); ?>
- </div>
- -->
- </div>
- <?php endwhile; ?><?php else : ?><div class="postrs"><?php echo TRANSLL2('no_page_found');?> </div>
- <?php endif; ?>
- <?php
- }
- // ------ if just a single "PAGE" page (currently, maybe we dont have any typical "page" published
- else
- { ?>
- <?php if(have_posts()) : ?>
- <?php while(have_posts()) : the_post(); ?>
- <div class="pagee_eachh">
- <!-- <h2><?php //the_permalink(); ?> <?php the_title(); ?> <?php edit_post_link('Edit', ' | ', ''); ?></h2> -->
- <div class="tagss">
- <?php the_tags('Tags: ', ', ', ''); ?>
- </div>
- <div class="entryy">
- <?php the_content(); ?>
- </div>
- <!-- <div class="comments-templatee">
- <?php //comments_template(); ?>
- </div> -->
- </div>
- <?php endwhile; ?><?php else : ?><div class="postrs"><?php echo TRANSLL2('no_page_found');?> </div>
- <?php endif; ?>
- <?php
- } ?>
- </div><!-- "page_PAGE" -->
- <?php } elseif ($GLOBALS['IS_SINGLEE']) { ?>
- <!-- - - - - IF typical,single "post" page - - - - -->
- <div id="single_post_PAGE" class="singlee" >
- <?php if(have_posts()) : ?>
- <?php while(have_posts()) : the_post(); ?>
- <div class="singlee_eachh">
- <!-- due to reason, that h2 style is clear:both, it spoils styling, so not use <h2><?php // the_title(); edit_post_link('Edit', ' | ', ''); ?></h2> -->
- <div class="tagss">
- <?php the_tags('Tags: ', ', ', ''); ?>
- </div>
- <div class="entryy">
- <?php
- if ($page_TEMPNAME == 'videoo_PAGEEEEEE') { Video_page_outputt(); }
- elseif ($page_TEMPNAME == 'audioo_PAGEEEEEE') { Audio_page_outputt();
- //because the page was opened directly, then make it auto-play
- echo '<script type="text/javascript"> //window.setTimeout(\'document.getElementsByClassName("Aud_PlayTrigger")[0].click();\',1000); </script>'; }
- elseif ($page_TEMPNAME == 'bookk_PAGEEEEEE') { Book_page_outputt(); }
- ?>
- </div>
- </div>
- <?php //comments_template(); ?>
- <?php endwhile; ?>
- <div class="navigationn">
- <ul><?php echo wpbeginner_numeric_posts_nav();?></ul>
- </div>
- <?php else : ?><div class="postt"><?php echo TRANSLL2('no_page_found');?> </div>
- <?php endif; ?>
- </div><!-- "single_post_PAGE" -->
- <?php } elseif ($GLOBALS['IS_SEARCHH']) { ?>
- <!-- - - - - if SEARCH-RESULTS page- - - - -->
- <?php global $odd;
- //query_posts( 'post_type='.$odd['post_Types2'])
- //QUERY for this search, is already set from function.php
- ;?>
- <div id="search_result_PAGE" class="subcat_records searchh" >
- <?php if(have_posts()) : ?>
- <!-- IF SOME RESULTS ARE FOUND -->
- <div class="found search_page_result_mini_title">
- <?php
- $looking_phraze =get_search_query();
- //now JAVASCRIPT sets "subcat_small_titlee1", with its phraze(word)
- echo '
- <script type="text/javascript">
- document.getElementById("subcat_small_titlee1").innerHTML = " <div class=\"black_txt\">'. addslashes(TRANSLL2('search_FOUNDD1')) .'</div>";
- document.getElementById("r0").innerHTML = "'. $looking_phraze .'";
- document.getElementById("r1").innerHTML = "'. $wp_query->found_posts .'";
- </script>';
- ?>
- </div>
- <?php while ( have_posts() ) : the_post(); ?>
- <div class="searchh_eachh ListedEach">
- <?php
- EachTypeIncludee(); ?>
- </div>
- <?php endwhile; ?>
- <div class="navigationn">
- <ul>
- <?php echo wpbeginner_numeric_posts_nav();?>
- </ul>
- </div>
- <?php else : ?>
- <!-- IF couldnt FIND any SEARCH-RESULTS -->
- <div class="Notfound search_page_result_mini_title">
- <script type="text/javascript">
- //now JAVASCRIPT sets "subcat_small_titlee1", with its phraze(word)
- 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>';
- </script>
- </div>
- <ul class="warning_list">
- <?php
- echo '<li>'. TRANSLL2('NOT_FOUND_HINT1') .'</li>';
- ?>
- </ul>
- <?php endif; ?>
- </div><!-- "search_result_PAGE" -->
- <?php } elseif ($GLOBALS['IS_4044']) { ?>
- <!-- - - - - IF 404 (NON_EXISING) GVERDIA- - - - -->
- <div id="404_PAGE">
- <?php
- //var_dump($wp_query);
- //die('error_404');
- //wp_redirect(home_url(), 301);
- //get_header(); ?>
- <div class="4044_contt">
- 404 - <?php echo TRANSLL2('no_page_found');?>
- </div>
- </div><!-- "404_PAGE" -->
- <?php } elseif ($GLOBALS['IS_HOMEE'] || $GLOBALS['IS_FRONT_PAGEE']) { ?>
- <!-- - - - - if INDEX page (maybe this wont ever happen, because start page is redirected) - - - - -->
- <div id="indexxxxx_PAGE" class="subcat_records indexx">
- <?php if(have_posts()) : ?>
- <?php while(have_posts()) : the_post(); ?>
- <div class="index_mtavari_blog">
- <?php EachTypeIncludee(); ?>
- </div>
- <?php endwhile; ?>
- <?php else : ?> No index posts Found
- <?php endif; ?>
- </div><!-- "indexxxxx_PAGE" -->
- <?php } else { //if still other location, then i dont know what to show )) ; ?>
- <?php }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement