Tagged: , ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #356197

    Hi.

    I use Enfold 3.0.1 on WordPress 4.0.1
    On this page http://frame3d.de/team/ the social-icons used to work in WordPress 4.0.
    Since a few days the icons won’t appear anymore.

    This is the DEBUG-Code of one of the elements:

    [av_team_member name='Markus Schwab' job='CEO / Marketing' src='http://www.frame3d.de/wp-content/uploads/2013/04/markus-485x430.jpg' attachment='3070' attachment_size='' description='Er ist unser kaufmännischer Geschäftsführer. Kundenkontakt, Marketing und Projektleitung liegen in seinem Verantwortungsbereich. Wenn er nicht gerade für frame mit irgendjemandem kommuniziert, reist er gerne durch die Welt und schaut sich fremde Kulturen an.' font_color='' custom_title='' custom_content='' custom_class='']
    [av_team_icon title='E-Mail an Markus' link='mailto: (Email address hidden if logged out) ' link_target='' icon='ue805' font='entypo-fontello']
    [av_team_icon title='Markus auf Xing' link='https://www.xing.com/profile/Markus_Schwab?sc_o=mxb_p' link_target='_blank' icon='ue923' font='entypo-fontello']
    [/av_team_member]

    If you take a look at our DEV-Page (see private-content below) you will see, that the single- or double-quotes are replaced by these other ones: ” or ’
    I guess that the wordpress-function shortcode_parse_atts() cannot handle these. so i tries to str_replace them in the file enfold\config-templatebuilder\avia-template-builder\php\shortcode-helper.class.php like this:

    $content = str_replace("’", "'", $content);
    $content = str_replace("”", '"', $content);
    preg_match_all( "/$pattern/s", $content , $matches);

    But this didn’t seem to work.

    Do you have any idea, what could be the problem?

    #356538

    Hi Michael!

    Thank you for using Enfold.

    The version that you’re using is not compatible with WordPress 4.0.1. Please update the theme to Enfold 3.0.4.

    Cheers!
    Ismael

    #357119

    Ah i see.

    Can you please tell me, which files where modified, so i can copy the changes row by row or file by file?

    #357129

    Btw: “No Updates available. You are running the latest version! (3.0.4)”
    But on the dev-page, still no team-icons available.

    #357179

    I did a quick-fix in this file:
    themes\enfold\config-templatebuilder\avia-template-builder\php\shortcode-helper.class.php

    Old:

    /**
     * Converts a shortcode into an array
     **/
    	static function shortcode2array($content, $depth = 1000) {	
    		$pattern = empty(ShortcodeHelper::$pattern) ? ShortcodeHelper::build_pattern() : ShortcodeHelper::$pattern;
    		$depth --;
    
    		preg_match_all( "/$pattern/s", $content , $matches);
    		...
    

    NEW:

    /**
     * Converts a shortcode into an array
     **/
    	static function shortcode2array($content, $depth = 1000) {	
    		$pattern = empty(ShortcodeHelper::$pattern) ? ShortcodeHelper::build_pattern() : ShortcodeHelper::$pattern;
    		$depth --;
    
    		// fixing shortcode-bug with wordpress 4.0.1
    			// $content = html_entity_decode($content); // does not seem to work.
    			$content = str_replace("’", "'", $content);
    			$content = str_replace("”", '"', $content);
    			$content = str_replace("”", "''", $content);
    			$content = str_replace(array("’", "′"), "'", $content);
    			
    		preg_match_all( "/$pattern/s", $content , $matches);
    		...
    

    Perhaps this helps someone.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Team-Icon Shortcodes don't render’ is closed to new replies.