Esempio n. 1
0
function __tinypass_purchase_page_display(TPPaySettings $ps)
{
    ?>

	<div class="tp-section">

		<div class="info">
			<div class="heading">Add a 'Read More' landing page</div>
			<div class="desc">Will you have a page on your site that talks about how great your content and why
				your users should buy it?
				<br><br>
				Specify the page here and Tinypass will give you a shortcode that will put the purchase
				options anywhere you place it on the page.
			</div>
		</div>
		<div class="body">
			<div class="postbox">
				<h3><?php 
    echo _e("Link to your information page");
    ?>
</h3>
				<div class="inside"> 
					<div class="label">Information landing page</div>
					<input name="tinypass[sub_page]" size="40" value="<?php 
    echo $ps->getSubscriptionPage();
    ?>
" >
					<p class="help">Path of existing page e.g. /signup, /join</p>

					<div class="label"><?php 
    echo _e("Confirmation page after purchase (required)");
    ?>
</div>
					<input name="tinypass[sub_page_success]" size="40" value="<?php 
    echo $ps->getSubscriptionPageSuccess();
    ?>
" >
					<p class="help">Path of existing page e.g. /thankyou</p>
					<hr>
					<div class="label"><?php 
    echo _e("Paste this shortcut on your information page to position the Tinypass button");
    ?>
</div>
					<input name="" readonly="true" size="40" value='<?php 
    echo "[tinypass rid=\"" . $ps->getResourceId() . "\"]";
    ?>
' >
					<p class="help"></p>
				</div>
			</div>
		</div>
		<div class="clear"></div>
	</div>

<?php 
}