First commit

This commit is contained in:
Theodotos Andreou 2018-01-14 13:10:16 +00:00
commit c6e2478c40
13918 changed files with 2303184 additions and 0 deletions

View file

@ -0,0 +1,5 @@
<div class="messages help">
{capture assign='adminURL'}{crmURL p='civicrm/admin/setting/path' q="reset=1&civicrmDestination=$destination"}{/capture}
<p>{ts 1=$adminURL 2="https://civicrm.org/extensions"}CiviCRM extensions allow you to install additional features for your site. This page will automatically list the available "native" extensions from the <a href="%2" target="_blank">CiviCRM.org extensions directory</a> which are compatible with this version of CiviCRM. If you install Custom Searches, Reports or Payment Processor extensions - these will automatically be available on the corresponding menus and screens.{/ts}</p>
{ts 1=$config->userFramework|replace:'6':'' 2="https://civicrm.org/extensions"}<p>You may also want to check the directory for <a href="%2/%1" target="_blank">native %1 modules</a> that may be useful for you (CMS-specific modules are not listed here).{/ts}</p>
</div>

View file

@ -0,0 +1,47 @@
{*
Display a table of remotely-available extensions
Depends: CRM/common/enableDisableApi.tpl and CRM/common/jsortable.tpl
*}
{if $remoteExtensionRows}
<div id="extensions-addnew">
{strip}
<table id="extensions-addnew-table" class="display">
<thead>
<tr>
<th>{ts}Extension name (key){/ts}</th>
<th>{ts}Version{/ts}</th>
<th>{ts}Type{/ts}</th>
<th></th>
</tr>
</thead>
<tbody>
{foreach from=$remoteExtensionRows key=extKey item=row}
{if $localExtensionRows[$extKey]}
{continue}
{/if}
<tr id="addnew-row_{$row.id}" class="crm-extensions crm-extensions_{$row.id}">
<td class="crm-extensions-label">
<a class="collapsed" href="#"></a>&nbsp;<strong>{$row.label}</strong><br/>({$row.key})
</td>
<td class="crm-extensions-label">{$row.version} {if $row.upgradable}<br/>({$row.upgradeVersion}){/if}</td>
<td class="crm-extensions-description">{$row.type|capitalize}</td>
<td>{$row.action|replace:'xx':$row.id}</td>
</tr>
<tr class="hiddenElement" id="crm-extensions-details-addnew-{$row.id}">
<td>
{include file="CRM/Admin/Page/ExtensionDetails.tpl" extension=$row}
</td>
<td></td><td></td><td></td>
</tr>
{/foreach}
</tbody>
</table>
{/strip}
</div>
{else}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts}There are no extensions to display. Please click "Refresh" to update information about available extensions.{/ts}
</div>
{/if}

View file

@ -0,0 +1,9 @@
<div class="crm-content-block crm-block">
{foreach from=$extAddNewReqs item=req}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{$req.title}<br/>
{$req.message}
</div>
{/foreach}
</div>

View file

@ -0,0 +1,51 @@
{*
Display a table of locally-available extensions.
Depends: CRM/common/enableDisableApi.tpl and CRM/common/jsortable.tpl
*}
{if $localExtensionRows}
<div id="extensions">
{strip}
{* handle enable/disable actions*}
<table id="extensions" class="display">
<thead>
<tr>
<th>{ts}Extension name (key){/ts}</th>
<th>{ts}Status{/ts}</th>
<th>{ts}Version{/ts}</th>
<th>{ts}Type{/ts}</th>
<th></th>
</tr>
</thead>
<tbody>
{foreach from=$localExtensionRows key=extKey item=row}
<tr id="extension-{$row.id}" class="crm-entity crm-extension_{$row.id}{if $row.status eq 'disabled'} disabled{/if}{if $row.status eq 'installed-missing' or $row.status eq 'disabled-missing'} extension-missing{/if}{if $row.upgradable} extension-upgradable{elseif $row.status eq 'installed'} extension-installed{/if}">
<td class="crm-extensions-label">
<a class="collapsed" href="#"></a>&nbsp;<strong>{$row.label}</strong><br/>({$row.key})
{if $extAddNewEnabled && $remoteExtensionRows[$extKey] && $remoteExtensionRows[$extKey].is_upgradeable}
{capture assign='upgradeURL'}{crmURL p='civicrm/admin/extensions' q="action=update&id=$extKey&key=$extKey"}{/capture}
<div class="crm-extensions-upgrade">{ts 1=$upgradeURL}Version {$remoteExtensionRows[$extKey].version} is available. <a href="%1">Upgrade</a>{/ts}</div>
{/if}
</td>
<td class="crm-extensions-label">{$row.statusLabel} {if $row.upgradable}<br/>({ts}Outdated{/ts}){/if}</td>
<td class="crm-extensions-label">{$row.version} {if $row.upgradable}<br/>({$row.upgradeVersion}){/if}</td>
<td class="crm-extensions-description">{$row.type|capitalize}</td>
<td>{$row.action|replace:'xx':$row.id}</td>
</tr>
<tr class="hiddenElement" id="crm-extensions-details-{$row.id}">
<td>
{include file="CRM/Admin/Page/ExtensionDetails.tpl" extension=$row localExtensionRows=$localExtensionRows remoteExtensionRows=$remoteExtensionRows}
</td>
<td></td><td></td><td></td><td></td>
</tr>
{/foreach}
</tbody>
</table>
{/strip}
</div>
{else}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts 1="https://civicrm.org/extensions"}There are no extensions to display. Click the "Add New" tab to browse and install extensions posted on the <a href="%1">public CiviCRM Extensions Directory</a>. If you have downloaded extensions manually and don't see them here, try clicking the "Refresh" button.{/ts}
</div>
{/if}

View file

@ -0,0 +1,3 @@
<div class="action-link">
{crmButton q="reset=1" id="new" class="crm-extensions-refresh" icon="refresh"}{ts}Refresh{/ts}{/crmButton}
</div>