New Landing How can we help? Cardinal Team icons missing

Viewing 10 posts - 1 through 10 (of 10 total)
  • Posted in: Cardinal
  • #152804
    NMillard
    Member
    Post count: 115

    Hi,

    I’ve just updated to the newest version of Cardinal but something unfortunate happend..

    The icons for email, phone, facebook and so on are missing on the team members. Instead of icons the meta text is shown..

    Attachments:
    You must be logged in to view attached files.
    #152812
    Kyle – SUPPORT
    Moderator
    Post count: 35880
    #152816
    NMillard
    Member
    Post count: 115

    I’ve tried to replace the code but it still doesnt work… 🙁

    #152818
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Sorry, wrong file, go to /swift-framework/page-builder/shortcodes/team.php, replace all that code with this:

    <?php
    
        /*
        *
        *	Swift Page Builder - Team Shortcode
        *	------------------------------------------------
        *	Swift Framework
        * 	Copyright Swift Ideas 2015 - http://www.swiftideas.com
        *
        */
    
        class SwiftPageBuilderShortcode_spb_team extends SwiftPageBuilderShortcode {
    
            protected function content( $atts, $content = null ) {
    
                $title = $width = $el_class = $output = $filter = $social_icon_type = $items = $el_position = '';
    
                extract( shortcode_atts( array(
                    'title'        => '',
                    'item_columns' => '3',
                    'display_type' => 'standard',
                    'carousel'     => 'no',
                    "item_count"   => '12',
                    "category"     => '',
                    'pagination'   => '',
                    'profile_link' => 'yes',
                    'fullwidth'    => 'no',
                    'gutters'      => 'yes',
                    'el_position'  => '',
                    'width'        => '1/1',
                    'el_class'     => ''
                ), $atts ) );
    
                // CATEGORY SLUG MODIFICATION
                if ( $category == "All" ) {
                    $category = "all";
                }
                if ( $category == "all" ) {
                    $category = '';
                }
                $category_slug = str_replace( '_', '-', $category );
    			
    			$contact_icon 	 	= apply_filters( 'sf_mail_icon', '<i class="ss-mail"></i>' );
    			$phone_icon			= apply_filters( 'sf_phone_icon', '<i class="ss-phone"></i>' , );
    
                /* SIDEBAR CONFIG
                ================================================== */
                global $sf_sidebar_config;
    
                $sidebars = '';
                if ( ( $sf_sidebar_config == "left-sidebar" ) || ( $sf_sidebar_config == "right-sidebar" ) ) {
                    $sidebars = 'one-sidebar';
                } else if ( $sf_sidebar_config == "both-sidebars" ) {
                    $sidebars = 'both-sidebars';
                } else {
                    $sidebars = 'no-sidebars';
                }
    
                global $post, $wp_query;
    
                $paged        = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
                $team_args    = array(
                    'post_type'           => 'team',
                    'post_status'         => 'publish',
                    'paged'               => $paged,
                    'team-category'       => $category_slug,
                    'posts_per_page'      => $item_count,
                    'ignore_sticky_posts' => 1
                );
                $team_members = new WP_Query( $team_args );
    
                $count        = 0;
                $image_width  = 270;
                $image_height = 270;
    
                if ( $item_columns == "1" ) {
                    $item_class = 'col-sm-12';
                } else if ( $item_columns == "2" ) {
                    $image_width  = 540;
                    $image_height = 540;
                    $item_class   = 'col-sm-6';
                } else if ( $item_columns == "3" ) {
                    $image_width  = 360;
                    $image_height = 360;
                    $item_class   = 'col-sm-4';
                } else if ( $item_columns == "5" ) {
                    $image_width  = 360;
                    $image_height = 360;
                    $item_class   = 'col-sm-sf-5';
                } else {
                    $item_class = 'col-sm-3';
                }
    
                $list_class = 'display-type-' . $display_type;
    
                if ( $gutters == "no" ) {
                    $list_class .= ' no-gutters';
                }
    
                if ( $carousel == "yes" ) {
                    global $sf_carouselID;
                    if ( $sf_carouselID == "" ) {
                        $sf_carouselID = 1;
                    } else {
                        $sf_carouselID ++;
                    }
                    $item_class = 'carousel-item';
                    $items .= '<div class="team-carousel carousel-wrap"><div id="carousel-' . $sf_carouselID . '" class="team-members carousel-items ' . $list_class . ' clearfix" data-columns="' . $item_columns . '" data-auto="false">';
                } else {
                    $items .= '<div class="team-members ' . $list_class . ' row clearfix">';
                }
    
                while ( $team_members->have_posts() ) : $team_members->the_post();
    
                    global $more;
                    $more = 0;
    
                    $member_name     = get_the_title();
                    $member_position = sf_get_post_meta( $post->ID, 'sf_team_member_position', true );
                    $member_bio      = apply_filters( 'the_content', get_the_content( '' ) );
                    $custom_excerpt  = sf_get_post_meta( $post->ID, 'sf_custom_excerpt', true );
                    if ( $custom_excerpt != "" ) {
                        $member_bio = sf_custom_excerpt( $custom_excerpt, 1000 );
                    }
                    $member_email       = sf_get_post_meta( $post->ID, 'sf_team_member_email', true );
                    $member_phone       = sf_get_post_meta( $post->ID, 'sf_team_member_phone_number', true );
                    $member_twitter     = sf_get_post_meta( $post->ID, 'sf_team_member_twitter', true );
                    $member_facebook    = sf_get_post_meta( $post->ID, 'sf_team_member_facebook', true );
                    $member_linkedin    = sf_get_post_meta( $post->ID, 'sf_team_member_linkedin', true );
                    $member_google_plus = sf_get_post_meta( $post->ID, 'sf_team_member_google_plus', true );
                    $member_skype       = sf_get_post_meta( $post->ID, 'sf_team_member_skype', true );
                    $member_instagram   = sf_get_post_meta( $post->ID, 'sf_team_member_instagram', true );
                    $member_dribbble    = sf_get_post_meta( $post->ID, 'sf_team_member_dribbble', true );
                    $view_profile_text = __( "View Profile", "swiftframework" );
                    $member_image       = get_post_thumbnail_id();
                    $member_link        = get_permalink();
    
                    $items .= '<div itemscope data-id="id-' . $count . '" class="clearfix team-member ' . $item_class . '">';
    
                    $img_url = wp_get_attachment_url( $member_image, 'full' );
                    $image   = sf_aq_resize( $img_url, $image_width, $image_height, true, false );
    
                    $items .= '<figure class="animated-overlay">';
                    if ( $image ) {
                        $items .= '<img itemprop="image" src="' . $image[0] . '" width="' . $image[1] . '" height="' . $image[2] . '" alt="' . $member_name . '" />';
                    }
    
                    $items .= '<figcaption class="team-' . $display_type . '">';
                    $items .= '<div class="thumb-info">';
    
                    if ( $display_type == "gallery" ) {
                        if ( $profile_link == "yes" ) {
                            $items .= '<h4 class="team-member-name"><a href="' . get_permalink() . '">' . $member_name . '</a></h4>';
                        } else {
                            $items .= '<h4 class="team-member-name">' . $member_name . '</h4>';
                        }
                        $items .= '<h5 class="team-member-position">' . $member_position . '</h5>';
                        $items .= '<div class="name-divide"></div>';
                    }
    
                    if ( ( $member_twitter ) || ( $member_facebook ) || ( $member_linkedin ) || ( $member_google_plus ) || ( $member_skype ) || ( $member_instagram ) || ( $member_dribbble ) ) {
                        $items .= '<ul class="social-icons">';
                        if ( $member_twitter ) {
                            $items .= '<li class="twitter"><a href="http://www.twitter.com/' . $member_twitter . '" target="_blank"><i class="fa-twitter"></i><i class="fa-twitter"></i></a></li>';
                        }
                        if ( $member_facebook ) {
                            $items .= '<li class="facebook"><a href="' . $member_facebook . '" target="_blank"><i class="fa-facebook"></i><i class="fa-facebook"></i></a></li>';
                        }
                        if ( $member_linkedin ) {
                            $items .= '<li class="linkedin"><a href="' . $member_linkedin . '" target="_blank"><i class="fa-linkedin"></i><i class="fa-linkedin"></i></a></li>';
                        }
                        if ( $member_google_plus ) {
                            $items .= '<li class="googleplus"><a href="' . $member_google_plus . '" target="_blank"><i class="fa-google-plus"></i><i class="fa-google-plus"></i></a></li>';
                        }
                        if ( $member_skype ) {
                            $items .= '<li class="skype"><a href="skype:' . $member_skype . '" target="_blank"><i class="fa-skype"></i><i class="fa-skype"></i></a></li>';
                        }
                        if ( $member_instagram ) {
                            $items .= '<li class="instagram"><a href="' . $member_instagram . '" target="_blank"><i class="fa-instagram"></i><i class="fa-instagram"></i></a></li>';
                        }
                        if ( $member_dribbble ) {
                            $items .= '<li class="dribbble"><a href="http://www.dribbble.com/' . $member_dribbble . '" target="_blank"><i class="fa-dribbble"></i><i class="fa-dribbble"></i></a></li>';
                        }
                        $items .= '</ul>';
                    }
                    if ( $display_type != "gallery" && $profile_link == "yes" ) {
                        $items .= '<a class="view-profile" href="' . get_permalink() . '">' . $view_profile_text . '</a>';
                    }
    
                    $items .= '</div>';
                    $items .= '</figcaption>';
    
                    $items .= '</figure>';
    
                    if ( $display_type != "gallery" ) {
                        if ( $profile_link == "yes" ) {
                            $items .= '<h4 class="team-member-name"><a href="' . get_permalink() . '">' . $member_name . '</a></h4>';
                        } else {
                            $items .= '<h4 class="team-member-name">' . $member_name . '</h4>';
                        }
                        $items .= '<h5 class="team-member-position">' . $member_position . '</h5>';
                    }
                    if ( $display_type == "standard" ) {
                        if ( $profile_link == "yes" ) {
                            $items .= '<div class="team-member-bio">' . $member_bio . '<a href="' . get_permalink() . '" class="read-more">' . $view_profile_text . '</a></div>';
                        } else {
                            $items .= '<div class="team-member-bio">' . $member_bio . '</div>';
                            $items .= '<ul class="member-contact">';
                            if ( $member_email ) {
                                $items .= '<li>'.$contact_icon.'<span itemscope="email"><a href="mailto:' . $member_email . '">' . $member_email . '</a></span></li>';
                            }
                            if ( $member_phone ) {
                                $items .= '<li>'.$phone_icon.'<span itemscope="telephone">' . $member_phone . '</span></li>';
                            }
                            $items .= '</ul>';
                        }
                    }
    
                    $items .= '</div>';
                    $count ++;
    
                endwhile;
    
                wp_reset_query();
                wp_reset_postdata();
    
                if ( $carousel == "yes" ) {
                    $items .= '</div></div>';
                } else {
                    $items .= '</div>';
                }
    
                // PAGINATION
                if ( $pagination == "yes" && $carousel == "no" ) {
                    $items .= '<div class="pagination-wrap">';
                    $items .= pagenavi( $team_members );
                    $items .= '</div>';
                }
    
                $el_class = $this->getExtraClass( $el_class );
                $width    = spb_translateColumnWidthToSpan( $width );
    
                $output .= "\n\t" . '<div class="team_list carousel-asset spb_content_element ' . $width . $el_class . '">';
                $output .= "\n\t\t" . '<div class="spb-asset-content">';
                if ( $fullwidth == "yes" && $sidebars == "no-sidebars" ) {
                    $output .= "\n\t\t" . '<div class="title-wrap container">';
                    if ( $title != '' ) {
                        $output .= '<h3 class="spb-heading"><span>' . $title . '</span></h3>';
                    }
                    if ( $carousel == "yes" ) {
                        $output .= spb_carousel_arrows();
                    }
                    $output .= '</div>';
                } else {
                    $output .= "\n\t\t" . '<div class="title-wrap clearfix">';
                    if ( $title != '' ) {
                        $output .= '<h3 class="spb-heading"><span>' . $title . '</span></h3>';
                    }
                    if ( $carousel == "yes" ) {
                        $output .= spb_carousel_arrows();
                    }
                    $output .= '</div>';
                }
                $output .= "\n\t\t" . $items;
                $output .= "\n\t\t" . '</div>';
                $output .= "\n\t" . '</div> ' . $this->endBlockComment( $width );
    
                if ( $fullwidth == "yes" && $sidebars == "no-sidebars" ) {
                    $output = $this->startRow( $el_position, '', true ) . $output . $this->endRow( $el_position, '', true );
                } else {
                    $output = $this->startRow( $el_position ) . $output . $this->endRow( $el_position );
                }
    
                global $sf_include_isotope, $sf_has_team, $sf_include_carousel;
                $sf_include_isotope = true;
                $sf_has_team        = true;
    
                if ( $carousel == "yes" ) {
                    $sf_include_carousel = true;
                }
    
                return $output;
            }
        }
    
        SPBMap::map( 'spb_team', array(
            "name"   => __( "Team", "swift-framework-admin" ),
            "base"   => "spb_team",
            "class"  => "team",
            "icon"   => "spb-icon-team",
            "params" => array(
                array(
                    "type"        => "textfield",
                    "heading"     => __( "Widget title", "swift-framework-admin" ),
                    "param_name"  => "title",
                    "value"       => "",
                    "description" => __( "Heading text. Leave it empty if not needed.", "swift-framework-admin" )
                ),
                array(
                    "type"        => "dropdown",
                    "heading"     => __( "Display Type", "swift-framework-admin" ),
                    "param_name"  => "display_type",
                    "value"       => array(
                        __( 'Standard', "swift-framework-admin" )              => "standard",
                        __( 'Standard (No Excerpt)', "swift-framework-admin" ) => "standard-alt",
                        __( 'Gallery', "swift-framework-admin" )               => "gallery"
                    ),
                    "description" => __( "Choose the display type for the team members.", "swift-framework-admin" )
                ),
                array(
                    "type"        => "buttonset",
                    "heading"     => __( "Carousel", "swift-framework-admin" ),
                    "param_name"  => "carousel",
                    "value"       => array(
                        __( 'No', "swift-framework-admin" )  => "no",
                        __( 'Yes', "swift-framework-admin" ) => "yes"
                    ),
                    "description" => __( "Enables carousel funcitonality in the asset.", "swift-framework-admin" )
                ),
                array(
                    "type"        => "dropdown",
                    "heading"     => __( "Columns", "swift-framework-admin" ),
                    "param_name"  => "item_columns",
                    "value"       => array(
                        __( '2', "swift-framework-admin" ) => "2",
                        __( '3', "swift-framework-admin" ) => "3",
                        __( '4', "swift-framework-admin" ) => "4",
                        __( '5', "swift-framework-admin" ) => "5"
                    ),
                    "description" => __( "Choose the amount of columns you would like for the team asset.", "swift-framework-admin" )
                ),
                array(
                    "type"        => "textfield",
                    "class"       => "",
                    "heading"     => __( "Number of items", "swift-framework-admin" ),
                    "param_name"  => "item_count",
                    "value"       => "12",
                    "description" => __( "The number of team members to show per page.", "swift-framework-admin" )
                ),
                array(
                    "type"        => "select-multiple",
                    "heading"     => __( "Team category", "swift-framework-admin" ),
                    "param_name"  => "category",
                    "value"       => sf_get_category_list( 'team-category' ),
                    "description" => __( "Choose the category for the team items.", "swift-framework-admin" )
                ),
                array(
                    "type"        => "buttonset",
                    "heading"     => __( "Profile Link", "swift-framework-admin" ),
                    "param_name"  => "profile_link",
                    "value"       => array(
                        __( 'Yes', "swift-framework-admin" ) => "yes",
                        __( 'No', "swift-framework-admin" )  => "no"
                    ),
                    "description" => __( "Select if you'd like the team members to link through to the profile page.", "swift-framework-admin" )
                ),
                array(
                    "type"        => "buttonset",
                    "heading"     => __( "Pagination", "swift-framework-admin" ),
                    "param_name"  => "pagination",
                    "value"       => array(
                        __( 'No', "swift-framework-admin" )  => "no",
                        __( 'Yes', "swift-framework-admin" ) => "yes"
                    ),
                    "description" => __( "Show team pagination.", "swift-framework-admin" )
                ),
                array(
                    "type"        => "buttonset",
                    "heading"     => __( "Full Width", "swift-framework-admin" ),
                    "param_name"  => "fullwidth",
                    "value"       => array(
                        __( 'No', "swift-framework-admin" )  => "no",
                        __( 'Yes', "swift-framework-admin" ) => "yes"
                    ),
                    "description" => __( "Select if you'd like the asset to be full width (edge to edge). NOTE: only possible on pages without sidebars.", "swift-framework-admin" )
                ),
                array(
                    "type"        => "buttonset",
                    "heading"     => __( "Gutters", "swift-framework-admin" ),
                    "param_name"  => "gutters",
                    "value"       => array(
                        __( 'Yes', "swift-framework-admin" ) => "yes",
                        __( 'No', "swift-framework-admin" )  => "no"
                    ),
                    "description" => __( "Select if you'd like spacing between the items, or not.", "swift-framework-admin" )
                ),
                array(
                    "type"        => "textfield",
                    "heading"     => __( "Extra class", "swift-framework-admin" ),
                    "param_name"  => "el_class",
                    "value"       => "",
                    "description" => __( "If you wish to style this particular content element differently, then use this field to add a class name and then refer to it in your css file.", "swift-framework-admin" )
                )
            )
        ) );

    – Kyle

    #152819
    NMillard
    Member
    Post count: 115

    Thanks!

    It works!

    There’s an error in the php code – one comma too much on line 44 – remove it and it works perfectly! 🙂

    btw, which plugin do you use on this forum to display icons next to topics?

    #152820
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Ok great 🙂 Sorry I’m not sure I didn’t dev the forum site

    – Kyle

    #152822
    NMillard
    Member
    Post count: 115

    oh damn – is it possible for you to ask the one how made the forum?

    I’ve been looking for ages for such a plugin .. also one that shows the “Staff” or “Dev” mark next to a name…

    It’d be much appreciated!

    #152825
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    We use: GetShopped Support Forum Plugin

    – Kyle

    #152837
    NMillard
    Member
    Post count: 115

    Thank you! 😀

    #152958
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem 🙂

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register