Esempio n. 1
0
/**
 * Display the system info tab
 *
 * @since       2.0
 * @return      void
 */
function edd_tools_sysinfo_display()
{
    ?>
	<form action="<?php 
    echo esc_url(admin_url('edit.php?post_type=download&page=edd-tools&tab=system_info'));
    ?>
" method="post" dir="ltr">
		<textarea readonly="readonly" onclick="this.focus(); this.select()" id="system-info-textarea" name="edd-sysinfo" title="To copy the system info, click below then press Ctrl + C (PC) or Cmd + C (Mac)."><?php 
    echo edd_tools_sysinfo_get();
    ?>
</textarea>
		<p class="submit">
			<input type="hidden" name="edd-action" value="download_sysinfo" />
			<?php 
    submit_button('Download System Info File', 'primary', 'edd-download-sysinfo', false);
    ?>
		</p>
	</form>
<?php 
}
Esempio n. 2
0
/**
 * Display the system info tab
 *
 * @since       2.0
 * @return      void
 */
function edd_tools_sysinfo_display()
{
    if (!current_user_can('manage_shop_settings')) {
        return;
    }
    ?>
	<form action="<?php 
    echo esc_url(admin_url('edit.php?post_type=download&page=edd-tools&tab=system_info'));
    ?>
" method="post" dir="ltr">
		<textarea readonly="readonly" onclick="this.focus(); this.select()" id="system-info-textarea" name="edd-sysinfo"><?php 
    echo edd_tools_sysinfo_get();
    ?>
</textarea>
		<p class="submit">
			<input type="hidden" name="edd-action" value="download_sysinfo" />
			<?php 
    submit_button('Download System Info File', 'primary', 'edd-download-sysinfo', false);
    ?>
		</p>
	</form>
<?php 
}