="gkTeam" link to _blank page FB, twitter & G+

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Jun 11, 2014 6:03 pm
Reply with quote
Report this post
Hi
Working on John template, inside class="gkTeam" no way find to send the FB, twitter and G+ link of the collaborators to a new blank page, like it do well with gkContact.
Please, help can be useful

Website in test mode actually : http://prestigeredsea.com/m1c/fr/#team
Many thanks
User avatar
Senior Boarder

GK User
Wed Jun 11, 2014 6:28 pm
Reply with quote
Report this post
Hello,

Please open file js/gk.scripts.js and please change the following fragment:

Code: Select all
if(figure.getProperty('data-fb') != null) {
               htmloutput += '<a href="'+figure.getProperty('data-fb')+'" data-type="fb">Facebook</a>';
               classcounter++;
            }

            if(figure.getProperty('data-twitter') != null) {
               htmloutput += '<a href="'+figure.getProperty('data-twitter')+'" data-type="twitter">Twitter</a>';
               classcounter++;
            }

            if(figure.getProperty('data-gplus') != null) {
               htmloutput += '<a href="'+figure.getProperty('data-gplus')+'" data-type="gplus">Google+</a>';
               classcounter++;
            }


to:

Code: Select all
if(figure.getProperty('data-fb') != null) {
               htmloutput += '<a href="'+figure.getProperty('data-fb')+'" target="_blank" data-type="fb">Facebook</a>';
               classcounter++;
            }

            if(figure.getProperty('data-twitter') != null) {
               htmloutput += '<a href="'+figure.getProperty('data-twitter')+'" target="_blank" data-type="twitter">Twitter</a>';
               classcounter++;
            }

            if(figure.getProperty('data-gplus') != null) {
               htmloutput += '<a href="'+figure.getProperty('data-gplus')+'" target="_blank" data-type="gplus">Google+</a>';
               classcounter++;
            }
User avatar
Administrator

GK User
Wed Jun 11, 2014 7:19 pm
Reply with quote
Report this post
Many thanks again,
work perfectly
You are great :)
User avatar
Senior Boarder


cron