return 24; }, 999); add_filter('excerpt_more', function () { return '...'; }, 999); $GRAFIK_MODE = array(null, "is_404" => is_404(), "is_archive" => is_archive(), "is_attachment" => is_attachment(), "is_author" => is_author(), "is_category" => is_category(), "is_front_page" => is_front_page(), "is_home" => is_home(), "is_page" => is_page(), "is_search" => is_search(), "is_single" => is_single(), "is_tag" => is_tag(), "is_tax" => is_tax()); $GRAFIK_TEMPLATE = 'Global'; if ($GRAFIK_MODE['is_page'] == 1) { $GRAFIK_TEMPLATE = 'Pages'; } if ($GRAFIK_MODE['is_404'] == 1) { $GRAFIK_TEMPLATE = 'NotFound'; } if ($GRAFIK_MODE['is_search'] == 1) { $GRAFIK_TEMPLATE = 'SearchResults'; } if ($GRAFIK_MODE['is_single'] == 1) { $GRAFIK_TEMPLATE = 'PostTypes'; } if ($GRAFIK_MODE['is_archive'] == 1) { $GRAFIK_TEMPLATE = 'ArchiveTypes'; } if ($GRAFIK_MODE['is_author'] == 1) { $GRAFIK_TEMPLATE = 'ArchiveAuthors'; } if ($GRAFIK_MODE['is_category'] == 1) { $GRAFIK_TEMPLATE = 'ArchiveCategories'; } $GRAFIK_HTML = Grafik_Templates_GetHTML($GRAFIK_TEMPLATE); echo '<!DOCTYPE html>' . '<html ' . Grafik_EchoString('language_attributes') . ' class="no-js">' . '<head>' . '<meta charset="' . Grafik_EchoString('bloginfo', array('charset')) . '" />' . '<title>' . Grafik_EchoString('wp_title') . '</title>' . '<meta http-equiv="X-UA-Compatible" content="IE=edge">' . '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />' . '<link rel="pingback" href="' . Grafik_EchoString('bloginfo', array('pingback_url')) . '" />' . Grafik_Favicon() . '<!--[if lt IE 9]><script src="' . esc_url(get_template_directory_uri()) . '/js/html5.js"></script><![endif]-->' . '<script src="' . esc_url(get_template_directory_uri()) . '/js/modernizr.js"></script>' . str_replace("\n", '', Grafik_EchoString('wp_head')) . $GRAFIK_HTML['Styles_Head'] . $GRAFIK_HTML['Scripts_Head'] . '</head>' . '<body ' . Grafik_EchoString('body_class') . '>' . $GRAFIK_HTML['Scripts_Intro'] . '<div class="GE-Theme">' . (empty($GRAFIK_HTML['Header_TopLeft'] . $GRAFIK_HTML['Header_TopRight'] . $GRAFIK_HTML['Header_MiddleLeft'] . $GRAFIK_HTML['Header_MiddleRight'] . $GRAFIK_HTML['Header_BottomLeft'] . $GRAFIK_HTML['Header_BottomRight']) ? '' : '<section class="GE-Theme-Header">' . (empty($GRAFIK_HTML['Header_TopLeft'] . $GRAFIK_HTML['Header_TopRight']) ? '' : '<div class="GE-Theme-Header-Top">' . (empty($GRAFIK_HTML['Header_TopLeft']) ? '' : '<div class="GE-Theme-Header-Top-Left">' . $GRAFIK_HTML['Header_TopLeft'] . '</div>') . (empty($GRAFIK_HTML['Header_TopRight']) ? '' : '<div class="GE-Theme-Header-Top-Right">' . $GRAFIK_HTML['Header_TopRight'] . '</div>') . '</div>') . (empty($GRAFIK_HTML['Header_MiddleLeft'] . $GRAFIK_HTML['Header_MiddleRight']) ? '' : '<div class="GE-Theme-Header-Middle">' . (empty($GRAFIK_HTML['Header_MiddleLeft']) ? '' : '<div class="GE-Theme-Header-Middle-Left">' . $GRAFIK_HTML['Header_MiddleLeft'] . '</div>') . (empty($GRAFIK_HTML['Header_MiddleRight']) ? '' : '<div class="GE-Theme-Header-Middle-Right">' . $GRAFIK_HTML['Header_MiddleRight'] . '</div>') . '</div>') . (empty($GRAFIK_HTML['Header_BottomLeft'] . $GRAFIK_HTML['Header_BottomRight']) ? '' : '<div class="GE-Theme-Header-Bottom">' . (empty($GRAFIK_HTML['Header_BottomLeft']) ? '' : '<div class="GE-Theme-Header-Bottom-Left">' . $GRAFIK_HTML['Header_BottomLeft'] . '</div>') . (empty($GRAFIK_HTML['Header_BottomRight']) ? '' : '<div class="GE-Theme-Header-Bottom-Right">' . $GRAFIK_HTML['Header_BottomRight'] . '</div>') . '</div>') . '</section>') . (empty($GRAFIK_HTML['Content_Top'] . $GRAFIK_HTML['Content_Left'] . $GRAFIK_HTML['Content_Center'] . $GRAFIK_HTML['Content_Right'] . $GRAFIK_HTML['Content_Bottom']) ? '' : '<section class="GE-Theme-Content">' . (empty($GRAFIK_HTML['Content_Top']) ? '' : '<div class="GE-Theme-Content-Top">' . $GRAFIK_HTML['Content_Top'] . '</div>') . (empty($GRAFIK_HTML['Content_Left'] . $GRAFIK_HTML['Content_Center'] . $GRAFIK_HTML['Content_Right']) ? '' : '<div class="GE-Theme-Content-Middle">' . (empty($GRAFIK_HTML['Content_Left']) ? '' : '<div class="GE-Theme-Content-Middle-Left">' . $GRAFIK_HTML['Content_Left'] . '</div>') . (empty($GRAFIK_HTML['Content_Center']) ? '' : '<div class="GE-Theme-Content-Middle-Center">' . $GRAFIK_HTML['Content_Center'] . '</div>') . (empty($GRAFIK_HTML['Content_Right']) ? '' : '<div class="GE-Theme-Content-Middle-Right">' . $GRAFIK_HTML['Content_Right'] . '</div>') . '</div>') . (empty($GRAFIK_HTML['Content_Bottom']) ? '' : '<div class="GE-Theme-Content-Bottom">' . $GRAFIK_HTML['Content_Bottom'] . '</div>') . '</section>') . (empty($GRAFIK_HTML['Footer_TopLeft'] . $GRAFIK_HTML['Footer_TopRight'] . $GRAFIK_HTML['Footer_MiddleLeft'] . $GRAFIK_HTML['Footer_MiddleRight'] . $GRAFIK_HTML['Footer_BottomLeft'] . $GRAFIK_HTML['Footer_BottomRight']) ? '' : '<section class="GE-Theme-Footer">' . (empty($GRAFIK_HTML['Footer_TopLeft'] . $GRAFIK_HTML['Footer_TopRight']) ? '' : '<div class="GE-Theme-Footer-Top">' . (empty($GRAFIK_HTML['Footer_TopLeft']) ? '' : '<div class="GE-Theme-Footer-Top-Left">' . $GRAFIK_HTML['Footer_TopLeft'] . '</div>') . (empty($GRAFIK_HTML['Footer_TopRight']) ? '' : '<div class="GE-Theme-Footer-Top-Right">' . $GRAFIK_HTML['Footer_TopRight'] . '</div>') . '</div>') . (empty($GRAFIK_HTML['Footer_MiddleLeft'] . $GRAFIK_HTML['Footer_MiddleRight']) ? '' : '<div class="GE-Theme-Footer-Middle">' . (empty($GRAFIK_HTML['Footer_MiddleLeft']) ? '' : '<div class="GE-Theme-Footer-Middle-Left">' . $GRAFIK_HTML['Footer_MiddleLeft'] . '</div>') . (empty($GRAFIK_HTML['Footer_MiddleRight']) ? '' : '<div class="GE-Theme-Footer-Middle-Right">' . $GRAFIK_HTML['Footer_MiddleRight'] . '</div>') . '</div>') . (empty($GRAFIK_HTML['Footer_BottomLeft'] . $GRAFIK_HTML['Footer_BottomRight']) ? '' : '<div class="GE-Theme-Footer-Bottom">' . (empty($GRAFIK_HTML['Footer_BottomLeft']) ? '' : '<div class="GE-Theme-Footer-Bottom-Left">' . $GRAFIK_HTML['Footer_BottomLeft'] . '</div>') . (empty($GRAFIK_HTML['Footer_BottomRight']) ? '' : '<div class="GE-Theme-Footer-Bottom-Right">' . $GRAFIK_HTML['Footer_BottomRight'] . '</div>') . '</div>') . '</section>') . '</div>' . str_replace("\n", '', Grafik_EchoString('wp_footer')) . $GRAFIK_HTML['Scripts_Outro'] . '</body>' . '</html>';
remove_filter('the_excerpt', 'wpautop'); while (have_posts()) { the_post(); $GRAFIK_LANG = Grafik_EchoString('language_attributes'); $GRAFIK_CHAR = Grafik_EchoString('bloginfo', array('charset')); $GRAFIK_PING = Grafik_EchoString('bloginfo', array('pingback_url')); $GRAFIK_ID = $post->ID; $GRAFIK_POST = $post; $GRAFIK_TYPE = is_page($GRAFIK_ID) ? 'page' : 'post'; $GRAFIK_TITLE = get_the_title($GRAFIK_ID); $GRAFIK_BODY = implode('', explode("\n", Grafik_ShortcodeLoop(wpautop(Grafik_EchoString('the_content'), false)))); $GRAFIK_META = get_post_meta($GRAFIK_ID); $GRAFIK_CATEGORIES = wp_get_post_categories($GRAFIK_ID); $GRAFIK_OPTIONS = array('grafik-global-header-tl' => str_replace("\n", "", trim(stripslashes(base64_decode(get_option('grafik-global-header-tl'))))), 'grafik-global-header-tr' => str_replace("\n", "", trim(stripslashes(base64_decode(get_option('grafik-global-header-tr'))))), 'grafik-global-header-ml' => str_replace("\n", "", trim(stripslashes(base64_decode(get_option('grafik-global-header-ml'))))), 'grafik-global-header-mr' => str_replace("\n", "", trim(stripslashes(base64_decode(get_option('grafik-global-header-mr'))))), 'grafik-global-header-bl' => str_replace("\n", "", trim(stripslashes(base64_decode(get_option('grafik-global-header-bl'))))), 'grafik-global-header-br' => str_replace("\n", "", trim(stripslashes(base64_decode(get_option('grafik-global-header-br'))))), 'grafik-global-header-off' => (int) get_option('grafik-global-header-off'), 'grafik-global-header-notype' => (int) get_option('grafik-global-header-no' . $GRAFIK_TYPE), 'grafik-global-sidebars' => get_option('grafik-global-sidebars'), 'grafik-global-footer-tl' => str_replace("\n", "", trim(stripslashes(base64_decode(get_option('grafik-global-footer-tl'))))), 'grafik-global-footer-tr' => str_replace("\n", "", trim(stripslashes(base64_decode(get_option('grafik-global-footer-tr'))))), 'grafik-global-footer-ml' => str_replace("\n", "", trim(stripslashes(base64_decode(get_option('grafik-global-footer-ml'))))), 'grafik-global-footer-mr' => str_replace("\n", "", trim(stripslashes(base64_decode(get_option('grafik-global-footer-mr'))))), 'grafik-global-footer-bl' => str_replace("\n", "", trim(stripslashes(base64_decode(get_option('grafik-global-footer-bl'))))), 'grafik-global-footer-br' => str_replace("\n", "", trim(stripslashes(base64_decode(get_option('grafik-global-footer-br'))))), 'grafik-global-footer-off' => (int) get_option('grafik-global-footer-off'), 'grafik-global-footer-notype' => (int) get_option('grafik-global-footer-no' . $GRAFIK_TYPE), 'grafik-global-styles' => trim(stripslashes(base64_decode(get_option('grafik-global-styles')))), 'grafik-global-styles-noresponsive' => (int) get_option('grafik-global-styles-noresponsive'), 'grafik-global-styles-off' => (int) get_option('grafik-global-styles-off'), 'grafik-global-styles-notype' => (int) get_option('grafik-global-styles-no' . $GRAFIK_TYPE), 'grafik-global-headscripts' => trim(stripslashes(base64_decode(get_option('grafik-global-headscripts')))), 'grafik-global-headscripts-off' => (int) get_option('grafik-global-headscripts-off'), 'grafik-global-headscripts-notype' => (int) get_option('grafik-global-headscripts-no' . $GRAFIK_TYPE), 'grafik-global-bodyscripts' => trim(stripslashes(base64_decode(get_option('grafik-global-bodyscripts')))), 'grafik-global-bodyscripts-off' => (int) get_option('grafik-global-bodyscripts-off'), 'grafik-global-bodyscripts-notype' => (int) get_option('grafik-global-bodyscripts-no' . $GRAFIK_TYPE), 'grafik-type-header-tl' => str_replace("\n", "", trim(stripslashes(base64_decode(get_option('grafik-' . $GRAFIK_TYPE . '-header-tl'))))), 'grafik-type-header-tr' => str_replace("\n", "", trim(stripslashes(base64_decode(get_option('grafik-' . $GRAFIK_TYPE . '-header-tr'))))), 'grafik-type-header-ml' => str_replace("\n", "", trim(stripslashes(base64_decode(get_option('grafik-' . $GRAFIK_TYPE . '-header-ml'))))), 'grafik-type-header-mr' => str_replace("\n", "", trim(stripslashes(base64_decode(get_option('grafik-' . $GRAFIK_TYPE . '-header-mr'))))), 'grafik-type-header-bl' => str_replace("\n", "", trim(stripslashes(base64_decode(get_option('grafik-' . $GRAFIK_TYPE . '-header-bl'))))), 'grafik-type-header-br' => str_replace("\n", "", trim(stripslashes(base64_decode(get_option('grafik-' . $GRAFIK_TYPE . '-header-br'))))), 'grafik-type-header-off' => (int) get_option('grafik-' . $GRAFIK_TYPE . '-header-off'), 'grafik-type-sidebars' => get_option('grafik-' . $GRAFIK_TYPE . '-sidebars'), 'grafik-type-footer-tl' => str_replace("\n", "", trim(stripslashes(base64_decode(get_option('grafik-' . $GRAFIK_TYPE . '-footer-tl'))))), 'grafik-type-footer-tr' => str_replace("\n", "", trim(stripslashes(base64_decode(get_option('grafik-' . $GRAFIK_TYPE . '-footer-tr'))))), 'grafik-type-footer-ml' => str_replace("\n", "", trim(stripslashes(base64_decode(get_option('grafik-' . $GRAFIK_TYPE . '-footer-ml'))))), 'grafik-type-footer-mr' => str_replace("\n", "", trim(stripslashes(base64_decode(get_option('grafik-' . $GRAFIK_TYPE . '-footer-mr'))))), 'grafik-type-footer-bl' => str_replace("\n", "", trim(stripslashes(base64_decode(get_option('grafik-' . $GRAFIK_TYPE . '-footer-bl'))))), 'grafik-type-footer-br' => str_replace("\n", "", trim(stripslashes(base64_decode(get_option('grafik-' . $GRAFIK_TYPE . '-footer-br'))))), 'grafik-type-footer-off' => (int) get_option('grafik-' . $GRAFIK_TYPE . '-footer-off'), 'grafik-type-styles' => trim(stripslashes(base64_decode(get_option('grafik-' . $GRAFIK_TYPE . '-styles')))), 'grafik-type-styles-noresponsive' => (int) get_option('grafik-' . $GRAFIK_TYPE . '-styles-noresponsive'), 'grafik-type-styles-off' => (int) get_option('grafik-' . $GRAFIK_TYPE . '-styles-off'), 'grafik-type-headscripts' => trim(stripslashes(base64_decode(get_option('grafik-' . $GRAFIK_TYPE . '-headscripts')))), 'grafik-type-headscripts-off' => (int) get_option('grafik-' . $GRAFIK_TYPE . '-headscripts-off'), 'grafik-type-bodyscripts' => trim(stripslashes(base64_decode(get_option('grafik-' . $GRAFIK_TYPE . '-bodyscripts')))), 'grafik-type-bodyscripts-off' => (int) get_option('grafik-' . $GRAFIK_TYPE . '-bodyscripts-off')); } echo "<!DOCTYPE html>" . '<html ' . $GRAFIK_LANG . ' class="no-js">' . '<head>' . '<meta charset="' . $GRAFIK_CHAR . '" />' . '<title>' . (empty($GRAFIK_TITLE) ? null : $GRAFIK_TITLE . ' - ') . get_bloginfo('name') . '</title>' . '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />' . '<link rel="pingback" href="' . $GRAFIK_PING . '" />' . Grafik_Favicon() . '<!--[if lt IE 9]><script src="' . esc_url(get_template_directory_uri()) . '/js/html5.js"></script><![endif]-->' . '<!-- wp_head:in -->' . str_replace("\n", '', Grafik_EchoString('wp_head')) . '<!-- wp_head:out -->' . Grafik_Styles() . Grafik_HeadScripts() . "\n" . '</head>' . '<body ' . Grafik_EchoString('body_class') . '>' . '<div class="theme">' . '<div class="interior">' . (is_404() ? Grafik_404() : Grafik_Header() . Grafik_Content() . Grafik_Footer()) . '</div>' . '</div>' . '<!-- wp_footer:in -->' . str_replace("\n", '', Grafik_EchoString('wp_footer')) . '<!-- wp_footer:out -->' . Grafik_BodyScripts() . "\n" . '</body>' . '</html>'; function Grafik_404() { return '<div class="theme-404">' . '<h1>404 Not Found!</h1>' . '</div>'; } function Grafik_Favicon() { $url = get_site_url(); return '<link rel="apple-touch-icon-precomposed" sizes="57x57" href="' . $url . '/favicon/apple-touch-icon-57x57.png" />' . '<link rel="apple-touch-icon-precomposed" sizes="114x114" href="' . $url . '/favicon/apple-touch-icon-114x114.png" />' . '<link rel="apple-touch-icon-precomposed" sizes="72x72" href="' . $url . '/favicon/apple-touch-icon-72x72.png" />' . '<link rel="apple-touch-icon-precomposed" sizes="144x144" href="' . $url . '/favicon/apple-touch-icon-144x144.png" />' . '<link rel="apple-touch-icon-precomposed" sizes="60x60" href="' . $url . '/favicon/apple-touch-icon-60x60.png" />' . '<link rel="apple-touch-icon-precomposed" sizes="120x120" href="' . $url . '/favicon/apple-touch-icon-120x120.png" />' . '<link rel="apple-touch-icon-precomposed" sizes="76x76" href="' . $url . '/favicon/apple-touch-icon-76x76.png" />' . '<link rel="apple-touch-icon-precomposed" sizes="152x152" href="' . $url . '/favicon/apple-touch-icon-152x152.png" />' . '<link rel="icon" type="image/png" href="' . $url . '/favicon/favicon-196x196.png" sizes="196x196" />' . '<link rel="icon" type="image/png" href="' . $url . '/favicon/favicon-96x96.png" sizes="96x96" />' . '<link rel="icon" type="image/png" href="' . $url . '/favicon/favicon-32x32.png" sizes="32x32" />' . '<link rel="icon" type="image/png" href="' . $url . '/favicon/favicon-16x16.png" sizes="16x16" />' . '<link rel="icon" type="image/png" href="' . $url . '/favicon/favicon-128.png" sizes="128x128" />' . '<meta name="application-name" content="' . get_bloginfo('name') . '"/>' . '<meta name="msapplication-TileColor" content="#000000" />' . '<meta name="msapplication-TileImage" content="' . $url . '/favicon/mstile-144x144.png" />' . '<meta name="msapplication-square70x70logo" content="' . $url . '/favicon/mstile-70x70.png" />' . '<meta name="msapplication-square150x150logo" content="' . $url . '/favicon/mstile-150x150.png" />' . '<meta name="msapplication-wide310x150logo" content="' . $url . '/favicon/mstile-310x150.png" />' . '<meta name="msapplication-square310x310logo" content="' . $url . '/favicon/mstile-310x310.png" />'; } function Grafik_Styles() { global $GRAFIK_TYPE; global $GRAFIK_META; global $GRAFIK_OPTIONS; $global_styles = true;