File Editor
Directories:
.. (Back)
css
fonts
functions
images
js
languages
Files:
404.php
about-section.php
breadcrumbs.php
comments.php
content-none.php
content-posts-home.php
content-posts.php
content-single.php
content.php
contentboxes-section.php
copyright.php
cta-section.php
features-section.php
footer.php
fromblog-section.php
functions.php
getintouch-section.php
getstarted-section.php
header.php
image.php
index.php
license.txt
owlpost-info.php
page-fullwidth.php
page-left-sidebar.php
page-right-sidebar.php
page.php
post-formats.php
post-info.php
post-meta.php
post-nav.php
readme.txt
services-section.php
sidebar-footer.php
sidebar.php
single.php
social-section.php
style.css
title-section.php
top-header.php
Create New File
Create
Edit File: index.php
<?php /** * The main template file. * * This is the most generic template file in a WordPress theme * and one of the two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * E.g., it puts together the home page when no home.php file exists. * Learn more: http://codex.wordpress.org/Template_Hierarchy * * @package Modality */ $modality_theme_options = modality_get_options( 'modality_theme_options' ); get_header(); ?> <div id="main" class="<?php echo esc_attr($modality_theme_options['layout_settings']); ?>"> <?php if (is_front_page() && ! is_paged()) { if ($modality_theme_options['image_slider_on'] == '1') { if ($modality_theme_options['default_image_slider'] == 'ideal') { modality_ideal_slider(); } else { modality_unslider_slider(); } } if ($modality_theme_options['getstarted_section_on'] == '1') { get_template_part( 'getstarted', 'section' ); } if ($modality_theme_options['features_section_on'] == '1') { get_template_part( 'features', 'section' ); } if ($modality_theme_options['about_section_on'] == '1') { get_template_part( 'about', 'section' ); } if ($modality_theme_options['services_section_on'] == '1') { get_template_part( 'services', 'section' ); } if ($modality_theme_options['cta_section_on'] == '1') { get_template_part( 'cta', 'section' ); } if ($modality_theme_options['content_boxes_section_on'] == '1') { get_template_part( 'contentboxes', 'section' ); } if ($modality_theme_options['getin_home_on'] == '1') { get_template_part( 'getintouch', 'section' ); } if ($modality_theme_options['blog_section_on'] == '1') { get_template_part( 'fromblog', 'section' ); } if ($modality_theme_options['latest_posts_on'] == '1') { get_template_part( 'content-posts', 'home' ); } } else { get_template_part( 'content', 'posts' ); } ?> </div><!--main--> <?php if ($modality_theme_options['social_section_on'] == '1') { get_template_part( 'social', 'section' ); } get_footer(); ?>
Save Changes
Rename File
Rename