pull strings from connection request templates
This commit is contained in:
parent
f60f82727f
commit
70f4f172dc
|
@ -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
view/auto_request.tpl
Normal file
29
view/auto_request.tpl
Normal 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>
|
|
@ -1,41 +1,41 @@
|
|||
|
||||
<h1>Friend/Connection Request</h1>
|
||||
<h1>$header</h1>
|
||||
|
||||
<p id="dfrn-request-intro">
|
||||
You may request a connection with this member if you have a valid profile address<br />
|
||||
on one of the following social networks:<br />
|
||||
$page_desc<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>
|
||||
<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 profile address:</label>
|
||||
<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>
|
||||
|
||||
<p id="dfrn-request-options">
|
||||
Please answer the following:
|
||||
$pls_answer
|
||||
</p>
|
||||
|
||||
<div id="dfrn-request-info-wrapper" >
|
||||
|
||||
|
||||
<p id="doiknowyou">
|
||||
Does $name know you?
|
||||
$does_know
|
||||
</p>
|
||||
|
||||
<div id="dfrn-request-know-yes-wrapper">
|
||||
<label id="dfrn-request-knowyou-yes-label" for="dfrn-request-knowyouyes">Yes</label>
|
||||
<label id="dfrn-request-knowyou-yes-label" for="dfrn-request-knowyouyes">$yes</label>
|
||||
<input type="radio" name="knowyou" id="knowyouyes" value="1" />
|
||||
|
||||
<div id="dfrn-request-knowyou-break" ></div>
|
||||
</div>
|
||||
<div id="dfrn-request-know-no-wrapper">
|
||||
<label id="dfrn-request-knowyou-no-label" for="dfrn-request-knowyouno">No</label>
|
||||
<label id="dfrn-request-knowyou-no-label" for="dfrn-request-knowyouno">$no</label>
|
||||
<input type="radio" name="knowyou" id="knowyouno" value="0" checked="checked" />
|
||||
|
||||
<div id="dfrn-request-knowyou-end"></div>
|
||||
|
@ -43,7 +43,7 @@ Does $name know you?
|
|||
|
||||
|
||||
<p id="dfrn-request-message-desc">
|
||||
Add a personal note:
|
||||
$add_note
|
||||
</p>
|
||||
<div id="dfrn-request-message-wrapper">
|
||||
<textarea name="dfrn-request-message" rows="4" cols="64" ></textarea>
|
||||
|
@ -53,7 +53,7 @@ Add a personal note:
|
|||
</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" />
|
||||
<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>
|
|
@ -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…
Reference in a new issue