From 76402a87f366838bf06f6e36a552be43dfb5641c Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 4 Nov 2018 22:32:44 +0100 Subject: Removes dist/ folder. --- dist/yarpp-template-custom-thumbnails.php | 71 ------------------------------- 1 file changed, 71 deletions(-) delete mode 100644 dist/yarpp-template-custom-thumbnails.php (limited to 'dist/yarpp-template-custom-thumbnails.php') diff --git a/dist/yarpp-template-custom-thumbnails.php b/dist/yarpp-template-custom-thumbnails.php deleted file mode 100644 index 66cc103..0000000 --- a/dist/yarpp-template-custom-thumbnails.php +++ /dev/null @@ -1,71 +0,0 @@ -diagnostic_using_thumbnails() ) - $this->set_option( 'manually_using_thumbnails', true ); - -$options = array( 'thumbnails_heading', 'thumbnails_default', 'no_results' ); -extract( $this->parse_args( $args, $options ) ); - -// a little easter egg: if the default image URL is left blank, -// default to the theme's header image. (hopefully it has one) -if ( empty($thumbnails_default) ) - $thumbnails_default = get_header_image(); - -$dimensions = $this->thumbnail_dimensions(); - -$output .= '

' . $thumbnails_heading . '

' . "\n"; - -if (have_posts()) { - $output .= '
' . "\n"; - while (have_posts()) { - the_post(); - - $__get_the_title = get_the_title(); - - $output .= "" . "\n"; - -// onclick='javascript:_paq.push([\"trackEvent\", \"related post\", \"" . get_my_clean_title($__get_the_title) . "\"]);' - - $post_thumbnail_html = ''; - if ( has_post_thumbnail() ) { - if ( $this->diagnostic_generate_thumbnails() ) - $this->ensure_resized_post_thumbnail( get_the_ID(), $dimensions ); - $post_thumbnail_html = get_the_post_thumbnail( null, $dimensions['size'], array( 'class' => 'img-thumbnail') ); - - /** - * replaces all images on fuselkönig.de by a image server, which croppes them nicely - */ - #$post_thumbnail_html = str_replace('https://www.fuselkoenig.de', 'https://www.fuselkoenig.de/crop?width=240&height=240&gravity=centre&url=https://www.fuselkoenig.de', $post_thumbnail_html); - - $post_thumbnail_html = str_replace('https://www.fuselkoenig.de', '/crop/240/240/centre', $post_thumbnail_html); - } - - if ( trim($post_thumbnail_html) != '' ) - $output .= $post_thumbnail_html; - else - $output .= ''; - - #$output .= '' . str_replace('Im Test: ', '', get_the_title()) . ''; - $output .= '' . get_my_clean_title( $__get_the_title ) . ''; - $output .= '' . "\n"; - - } - $output .= "
\n"; -} else { - $output .= $no_results; -} - -$this->enqueue_thumbnails( $dimensions ); - -- cgit v1.2.3