forked from Wavyzz/dolibarr
FIX logo and escape in RSS
This commit is contained in:
@@ -1743,7 +1743,7 @@ function dol_escape_js($stringtoescape, $mode = 0, $noescapebackslashn = 0)
|
||||
* Returns text escaped for inclusion into javascript code
|
||||
*
|
||||
* @param string $stringtoescape String to escape
|
||||
* @return string Escaped string for json content.
|
||||
* @return string Escaped string for JSON content.
|
||||
*/
|
||||
function dol_escape_json($stringtoescape)
|
||||
{
|
||||
@@ -1755,7 +1755,7 @@ function dol_escape_json($stringtoescape)
|
||||
*
|
||||
* @param string $stringtoescape String to escape
|
||||
* @param int<1,2> $stringforquotes 2=String for doublequotes, 1=String for simple quotes
|
||||
* @return string Escaped string for json content.
|
||||
* @return string Escaped string for PHP content.
|
||||
*/
|
||||
function dol_escape_php($stringtoescape, $stringforquotes = 2)
|
||||
{
|
||||
@@ -1778,6 +1778,17 @@ function dol_escape_php($stringtoescape, $stringforquotes = 2)
|
||||
return 'Bad parameter for stringforquotes in dol_escape_php';
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns text escaped for inclusion into a XML string
|
||||
*
|
||||
* @param string $stringtoescape String to escape
|
||||
* @return string Escaped string for XML content.
|
||||
*/
|
||||
function dol_escape_xml($stringtoescape)
|
||||
{
|
||||
return $stringtoescape;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a string label (so on 1 line only and that should not contains any HTML) ready to be output on HTML page
|
||||
* To use text that is not HTML content inside an attribute, use can simply only dol_escape_htmltag(). In doubt, use dolPrintHTMLForAttribute().
|
||||
@@ -4712,7 +4723,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = 0, $srco
|
||||
'margin', 'map-marker-alt', 'member', 'meeting', 'minus', 'money-bill-alt', 'movement', 'mrp', 'note', 'next',
|
||||
'off', 'on', 'order',
|
||||
'paiment', 'paragraph', 'play', 'pdf', 'phone', 'phoning', 'phoning_mobile', 'phoning_fax', 'playdisabled', 'previous', 'poll', 'pos', 'printer', 'product', 'propal', 'proposal', 'puce',
|
||||
'stock', 'resize', 'service', 'stats', 'trip',
|
||||
'stock', 'resize', 'service', 'stats',
|
||||
'security', 'setup', 'share-alt', 'sign-out', 'split', 'stripe', 'stripe-s', 'switch_off', 'switch_on', 'switch_on_warning', 'switch_on_red', 'tools', 'unlink', 'uparrow', 'user', 'user-tie', 'vcard', 'wrench',
|
||||
'github', 'google', 'jabber', 'microsoft', 'skype', 'twitter', 'facebook', 'linkedin', 'instagram', 'snapchat', 'youtube', 'google-plus-g', 'whatsapp',
|
||||
'generic', 'home', 'hrm', 'members', 'products', 'invoicing',
|
||||
@@ -4722,7 +4733,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = 0, $srco
|
||||
'error', 'warning',
|
||||
'recent', 'reception', 'recruitmentcandidature', 'recruitmentjobposition', 'replacement', 'resource', 'recurring','rss',
|
||||
'shapes', 'skill', 'square', 'sort-numeric-down', 'stop-circle', 'supplier', 'supplier_proposal', 'supplier_order', 'supplier_invoice',
|
||||
'terminal', 'timespent', 'title_setup', 'title_accountancy', 'title_bank', 'title_hrm', 'title_agenda',
|
||||
'terminal', 'tick', 'timespent', 'title_setup', 'title_accountancy', 'title_bank', 'title_hrm', 'title_agenda', 'trip',
|
||||
'uncheck', 'url', 'user-cog', 'user-injured', 'user-md', 'vat', 'website', 'workstation', 'webhook', 'world', 'private',
|
||||
'conferenceorbooth', 'eventorganization',
|
||||
'stamp', 'signature',
|
||||
@@ -4774,8 +4785,8 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = 0, $srco
|
||||
'refresh' => 'redo', 'region' => 'map-marked', 'replacement' => 'exchange-alt', 'resource' => 'laptop-house', 'recurring' => 'history',
|
||||
'service' => 'concierge-bell',
|
||||
'skill' => 'shapes', 'state' => 'map-marked-alt', 'security' => 'key', 'salary' => 'wallet', 'shipment' => 'dolly', 'stock' => 'box-open', 'stats' => 'chart-bar', 'split' => 'code-branch', 'stripe' => 'stripe-s',
|
||||
'supplier' => 'building', 'technic' => 'cogs',
|
||||
'timespent' => 'clock', 'title_setup' => 'tools', 'title_accountancy' => 'money-check-alt', 'title_bank' => 'university', 'title_hrm' => 'umbrella-beach',
|
||||
'supplier' => 'building',
|
||||
'technic' => 'cogs', 'tick' => 'check', 'timespent' => 'clock', 'title_setup' => 'tools', 'title_accountancy' => 'money-check-alt', 'title_bank' => 'university', 'title_hrm' => 'umbrella-beach',
|
||||
'title_agenda' => 'calendar-alt',
|
||||
'uncheck' => 'times', 'uparrow' => 'share', 'url' => 'external-link-alt', 'vat' => 'money-check-alt', 'vcard' => 'arrow-alt-circle-down',
|
||||
'jabber' => 'comment-o',
|
||||
@@ -4884,7 +4895,8 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = 0, $srco
|
||||
'other' => '#ddd', 'world' => '#986c6a',
|
||||
'partnership' => '#6c6aa8', 'playdisabled' => '#ccc', 'printer' => '#444', 'projectpub' => '#986c6a', 'reception' => '#a69944', 'resize' => '#444', 'rss' => '#cba',
|
||||
//'shipment'=>'#a69944',
|
||||
'security' => '#999', 'square' => '#888', 'stop-circle' => '#888', 'stats' => '#444', 'switch_off' => '#999', 'technic' => '#999', 'timespent' => '#555',
|
||||
'security' => '#999', 'square' => '#888', 'stop-circle' => '#888', 'stats' => '#444', 'switch_off' => '#999',
|
||||
'technic' => '#999', 'tick' => '#282', 'timespent' => '#555',
|
||||
'uncheck' => '#800', 'uparrow' => '#555', 'user-cog' => '#999', 'country' => '#aaa', 'globe-americas' => '#aaa', 'region' => '#aaa', 'state' => '#aaa',
|
||||
'website' => '#304', 'workstation' => '#a69944'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user