Ok after finally getting the profile install right (Click here to read about getting it working)
I added a video no problems then I tested adding a speaker
and well if you decide not to load google facebook twitter or linkedin account you get this error

Notice: Undefined index: field_googleplus in include() (line 14 of C:\xampp\htdocs\tedx\sites\all\themes\tedx\templates\node--speaker.tpl.php).
Notice: Undefined index: field_facebook in include() (line 17 of C:\xampp\htdocs\tedx\sites\all\themes\tedx\templates\node--speaker.tpl.php).
Notice: Undefined index: field_linkedin in include() (line 20 of C:\xampp\htdocs\tedx\sites\all\themes\tedx\templates\node--speaker.tpl.php).
Notice: Undefined index: field_twitter in include() (line 23 of C:\xampp\htdocs\tedx\sites\all\themes\tedx\templates\node--speaker.tpl.php).

if you add just googleplus it all goes away.

Add just Facebook you get just the googleplus part.
Add just linkedin to get the facebook and googleplus messages
Add just twitter to get all 3 other messages.

Just thought I would let someone know.

TOm

Comments

Betawerk’s picture

Tnx for the notice! This is a defect in the if statement (node--speaker.tpl.php). Will fix in next release.

Betawerk’s picture

For the people who need a direct solution:
Replace the php part in node--speakers.tpl.php with the following:

 <?php
    if (!empty($content['field_googleplus'])):
      print '<a href="' . $content['field_googleplus']['#items']['0']['value'] . '" target="_blank"><img src="' . base_path() . path_to_theme() . '/images/social/google_16.png" /></a>';

    elseif (!empty($content['field_facebook'])):
      print '<a href="' . $content['field_facebook']['#items']['0']['value'] . '" target="_blank"><img src="' . base_path() . path_to_theme() . '/images/social/facebook_16.png" /></a>';

    elseif (!empty($content['field_linkedin'])):
      print '<a href="' . $content['field_linkedin']['#items']['0']['value'] . '" target="_blank"><img src="' . base_path() . path_to_theme() . '/images/social/linkedin_16.png" /></a>';

    elseif (!empty($content['field_twitter'])):
      print '<a href="' . $content['field_twitter']['#items']['0']['value'] . '" target="_blank"><img src="' . base_path() . path_to_theme() . '/images/social/twitter_16.png" /></a>';
    endif;
  ?>
Betawerk’s picture

Issue summary: View changes

updated the link text