Skip to content
Snippets Groups Projects
Commit 3d9a07a2 authored by lobo's avatar lobo
Browse files

Merge pull request #862 from dlobo/CRM-10682

CRM-10692 - commit andrew hunt patch. rework in next commit
parents 3bcd74b9 36b820ae
Branches
Tags
No related merge requests found
......@@ -68,6 +68,10 @@ class CRM_Admin_Form_Setting_UF extends CRM_Admin_Form_Setting {
$tablePrefixes .= "\n);";
$this->assign('tablePrefixes', $tablePrefixes);
}
if ($uf == 'WordPress') {
$this->addElement('text', 'wpBasePage', ts('WordPress Base Page'));
}
parent::buildQuickForm();
}
......
......@@ -452,6 +452,11 @@ class CRM_Core_Config_Variables extends CRM_Core_Config_Defaults {
* Path to wkhtmltopdf if available
*/
public $wkhtmltopdfPath = FALSE;
/**
* Allow second-degree relations permission to edit contacts
*/
public $wpBasePage = NULL;
/**
* Provide addressSequence
......
......@@ -308,6 +308,9 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base {
elseif (defined('CIVICRM_UF_WP_BASEPAGE')) {
$base .= CIVICRM_UF_WP_BASEPAGE;
}
elseif (isset($config->wpBasePage)) {
$base .= $config->wpBasePage;
}
if (isset($path)) {
if (isset($query)) {
......
......@@ -33,6 +33,14 @@
<td class="label">{$form.userFrameworkUsersTableName.label}</td>
<td>{$form.userFrameworkUsersTableName.html}</td>
</tr>
{if $form.wpBasePage}
<tr class="crm-uf-form-block-wpBasePage">
<td class="label">{$form.wpBasePage.label}</td>
<td>{$config->userFrameworkBaseURL}{$form.wpBasePage.html}
<p class="description">{ts 1=$config->userFrameworkBaseURL}By default, CiviCRM will generate front-facing pages using the home page at %1 as its base. If you want to use a different template for CiviCRM pages, set the path here.{/ts}</p>
</td>
</tr>
{/if}
</table>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
<div class="spacer"></div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment