stephenharris / Event-Organiser

WordPress plug-in, Event Organiser, development repository
http://wordpress.org/extend/plugins/event-organiser/
GNU General Public License v3.0
100 stars 76 forks source link

Catchable fatal error: Object of class WP_Error could not be converted to string #88

Closed Neomr closed 11 years ago

Neomr commented 11 years ago

Hi there,

First kudos to you for this awesome theme. But I have an issue with event organiser and my theme. Below you'll find the error message:

Catchable fatal error: Object of class WP_Error could not be converted to string in /homepages/14/d13377013/htdocs/projekt/biz/klienten/axelfink/wp-content/themes/Minimalism-WordPress-Theme-master/administration/admin-functions.php on line 103

I've attached the admin-functions in a text document.

Thanks in advance for your help and support!

Marcus

<?php

/----------------------------------------------------------------------------/ /* Revolution-Themes Framework / / Custom Functions and Custom Post Options / /----------------------------------------------------------------------------*/

/*------------------------------------------------------------------------------

INDEX:

1.0 - Apple-like Breadcrumbs => revothemes_breadcrumbs() 2.0 - Custom CSS Output => revothemes_custom_css_output() 3.0 - Custom RSS Feed Output => revothemes_rss() 4.0 - Remove unnecessary parts from wp_head()

5.0 - Custom Favicon Output => revothemes_custom_favicon()

6.0 - Stylesheets Reader & Stylesheet Output

7.0 - Show analytics code in footer => revothemes_show_analytics() 8.0 - Output CSS from standarized options => revothemes_custom_css() 9.0 - Get big Images for Slider => revothemes_wpmu() 10.0 - Pagination => revothemes_paginate() 11.0 - revothemes_custom_background() 12.0 - SEO for split comments into multiple pages => revothemes_canonical_for_comments() 13.0 - Get first image from a spezific post => revothemes_get_first_image() 14.0 - Security => remove_comment_author_class() 15.0 - Building the Recent Comments => revothemes_recent_comments() 16.0 - Output post thumbnails => revothemes_the_post_thumbnails() 17.0 - Output post thumbnail URL => revothemes_post_thumbURL() 18.0 - Gallery Shortcode Output => revothemes_gallery() 19.0 - Share this buttons, Twitter, Facebook, Google+ => revothemes_share_this() 20.0 - Manage WordPress contact fields 21.0 - Post-thumbnails for feeds => revothemes_post_thumbnail_feeds() 22.0 - Custom CSS Output => Revothemes Shortcodes CSS => revothemes_custom_shortcode_css_output() 23.0 - Remove Magic Quotes => get rid of unnecessary backslashes 24.0 - Canonical Permalink => canonical_request() 25.0 - Supreme Google Webfonts

-----------------------------------------------------------------------------*/

// 1.0 ========== Apple-like Breadcrumbs, if Yoast Breadcrumbs is not installed.

/\ HTML - Output:

function revothemes_breadcrumbs() { $name = __('Back Home'); // Text for the Home Icon, only visible in html source code $delimiter = ' '; // No need, is added by CSS $currentBefore = '

  • '; $currentAfter = '
  • ';

    if ( !is_home() && !is_front_page() || is_paged() ) {

    global $post;
    $home = get_bloginfo('url');
    echo '<ul class="crumbs">';
    echo '<li><a href="' . $home . '">' . $name . '</a></li> ' . $delimiter . ' ';

    if ( is_category() ) { global $wp_query; $cat_obj = $wp_query->get_queried_object(); $thisCat = $cat_obj->term_id; $thisCat = get_category($thisCat); $parentCat = get_category($thisCat->parent);

    if ($thisCat->parent != 0) echo(get_category_parents($parentCat, TRUE, ' ' . $delimiter . ' ')); echo $currentBefore . ''; single_cat_title(); echo '' . $currentAfter;

    }

    elseif ( is_day() ) { echo '

  • ' . get_the_time('Y') . '
  • ' . $delimiter . ' '; echo '
  • ' . get_the_time('F') . '
  • ' . $delimiter . ' '; echo $currentBefore . get_the_time('d') . $currentAfter;

    }

    elseif ( is_month() ) { echo '

  • ' . get_the_time('Y') . '
  • ' . $delimiter . ' '; echo $currentBefore . get_the_time('F') . $currentAfter;

    }

    elseif ( is_year() ) { echo $currentBefore . get_the_time('Y') . $currentAfter;

    }

    elseif ( is_single() && !is_attachment() ) { $cat = get_the_category(); $cat = $cat[0]; echo '

  • ' . get_category_parents($cat, TRUE, ' ' . $delimiter . ' ') . '
  • '; echo $currentBefore; the_title(); echo $currentAfter;

    }

    elseif ( is_attachment() ) { $cat = get_the_category(); $cat = (isset($cat[0])); echo $currentBefore; the_title(); echo $currentAfter;

    }

    elseif ( is_page() && !$post->post_parent ) { echo $currentBefore; the_title(); echo $currentAfter;

    }

    elseif ( is_page() && $post->post_parent ) { $parent_id = $post->post_parent; $breadcrumbs = array(); while ($parent_id) { $page = get_page($parent_id); $breadcrumbs[] = '

  • ' . get_the_title($page->ID) . '
  • '; $parent_id = $page->post_parent; }

      $breadcrumbs = array_reverse($breadcrumbs);
      foreach ($breadcrumbs as $crumb) echo $crumb . ' ' . $delimiter . ' ';
      echo $currentBefore;
      the_title();
      echo $currentAfter;
    
    }

    elseif ( is_search() ) { echo $currentBefore . __('Search results for '', 'revothemes') . get_search_query() . ''' . $currentAfter;

    }

    elseif ( is_tag() ) { echo $currentBefore . __('Posts tagged '', 'revothemes'); single_tag_title(); echo ''' . $currentAfter;

    }

    elseif ( is_author() ) { global $author; $userdata = get_userdata($author); echo $currentBefore . __('Articles posted by ', 'revothemes') . $userdata->display_name . $currentAfter;

    }

    elseif ( is_404() ) { echo $currentBefore . __('Error 404', 'revothemes') . $currentAfter; }

    if ( get_query_var('paged') ) { if ( is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author() ) echo ' ('; echo $currentBefore . __('Page') . ' ' . get_query_var('paged') . $currentAfter ; if ( is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author() ) echo ')'; } } }

    // 2.0 ========== Custom CSS Output => Custom Stylesheet =======================

    // Output custom.css - custom stylesheet if (!function_exists( 'revothemes_custom_css_output')) { function revothemes_custom_css_output() {

    // Custom.css insert echo "\n"; echo ''."\n"; } } add_action('wp_head', 'revothemes_custom_css_output');

    // 3.0 ========== Custom RSS Feed Output =======================================

    function revothemes_custom_feed() { global $data; if ($data['rss_feed'] != '') { echo "\n"; echo ''."\n"; } else { ?>

    <?php } } add_action('wp_head', 'revothemes_custom_feed');

    // 4.0 ========== Remove unnecessary parts from wp_head() ======================

    remove_action( 'wp_head', 'feed_links', 2 ); // Display the links to the general feeds: Post and Comment Feed remove_action( 'wp_head', 'rsd_link' ); // Display the link to the Really Simple Discovery service endpoint, EditURI link remove_action( 'wp_head', 'wlwmanifest_link' ); // Display the link to the Windows Live Writer manifest file. remove_action( 'wp_head', 'index_rel_link' ); // index link remove_action( 'wp_head', 'parent_post_rel_link',10, 0 ); // prev link remove_action( 'wp_head', 'start_post_rel_link',10, 0 ); // start link remove_action( 'wp_head', 'adjacent_posts_rel_link',10, 0); // Display relational links for the posts adjacent to the current post. remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 ); //Display shortlink

    // 5.0 ========== Custom Favicon Output => revothemes_custom_favicon() =========

    function revothemes_custom_favicon() { global $data; if ($data['custom_favicon'] != '') { echo "\n"; echo ''."\n"; } else { ?>

    <?php } }

    add_action('wp_head', 'revothemes_custom_favicon');

    // 6.0 ========== Stylesheets Reader =======================

    define('STYLES_PATH', STYLESHEETPATH . '/styles/'); define('STYLES', get_bloginfo('stylesheet_directory') . '/styles/'); //define('LAYOUTS', get_bloginfo('stylesheet_directory') . '/layouts/');

    $alt_stylesheet_path = STYLES_PATH; $alt_stylesheets = array();

    if ( is_dir($alt_stylesheet_path) ) { if ($alt_stylesheet_dir = opendir($alt_stylesheet_path) ) { while ( ($alt_stylesheet_file = readdir($alt_stylesheet_dir)) !== false ) { if(stristr($alt_stylesheet_file, ".css") !== false) { $alt_stylesheets[] = $alt_stylesheet_file; } } } }

    // 7.0 ========== Show analytics code in footer => revothemes_show_analytics()

    function revothemes_show_analytics() { global $data; $output = $data['google_analytics']; if ( $output <> "" ) echo stripslashes($output) . "\n"; } add_action('wp_footer','revothemes_show_analytics');

    /-----------------------------------------------------------------------------------/ /* 8.0 - Output CSS from standarized options / /-----------------------------------------------------------------------------------*/

    function revothemes_custom_css() { global $data; $output = ''; $custom_css = $data['revothemes_custom_css'];

        if ($custom_css <> '') {
            $output .= $custom_css . "\n";
        }
    
        // Output styles
        if ($output <> '') {
            $output = "<!-- Custom CSS from Option Panel -->\n<style type=\"text/css\">\n" . $output . "</style>\n";
            echo $output;
        }

    } add_action('wp_head', 'revothemes_custom_css');

    // 9.0 ========== Get big Images for Slider => revothemes_wpmu() ==============

    function revothemes_wpmu ($img) { global $blog_id; $imageParts = explode('/files/', $img); if (isset($imageParts[1])) { $img = '/blogs.dir/' . $blog_id . '/files/' . $imageParts[1]; } return($img); }

    function catch_that_image ($post_id=0, $width=60, $height=60, $img_script='') { global $wpdb; if($post_id > 0) {

         // select the post content from the db
    
         $sql = 'SELECT post_content FROM ' . $wpdb->posts . ' WHERE id = ' . $wpdb->escape($post_id);
         $row = $wpdb->get_row($sql);
         $the_content = $row->post_content;
         if(strlen($the_content)) {
    
              // use regex to find the src of the image
    
            preg_match("/<img src\=('|\")(.*)('|\") .*( |)\/>/", $the_content, $matches);
            if(!$matches) {
                preg_match("/<img class\=\".*\" src\=('|\")(.*)('|\") .*( |)\/>/U", $the_content, $matches);
            }
      if(!$matches) {
                preg_match("/<img class\=\".*\" title\=\".*\" src\=('|\")(.*)('|\") .*( |)\/>/U", $the_content, $matches);
            }
    
            $the_image = '';
            $the_image_src = $matches[2];
            $frags = preg_split("/(\"|')/", $the_image_src);
            if(count($frags)) {
                $the_image_src = $frags[0];
            }
    
      // if an image isn't found yet
      if(!strlen($the_image_src))
      {
          $attachments = get_children( array( 'post_parent' => $post_id, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) );
    
          if (count($attachments) > 0)
          {
            $q = 0;
            foreach ( $attachments as $id => $attachment ) {
            $q++;
                if ($q == 1) {
                    $thumbURL = wp_get_attachment_image_src( $id, $args['size'] );
                    $the_image_src = $thumbURL[0];
                    break;
                } // if first image
            } // foreach
          } // if there are attachments
      } // if no image found yet
    
          // if src found, then create a new img tag
    
              if(strlen($the_image_src)) {
                   if(strlen($img_script)) {
    
                        // if the src starts with http/https, then strip out server name
    
                        if(preg_match("/^(http(|s):\/\/)/", $the_image_src)) {
                             $the_image_src = preg_replace("/^(http(|s):\/\/)/", '', $the_image_src);
                             $frags = split("\/", $the_image_src);
                             array_shift($frags);
                             $the_image_src = '/' . join("/", $frags);
                        }
                        $the_image = '<img alt="" src="' . $img_script . $the_image_src . '" />';
                   }
                   else {
                        $the_image = '<img alt="" src="' . $the_image_src . '" width="' . $width . '" height="' . $height . '" />';
                   }
              }
              return $the_image_src;
         }
    }

    }

    // 10.0 ========== Pagination => revothemes_paginate() =========================

    /**

    ' (string). The html or text to add after the
  • pagination links.
  • 'title' - Default is '__('Pages:')' (string). The text to display before the
  • pagination links.
  • 'next_page' - Default is '__('»')' (string). The text to use for the
  • next page link.
  • 'previous_page' - Default is '__('&laquo')' (string). The text to use for the
  • previous page link.
  • 'echo' - Default is 1 (int). To return the code instead of echo'ing, set this
  • to 0 (zero). *
  • @author Eric Martin eric@ericmmartin.com
  • @copyright Copyright (c) 2009, Eric Martin
  • @version 1.0 *
  • @param array|string $args Optional. Override default arguments.
  • @return string HTML content, if not displaying. */ function revothemes_paginate($args = null) { $defaults = array( 'page' => null, 'pages' => null, 'range' => 3, 'gap' => 3, 'anchor' => 1, 'before' => '

    ', 'after' => '
    ', 'title' => ('Pages:'), 'nextpage' => ('»'), 'previouspage' => __('&laquo'), 'echo' => 1 );

    $r = wp_parse_args($args, $defaults); extract($r, EXTR_SKIP);

    if (!$page && !$pages) { global $wp_query;

    $page = get_query_var('paged');
    $page = !empty($page) ? intval($page) : 1;
    
    $posts_per_page = intval(get_query_var('posts_per_page'));
    $pages = intval(ceil($wp_query->found_posts / $posts_per_page));

    }

    $output = ""; if ($pages > 1) { $output .= "$before$title"; $ellipsis = "...";

    if ($page > 1 && !empty($previouspage)) {
      $output .= "<a href='" . get_pagenum_link($page - 1) . "' class='revo-prev'>$previouspage</a>";
    }
    
    $min_links = $range * 2 + 1;
    $block_min = min($page - $range, $pages - $min_links);
    $block_high = max($page + $range, $min_links);
    $left_gap = (($block_min - $anchor - $gap) > 0) ? true : false;
    $right_gap = (($block_high + $anchor + $gap) < $pages) ? true : false;
    
    if ($left_gap && !$right_gap) {
      $output .= sprintf('%s%s%s',
          revothemes_paginate_loop(1, $anchor),
          $ellipsis,
          revothemes_paginate_loop($block_min, $pages, $page)
      );
    }
    else if ($left_gap && $right_gap) {
      $output .= sprintf('%s%s%s%s%s',
          revothemes_paginate_loop(1, $anchor),
          $ellipsis,
          revothemes_paginate_loop($block_min, $block_high, $page),
          $ellipsis,
          revothemes_paginate_loop(($pages - $anchor + 1), $pages)
      );
    }
    else if ($right_gap && !$left_gap) {
      $output .= sprintf('%s%s%s',
          revothemes_paginate_loop(1, $block_high, $page),
          $ellipsis,
          revothemes_paginate_loop(($pages - $anchor + 1), $pages)
      );
    }
    else {
      $output .= revothemes_paginate_loop(1, $pages, $page);
    }
    
    if ($page < $pages && !empty($nextpage)) {
      $output .= "<a href='" . get_pagenum_link($page + 1) . "' class='revo-next'>$nextpage</a>";
    }
    
    $output .= $after;

    }

    if ($echo) { echo $output; }

    return $output; }

  • /**

    // 11.0 ========== revothemes_custom_background() ==============================

    function revothemes_custom_background() {

    $output = '';

    $background = of_get_option('backgroundcol');
    $color = of_get_option('backgroundcol');
    if ( ! $background && ! $color )
        return;
    $color = $background['color'];
    $output = $color ? "background-color: ". $background['color'] .";" : '';
    
    if ( $background['image'] ) {
        $background['image'] = " background-image: url(". $background['image'] .");";
    
        $repeat = $background['repeat'];
        if ( $background['repeat'] )
            $repeat = 'repeat';
        $repeat = " background-repeat: ". $background['repeat'] .";";
    
        $position = $background['position'];
        if ( $background['position'] )
            $position = 'left';
        $position = " background-position: ". $background['position'] .";";
    
        $attachment = $background['attachment'];
        if ( $background['attachment'] )
            $attachment = 'scroll';
        $attachment = " background-attachment: ". $background['attachment'] .";";
    
        $output .= $background['image'] . $repeat . $position . $attachment;
    }

    if ($output <> '') { $output = "\n<style type=\"text/css\">\n body {" . $output . "}\n"; echo $output; } }

    add_action('wp_head', 'revothemes_custom_background');

    // 12.0 ========== SEO for split comments into multiple pages ==================

    function revothemes_canonical_for_comments() { global $cpage, $post; if ( $cpage > 1 ) : echo "\n"; echo "\n"; endif; }

    add_action( 'wp_head', 'revothemes_canonical_for_comments' );

    // 13.0 ========== Get first image from a spezific post ========================

    function revothemes_get_first_image() { global $post, $posts; $first_img = ''; $output = preg_match_all('/<img.+src=\'"[\'"].*>/i', $post->post_content, $matches); if(isset($matches[1][0])){ $first_img = $matches [1][0]; return $first_img; } }

    // 14.0 ========== Security => remove_comment_author_class() ===================

    // Security: Hide Usernames from Classes function remove_comment_author_class( $classes ) { foreach( $classes as $key => $class ) { if(strstr($class, "comment-author-")) { unset( $classes[$key] ); } } return $classes; }

    add_filter( 'comment_class' , 'remove_comment_author_class' );

    // Security: Hide WordPress Version in Sourcecode Head remove_action('wp_head','wp_generator');

    // 15.0 ========== Building the Recent Comments => revothemes_recent_comments()

    /* Function for Revolution-Themes Sidebar Box Widget => revo-sidebar-box.php */

    function revothemes_recent_comments($no_comments = 5, $comment_len = 50) { global $wpdb; $request = "SELECT * FROM $wpdb->comments"; $request .= " JOIN $wpdb->posts ON ID = comment_post_ID"; $request .= " WHERE comment_approved = '1' AND post_status = 'publish' AND post_password =''"; $request .= " ORDER BY comment_date DESC LIMIT $no_comments"; $comments = $wpdb->get_results($request); if ($comments) { foreach ($comments as $comment) { ob_start(); ?>

  • comment_ID), current_time('timestamp')), **(' ago', 'revothemes'); ?>: (comment_post_ID); ?>)

    comment_content), 0, $comment_len)); ?>...

  •         <?php
            ob_end_flush();
        }
    } else {
        echo '<li>'.**('No comments yet', 'revothemes').'';
    }

    }

    // Get author for comment function revothemes_get_author($comment) { $author = ""; if ( empty($comment->comment_author) ) $author = __('Anonymous', 'revothemes'); else $author = $comment->comment_author; return $author; }

    // 16.0 ========== revothemes_the_post_thumbnails() ============================

    function revothemes_the_post_thumbnails() {

    if(has_post_thumbnail()) { $thumb = revothemes_post_thumbURL(); echo '

    ';
the_title();
echo '
    ';

            } else {
    
                $image = revothemes_get_first_image();
                if($image) :
                    echo '<div class="exerpt_img"><a href="';
                    the_permalink();
                    echo '"><img src="';
                    echo get_stylesheet_directory_uri();
                    echo '/administration/thumb.php?src=' . $image . '&amp;h=' . of_get_option('img_height') . '&amp;w=' . of_get_option('img_width') . '" alt="';
                    the_title();
                    echo '" /></a></div>';
                endif;
            }

    }

    /* This is only for the magazine-templates */ function revothemes_magazine_thumbnails() {

    if(has_post_thumbnail()) { $thumb = revothemes_post_thumbURL(); echo '

    ';
the_title();
echo '
    ';

            } else {
    
                $image = revothemes_get_first_image();
                if($image) :
                    echo '<div class="exerpt_img"><a href="';
                    the_permalink();
                    echo '"><img src="';
                    echo get_stylesheet_directory_uri();
                    echo '/administration/thumb.php?src=' . $image . '&amp;h=' . of_get_option('magazine_img_height') . '&amp;w=' . of_get_option('magazine_img_width') . '" alt="';
                    the_title();
                    echo '" /></a></div>';
                endif;
            }

    }

    function revothemes_magazine_bigthumb() {

    if(has_post_thumbnail()) { $thumb = revothemes_post_thumbURL(); echo '

    ';
the_title();
echo '
    ';

            } else {
    
                $image = revothemes_get_first_image();
                if($image) :
                    echo '<div class="exerpt_img"><a href="';
                    the_permalink();
                    echo '"><img src="';
                    echo get_stylesheet_directory_uri();
                    echo '/administration/thumb.php?src=' . $image . '&amp;h=280&amp;w=650" alt="';
                    the_title();
                    echo '" /></a></div>';
                endif;
            }

    }

    // 17.0 ========== revothemes_post_thumbURL() ==================================

    function revothemes_post_thumbURL() { global $post, $posts; $thumbnail = ''; ob_start();the_post_thumbnail(180,180,true);$toparse=ob_get_contents();ob_end_clean(); preg_match_all('/src=("[^"]*")/i', $toparse, $img_src); $thumbnail = str_replace("\"", "", $img_src[1][0]); return $thumbnail; }

    function the_excerpt_max_charlength($charlength) { $excerpt = get_the_excerpt(); $charlength++; if(strlen($excerpt)>$charlength) { $subex = substr($excerpt,0,$charlength-5); $exwords = explode(" ",$subex); $excut = -(strlen($exwords[count($exwords)-1])); if($excut<0) { echo substr($subex,0,$excut); } else { echo $subex; } echo "[...]"; } else { echo $excerpt; } }

    // 18.0 ========== Gallery Shortcode Output ====================================

    // See: http://snipplr.com/view/27051/wordpress-27-gallery-styles-fix/

    // deactivate WordPress function
    remove_shortcode('gallery', 'gallery_shortcode');
    
    // Registers our function to filter default gallery shortcode
    add_shortcode('gallery', 'revothemes_gallery');

    function revothemes_gallery($attr) { global $post;

    static $instance = 0;
    $instance++;
    
    // We're trusting author input, so let's at least make sure it looks like a valid orderby statement
    if ( isset( $attr['orderby'] ) ) {
        $attr['orderby'] = sanitize_sql_orderby( $attr['orderby'] );
        if ( !$attr['orderby'] )
            unset( $attr['orderby'] );
    }
    
    extract(shortcode_atts(array(
        'order'      => 'ASC',
        'orderby'    => 'menu_order ID',
        'id'         => $post->ID,
        'itemtag'    => 'dl',
        'icontag'    => 'dt',
        'captiontag' => 'dd',
        'columns'    => 3,
        'size'       => 'thumbnail',
        'include'    => '',
        'exclude'    => ''
        ), $attr));
    
    $id = intval($id);
    if ( 'RAND' == $order )
        $orderby = 'none';
    
    if ( !empty($include) ) {
        $include = preg_replace( '/[^0-9,]+/', '', $include );
        $_attachments = get_posts( array('include' => $include, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) );
    
        $attachments = array();
        foreach ( $_attachments as $key => $val ) {
            $attachments[$val->ID] = $_attachments[$key];
        }
    } elseif ( !empty($exclude) ) {
        $exclude = preg_replace( '/[^0-9,]+/', '', $exclude );
        $attachments = get_children( array('post_parent' => $id, 'exclude' => $exclude, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) );
    } else {
        $attachments = get_children( array('post_parent' => $id, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) );
    }
    
    if ( empty($attachments) )
        return '';
    
    if ( is_feed() ) {
        $output = "\n";
        foreach ( $attachments as $att_id => $attachment )
            $output .= wp_get_attachment_link($att_id, $size, true) . "\n";
        return $output;
    }
    
    // check to see if tags have been set to false. If they are the defaults or have been set to a string value use that as the tag.
    if ($itemtag) $itemtag = tag_escape($itemtag);
    if ($captiontag) $captiontag = tag_escape($captiontag);
    if ($icontag) $icontag = tag_escape($icontag);
    $columns = intval($columns);
    
    $selector = "gallery-{$instance}";
    
    $output = "<div id='$selector' class='gallery galleryid-{$id}'>\n";
    
    $i = 0;
    foreach ( $attachments as $id => $attachment ) {
      ++$i;
        $link = isset($attr['link']) && 'file' == $attr['link'] ? wp_get_attachment_link($id, $size, false, false) : wp_get_attachment_link($id, $size, true, false);
    
        if ($itemtag) {
            $output .= '<'.$itemtag.' class="gallery-item ';
          if( $columns > 0 && $i % $columns == 0 ) $output .= " last";
          $output .= '">';
        }
        if ($icontag) $output .= "\n\t<" .$icontag. ">\t";
        $output .=  "\n\t".$link;
        if ($icontag) $output .= "\n\t</".$icontag.">";
        // if the attachment has a caption set
        if ( trim($attachment->post_excerpt) ) {
          if ($captiontag) $output .= "\n<" .$captiontag. " class='wp-caption-text gallery-caption'".">\n\t";
          $output .= wptexturize($attachment->post_excerpt);
          if ($captiontag) $output .= "\n</" .$captiontag. ">" . "<!-- end caption -->\n";
        }
        if ($itemtag) $output .= "\n</".$itemtag ."><!-- end itemtag -->\n";
        if ( $columns > 0 && $i % $columns == 0 ) $output .= "\n";
    }
    
    $output .= "</div><!-- end gallery -->\n";
    
    return $output;

    }

    // 19.0 ========== Share this buttons, Twitter, Facebook, Google+ ==============

    function revothemes_share_this(){

    $content = '';
    
    if(!is_feed() && !is_home() && !is_page() ) {
    
        $content .= '<div class="share-this" id="fix">
                    <a href="http://twitter.com/share"
                    class="twitter-share-button"
                    data-count="horizontal">Tweet</a>
                    <div class="facebook-share-button">
                    <iframe src="http://www.facebook.com/plugins/like.php?href='.
                    urlencode(get_permalink())
                    .'&amp;layout=button_count&amp;show_faces=false&amp;width=150&amp;action=like&amp;colorscheme=light&amp;height=21"
                    scrolling="no" frameborder="0" style="border:none;
                    overflow:hidden; width:150px; height:21px;"
                    allowTransparency="true"></iframe>
                    </div>
                    <div class="google-share-button">
                    <g:plusone size="medium"></g:plusone>
                    </div>
                </div>';
    }
    return $content;

    } //add_action('the_content', 'revothemes_share_this');

    function revothemes_share_scripts() { ?>

    <?php }

    add_action('wp_footer', 'revothemes_share_scripts');

    // 20.0 ========== Manage WordPress contact fields ============================= /**

    $TTT_Contactfields = new TTT_Contactfields( array ( 'Twitter' , 'Facebook' , 'Xing' , 'Country' , 'City' , 'Latitude' , 'Longitude' ) );

    $TTT_Contactfields = new TTT_Contactfields( array ( 'Twitter' , 'Facebook' , 'Google+' , 'Country' , 'City' , 'Latitude' , 'Longitude' ) );

    class TTT_Contactfields { public $new_fields , $active_fields , $replace ;

    /**
     * @param array $fields New fields: array ('Twitter', 'Facebook')
     * @param bool $replace Replace default fields?
     */
    public function __construct($fields, $replace = TRUE)
    {
        foreach ( $fields as $field )
        {
            $this->new_fields[ mb_strtolower($field, 'utf-8') ] = $field;
        }
    
        $this->replace = (bool) $replace;
    
        add_filter('user_contactmethods', array( $this, 'add_fields' ) );
    }
    
    /**
     * Changes the contact fields.
     * @param  $original_fields Original WP fields
     * @return array
     */
    public function add_fields($original_fields)
    {
        if ( $this->replace )
        {
            $this->active_fields = $this->new_fields;
            return $this->new_fields;
        }
    
        $this->active_fields = array_merge($original_fields, $this->new_fields);
        return $this->active_fields;
    }
    
    /**
     * Helper function for your theme
     * @return array The currently active fields.
     */
    public function get_active_fields()
    {
        return $this->active_fields;
    }

    }

    // 21.0 ========== Post-thumbnails for feeds => revothemes_post_thumbnail_feeds()

    function revothemes_post_thumbnail_feeds($content) { global $post; if(has_post_thumbnail($post->ID)) { $content = '

    ' . get_the_post_thumbnail($post->ID) . '
    ' . $content; } return $content; } add_filter('the_excerpt_rss', 'revothemes_post_thumbnail_feeds'); add_filter('the_content_feed', 'revothemes_post_thumbnail_feeds');

    // 22.0 ========== Custom CSS Output => Revothemes Shortcodes CSS =======================

    // Output custom.css - shortcode stylesheet if (!function_exists( 'revothemes_custom_shortcode_css_output')) { function revothemes_custom_shortcode_css_output() {

    // Custom.css insert echo "\n"; echo ''."\n"; } } add_action('wp_head', 'revothemes_custom_shortcode_css_output');

    // 23.0 ========== Remove Magic Quotes =======================================//

    / Plugin Name: Remove Magic Quotes Plugin URI: http://toscho.de/2009/php-magic-quotes-entfernen/ Description: Entfernt Backslashes, die von dummen PHP-Einstellungen eingebaut werden. Version: 0.1 Author: Thomas Scholz Author URI: http://toscho.de / RMQ::gpc_strip_slashes();

    class RMQ { static function gpc_strip_slashes() { if ( get_magic_quotes_gpc() ) { $_REQUEST = RMQ::array_map_recursive('stripslashes', $_REQUEST); $_GET = RMQ::array_map_recursive('stripslashes', $_GET); $_POST = RMQ::array_map_recursive('stripslashes', $_POST); $_COOKIE = RMQ::array_map_recursive('stripslashes', $_COOKIE); }

        return;
    }
    /**
     * Deeper array_map()
     *
     * @param string $callback Callback function to map
     * @param array $array Array to map
     * @source http://www.sitepoint.com/blog-post-view.php?id=239423
     * @return array
     */
    static function array_map_recursive($callback, $array)
    {
        $r = array();
    
        if ( is_array($array) )
        {
            foreach ( $array as $k => $v )
            {
                $r[$k] = is_scalar($v)
                    ? $callback($v)
                    : RMQ::array_map_recursive($callback, $v);
            }
        }
    
        return $r;
    }

    }

    // 24.0 ========== Canonical Permalink => canonical_request() ==================

    / Plugin Name: Canonical Permalink Plugin URI: http://toscho.de/2010/wordpress-plugin-canonical-permalink/ Description: Removes illegal numeric suffixes from the request URI. Version: 0.3 Author: Thomas Scholz Author URI: http://toscho.de Created: 04.04.2010 /

    /**

    // 25.0 ========== Supreme Google Webfonts =====================================

    /* Plugin Name: Supreme Google Webfonts Plugin URI: Description: Adds all 291 currently available Google webfonts into a nice dropdown list in your visual editor. Simply select your Google Webfont and apply it to your text. Also includes font size selection to apply to Google Webfonts. Author: Josh Lobe Version: 1.1 Author URI: http://joshlobe.com

    */

    /* Copyright 2011 Josh Lobe (email : joshlobe@joshlobe.com)

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License, version 2, as
    published by the Free Software Foundation.
    
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

    */

    if ($data['googlewebfonts'] == 'No') { // Option to disable this plugin for better Site Performance.

    function tinymce_add_buttons($buttons)  // Add our buttons to the editor
    {
     $buttons[] = 'fontselect';
     $buttons[] = 'fontsizeselect';
    
     return $buttons;
    }
    add_filter("mce_buttons_3", "tinymce_add_buttons");
    
    function __construct() // Begin construct to save our seletions
    {
        add_action( 'admin_init', array( $this, 'admin_init' ) );
        add_action( 'content_save_pre', array( $this, 'content_save_pre'), 100 );
    }
    
    function admin_init()  // Add our newly created array to the tinymce initialization process
    {
        add_filter( 'theme_advanced_fonts', array( $this, 'theme_advanced_fonts' ) );
    }
    
    function content_save_pre( $content ) // Closes our construct to save our selections
    {
        if ( substr( $content, -8 ) == '</table>' )
            $content = $content . "\n<br />";
    
        return $content;
    }
    
    /*
     * register with hook 'wp_print_styles'
     */
    
    /*
     * Enqueue style-file, if it exists.
     */
    
    function add_josh_stylesheet() {  // Calls included stylesheet for the import urls of each google font.
    
        $myStyleUrl = wp_enqueue_style('google-font-styles', get_bloginfo('template_directory') .'/administration/css/josh-font-style.css');
        $myStyleFile = WP_PLUGIN_DIR . 'css/josh-font-style.css';
        if ( file_exists($myStyleFile) ) {
            wp_register_style('myStyleSheets', $myStyleUrl);
            wp_enqueue_style( 'myStyleSheets');
            }
        }

    add_action('admin_print_styles', 'add_josh_stylesheet'); add_action('wp_print_styles', 'add_josh_stylesheet');

    function josh_sgw_custom_options( $opt ) {  // Our custom Google options are added to the array.
    
    $opt['theme_advanced_fonts'] = 'Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats;Abel=Abel, sans-serif;Abril Fatface=Abril Fatface, cursive;Aclonica=Aclonica, sans-serif;Actor=Actor, sans-serif;Adamina=Adamina, serif;Aldrich=Aldrich, sans-serif;Alice=Alice, serif;Alike Angular=Alike Angular, serif;Alike=Alike, serif;Allan=Allan, cursive;Allerta Stencil=Allerta Stencil, sans-serif;Allerta=Allerta, sans-serif;Amaranth=Amaranth, sans-serif;Amatic SC=Amatic SC, cursive;Andada=Andada, serif;Andika=Andika, sans-serif;Annie Use Your Telescope=Annie Use Your Telescope, cursive;Anonymous Pro=Anonymous Pro, sans-serif;Antic=Antic, sans-serif;Anton=Anton, sans-serif;Arapey=Arapey, serif;Architects Daughter=Architects Daughter, cursive;Arimo=Arimo, sans-serif;Artifika=Artifika, serif;Arvo=Arvo, serif;Asset=Asset, cursive;Astloch=Astloch, cursive;Atomic Age=Atomic Age, cursive;Aubrey=Aubrey, cursive;Bangers=Bangers, cursive;Bentham=Bentham, serif;Bevan=Bevan, serif;Bigshot One=Bigshot One, cursive;Bitter=Bitter, serif;Black Ops One=Black Ops One, cursive;Bowlby One SC=Bowlby One SC, sans-serif;Bowlby One=Bowlby One, sans-serif;Brawler=Brawler, serif;Buda=Buda, sans-serif;Butcherman Caps=Butcherman Caps, cursive;Cabin Sketch=Cabin Sketch, cursive;Cabin=Cabin, sans-serif;Calligraffitti=Calligraffitti, cursive;Candal=Candal, sans-serif;Cantarell=Cantarell, sans-serif;Cardo=Cardo, serif;Carme=Carme, sans-serif;Carter One=Carter One, sans-serif;Caudex=Caudex, serif;Cedarville Cursive=Cedarville Cursive, cursive;Changa One=Changa One, cursive;Cherry Cream Soda=Cherry Cream Soda, cursive;Chewy=Chewy, cursive;Chivo=Chivo, sans-serif;Coda Caption=Coda Caption, sans-serif;Coda=Coda, cursive;Comfortaa=Comfortaa, cursive;Coming Soon=Coming Soon, cursive;Contrail One=Contrail One, cursive;Convergence=Convergence, sans-serif;Cookie=Cookie, cursive;Copse=Copse, serif;Corben=Corben, cursive;Cousine=Cousine, sans-serif;Coustard=Coustard, serif;Covered By Your Grace=Covered By Your Grace, cursive;Crafty Girls=Crafty Girls, cursive;Creepster Caps=Creepster Caps, cursive;Crimson Text=Crimson Text, serif;Crushed=Crushed, cursive;Cuprum=Cuprum, sans-serif;Damion=Damion, cursive;Dancing Script=Dancing Script, cursive;Dawning of a New Day=Dawning of a New Day, cursive;Days One=Days One, sans-serif;Delius Swash Caps=Delius Swash Caps, cursive;Delius Unicase=Delius Unicase, cursive;Delius=Delius, cursive;Didact Gothic=Didact Gothic, sans-serif;Dorsa=Dorsa, sans-serif;Droid Sans Mono=Droid Sans Mono, sans-serif;Droid Sans=Droid Sans, sans-serif;Droid Serif=Droid Serif, serif;Eater Caps=Eater Caps, cursive;EB Garamond=EB Garamond, serif;Expletus Sans=Expletus Sans, cursive;Fanwood Text=Fanwood Text, serif;Federant=Federant, cursive;Federo=Federo, sans-serif;Fjord One=Fjord One, serif;Fontdiner Swanky=Fontdiner Swanky, cursive;Forum=Forum, cursive;Francois One=Francois One, sans-serif;Gentium Basic=Gentium Basic, serif;Gentium Book Basic=Gentium Book Basic, serif;Geo=Geo, sans-serif;Geostar Fill=Geostar Fill, cursive;Geostar=Geostar, cursive;Give You Glory=Give You Glory, cursive;Gloria Hallelujah=Gloria Hallelujah, cursive;Goblin One=Goblin One, cursive;Gochi Hand=Gochi Hand, cursive;Goudy Bookletter 1911=Goudy Bookletter 1911, serif;Gravitas One=Gravitas One, cursive;Gruppo=Gruppo, sans-serif;Hammersmith One=Hammersmith One, sans-serif;Holtwood One SC=Holtwood One SC, serif;Homemade Apple=Homemade Apple, cursive;IM Fell Double Pica SC=IM Fell Double Pica SC, serif;IM Fell Double Pica=IM Fell Double Pica, serif;IM Fell DW Pica SC=IM Fell DW Pica SC, serif;IM Fell DW Pica=IM Fell DW Pica, serif;IM Fell English SC=IM Fell English SC, serif;IM Fell English=IM Fell English, serif;IM Fell French Canon SC=IM Fell French Canon SC, serif;IM Fell French Canon=IM Fell French Canon, serif;IM Fell Great Primer SC=IM Fell Great Primer SC, serif;IM Fell Great Primer=IM Fell Great Primer, serif;Inconsolata=Inconsolata, sans-serif;Indie Flower=Indie Flower, cursive;Irish Grover=Irish Grover, cursive;Istok Web=Istok Web, sans-serif;Jockey One=Jockey One, sans-serif;Josefin Sans=Josefin Sans, sans-serif;Josefin Slab=Josefin Slab, serif;Judson=Judson, serif;Julee=Julee, cursive;Jura=Jura, sans-serif;Just Another Hand=Just Another Hand, cursive;Just Me Again Down Here=Just Me Again Down Here, cursive;Kameron=Kameron, serif;Kelly Slab=Kelly Slab, cursive;Kenia=Kenia, sans-serif;Kranky=Kranky, cursive;Kreon=Kreon, serif;Kristi=Kristi, cursive;La Belle Aurore=La Belle Aurore, cursive;Lancelot=Lancelot, cursive;Lato=Lato, sans-serif;League Script=League Script, cursive;Leckerli One=Leckerli One, cursive;Lekton=Lekton, sans-serif;Limelight=Limelight, cursive;Linden Hill=Linden Hill, serif;Lobster Two=Lobster Two, cursive;Lobster=Lobster, cursive;Lora=Lora, serif;Love Ya Like A Sister=Love Ya Like A Sister, cursive;Loved by the King=Loved by the King, cursive;Luckiest Guy=Luckiest Guy, cursive;Maiden Orange=Maiden Orange, cursive;Mako=Mako, sans-serif;Marck Script=Marck Script, cursive;Marvel=Marvel, sans-serif;Mate SC=Mate SC, serif;Mate=Mate, serif;Maven Pro=Maven Pro, sans-serif;Meddon=Meddon, cursive;MedievalSharp=MedievalSharp, cursive;Megrim=Megrim, cursive;Merienda One=Merienda One, cursive;Merriweather=Merriweather, serif;Metrophobic=Metrophobic, sans-serif;Michroma=Michroma, sans-serif;Miltonian Tattoo=Miltonian Tattoo, cursive;Miltonian=Miltonian, cursive;Modern Antiqua=Modern Antiqua, cursive;Molengo=Molengo, sans-serif;Monofett=Monofett, cursive;Monoton=Monoton, cursive;Montez=Montez, cursive;Mountains of Christmas=Mountains of Christmas, cursive;Muli=Muli, sans-serif;Neucha=Neucha, cursive;Neuton=Neuton, serif;News Cycle=News Cycle, sans-serif;Nixie One=Nixie One, cursive;Nobile=Nobile, sans-serif;Nosifer Caps=Nosifer Caps, cursive;Nothing You Could Do=Nothing You Could Do, cursive;Nova Cut=Nova Cut, cursive;Nova Flat=Nova Flat, cursive;Nova Mono=Nova Mono, cursive;Nova Oval=Nova Oval, cursive;Nova Round=Nova Round, cursive;Nova Script=Nova Script, cursive;Nova Slim=Nova Slim, cursive;Nova Square=Nova Square, cursive;Numans=Numans, sans-serif;Nunito=Nunito, sans-serif;Old Standard TT=Old Standard TT, serif;Open Sans Condensed=Open Sans Condensed, sans-serif;Open Sans=Open Sans, sans-serif;Orbitron=Orbitron, sans-serif;Oswald=Oswald, sans-serif;Over the Rainbow=Over the Rainbow, cursive;Ovo=Ovo, serif;Pacifico=Pacifico, cursive;Passero One=Passero One, cursive;Patrick Hand=Patrick Hand, cursive;Paytone One=Paytone One, sans-serif;Permanent Marker=Permanent Marker, cursive;Petrona=Petrona, serif;Philosopher=Philosopher, sans-serif;Pinyon Script=Pinyon Script, cursive;Play=Play, sans-serif;Playfair Display=Playfair Display, serif;Podkova=Podkova, serif;Poller One=Poller One, cursive;Poly=Poly, serif;Pompiere=Pompiere, cursive;Prata=Prata, serif;Prociono=Prociono, serif;PT Sans Caption=PT Sans Caption, sans-serif;PT Sans Narrow=PT Sans Narrow, sans-serif;PT Sans=PT Sans, sans-serif;PT Serif Caption=PT Serif Caption, serif;PT Serif=PT Serif, serif;Puritan=Puritan, sans-serif;Quattrocento Sans=Quattrocento Sans, sans-serif;Quattrocento=Quattrocento, serif;Questrial=Questrial, sans-serif;Quicksand=Quicksand, sans-serif;Radley=Radley, serif;Raleway=Raleway, cursive;Rammetto One=Rammetto One, cursive;Rancho=Rancho, cursive;Rationale=Rationale, sans-serif;Redressed=Redressed, cursive;Reenie Beanie=Reenie Beanie, cursive;Rochester=Rochester, cursive;Rock Salt=Rock Salt, cursive;Rokkitt=Rokkitt, serif;Rosario=Rosario, sans-serif;Ruslan Display=Ruslan Display, cursive;Salsa=Salsa, cursive;Sancreek=Sancreek, cursive;Sansita One=Sansita One, cursive;Satisfy=Satisfy, cursive;Schoolbell=Schoolbell, cursive;Shadows Into Light=Shadows Into Light, cursive;Shanti=Shanti, sans-serif;Short Stack=Short Stack, cursive;Sigmar One=Sigmar One, sans-serif;Six Caps=Six Caps, sans-serif;Slackey=Slackey, cursive;Smokum=Smokum, cursive;Smythe=Smythe, cursive;Sniglet=Sniglet, cursive;Snippet=Snippet, sans-serif;Sorts Mill Goudy=Sorts Mill Goudy, serif;Special Elite=Special Elite, cursive;Spinnaker=Spinnaker, sans-serif;Stardos Stencil=Stardos Stencil, cursive;Sue Ellen Francisco=Sue Ellen Francisco, cursive;Sunshiney=Sunshiney, cursive;Supermercado One=Supermercado One, cursive;Swanky and Moo Moo=Swanky and Moo Moo, cursive;Syncopate=Syncopate, sans-serif;Tangerine=Tangerine, cursive;Tenor Sans=Tenor Sans, sans-serif;Terminal Dosis=Terminal Dosis, sans-serif;The Girl Next Door=The Girl Next Door, cursive;Tienne=Tienne, serif;Tinos=Tinos, serif;Tulpen One=Tulpen One, cursive;Ubuntu Condensed=Ubuntu Condensed, sans-serif;Ubuntu Mono=Ubuntu Mono, sans-serif;Ubuntu=Ubuntu, sans-serif;Ultra=Ultra, serif;UnifrakturCook=UnifrakturCook, cursive;UnifrakturMaguntia=UnifrakturMaguntia, cursive;Unkempt=Unkempt, cursive;Unna=Unna, serif;Varela Round=Varela Round, sans-serif;Varela=Varela, sans-serif;Vast Shadow=Vast Shadow, cursive;Vibur=Vibur, cursive;Vidaloka=Vidaloka, serif;Volkhov=Volkhov, serif;Vollkorn=Vollkorn, serif;Voltaire=Voltaire, sans-serif;VT323=VT323, cursive;Waiting for the Sunrise=Waiting for the Sunrise, cursive;Wallpoet=Wallpoet, cursive;Walter Turncoat=Walter Turncoat, cursive;Wire One=Wire One, sans-serif;Yanone Kaffeesatz=Yanone Kaffeesatz, sans-serif;Yellowtail=Yellowtail, cursive;Yeseva One=Yeseva One, serif;Zeyada=Zeyada, cursive';
    
    $opt['content_css'] = 'http://fonts.googleapis.com/css?family=Questrial,http://fonts.googleapis.com/css?family=Astloch,http://fonts.googleapis.com/css?family=IM+Fell+English+SC,http://fonts.googleapis.com/css?family=Lekton,http://fonts.googleapis.com/css?family=Nova+Round,http://fonts.googleapis.com/css?family=Nova+Oval,http://fonts.googleapis.com/css?family=League+Script,http://fonts.googleapis.com/css?family=Caudex,http://fonts.googleapis.com/css?family=IM+Fell+DW+Pica,http://fonts.googleapis.com/css?family=Nova+Script,http://fonts.googleapis.com/css?family=Nixie+One,http://fonts.googleapis.com/css?family=IM+Fell+DW+Pica+SC,http://fonts.googleapis.com/css?family=Puritan,http://fonts.googleapis.com/css?family=Prociono,http://fonts.googleapis.com/css?family=Abel,http://fonts.googleapis.com/css?family=Snippet,http://fonts.googleapis.com/css?family=Kristi,http://fonts.googleapis.com/css?family=Mako,http://fonts.googleapis.com/css?family=Ubuntu+Mono,http://fonts.googleapis.com/css?family=Nova+Slim,http://fonts.googleapis.com/css?family=Patrick+Hand,http://fonts.googleapis.com/css?family=Crafty+Girls,http://fonts.googleapis.com/css?family=Brawler,http://fonts.googleapis.com/css?family=Droid+Sans,http://fonts.googleapis.com/css?family=Geostar,http://fonts.googleapis.com/css?family=Yellowtail,http://fonts.googleapis.com/css?family=Permanent+Marker,http://fonts.googleapis.com/css?family=Just+Another+Hand,http://fonts.googleapis.com/css?family=Unkempt,http://fonts.googleapis.com/css?family=Jockey+One,http://fonts.googleapis.com/css?family=Lato,http://fonts.googleapis.com/css?family=Arvo,http://fonts.googleapis.com/css?family=Cabin,http://fonts.googleapis.com/css?family=Playfair+Display,http://fonts.googleapis.com/css?family=Crushed,http://fonts.googleapis.com/css?family=Asset,http://fonts.googleapis.com/css?family=Sue+Ellen+Francisco,http://fonts.googleapis.com/css?family=Julee,http://fonts.googleapis.com/css?family=Judson,http://fonts.googleapis.com/css?family=Neuton,http://fonts.googleapis.com/css?family=Sorts+Mill+Goudy,http://fonts.googleapis.com/css?family=Mate,http://fonts.googleapis.com/css?family=News+Cycle,http://fonts.googleapis.com/css?family=Michroma,http://fonts.googleapis.com/css?family=Lora,http://fonts.googleapis.com/css?family=Give+You+Glory,http://fonts.googleapis.com/css?family=Rammetto+One,http://fonts.googleapis.com/css?family=Pompiere,http://fonts.googleapis.com/css?family=PT+Sans,http://fonts.googleapis.com/css?family=Andika,http://fonts.googleapis.com/css?family=Cabin+Sketch,http://fonts.googleapis.com/css?family=Delius+Swash+Caps,http://fonts.googleapis.com/css?family=Coustard,http://fonts.googleapis.com/css?family=Cherry+Cream+Soda,http://fonts.googleapis.com/css?family=Maiden+Orange,http://fonts.googleapis.com/css?family=Syncopate,http://fonts.googleapis.com/css?family=PT+Sans+Narrow,http://fonts.googleapis.com/css?family=Montez,http://fonts.googleapis.com/css?family=Short+Stack,http://fonts.googleapis.com/css?family=Poller+One,http://fonts.googleapis.com/css?family=Tinos,http://fonts.googleapis.com/css?family=Philosopher,http://fonts.googleapis.com/css?family=Neucha,http://fonts.googleapis.com/css?family=Gravitas+One,http://fonts.googleapis.com/css?family=Corben,http://fonts.googleapis.com/css?family=Istok+Web,http://fonts.googleapis.com/css?family=Federo,http://fonts.googleapis.com/css?family=Yeseva+One,http://fonts.googleapis.com/css?family=Petrona,http://fonts.googleapis.com/css?family=Arimo,http://fonts.googleapis.com/css?family=Irish+Grover,http://fonts.googleapis.com/css?family=Quicksand,http://fonts.googleapis.com/css?family=Paytone+One,http://fonts.googleapis.com/css?family=Kelly+Slab,http://fonts.googleapis.com/css?family=Nova+Flat,http://fonts.googleapis.com/css?family=Vast+Shadow,http://fonts.googleapis.com/css?family=Ubuntu,http://fonts.googleapis.com/css?family=Smokum,http://fonts.googleapis.com/css?family=Ruslan+Display,http://fonts.googleapis.com/css?family=La+Belle+Aurore,http://fonts.googleapis.com/css?family=Federant,http://fonts.googleapis.com/css?family=Podkova,http://fonts.googleapis.com/css?family=IM+Fell+French+Canon,http://fonts.googleapis.com/css?family=PT+Serif+Caption,http://fonts.googleapis.com/css?family=The+Girl+Next+Door,http://fonts.googleapis.com/css?family=Artifika,http://fonts.googleapis.com/css?family=Marck+Script,http://fonts.googleapis.com/css?family=Droid+Sans+Mono,http://fonts.googleapis.com/css?family=Contrail+One,http://fonts.googleapis.com/css?family=Swanky+and+Moo+Moo,http://fonts.googleapis.com/css?family=Wire+One,http://fonts.googleapis.com/css?family=Tenor+Sans,http://fonts.googleapis.com/css?family=Nova+Mono,http://fonts.googleapis.com/css?family=Josefin+Sans,http://fonts.googleapis.com/css?family=Bitter,http://fonts.googleapis.com/css?family=Supermercado+One,http://fonts.googleapis.com/css?family=PT+Serif,http://fonts.googleapis.com/css?family=Limelight,http://fonts.googleapis.com/css?family=Coda+Caption:800,http://fonts.googleapis.com/css?family=Lobster,http://fonts.googleapis.com/css?family=Gentium+Basic,http://fonts.googleapis.com/css?family=Atomic+Age,http://fonts.googleapis.com/css?family=Mate+SC,http://fonts.googleapis.com/css?family=Eater+Caps,http://fonts.googleapis.com/css?family=Bigshot+One,http://fonts.googleapis.com/css?family=Kreon,http://fonts.googleapis.com/css?family=Rationale,http://fonts.googleapis.com/css?family=Sniglet:800,http://fonts.googleapis.com/css?family=Smythe,http://fonts.googleapis.com/css?family=Waiting+for+the+Sunrise,http://fonts.googleapis.com/css?family=Gochi+Hand,http://fonts.googleapis.com/css?family=Reenie+Beanie,http://fonts.googleapis.com/css?family=Kameron,http://fonts.googleapis.com/css?family=Anton,http://fonts.googleapis.com/css?family=Holtwood+One+SC,http://fonts.googleapis.com/css?family=Schoolbell,http://fonts.googleapis.com/css?family=Tulpen+One,http://fonts.googleapis.com/css?family=Redressed,http://fonts.googleapis.com/css?family=Ovo,http://fonts.googleapis.com/css?family=Shadows+Into+Light,http://fonts.googleapis.com/css?family=Rokkitt,http://fonts.googleapis.com/css?family=Josefin+Slab,http://fonts.googleapis.com/css?family=Passero+One,http://fonts.googleapis.com/css?family=Copse,http://fonts.googleapis.com/css?family=Walter+Turncoat,http://fonts.googleapis.com/css?family=Sigmar+One,http://fonts.googleapis.com/css?family=Convergence,http://fonts.googleapis.com/css?family=Gloria+Hallelujah,http://fonts.googleapis.com/css?family=Fontdiner+Swanky,http://fonts.googleapis.com/css?family=Tienne,http://fonts.googleapis.com/css?family=Calligraffitti,http://fonts.googleapis.com/css?family=UnifrakturCook:700,http://fonts.googleapis.com/css?family=Tangerine,http://fonts.googleapis.com/css?family=Days+One,http://fonts.googleapis.com/css?family=Cantarell,http://fonts.googleapis.com/css?family=IM+Fell+Great+Primer,http://fonts.googleapis.com/css?family=Antic,http://fonts.googleapis.com/css?family=Muli,http://fonts.googleapis.com/css?family=Monofett,http://fonts.googleapis.com/css?family=Just+Me+Again+Down+Here,http://fonts.googleapis.com/css?family=Geostar+Fill,http://fonts.googleapis.com/css?family=Candal,http://fonts.googleapis.com/css?family=Cousine,http://fonts.googleapis.com/css?family=Merienda+One,http://fonts.googleapis.com/css?family=Goblin+One,http://fonts.googleapis.com/css?family=Monoton,http://fonts.googleapis.com/css?family=Ubuntu+Condensed,http://fonts.googleapis.com/css?family=EB+Garamond,http://fonts.googleapis.com/css?family=Droid+Serif,http://fonts.googleapis.com/css?family=Lancelot,http://fonts.googleapis.com/css?family=Cookie,http://fonts.googleapis.com/css?family=Fjord+One,http://fonts.googleapis.com/css?family=Arapey,http://fonts.googleapis.com/css?family=Rancho,http://fonts.googleapis.com/css?family=Sancreek,http://fonts.googleapis.com/css?family=Butcherman+Caps,http://fonts.googleapis.com/css?family=Salsa,http://fonts.googleapis.com/css?family=Amatic+SC,http://fonts.googleapis.com/css?family=Creepster+Caps,http://fonts.googleapis.com/css?family=Chivo,http://fonts.googleapis.com/css?family=Linden+Hill,http://fonts.googleapis.com/css?family=Nosifer+Caps,http://fonts.googleapis.com/css?family=Marvel,http://fonts.googleapis.com/css?family=Alice,http://fonts.googleapis.com/css?family=Love+Ya+Like+A+Sister,http://fonts.googleapis.com/css?family=Pinyon+Script,http://fonts.googleapis.com/css?family=Stardos+Stencil,http://fonts.googleapis.com/css?family=Leckerli+One,http://fonts.googleapis.com/css?family=Nothing+You+Could+Do,http://fonts.googleapis.com/css?family=Sansita+One,http://fonts.googleapis.com/css?family=Poly,http://fonts.googleapis.com/css?family=Alike,http://fonts.googleapis.com/css?family=Fanwood+Text,http://fonts.googleapis.com/css?family=Bowlby+One+SC,http://fonts.googleapis.com/css?family=Actor,http://fonts.googleapis.com/css?family=Terminal+Dosis,http://fonts.googleapis.com/css?family=Aclonica,http://fonts.googleapis.com/css?family=Gentium+Book+Basic,http://fonts.googleapis.com/css?family=Rosario,http://fonts.googleapis.com/css?family=Satisfy,http://fonts.googleapis.com/css?family=Sunshiney,http://fonts.googleapis.com/css?family=Aubrey,http://fonts.googleapis.com/css?family=Jura,http://fonts.googleapis.com/css?family=Ultra,http://fonts.googleapis.com/css?family=Zeyada,http://fonts.googleapis.com/css?family=Changa+One,http://fonts.googleapis.com/css?family=Varela,http://fonts.googleapis.com/css?family=Black+Ops+One,http://fonts.googleapis.com/css?family=Open+Sans,http://fonts.googleapis.com/css?family=Alike+Angular,http://fonts.googleapis.com/css?family=Prata,http://fonts.googleapis.com/css?family=Bowlby+One,http://fonts.googleapis.com/css?family=Megrim,http://fonts.googleapis.com/css?family=Damion,http://fonts.googleapis.com/css?family=Coda,http://fonts.googleapis.com/css?family=Vidaloka,http://fonts.googleapis.com/css?family=Radley,http://fonts.googleapis.com/css?family=Indie+Flower,http://fonts.googleapis.com/css?family=Over+the+Rainbow,http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,http://fonts.googleapis.com/css?family=Abril+Fatface,http://fonts.googleapis.com/css?family=Miltonian,http://fonts.googleapis.com/css?family=Delius,http://fonts.googleapis.com/css?family=Six+Caps,http://fonts.googleapis.com/css?family=Francois+One,http://fonts.googleapis.com/css?family=Dorsa,http://fonts.googleapis.com/css?family=Aldrich,http://fonts.googleapis.com/css?family=Buda:300,http://fonts.googleapis.com/css?family=Rochester,http://fonts.googleapis.com/css?family=Allerta,http://fonts.googleapis.com/css?family=Bevan,http://fonts.googleapis.com/css?family=Wallpoet,http://fonts.googleapis.com/css?family=Quattrocento,http://fonts.googleapis.com/css?family=Dancing+Script,http://fonts.googleapis.com/css?family=Amaranth,http://fonts.googleapis.com/css?family=Unna,http://fonts.googleapis.com/css?family=PT+Sans+Caption,http://fonts.googleapis.com/css?family=Geo,http://fonts.googleapis.com/css?family=Quattrocento+Sans,http://fonts.googleapis.com/css?family=Oswald,http://fonts.googleapis.com/css?family=Carme,http://fonts.googleapis.com/css?family=Spinnaker,http://fonts.googleapis.com/css?family=MedievalSharp,http://fonts.googleapis.com/css?family=Nova+Square,http://fonts.googleapis.com/css?family=IM+Fell+French+Canon+SC,http://fonts.googleapis.com/css?family=Voltaire,http://fonts.googleapis.com/css?family=Raleway:100,http://fonts.googleapis.com/css?family=Delius+Unicase,http://fonts.googleapis.com/css?family=Shanti,http://fonts.googleapis.com/css?family=Expletus+Sans,http://fonts.googleapis.com/css?family=Crimson+Text,http://fonts.googleapis.com/css?family=Nunito,http://fonts.googleapis.com/css?family=Numans,http://fonts.googleapis.com/css?family=Hammersmith+One,http://fonts.googleapis.com/css?family=Miltonian+Tattoo,http://fonts.googleapis.com/css?family=Allerta+Stencil,http://fonts.googleapis.com/css?family=Vollkorn,http://fonts.googleapis.com/css?family=Pacifico,http://fonts.googleapis.com/css?family=Cedarville+Cursive,http://fonts.googleapis.com/css?family=Cardo,http://fonts.googleapis.com/css?family=Merriweather,http://fonts.googleapis.com/css?family=Loved+by+the+King,http://fonts.googleapis.com/css?family=Slackey,http://fonts.googleapis.com/css?family=Nova+Cut,http://fonts.googleapis.com/css?family=Rock+Salt,http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz,http://fonts.googleapis.com/css?family=Molengo,http://fonts.googleapis.com/css?family=Nobile,http://fonts.googleapis.com/css?family=Goudy+Bookletter+1911,http://fonts.googleapis.com/css?family=Bangers,http://fonts.googleapis.com/css?family=Old+Standard+TT,http://fonts.googleapis.com/css?family=Orbitron,http://fonts.googleapis.com/css?family=Comfortaa,http://fonts.googleapis.com/css?family=Varela+Round,http://fonts.googleapis.com/css?family=Forum,http://fonts.googleapis.com/css?family=Maven+Pro,http://fonts.googleapis.com/css?family=Volkhov,http://fonts.googleapis.com/css?family=Allan:700,http://fonts.googleapis.com/css?family=Luckiest+Guy,http://fonts.googleapis.com/css?family=Gruppo,http://fonts.googleapis.com/css?family=Cuprum,http://fonts.googleapis.com/css?family=Anonymous+Pro,http://fonts.googleapis.com/css?family=UnifrakturMaguntia,http://fonts.googleapis.com/css?family=Covered+By+Your+Grace,http://fonts.googleapis.com/css?family=Homemade+Apple,http://fonts.googleapis.com/css?family=Lobster+Two,http://fonts.googleapis.com/css?family=Coming+Soon,http://fonts.googleapis.com/css?family=Mountains+of+Christmas,http://fonts.googleapis.com/css?family=Architects+Daughter,http://fonts.googleapis.com/css?family=Dawning+of+a+New+Day,http://fonts.googleapis.com/css?family=Kranky,http://fonts.googleapis.com/css?family=Adamina,http://fonts.googleapis.com/css?family=Carter+One,http://fonts.googleapis.com/css?family=Bentham,http://fonts.googleapis.com/css?family=IM+Fell+Great+Primer+SC,http://fonts.googleapis.com/css?family=Chewy,http://fonts.googleapis.com/css?family=IM+Fell+English,http://fonts.googleapis.com/css?family=Inconsolata,http://fonts.googleapis.com/css?family=Vibur,http://fonts.googleapis.com/css?family=Andada,http://fonts.googleapis.com/css?family=IM+Fell+Double+Pica,http://fonts.googleapis.com/css?family=Kenia,http://fonts.googleapis.com/css?family=Meddon,http://fonts.googleapis.com/css?family=Metrophobic,http://fonts.googleapis.com/css?family=Play,http://fonts.googleapis.com/css?family=Special+Elite,http://fonts.googleapis.com/css?family=IM+Fell+Double+Pica+SC,http://fonts.googleapis.com/css?family=Didact+Gothic,http://fonts.googleapis.com/css?family=Modern+Antiqua,http://fonts.googleapis.com/css?family=VT323,http://fonts.googleapis.com/css?family=Annie+Use+Your+Telescope';
    
    return $opt;
    
    }
    add_filter('tiny_mce_before_init', 'josh_sgw_custom_options');

    }

    stephenharris commented 11 years ago

    Hi Neomr,

    /homepages/14/d13377013/htdocs/projekt/biz/klienten/axelfink/wp-content/themes/Minimalism-WordPress-Theme-master/administration/admin-functions.php on line 103

    Error message indicates the error is in your theme, on line 103.

    Please use the support forums (or the plug-in repository support forums) for this though, as it doesn't appear to be a bug with Event Organiser.

    If you're not the developer of the theme, then I'd recommending speaking to them too about this error.