Modifiying the Blue_v2 Theme

samdetavernier6101

New Member
YetiShare User
YetiShare Supporter
Aug 2, 2016
8
0
1
So I'm modifying the blue theme to my own needs, I want to add an icon before the links in the header but inserting an image in PHP is just horror...

Trying to insert the image into this piece of code:
Code:
$headerNavigation['Home'] = array(
'link_url'      => coreFunctions::getCoreSitePath() . '/account_home.' . SITE_CONFIG_PAGE_EXTENSION,
'link_text'     => t ('Your_Files', 'Your Files'),
'user_level_id' => range(1, 20),
'position'      => 30
Tried this:
Code:
$headerNavigation['Home'] = array(
'link_url'      => coreFunctions::getCoreSitePath() . '/account_home.' . SITE_CONFIG_PAGE_EXTENSION,
'link_text'     => t ('Your_Files', '<img src="path/to/my/img"> Your Files'),
'user_level_id' => range(1, 20),
'position'      => 30
This:
Code:
$headerNavigation['Home'] = array(
'link_url'      => coreFunctions::getCoreSitePath() . '/account_home.' . SITE_CONFIG_PAGE_EXTENSION,
'link_text'     => t ('Your_Files', echo '<img src="path/to/my/img"> Your Files'),
'user_level_id' => range(1, 20),
'position'      => 30
And this:
Code:
$headerNavigation['Home'] = array(
'link_url'      => coreFunctions::getCoreSitePath() . '/account_home.' . SITE_CONFIG_PAGE_EXTENSION,
'link_text'     => t ('Your_Files', ?> '<img src="path/to/my/img"> Your Files'), <?php
'user_level_id' => range(1, 20),
'position'      => 30
But that all doesn't seem to work out.

Also, what is this
Code:
t
function?
 

enricodias4654

Member
YetiShare User
Jan 13, 2015
411
1
16
t() is a function. This specific function is used in the translation and the second parameter is the default value. You cannot put an echo between them and cannot close and open php tags like this.
 

samdetavernier6101

New Member
YetiShare User
YetiShare Supporter
Aug 2, 2016
8
0
1
enricodias4654 said:
t() is a function. This specific function is used in the translation and the second parameter is the default value. You cannot put an echo between them and cannot close and open php tags like this.
Thanks for your reply!

Do you have any suggestions on how I could add in the image?
 

samdetavernier6101

New Member
YetiShare User
YetiShare Supporter
Aug 2, 2016
8
0
1
enricodias4654 said:
Try to add it in the translation file.
Unfortunally doesn't work either, tried to add it in the database and also from the dashboard but it doesn't change a thing. :(