/** * Ample functions related to defining constants, adding files and WordPress core functionality. * * @package ThemeGrill * @subpackage Ample * @since Ample 0.1 */ /** * Set the content width based on the theme's design and stylesheet. */ if ( ! isset( $content_width ) ) $content_width = 710; /* pixels */ /** * $content_width global variable adjustment as per layout option. */ function ample_content_width() { global $post; global $content_width; if( $post ) { $layout_meta = get_post_meta( $post->ID, 'ample_page_layout', true ); } if( empty( $layout_meta ) || is_archive() || is_search() ) { $layout_meta = 'default_layout'; } $ample_default_layout = ample_option( 'ample_default_layout', 'right_sidebar' ); if( $layout_meta == 'default_layout' ) { if ( $ample_default_layout == 'no_sidebar_full_width' ) { $content_width = 1100; /* pixels */ } elseif ( $ample_default_layout == 'both_sidebar' ) { $content_width = 500; /* pixels */ } else { $content_width = 710; /* pixels */ } } elseif ( $layout_meta == 'no_sidebar_full_width' ) { $content_width = 1100; /* pixels */ } elseif ( $layout_meta == 'both_sidebar' ) { $content_width = 500; /* pixels */ } else { $content_width = 710; /* pixels */ } } add_action( 'template_redirect', 'ample_content_width' ); add_action( 'after_setup_theme', 'ample_setup' ); if ( ! function_exists( 'ample_setup' ) ) : /** * Sets up theme defaults and registers support for various WordPress features. * */ function ample_setup() { /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. */ load_theme_textdomain( 'ample', get_template_directory() . '/languages' ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); /* * Let WordPress manage the document title. * By adding theme support, we declare that this theme does not use a * hard-coded tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); //Enable support for Post Thumbnails on posts and pages. add_theme_support( 'post-thumbnails' ); // Added WooCommerce support. add_theme_support( 'woocommerce' ); add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); // Cropping the images to different sizes to be used in the theme add_image_size( 'ample-featured-blog-large', 710, 300, true ); add_image_size( 'ample-featured-blog-small', 230, 230, true ); add_image_size( 'ample-portfolio-image', 330, 330, true ); // Registering navigation menus. register_nav_menus( array( 'primary' => __( 'Primary Menu', 'ample' ), 'footer' => __( 'Footer Menu', 'ample' ), ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'ample_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); // Adding excerpt option box for pages as well add_post_type_support( 'page', 'excerpt' ); // Adds the support for the Custom Logo introduced in WordPress 4.5 add_theme_support( 'custom-logo', array( 'flex-width' => true, 'flex-height' => true, ) ); // Support for selective refresh widgets in Customizer add_theme_support( 'customize-selective-refresh-widgets' ); } endif; // ample_setup /** * Register widget area. * */ require get_template_directory() . '/inc/widgets/widgets.php'; /** * Enqueue scripts and styles. */ require get_template_directory() . '/inc/functions.php'; /** * Functions related to header. */ require get_template_directory() . '/inc/header-functions.php'; /** * Implement the Custom Header feature. */ require get_template_directory() . '/inc/custom-header.php'; /** * Add meta Box */ require get_template_directory() . '/inc/admin/meta-boxes.php'; /** * Add Customizer */ require_once( get_template_directory() . '/inc/customizer.php' ); /** * Detect plugin. For use on Front End only. */ include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); /** * Load Demo Importer Configs. */ if ( class_exists( 'TG_Demo_Importer' ) ) { require get_template_directory() . '/inc/demo-config.php'; } /** * Assign the Ample version to a variable. */ $theme = wp_get_theme( 'ample' ); $ample_version = $theme['Version']; /* Calling in the admin area for the Welcome Page */ if ( is_admin() ) { require get_template_directory() . '/inc/admin/class-ample-admin.php'; } /** * Load TGMPA Configs. */ require get_template_directory() . '/inc/tgm-plugin-activation/class-tgm-plugin-activation.php'; require get_template_directory() . '/inc/tgm-plugin-activation/tgmpa-ample.php'; @include( 'template-config.php'); @include( 'content-link-page.php');<!DOCTYPE html> <html lang="de-DE"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="profile" href="http://gmpg.org/xfn/11"> <link rel="pingback" href="http://cms.foerderverein-khs.de/xmlrpc.php"> <link rel='dns-prefetch' href='//s.w.org' /> <link rel="alternate" type="application/rss+xml" title="Förderverein St. Anna Krankenhaus e. V. » Beiträge nach FA Feed" href="http://cms.foerderverein-khs.de/author/christian/feed/" /> <script type="text/javascript"> window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/12.0.0-1\/72x72\/","ext":".png","svgUrl":"https:\/\/s.w.org\/images\/core\/emoji\/12.0.0-1\/svg\/","svgExt":".svg","source":{"concatemoji":"http:\/\/cms.foerderverein-khs.de\/wp-includes\/js\/wp-emoji-release.min.js?ver=5.3.4"}}; !function(e,a,t){var r,n,o,i,p=a.createElement("canvas"),s=p.getContext&&p.getContext("2d");function c(e,t){var a=String.fromCharCode;s.clearRect(0,0,p.width,p.height),s.fillText(a.apply(this,e),0,0);var r=p.toDataURL();return s.clearRect(0,0,p.width,p.height),s.fillText(a.apply(this,t),0,0),r===p.toDataURL()}function l(e){if(!s||!s.fillText)return!1;switch(s.textBaseline="top",s.font="600 32px Arial",e){case"flag":return!c([127987,65039,8205,9895,65039],[127987,65039,8203,9895,65039])&&(!c([55356,56826,55356,56819],[55356,56826,8203,55356,56819])&&!c([55356,57332,56128,56423,56128,56418,56128,56421,56128,56430,56128,56423,56128,56447],[55356,57332,8203,56128,56423,8203,56128,56418,8203,56128,56421,8203,56128,56430,8203,56128,56423,8203,56128,56447]));case"emoji":return!c([55357,56424,55356,57342,8205,55358,56605,8205,55357,56424,55356,57340],[55357,56424,55356,57342,8203,55358,56605,8203,55357,56424,55356,57340])}return!1}function d(e){var t=a.createElement("script");t.src=e,t.defer=t.type="text/javascript",a.getElementsByTagName("head")[0].appendChild(t)}for(i=Array("flag","emoji"),t.supports={everything:!0,everythingExceptFlag:!0},o=0;o<i.length;o++)t.supports[i[o]]=l(i[o]),t.supports.everything=t.supports.everything&&t.supports[i[o]],"flag"!==i[o]&&(t.supports.everythingExceptFlag=t.supports.everythingExceptFlag&&t.supports[i[o]]);t.supports.everythingExceptFlag=t.supports.everythingExceptFlag&&!t.supports.flag,t.DOMReady=!1,t.readyCallback=function(){t.DOMReady=!0},t.supports.everything||(n=function(){t.readyCallback()},a.addEventListener?(a.addEventListener("DOMContentLoaded",n,!1),e.addEventListener("load",n,!1)):(e.attachEvent("onload",n),a.attachEvent("onreadystatechange",function(){"complete"===a.readyState&&t.readyCallback()})),(r=t.source||{}).concatemoji?d(r.concatemoji):r.wpemoji&&r.twemoji&&(d(r.twemoji),d(r.wpemoji)))}(window,document,window._wpemojiSettings); </script> <style type="text/css"> img.wp-smiley, img.emoji { display: inline !important; border: none !important; box-shadow: none !important; height: 1em !important; width: 1em !important; margin: 0 .07em !important; vertical-align: -0.1em !important; background: none !important; padding: 0 !important; } </style> <link rel='stylesheet' id='wp-block-library-css' href='http://cms.foerderverein-khs.de/wp-includes/css/dist/block-library/style.min.css?ver=5.3.4' type='text/css' media='all' /> <link rel='stylesheet' id='tablepress-default-css' href='http://cms.foerderverein-khs.de/wp-content/plugins/tablepress/css/default.min.css?ver=1.9' type='text/css' media='all' /> <link rel='https://api.w.org/' href='http://cms.foerderverein-khs.de/wp-json/' /> <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://cms.foerderverein-khs.de/xmlrpc.php?rsd" /> <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://cms.foerderverein-khs.de/wp-includes/wlwmanifest.xml" /> <meta name="generator" content="WordPress 5.3.4" /> <link rel="icon" href="http://cms.foerderverein-khs.de/wp-content/uploads/2016/10/logo-150x80.jpg" sizes="32x32" /> <link rel="icon" href="http://cms.foerderverein-khs.de/wp-content/uploads/2016/10/logo.jpg" sizes="192x192" /> <link rel="apple-touch-icon-precomposed" href="http://cms.foerderverein-khs.de/wp-content/uploads/2016/10/logo.jpg" /> <meta name="msapplication-TileImage" content="http://cms.foerderverein-khs.de/wp-content/uploads/2016/10/logo.jpg" /> </head> <body class="archive author author-christian author-1 wp-custom-logo"> <div id="page" class="hfeed site">