mirror of
https://github.com/php/web-doc-editor.git
synced 2026-03-25 17:52:18 +01:00
68 lines
3.4 KiB
JavaScript
68 lines
3.4 KiB
JavaScript
Ext.namespace('ui','ui.cmp');
|
|
|
|
ui.cmp.About = Ext.extend(Ext.Window,
|
|
{
|
|
id : 'win-about',
|
|
iconCls : 'iconHelp',
|
|
layout : 'fit',
|
|
width : 515,
|
|
height : 320,
|
|
modal : true,
|
|
plain : true,
|
|
bodyStyle : 'color:#000',
|
|
|
|
buttons : [{
|
|
text : _('Close'),
|
|
handler : function()
|
|
{
|
|
Ext.getCmp('win-about').close();
|
|
}
|
|
}],
|
|
|
|
initComponent : function()
|
|
{
|
|
Ext.apply(this,
|
|
{
|
|
title : String.format(_('About {0}'), PhDOE.app.name),
|
|
items : {
|
|
xtype : 'tabpanel',
|
|
activeTab : 0,
|
|
autoTabs : true,
|
|
border : false,
|
|
defaults : { autoScroll: true },
|
|
items : [{
|
|
title : _('About'),
|
|
html : '<div id="phd-oe-about">' +
|
|
'<img src="themes/img/php.png" class="loading-php-logo" alt="PHP" />' + PhDOE.app.name +
|
|
'</div>' +
|
|
'<div id="phd-oe-about-info">' + PhDOE.app.name + //' ver ' + PhDOE.app.ver + '<br/>' +
|
|
//'UI: ' + PhDOE.app.uiRevision + '<br/>' +
|
|
' Copyright © 2008-2012 The PHP Group<br/>' +
|
|
_('Author:') + ' <a href="mailto:yannick@php.net">Yannick Torrès</a> ' +
|
|
_('and <a href="http://git.php.net/?p=web/doc-editor.git;a=summary" target="_blank">others</a>') +
|
|
'</div>'
|
|
}, {
|
|
title : _('Help and support'),
|
|
bodyStyle : 'padding:15px',
|
|
html : '<div id="phd-oe-support"><ul>' +
|
|
'<li>' + _('Mailing list:') + '<a href="mailto:phpdoc@lists.php.net">phpdoc@lists.php.net</a></li>' +
|
|
'<li>' + _('IRC:') + '<a href="irc://irc.efnet.org/#php.doc">EFnet: #php.doc</a></li>' +
|
|
'</ul></div>'
|
|
}, {
|
|
title : _('Credits'),
|
|
bodyStyle : 'padding:15px',
|
|
html : '<div id="phd-oe-credit"><ul>' +
|
|
'<li><a href="http://extjs.com" target="_blank">ExtJs Team</a><div class="phd-oe-credit-info">' + _('Javascript FrameWork') + ' - ExtJs v'+ PhDOE.app.extJsVersion +'</div></li>' +
|
|
'<li><a href="http://marijn.haverbeke.nl/codemirror/" target="_blank">CodeMirror</a><div class="phd-oe-credit-info">' + _('Code editor') + ' - CodeMirror v'+ PhDOE.app.codeMirror +' - '+_('Mode Xmlpure by Dror Ben-Gai')+' </div></li>' +
|
|
'<li><a href="http://www.oxygen-icons.org/" target="_blank">Oxygen project from KDE</a><div class="phd-oe-credit-info">' + _('Icon pack') + '</div></li>' +
|
|
'<li><a href="http://www.mibbit.com/" target="_blank">'+_('Mibbit for donating their Premium IRC widget')+'</a><div class="phd-oe-credit-info">' + _('Web IRC Chat') + '</div></li>' +
|
|
'</ul></div>'
|
|
}, {
|
|
title : _('License'),
|
|
autoLoad : { url : './LICENSE' }
|
|
}]
|
|
}
|
|
});
|
|
ui.cmp.About.superclass.initComponent.call(this);
|
|
}
|
|
}); |