Browse Source

pull strings from connection request templates

pull/1/head
Friendika 11 years ago
parent
commit
70f4f172dc
4 changed files with 56 additions and 42 deletions
  1. +14
    -0
      mod/dfrn_request.php
  2. +29
    -0
      view/auto_request.tpl
  3. +13
    -13
      view/dfrn_request.tpl
  4. +0
    -29
      view/en/auto_request.tpl

+ 14
- 0
mod/dfrn_request.php View File

@ -535,6 +535,20 @@ function dfrn_request_content(&$a) {
else
$tpl = load_view_file('view/auto_request.tpl');
$o .= replace_macros($tpl,array(
'$header' => t('Friend/Connection Request'),
'$pls_answer' => t('Please answer the following:'),
'$does_know' => t('Does $name know you?'),
'$yes' => t('Yes'),
'$no' => t('No'),
'$add_note' => t('Add a personal note:'),
'$page_desc' => t('Please enter your profile address from one of the following supported social networks:'),
'$friendika' => t('Friendika'),
'$statusnet' => t('StatusNet/Federated Social Web'),
'$private_net' => t("Private \x28secure\x29 network"),
'$public_net' => t("Public \x28insecure\x29 network"),
'$your_address' => t('Your profile address:'),
'$submit' => t('Submit Request'),
'$cancel' => t('Cancel'),
'$nickname' => $a->argv[1],
'$name' => $a->profile['name'],
'$myaddr' => $myaddr


+ 29
- 0
view/auto_request.tpl View File

@ -0,0 +1,29 @@
<h1>$header</h1>
<p id="dfrn-request-intro">
$page_desc<br />
<ul id="dfrn-request-networks">
<li><a href="http://friendika.com" title="$private_net">$friendika</a> <img src="images/lock_icon.gif" alt="$private_net" title="$private_net" /></li>
<li><a href="http://ostatus.org" title="$public_net" >$statusnet</a> <img src="images/unlock_icon.gif" alt="$public_net" title="$public_net"/></li>
</ul>
</p>
<form action="dfrn_request/$nickname" method="post" />
<div id="dfrn-request-url-wrapper" >
<label id="dfrn-url-label" for="dfrn-url" >$your_address</label>
<input type="text" name="dfrn_url" id="dfrn-url" size="32" value="$myaddr" />
<div id="dfrn-request-url-end"></div>
</div>
<div id="dfrn-request-info-wrapper" >
</div>
<div id="dfrn-request-submit-wrapper">
<input type="submit" name="submit" id="dfrn-request-submit-button" value="$submit" />
<input type="submit" name="cancel" id="dfrn-request-cancel-button" value="$cancel" />
</div>
</form>

view/en/dfrn_request.tpl → view/dfrn_request.tpl View File


+ 0
- 29
view/en/auto_request.tpl View File

@ -1,29 +0,0 @@
<h1>Friend/Connection Request</h1>
<p id="dfrn-request-intro">
Please enter your profile address from one of the following supported social networks:<br />
<ul id="dfrn-request-networks">
<li><a href="http://friendika.com" title="Private (secure) network">Friendika</a> <img src="images/lock_icon.gif" alt="Private (secure) network" title="Private (secure) network" /></li>
<li><a href="http://ostatus.org" title="Public (insecure) network" >StatusNet/Federated Social Web</a> <img src="images/unlock_icon.gif" alt="Public (insecure) network" title="Public (insecure) network"/></li>
</ul>
</p>
<form action="dfrn_request/$nickname" method="post" />
<div id="dfrn-request-url-wrapper" >
<label id="dfrn-url-label" for="dfrn-url" >Your profile address:</label>
<input type="text" name="dfrn_url" id="dfrn-url" size="32" value="$myaddr" />
<div id="dfrn-request-url-end"></div>
</div>
<div id="dfrn-request-info-wrapper" >
</div>
<div id="dfrn-request-submit-wrapper">
<input type="submit" name="submit" id="dfrn-request-submit-button" value="Submit Request" />
<input type="submit" name="cancel" id="dfrn-request-cancel-button" value="Cancel" />
</div>
</form>

Loading…
Cancel
Save