コード例 #1
0
ファイル: tinypass-form.php プロジェクト: voodoologic/reboot
/**
 * Display payment display options 
 */
function __tinypass_purchase_option_table_display(TPPaySettings $ps)
{
    ?>

	<div class="tp-section">
		<div class="info">
			<div class="heading"><?php 
    _e("Purchase option table");
    ?>
</div>
			<div class="desc">
				This contains the purchase buttons for users on restricted pages.
			</div>
			<div class="image">
				<img src="<?php 
    echo TINYPASS_IMAGE_DIR;
    ?>
/support-table.png">
			</div>
		</div>
		<div class="body">

			<div class="postbox">
				<h3><?php 
    _e('Add some messaging');
    ?>
 </h3>
				<div class="inside"> 
					<div class="">
						<div class="label">Enter a header</div>
						<input id="tp_pd_denied_msg1" name="tinypass[pd_denied_msg1]" value="<?php 
    echo esc_attr(stripslashes($ps->getDeniedMessage1()));
    ?>
" size="60" maxlength="80">
						<br>

						<div class="label">Enter a description</div>
						<textarea id="tp_pd_denied_sub1" rows="3" cols="59" name="tinypass[pd_denied_sub1]"><?php 
    echo stripslashes($ps->getDeniedSub1());
    ?>
</textarea>
					</div>
					<br>
					<div class="">
						<div>
							<input type="checkbox" name="tinypass[pd_order]" value="1" <?php 
    echo checked($ps->isPostFirstInOrder());
    ?>
>
							<span class="">Always display per post price settings first on restricted pages</span>
						</div>
					</div>
				</div>
			</div>
			<!--
		<div class="postbox">
			<h3><?php 
    _e('Create a custom purchase layout');
    ?>
 </h3>
			<div class="inside"> 
				<div class="">
					Override the default purchase layout by creating a custom template file
					<br> <br>
			<?php 
    echo get_template_directory();
    ?>
/<b><?php 
    echo TINYPASS_PURCHASE_TEMPLATE;
    ?>
</b>
				</div>
			</div>
		</div>
			-->
		</div>
		<div class="clear"></div>
	</div>

<?php 
}