(Original Author) * Frederic Wenzel * * Alternatively, the contents of this file may be used under the terms of * either the GNU General Public License Version 2 or later (the "GPL"), or * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), * in which case the provisions of the GPL or the LGPL are applicable instead * of those above. If you wish to allow use of your version of this file only * under the terms of either the GPL or the LGPL, and not to allow others to * use your version of this file under the terms of the MPL, indicate your * decision by deleting the provisions above and replace them with the notice * and other provisions required by the GPL or the LGPL. If you do not delete * the provisions above, a recipient may use your version of this file under * the terms of any one of the MPL, the GPL or the LGPL. * * ***** END LICENSE BLOCK ***** */ ?>
renderElement('developers/sidebar', array('addons' => $all_addons, 'extra' => 'developers/editbox'));?>
renderElement('developers/addonheader', array('title' => sprintf(___('devcp_title_edit_addon'), $addon_name), 'addon_id' => $addon_id));?> '.___('devcp_notice_changes_saved').'
'; } if (!empty($errors)) { echo '
'.___('devcp_notice_changes_error').'
'; } ?>

renderElement('noscript')?> renderElement('developers/rolecheck')?>
hiddenSession();?> translationBox = array( 'defaultLocale' => $addon['Addon']['defaultlocale'], 'languages' => $languages, 'table' => 'Version', 'loaded' => false ); echo '
'; echo '

'.___('devcp_versions_edit_header_file').'

'; if (!empty($version['File'])) { echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; $i = 0; foreach ($version['File'] as $file) { echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; $i++; } echo '
'.___('devcp_versions_edit_th_file').''.___('devcp_versions_edit_th_platform').''.___('devcp_versions_edit_th_size').''.___('devcp_versions_edit_th_status').'
'; echo ''; echo ''.$file['filename'].''.sprintf(_('size_kb'), $file['size']).''.$statuses[$file['status']].'
'; } else { echo '

'.___('devcp_versions_edit_no_files').'

'; } echo '
'.___('devcp_versions_edit_unsaved_files').'
'; echo ''; echo '
'; // Compatible applications (hidden for search engines) if ($addon['Addon']['addontype_id'] != ADDON_SEARCH) { echo '
'; echo '

'.___('devcp_versions_edit_header_compat').'

'; if (!empty($errors['applications'])) echo '
'.$errors['applications'].'
'; echo '

'.sprintf(___('devcp_versions_edit_adjust'), '/pages/appversions').'

'; echo ''; $i = 0; if (!empty($targetApps)) { foreach ($targetApps as $application_id => $versions) { echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; $i++; } } echo '
'.$html->image('developers/'.strtolower($applications[$application_id]).'.png', array('alt' => $applications[$application_id], 'class' => 'compat-icon')).''; echo ''; echo $applications[$application_id].''; echo ' — '; echo ''; echo '
'; echo '
'.___('devcp_versions_edit_unsaved_compat').'
'; echo '
'.___('devcp_versions_edit_a_new_app').''; echo ''; echo '
'; echo '
'; } // Version Notes echo $this->renderElement('translationbox', array( 'field' => 'releasenotes', 'translations' => $translations['releasenotes'], 'height' => '130', 'width' => 'inherit', 'displayName' => ___('devcp_versions_edit_transbox_releasenotes_name'), 'description' => ___('devcp_versions_edit_transbox_releasenotes_description'), )); ?>

controller->Developers->getLicenses($version['Version']['id']); echo $this->renderElement('developers/license_picker', array('licenses' => $licenses)); echo $this->renderElement('developers/license_translationbox', array('translations' => $trans, // The transbox wraps fieldname with [] 'fieldname' => 'License][text')); ?>

'; foreach ($version['File'] as $file) { echo '
  • '.sprintf(___('devcp_versions_edit_li_file'), $file['id'], $platforms[$file['platform_id']], strftime(_('date'), strtotime($file['created'])), $statuses[$file['status']], strftime(_('date'), strtotime($file['datestatuschanged']))).'
  • '; } echo ''; } echo '
    '.___('devcp_versions_edit_header_notes').'
    '; echo '

    '.___('devcp_versions_edit_optional').'

    '; echo ''; echo '
    '; ?>
    '; echo 'var application_names = {'; foreach ($applications as $application_id => $application_name) { echo $application_id.': "'.$application_name.'", '; } echo '};'; echo 'var imageBase = \''.$html->url('/img/developers', true, false, false).'\''; echo ''; // Dropdowns for all applications so they can be added. This must be // outside of the
    foreach ($applications as $application_id => $application_name) { echo ''; } } ?>