文件操作 - index.php
返回文件管理
返回主菜单
删除本文件
文件: /home/tecnoht/public_html/fratellibartesaghi--it/wp-content/themes/architek/index.php
编辑文件内容
<?php /** * @package WordPress * @subpackage Architek */ get_header(); $architek_reading_option = get_option("architek_blog_reading_type"); $architek_more = 0; $menuLocations = get_nav_menu_locations(); $menuID = 0; if (isset($menuLocations['PrimaryNavigation'])){ $menuID = $menuLocations['PrimaryNavigation']; } if (function_exists('icl_object_id')){ global $sitepress; $current_lang = false; $default_lang = false; if ($sitepress != NULL){ //WPML $current_lang = $sitepress->get_current_language(); $default_lang = $sitepress->get_default_language(); } if ( function_exists('pll_current_language') ){ //Polylang $current_lang = pll_current_language(); $default_lang = pll_default_language(); } if ($current_lang && $default_lang && $current_lang!=$default_lang){ $table_name = $wpdb->base_prefix."icl_translations"; $q = "SELECT trid FROM {$table_name} WHERE element_type LIKE 'tax_nav_menu' AND element_id=%d"; $res = $wpdb->get_results($wpdb->prepare($q, $menuID), OBJECT); if (!empty($res)){ $trid = (int) $res[0]->trid; $q = "SELECT element_id FROM {$table_name} WHERE language_code LIKE '".$current_lang."' AND trid=%d"; $res = $wpdb->get_results($wpdb->prepare($q, $trid), OBJECT); if (!empty($res)) $menuID = (int) $res[0]->element_id; } } } $theMenus = wp_get_nav_menus($menuID); $theMenu = array(); for ($idx = 0; $idx < count($theMenus); $idx++){ if ($theMenus[$idx]->term_id == $menuID){ $theMenu = $theMenus[$idx]; } } define('ARCHITEK_IS_FIRST_PAGE', true); if (get_option('architek_blog_archive_style', 'masonry') == "masonry") get_template_part('blog-masonry-template'); elseif (get_option('architek_blog_archive_style', 'masonry_grid') == "masonry_grid") get_template_part('blog-masonry-grid-template'); else get_template_part('blog-template'); ?> <div class="clear"></div> <?php get_footer(); ?>
修改文件时间
将文件时间修改为当前时间的前一年
删除文件