%title%
by %author%
And I want to replace 'by' with 'Author:'. So, I open plugin.records_eyepiece.php, and looking for code responsible for drawing "Current track" widget:
Code: Select all
$header .= '<label posn="1 -2.7 0.04" sizen="13.55 2" scale="1" text="%trackname%"/>';
$header .= '<label posn="1 -4.5 0.04" sizen="14.85 2" scale="0.9" text="by %author%"/>';
Code: Select all
//--------------------------------------------------------------//
// BEGIN: Widget for MusicInfo //
//--------------------------------------------------------------//
// %posx%, %posy%
// %widgetwidth%
// %title_background_width%
// %actionid%
// %image_open_pos_x%, %image_open_pos_y%, %image_open%
// %posx_icon%, %posy_icon%
// %posx_title%, %posy_title%
// %halign%, %title%
$header = '<frame posn="%posx% %posy% 0">';
$header .= '<quad posn="0 0 0.001" sizen="%widgetwidth% 8.65" action="%actionid%" style="'. $re_config['STYLE'][0]['WIDGET_RACE'][0]['BACKGROUND_STYLE'][0] .'" substyle="'. $re_config['STYLE'][0]['WIDGET_RACE'][0]['BACKGROUND_SUBSTYLE'][0] .'"/>';
$header .= '<quad posn="%image_open_pos_x% %image_open_pos_y% 0.05" sizen="3.5 3.5" image="%image_open%"/>';
// Icon and Title
$header .= '<quad posn="0.4 -0.36 0.002" sizen="%title_background_width% 2" style="'. $re_config['STYLE'][0]['WIDGET_RACE'][0]['TITLE_STYLE'][0] .'" substyle="'. $re_config['STYLE'][0]['WIDGET_RACE'][0]['TITLE_SUBSTYLE'][0] .'"/>';
$header .= '<quad posn="%posx_icon% %posy_icon% 0.004" sizen="2.5 2.5" style="'. $re_config['MUSIC_WIDGET'][0]['ICON_STYLE'][0] .'" substyle="'. $re_config['MUSIC_WIDGET'][0]['ICON_SUBSTYLE'][0] .'"/>';
$header .= '<label posn="%posx_title% %posy_title% 0.004" sizen="10.2 0" halign="%halign%" textsize="1" text="%title%"/>';
$header .= '<format textsize="1" textcolor="'. $re_config['STYLE'][0]['WIDGET_RACE'][0]['COLORS'][0]['DEFAULT'][0] .'"/>';
$footer = '</frame>';
$templates['MUSICINFO']['HEADER'] = $header;
$templates['MUSICINFO']['FOOTER'] = $footer;
unset($header, $footer);
//--------------------------------------------------------------//
// END: Widget for MusicInfo //
//--------------------------------------------------------------//