$htpl = Renderer::getMarkupTemplate('event_head.tpl');
$a->page['htmlhead'] .= Renderer::replaceMacros($htpl, [
- '$baseurl' => System::baseUrl(),
'$module_url' => '/cal/' . $a->data['user']['nickname'],
'$modparams' => 2,
'$i18n' => $i18n,
}
$o = Renderer::replaceMacros($tpl, [
- '$baseurl' => System::baseUrl(),
'$tabs' => $tabs,
'$title' => L10n::t('Events'),
'$view' => L10n::t('View'),
use Friendica\Core\Hook;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
-use Friendica\Core\System;
use Friendica\Model\FileTag;
use Friendica\Model\Item;
use Friendica\Database\DBA;
$tpl = Renderer::getMarkupTemplate('jot-header.tpl');
$a->page['htmlhead'] .= Renderer::replaceMacros($tpl, [
- '$baseurl' => System::baseUrl(),
'$ispublic' => ' ', // L10n::t('Visible to <strong>everybody</strong>'),
'$geotag' => $geotag,
'$nickname' => $a->user['nickname']
'$posttype' => $item['post-type'],
'$content' => undo_post_tagging($item['body']),
'$post_id' => $post_id,
- '$baseurl' => System::baseUrl(),
'$defloc' => $a->user['default-location'],
'$visitor' => 'none',
'$pvisit' => 'none',
$htpl = Renderer::getMarkupTemplate('event_head.tpl');
$a->page['htmlhead'] .= Renderer::replaceMacros($htpl, [
- '$baseurl' => System::baseUrl(),
'$module_url' => '/events',
'$modparams' => 1,
'$i18n' => $i18n,
}
$o = Renderer::replaceMacros($tpl, [
- '$baseurl' => System::baseUrl(),
'$tabs' => $tabs,
'$title' => L10n::t('Events'),
'$view' => L10n::t('View'),
$o = Renderer::replaceMacros($tpl, [
'$type' => 'image',
- '$baseurl' => System::baseUrl(),
'$path' => $path,
'$folders' => $albums,
'$files' => $files,
$tpl = Renderer::getMarkupTemplate($template_file);
$o = Renderer::replaceMacros($tpl, [
'$type' => 'file',
- '$baseurl' => System::baseUrl(),
'$path' => [ [ "", L10n::t("Files")] ],
'$folders' => false,
'$files' => $files,
'$lbl5' => '<a href="' . System::baseUrl() . '">' . L10n::t('click here to login') . '</a>.',
'$lbl6' => L10n::t('Your password may be changed from the <em>Settings</em> page after successful login.'),
'$newpass' => $new_password,
- '$baseurl' => System::baseUrl()
]);
info("Your password has been reset." . EOL);
use Friendica\App;
use Friendica\Core\Renderer;
-use Friendica\Core\System;
function opensearch_content(App $a) {
header("Content-type: application/opensearchdescription+xml");
$o = Renderer::replaceMacros($tpl, [
- '$baseurl' => System::baseUrl(),
'$nodename' => $a->getHostName(),
]);
'$title' => L10n::t('Photo Albums'),
'$recent' => L10n::t('Recent Photos'),
'$albums' => $ret['albums'],
- '$baseurl' => System::baseUrl(),
'$upload' => [L10n::t('Upload New Photos'), 'photos/' . $a->data['user']['nickname'] . '/upload'],
'$can_post' => $can_post
]);
$name = $contact['name'];
$id = $contact['id'];
- $base = System::baseUrl();
-
$head_tpl = Renderer::getMarkupTemplate('poke_head.tpl');
$a->page['htmlhead'] .= Renderer::replaceMacros($head_tpl,[
'$baseurl' => System::baseUrl(true),
- '$base' => $base
]);
-
$parent = (!empty($_GET['parent']) ? intval($_GET['parent']) : '0');
<?php
use Friendica\App;
-use Friendica\Core\System;
function toggle_mobile_init(App $a) {
$tpl = Renderer::getMarkupTemplate("uexport.tpl");
return Renderer::replaceMacros($tpl, [
- '$baseurl' => System::baseUrl(),
'$title' => L10n::t('Export personal data'),
'$options' => $options
]);
$a->page['aside'] .= $vcard_widget;
$tpl = Renderer::getMarkupTemplate("videos_head.tpl");
- $a->page['htmlhead'] .= Renderer::replaceMacros($tpl,[
- '$baseurl' => System::baseUrl(),
- ]);
+ $a->page['htmlhead'] .= Renderer::replaceMacros($tpl);
}
return;
* @param bool $ssl Whether to append http or https under BaseURL::SSL_POLICY_SELFSIGN
*
* @return string Friendica server base URL
- *
- * @deprecated 2019.06 - use BaseURL->get($ssl) instead
*/
public function getBaseURL($ssl = false)
{
* being first
*/
$this->page['htmlhead'] = Core\Renderer::replaceMacros($tpl, [
- '$baseurl' => $this->getBaseURL(),
'$local_user' => local_user(),
'$generator' => 'Friendica' . ' ' . FRIENDICA_VERSION,
'$delitem' => Core\L10n::t('Delete this item?'),
$tpl = Core\Renderer::getMarkupTemplate('footer.tpl');
$this->page['footer'] = Core\Renderer::replaceMacros($tpl, [
- '$baseurl' => $this->getBaseURL(),
'$footerScripts' => $this->footerScripts,
]) . $this->page['footer'];
}
$tpl = Renderer::getMarkupTemplate('nav.tpl');
$nav .= Renderer::replaceMacros($tpl, [
- '$baseurl' => System::baseUrl(),
'$sitelocation' => $nav_info['sitelocation'],
'$nav' => $nav_info['nav'],
'$banner' => $nav_info['banner'],
$tw = $th * $tr;
$tpl = Renderer::getMarkupTemplate('oembed_video.tpl');
$ret .= Renderer::replaceMacros($tpl, [
- '$baseurl' => System::baseUrl(),
'$embedurl' => $oembed->embed_url,
'$escapedhtml' => base64_encode($oembed->html),
'$tw' => $tw,
/**
* @brief This is our template processor
*
- * @param string|FriendicaSmarty $s The string requiring macro substitution or an instance of FriendicaSmarty
- * @param array $vars key value pairs (search => replace)
- * @param bool $overwriteURL Overwrite the base url with the system wide set base url
+ * @param string|FriendicaSmarty $s The string requiring macro substitution or an instance of FriendicaSmarty
+ * @param array $vars Key value pairs (search => replace)
*
* @return string substituted string
- * @throws \Friendica\Network\HTTPException\InternalServerErrorException
+ * @throws Exception
*/
- public static function replaceMacros($s, $vars, $overwriteURL = true)
+ public static function replaceMacros($s, array $vars = [])
{
$stamp1 = microtime(true);
$a = self::getApp();
- // pass $baseurl to all templates
- if ($overwriteURL) {
- $vars['$baseurl'] = System::baseUrl();
- }
+ // pass $baseurl to all templates if it isn't set
+ $vars = array_merge(['$baseurl' => $a->getBaseURL()], $vars);
+
$t = self::getTemplateEngine();
try {
if (strpos($mime, 'video') !== false) {
if (!$vhead) {
$vhead = true;
- $a->page['htmlhead'] .= Renderer::replaceMacros(Renderer::getMarkupTemplate('videos_head.tpl'), [
- '$baseurl' => System::baseUrl(),
- ]);
+ $a->page['htmlhead'] .= Renderer::replaceMacros(Renderer::getMarkupTemplate('videos_head.tpl'));
}
$url_parts = explode('/', $the_url);
}
$tpl = Renderer::getMarkupTemplate('birthdays_reminder.tpl');
return Renderer::replaceMacros($tpl, [
- '$baseurl' => System::baseUrl(),
'$classtoday' => $classtoday,
'$count' => $total,
'$event_reminders' => L10n::t('Birthday Reminders'),
}
$tpl = Renderer::getMarkupTemplate('events_reminder.tpl');
return Renderer::replaceMacros($tpl, [
- '$baseurl' => System::baseUrl(),
'$classtoday' => $classtoday,
'$count' => count($r),
'$event_reminders' => L10n::t('Event Reminders'),
use Friendica\Core\Config;\r
use Friendica\Core\L10n;\r
use Friendica\Core\Renderer;\r
-use Friendica\Core\System;\r
use Friendica\Database\DBA;\r
use Friendica\Module\BaseAdminModule;\r
\r
'$page' => L10n::t('Addons'),\r
'$submit' => L10n::t('Save Settings'),\r
'$reload' => L10n::t('Reload active addons'),\r
- '$baseurl' => System::baseUrl(true),\r
+ '$baseurl' => $a->getBaseURL(true),\r
'$function' => 'addons',\r
'$addons' => $addons,\r
'$pcount' => count($addons),\r
'$form_security_token' => parent::getFormSecurityToken('admin_addons'),\r
]);\r
}\r
-}
\ No newline at end of file
+}\r
use Friendica\Content\Pager;\r
use Friendica\Core\L10n;\r
use Friendica\Core\Renderer;\r
-use Friendica\Core\System;\r
use Friendica\Database\DBA;\r
use Friendica\Module\BaseAdminModule;\r
use Friendica\Model;\r
'$form_security_token' => parent::getFormSecurityToken("admin_contactblock"),\r
\r
// values //\r
- '$baseurl' => System::baseUrl(true),\r
+ '$baseurl' => $a->getBaseURL(true),\r
\r
'$contacts' => $contacts,\r
'$total_contacts' => L10n::tt('%s total blocked contact', '%s total blocked contacts', $total),\r
]);\r
return $o;\r
}\r
-}
\ No newline at end of file
+}\r
use Friendica\Core\Config;\r
use Friendica\Core\L10n;\r
use Friendica\Core\Renderer;\r
-use Friendica\Core\System;\r
use Friendica\Module\BaseAdminModule;\r
use Friendica\Util\Strings;\r
\r
{\r
parent::content();\r
\r
+ $a = self::getApp();\r
+\r
$blocklist = Config::get('system', 'blocklist');\r
$blocklistform = [];\r
if (is_array($blocklist)) {\r
'$threason' => L10n::t('Reason for the block'),\r
'$delentry' => L10n::t('Delete entry from blocklist'),\r
'$entries' => $blocklistform,\r
- '$baseurl' => System::baseUrl(true),\r
+ '$baseurl' => $a->getBaseURL(true),\r
'$confirm_delete' => L10n::t('Delete entry from blocklist?'),\r
'$form_security_token' => parent::getFormSecurityToken("admin_blocklist")\r
]);\r
}\r
-}
\ No newline at end of file
+}\r
use Friendica\Core\Config;\r
use Friendica\Core\L10n;\r
use Friendica\Core\Renderer;\r
-use Friendica\Core\System;\r
use Friendica\Core\Update;\r
use Friendica\Database\DBA;\r
use Friendica\Database\DBStructure;\r
use Friendica\Module\BaseAdminModule;\r
-use Friendica\Util\Strings;\r
\r
class DBSync extends BaseAdminModule\r
{\r
\r
if (!count($failed)) {\r
$o = Renderer::replaceMacros(Renderer::getMarkupTemplate('admin/dbsync/structure_check.tpl'), [\r
- '$base' => System::baseUrl(true),\r
+ '$base' => $a->getBaseURL(true),\r
'$banner' => L10n::t('No failed updates.'),\r
'$check' => L10n::t('Check database structure'),\r
]);\r
} else {\r
$o = Renderer::replaceMacros(Renderer::getMarkupTemplate('admin/dbsync/failed_updates.tpl'), [\r
- '$base' => System::baseUrl(true),\r
+ '$base' => $a->getBaseURL(true),\r
'$banner' => L10n::t('Failed Updates'),\r
'$desc' => L10n::t('This does not include updates prior to 1139, which did not return a status.'),\r
'$mark' => L10n::t("Mark success \x28if update was manually applied\x29"),\r
\r
return $o;\r
}\r
-}
\ No newline at end of file
+}\r
use Friendica\Core\Config;\r
use Friendica\Core\L10n;\r
use Friendica\Core\Renderer;\r
-use Friendica\Core\System;\r
use Friendica\Database\DBA;\r
use Friendica\Module\BaseAdminModule;\r
\r
'$counts' => $counts,\r
'$version' => FRIENDICA_VERSION,\r
'$legendtext' => L10n::t('Currently this node is aware of %d nodes with %d registered users from the following platforms:', $total, $users),\r
- '$baseurl' => System::baseUrl(),\r
]);\r
}\r
}\r
\r
use Friendica\Core\L10n;\r
use Friendica\Core\Renderer;\r
-use Friendica\Core\System;\r
use Friendica\Model\Item;\r
use Friendica\Module\BaseAdminModule;\r
use Friendica\Util\Strings;\r
'$intro1' => L10n::t('On this page you can delete an item from your node. If the item is a top level posting, the entire thread will be deleted.'),\r
'$intro2' => L10n::t('You need to know the GUID of the item. You can find it e.g. by looking at the display URL. The last part of http://example.com/display/123456 is the GUID, here 123456.'),\r
'$deleteitemguid' => ['deleteitemguid', L10n::t("GUID"), '', L10n::t("The GUID of the item you want to delete."), 'required', 'autofocus'],\r
- '$baseurl' => System::baseUrl(),\r
'$form_security_token' => parent::getFormSecurityToken("admin_deleteitem")\r
]);\r
}\r
use Friendica\Core\Config;\r
use Friendica\Core\L10n;\r
use Friendica\Core\Renderer;\r
-use Friendica\Core\System;\r
use Friendica\Module\BaseAdminModule;\r
use Friendica\Util\Strings;\r
use Psr\Log\LogLevel;\r
{\r
parent::content();\r
\r
+ $a = self::getApp();\r
+\r
$log_choices = [\r
LogLevel::ERROR => 'Error',\r
LogLevel::WARNING => 'Warning',\r
'$page' => L10n::t('Logs'),\r
'$submit' => L10n::t('Save Settings'),\r
'$clear' => L10n::t('Clear'),\r
- '$baseurl' => System::baseUrl(true),\r
+ '$baseurl' => $a->getBaseURL(true),\r
'$logname' => Config::get('system', 'logfile'),\r
// see /help/smarty3-templates#1_1 on any Friendica node\r
'$debugging' => ['debugging', L10n::t("Enable Debugging"), Config::get('system', 'debugging'), ""],\r
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Core\StorageManager;
-use Friendica\Core\System;
use Friendica\Core\Theme;
use Friendica\Core\Worker;
use Friendica\Database\DBA;
'$relay_title' => L10n::t('Message Relay'),
'$relocate' => L10n::t('Relocate Instance'),
'$relocate_warning' => L10n::t('Warning! Advanced function. Could make this server unreachable.'),
- '$baseurl' => System::baseUrl(true),
+ '$baseurl' => $a->getBaseURL(true),
// name, label, value, help string, extra data...
'$sitename' => ['sitename', L10n::t('Site name'), Config::get('config', 'sitename'), ''],
'$proxy_disabled' => ['proxy_disabled', L10n::t('Disable picture proxy'), Config::get('system', 'proxy_disabled'), L10n::t('The picture proxy increases performance and privacy. It shouldn\'t be used on systems with very low bandwidth.')],
'$only_tag_search' => ['only_tag_search', L10n::t('Only search in tags'), Config::get('system', 'only_tag_search'), L10n::t('On large systems the text search can slow down the system extremely.')],
- '$relocate_url' => ['relocate_url', L10n::t('New base url'), System::baseUrl(), L10n::t('Change base url for this server. Sends relocate message to all Friendica and Diaspora* contacts of all users.')],
+ '$relocate_url' => ['relocate_url', L10n::t('New base url'), $a->getBaseURL(), L10n::t('Change base url for this server. Sends relocate message to all Friendica and Diaspora* contacts of all users.')],
'$rino' => ['rino', L10n::t('RINO Encryption'), intval(Config::get('system', 'rino_encrypt')), L10n::t('Encryption layer between nodes.'), [0 => L10n::t('Disabled'), 1 => L10n::t('Enabled')]],
'$worker_queues' => ['worker_queues', L10n::t('Maximum number of parallel workers'), Config::get('system', 'worker_queues'), L10n::t('On shared hosters set this to %d. On larger systems, values of %d are great. Default value is %d.', 5, 20, 10)],
'$worker_dont_fork' => ['worker_dont_fork', L10n::t('Don\'t use "proc_open" with the worker'), Config::get('system', 'worker_dont_fork'), L10n::t('Enable this if your system doesn\'t allow the use of "proc_open". This can happen on shared hosters. If this is enabled you should increase the frequency of worker calls in your crontab.')],
'$worker_fastlane' => ['worker_fastlane', L10n::t('Enable fastlane'), Config::get('system', 'worker_fastlane'), L10n::t('When enabed, the fastlane mechanism starts an additional worker if processes with higher priority are blocked by processes of lower priority.')],
- '$worker_frontend' => ['worker_frontend', L10n::t('Enable frontend worker'), Config::get('system', 'frontend_worker'), L10n::t('When enabled the Worker process is triggered when backend access is performed (e.g. messages being delivered). On smaller sites you might want to call %s/worker on a regular basis via an external cron job. You should only enable this option if you cannot utilize cron/scheduled jobs on your server.', System::baseUrl())],
+ '$worker_frontend' => ['worker_frontend', L10n::t('Enable frontend worker'), Config::get('system', 'frontend_worker'), L10n::t('When enabled the Worker process is triggered when backend access is performed (e.g. messages being delivered). On smaller sites you might want to call %s/worker on a regular basis via an external cron job. You should only enable this option if you cannot utilize cron/scheduled jobs on your server.', $a->getBaseURL())],
'$relay_subscribe' => ['relay_subscribe', L10n::t('Subscribe to relay'), Config::get('system', 'relay_subscribe'), L10n::t('Enables the receiving of public posts from the relay. They will be included in the search, subscribed tags and on the global community page.')],
'$relay_server' => ['relay_server', L10n::t('Relay server'), Config::get('system', 'relay_server', 'https://relay.diasp.org'), L10n::t('Address of the relay server where public posts should be send to. For example https://relay.diasp.org')],
use Friendica\Core\L10n;\r
use Friendica\Core\Logger;\r
use Friendica\Core\Renderer;\r
-use Friendica\Core\System;\r
use Friendica\Core\Update;\r
use Friendica\Database\DBA;\r
use Friendica\Database\DBStructure;\r
'$accounts' => $accounts,\r
'$pending' => [L10n::t('Pending registrations'), $pending],\r
'$version' => [L10n::t('Version'), FRIENDICA_VERSION],\r
- '$baseurl' => System::baseUrl(),\r
'$platform' => FRIENDICA_PLATFORM,\r
'$codename' => FRIENDICA_CODENAME,\r
'$build' => Config::get('system', 'build'),\r
private static function checkSelfHostMeta()\r
{\r
// Fetch the host-meta to check if this really is a vital server\r
- return Network::curl(System::baseUrl() . '/.well-known/host-meta')->isSuccess();\r
+ return Network::curl(self::getApp()->getBaseURL() . '/.well-known/host-meta')->isSuccess();\r
}\r
\r
}
\ No newline at end of file
namespace Friendica\Module\Admin\Themes;\r
\r
use Friendica\Content\Text\Markdown;\r
-use Friendica\Core\Config;\r
use Friendica\Core\L10n;\r
use Friendica\Core\Renderer;\r
-use Friendica\Core\System;\r
use Friendica\Core\Theme;\r
use Friendica\Module\BaseAdminModule;\r
use Friendica\Util\Strings;\r
'$page' => L10n::t('Themes'),\r
'$toggle' => L10n::t('Toggle'),\r
'$settings' => L10n::t('Settings'),\r
- '$baseurl' => System::baseUrl(true),\r
+ '$baseurl' => $a->getBaseURL(true),\r
'$addon' => $theme,\r
'$status' => $status,\r
'$action' => $action,\r
\r
use Friendica\Core\L10n;\r
use Friendica\Core\Renderer;\r
-use Friendica\Core\System;\r
-use Friendica\Core\Theme;\r
use Friendica\Module\BaseAdminModule;\r
use Friendica\Util\Strings;\r
\r
\r
namespace Friendica\Module\Admin\Themes;\r
\r
-use Friendica\Content\Text\Markdown;\r
use Friendica\Core\Config;\r
use Friendica\Core\L10n;\r
use Friendica\Core\Renderer;\r
-use Friendica\Core\System;\r
use Friendica\Core\Theme;\r
use Friendica\Module\BaseAdminModule;\r
use Friendica\Util\Strings;\r
\r
// reload active themes\r
if (!empty($_GET['action'])) {\r
- parent::checkFormSecurityTokenRedirectOnError(System::baseUrl() . '/admin/themes', 'admin_themes', 't');\r
+ parent::checkFormSecurityTokenRedirectOnError($a->getBaseURL() . '/admin/themes', 'admin_themes', 't');\r
\r
switch ($_GET['action']) {\r
case 'reload':\r
'$page' => L10n::t('Themes'),\r
'$submit' => L10n::t('Save Settings'),\r
'$reload' => L10n::t('Reload active themes'),\r
- '$baseurl' => System::baseUrl(true),\r
+ '$baseurl' => $a->getBaseURL(true),\r
'$function' => 'themes',\r
'$addons' => $addons,\r
'$pcount' => count($themes),\r
use Friendica\Core\Config;\r
use Friendica\Core\L10n;\r
use Friendica\Core\Renderer;\r
-use Friendica\Core\System;\r
use Friendica\Database\DBA;\r
use Friendica\Model\Register;\r
use Friendica\Model\User;\r
Thank you and welcome to %4$s.'));\r
\r
$preamble = sprintf($preamble, $user['username'], Config::get('config', 'sitename'));\r
- $body = sprintf($body, System::baseUrl(), $user['nickname'], $result['password'], Config::get('config', 'sitename'));\r
+ $body = sprintf($body, $a->getBaseURL(), $user['nickname'], $result['password'], Config::get('config', 'sitename'));\r
\r
notification([\r
'type' => SYSTEM_EMAIL,\r
'$networks_widget' => $networks_widget
]);
- $base = $a->getBaseURL();
$tpl = Renderer::getMarkupTemplate('contacts-head.tpl');
$a->page['htmlhead'] .= Renderer::replaceMacros($tpl, [
- '$baseurl' => System::baseUrl(true),
- '$base' => $base
+ '$baseurl' => $a->getBaseURL(true),
]);
}
$tpl = Renderer::getMarkupTemplate('contacts-template.tpl');
$o .= Renderer::replaceMacros($tpl, [
- '$baseurl' => System::baseUrl(),
'$header' => L10n::t('Contacts') . (($nets) ? ' - ' . ContactSelector::networkToName($nets) : ''),
'$tabs' => $t,
'$total' => $total,
'$next' => L10n::t('Next'),
'$reload' => L10n::t('Check again'),
'$php_path' => $php_path,
- '$baseurl' => $a->getBaseURL()
]);
break;
case self::BASE_CONFIG:
$ssl_choices = [
- BaseUrl::SSL_POLICY_NONE => L10n::t("No SSL policy, links will track page SSL state"),
- BaseUrl::SSL_POLICY_FULL => L10n::t("Force all links to use SSL"),
- BaseUrl::SSL_POLICY_SELFSIGN => L10n::t("Self-signed certificate, use SSL for local links only \x28discouraged\x29")
+ BaseURL::SSL_POLICY_NONE => L10n::t("No SSL policy, links will track page SSL state"),
+ BaseURL::SSL_POLICY_FULL => L10n::t("Force all links to use SSL"),
+ BaseURL::SSL_POLICY_SELFSIGN => L10n::t("Self-signed certificate, use SSL for local links only \x28discouraged\x29")
];
$tpl = Renderer::getMarkupTemplate('install_base.tpl');
$configCache->get('system', 'urlpath'),
L10n::t('Overwrite this field in case the sub path determination isn\'t right, otherwise leave it as is. Leaving this field blank means the installation is at the base URL without sub path.'),
''],
- '$baseurl' => $a->getBaseURL(),
'$php_path' => $configCache->get('config', 'php_path'),
'$submit' => L10n::t('Submit'),
]);
'',
'required'],
'$lbl_10' => L10n::t('Please select a default timezone for your website'),
- '$baseurl' => $a->getBaseURL(),
'$php_path' => $configCache->get('config', 'php_path'),
'$submit' => L10n::t('Submit')
]);
$configCache->get('system', 'language'),
L10n::t('Set the default language for your Friendica installation interface and to send emails.'),
$lang_choices],
- '$baseurl' => $a->getBaseURL(),
'$php_path' => $configCache->get('config', 'php_path'),
'$submit' => L10n::t('Submit')
]);
}
$output = Renderer::replaceMacros($tpl, [
- '$baseurl' => $app->getBaseURL(),
'$touch_icon' => $touch_icon,
'$title' => $config->get('config', 'sitename', 'Friendica'),
]);
'$tostext' => L10n::t('Terms of Service'),
'$showprivstatement' => Config::get('system', 'tosprivstatement'),
'$privstatement'=> $tos->privacy_complete,
- '$baseurl' => System::baseurl(),
'$form_security_token' => BaseModule::getFormSecurityToken('register'),
'$explicit_content' => Config::get('system', 'explicit_content', false),
'$explicit_content_note' => L10n::t('Note: This node explicitly contains adult content')
'$atom' => $baseURL . '/dfrn_poll/' . $user['nickname'],
'$poco_url' => $baseURL . '/poco/' . $user['nickname'],
'$photo' => $baseURL . '/photo/profile/' . $user['uid'] . '.jpg',
- '$baseurl' => $baseURL,
'$salmon' => $baseURL . '/salmon/' . $user['nickname'],
'$salmen' => $baseURL . '/salmon/' . $user['nickname'] . '/mention',
'$subscribe' => $baseURL . '/follow?url={uri}',
<h4>{{$f}}</h4>
<ul>
- <li><a href="{{$base}}/admin/dbsync/mark/{{$f}}">{{$mark}}</a></li>
- <li><a href="{{$base}}/admin/dbsync/{{$f}}">{{$apply}}</a></li>
+ <li><a href="{{$baseurl}}/admin/dbsync/mark/{{$f}}">{{$mark}}</a></li>
+ <li><a href="{{$baseurl}}/admin/dbsync/{{$f}}">{{$apply}}</a></li>
</ul>
<hr />
<div id="adminpage">
<h2>{{$banner}}</h2>
- <p><a href="{{$base}}/admin/dbsync/check">{{$check}}</a></p>
+ <p><a href="{{$baseurl}}/admin/dbsync/check">{{$check}}</a></p>
<hr />
</div>
$t = Renderer::getMarkupTemplate("theme_settings.tpl");
$o = Renderer::replaceMacros($t, [
'$submit' => L10n::t('Submit'),
- '$baseurl' => System::baseUrl(),
'$title' => L10n::t("Theme settings"),
'$colorset' => ['duepuntozero_colorset', L10n::t('Variations'), $color, '', $colorset],
]);
$t = Renderer::getMarkupTemplate('theme_settings.tpl');
$ctx = [
'$submit' => L10n::t('Submit'),
- '$baseurl' => System::baseUrl(),
'$title' => L10n::t('Theme settings'),
'$scheme' => ['frio_scheme', L10n::t('Select color scheme'), $arr['scheme'], '', $scheme_choices],
'$share_string' => ['frio_share_string', L10n::t('Copy or paste schemestring'), $arr['share_string'], L10n::t('You can copy this string to share your theme with others. Pasting here applies the schemestring'), false, false],
$t = Renderer::getMarkupTemplate("theme_settings.tpl" );
$o = Renderer::replaceMacros($t, [
'$submit' => L10n::t('Submit'),
- '$baseurl' => System::baseUrl(),
'$title' => L10n::t("Theme settings"),
'$align' => ['quattro_align', L10n::t('Alignment'), $align, '', ['left' => L10n::t('Left'), 'center' => L10n::t('Center')]],
'$color' => ['quattro_color', L10n::t('Color scheme'), $color, '', $colors],
$t = Renderer::getMarkupTemplate("theme_settings.tpl");
$o = Renderer::replaceMacros($t, [
'$submit' => L10n::t('Submit'),
- '$baseurl' => System::baseUrl(),
'$title' => L10n::t("Theme settings"),
'$style' => ['vier_style', L10n::t('Set style'), $style, '', $styles],
'$show_pages' => ['vier_show_pages', L10n::t('Community Pages'), $show_pages, '', $show_or_not],