Enabled'; echo '

Enable this to only show the posts meta on post listings page.

'; } function achilles_meta_text_posts(){ $opt = esc_attr( get_option( 'meta_text_posts') ); $checked = (@$opt == '1' ? 'checked' : ''); echo ''; echo '

This is for the author name and post info right below the header.

'; } function achilles_email_support(){ $support_email = 'achillesTheme@outlook.com'; echo 'Send us and email at '.$support_email.''; echo '

I will try to respond as soon as possible but please allow a couple of days.

'; } function achilles_header_ads(){ $opt_head_ad = esc_attr( get_option('header_ad') ); echo ''; echo ''; echo '

Place your ad code in here. This is designed for an ad with a height of 90px.

'; } function achilles_mobile_header_ads(){ $opt_head_ad = esc_attr( get_option('header_mobile_ad') ); echo ''; echo ''; echo '

This ad will be used for when your page is smaller than 770px. If not set the ads wont display on mobile. Try to find a responsive ad or one with smaller width.

'; } function achilles_below_content_ads(){ $opt_ad = esc_attr( get_option('below_content_ad') ); echo ''; echo ''; echo '

Place your ad code in here. This is for a responsive ad, width is set to 100% and height set to 320px.

'; } function achilles_below_side_widgets_ads(){ $opt_ad = esc_attr( get_option('below_widgets_ad') ); echo ''; echo ''; echo '

Place your ad code in here.

'; } function achilles_site_home_callback(){ $website_name = 'http://www.achillestheme.com'; echo 'Visit our page for more info.'; } function achilles_custom_container_callback(){ $opts = esc_attr( get_option('achilles_container') ); $Schecked = ( @$opts == 'standard-layout' ? 'checked' : '' ); $Fchecked = ( @$opts == 'full-width-layout' ? 'checked' : '' ); $Bchecked = ( @$opts == 'boxed-layout' ? 'checked' : '' ); echo ''; echo '

Header and footer will be full width, content will have a container.


'; echo ''; echo '

Everything is full width.


'; echo ''; echo '

Everything is inside container.


'; } function achilles_custom_pageup_callback(){ $opt = esc_attr(get_option('page_up')); $checked = (@$opt == '1'? 'checked' : ''); echo ''; echo '

Page up button will show up when you scroll far enough down on your page.

'; } function achilles_custom_secondary_menu_callback(){ $opt = esc_attr(get_option('secondary_menu')); $checked = (@$opt == '1'? 'checked' : ''); echo ''; echo '

Secondary menu below content.

'; } //EMAIL SIGNUP /*function achilles_email_signup(){ $opt = esc_attr(get_option('email_signup_text')); echo '
'; echo '
'; echo '

Enter your email to recieve theme updates.

'; }*/ //Theme support options //seearch menu in navbar function search_menu_callback(){ $opt = esc_attr(get_option('achilles_menu_search')); $checked = (@$opt == 1? 'checked' : ''); echo ''; echo '

Place Search icon in menu.

'; } //Logo in navbar function logo_menu_callback(){ $opt = esc_attr(get_option('achilles_menu_logo')); $checked = (@$opt == 1? 'checked' : ''); echo ''; echo '

Place logo in menu instead of main position.

'; } //Header image supprt function achilles_header_support(){ $options = get_option( 'header_image' ); $checked = ( @$options == 1 ? 'checked' : '' ); echo ''; echo '

Enable Header Image.

'; } //bg image supprt function achilles_background_support(){ $options = get_option( 'background_image' ); $checked = ( @$options == 1 ? 'checked' : '' ); echo ''; echo '

Enable Background Image.

'; } //Post formats function achilles_posts_support(){ $options = get_option( 'post_formats' ); $formats = array( 'aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio' ); foreach($formats as $format){ $checked = ( @$options[$format] == '1' ? 'checked' : '' ); echo '
'; } } //Color supports function achilles_preset_colors(){ $options = get_option( 'preset_colors' ); $Schecked = ( @$options == 'standard' ? 'checked' : '' ); $Lchecked = ( @$options == 'light' ? 'checked' : '' ); $Dchecked = ( @$options == 'dark' ? 'checked' : '' ); echo ' Standard
'; echo ' Light
'; echo ' Dark
'; } //custom css function achilles_custom_css_callback() { $css = get_option( 'achilles_css' ); $css = ( empty($css) ? '/* Theme Custom CSS */' : $css ); echo '
'.$css.'
'; } //custom logo function custom_logo_callback(){ $logo = esc_attr(get_option( 'achilles_logo' ) ) ; if(empty($logo)){ echo ''; } else { echo ''; } } //LAyout function achilles_custom_layout_callback(){ $layout = esc_attr( get_option('achilles_layout') ); $Lchecked = ( @$layout == 'left' ? 'checked' : ''); $Rchecked = ( @$layout == 'right' ? 'checked' : ''); $Fchecked = ( @$layout == 'full' ? 'checked' : ''); echo ' Left-Sidebar '; echo ' Right-Sidebar '; echo ' Full-Width '; } //Social media //share function achilles_facebook_share(){ $opt = esc_attr(get_option('facebook_share')); $checked = ($opt == '1' ? 'checked' : ''); echo ''; echo '

Enable Facebook Sharing option for each post.

'; } function achilles_twitter_share(){ $opt = esc_attr(get_option('twitter_share')); $checked = ($opt == '1' ? 'checked' : ''); echo ''; echo '

Enable Twitter Sharing option for each post.

'; } function achilles_google_share(){ $opt = esc_attr(get_option('google_share')); $checked = ($opt == '1' ? 'checked' : ''); echo ''; echo '

Enable Google Plus Sharing option for each post.

'; } function achilles_reddit_share(){ $opt = esc_attr(get_option('reddit_share')); $checked = ($opt == '1' ? 'checked' : ''); echo ''; echo '

Enable Reddit Sharing option for each post.

'; } function achilles_pinterest_share(){ $opt = esc_attr(get_option('pinterest_share')); $checked = ($opt == '1' ? 'checked' : ''); echo ''; echo '

Enable Pinterest Sharing option for each post.

'; } // function achilles_show_media(){ $opt = esc_attr(get_option('show_media')); $checked = ( @$opt == '1' ? 'checked' : '' ); echo 'Check to show social links on your site.'; } function achilles_social_facebook(){ $fb = esc_attr(get_option('facebook_link')); echo ''; echo '

Your name on facebook. The last part of the url.

'; } function achilles_social_twitter(){ $twitter = esc_attr(get_option('twitter_link')); echo ''; echo '

Your twitter username without the @.

'; } function achilles_social_instagram(){ $ig = esc_attr(get_option('instagram_link')); echo ''; echo '

Your instagram username without the @.

'; } function achilles_social_pinterest(){ $opt = esc_attr(get_option('pinterest_link')); echo ''; echo '

Your pinterest username.

'; } function achilles_social_youtube(){ $opt = esc_attr(get_option('youtube_link')); echo ''; echo '

Your youtube channel end url.

'; } function achilles_social_googleplus(){ $opt = esc_attr(get_option('googleplus_link')); echo ''; echo '

Your google plus end url, just the numbers.

'; } function achilles_social_rss(){ $opt = esc_attr(get_option('rss_link')); echo ''; echo '

Your full RSS Feed.

'; } //function achilles_footer_text function achilles_footer_text(){ $opt = esc_attr( get_option('footer_text') ); if(!empty($opt)){ add_filter('option_blogdescription', 'custom_option_description', 10, 1); } echo '
'; echo 'Edit the footer text, at the bottom of your page.'; //filters for footer_text function custom_option_description($opt){ echo $opt; return $opt; } } /* Achilles Ad Page */ /* ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Admin options Text ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; */ function achilles_admin_options(){ //echo 'Activate or Deactivate Options'; } function achilles_header_options(){ //echo 'Header Options'; } function achilles_social_options(){ //echo 'Social Network Options'; } function achilles_post_options(){ //echo 'Post Options'; } function achilles_custom_options(){ //echo 'Site Options'; } function achilles_more_options(){ //echo 'More Options'; } function achilles_custom_css_section_callback() { echo 'Customize your Theme with your own CSS'; } function achilles_ads_options_callback(){ echo 'Customize ad below your heading, and customize ad below your content.'; } function achilles_support_section_callback(){ } /* ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Templates ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; */ function achilles_theme_create_page(){ require_once get_template_directory() . '/inc/templates/achilles-admin.php'; } function achilles_theme_css_page(){ require_once get_template_directory() . '/inc/templates/achilles-custom-css.php'; } function achilles_theme_ads_page(){ require_once get_template_directory() . '/inc/templates/achilles-admin-ads.php'; } function achilles_theme_support_page(){ require_once get_template_directory() . '/inc/templates/achilles-support.php'; }