コード例 #1
0
ファイル: system-info.php プロジェクト: wordimpress/give
/**
 * Display the system info tab
 *
 * @since       1.0
 * @return      void
 */
function give_system_info_callback()
{
    if (!current_user_can('manage_give_settings')) {
        return;
    }
    ?>
	<textarea readonly="readonly" onclick="this.focus(); this.select()" id="system-info-textarea" name="give-sysinfo" title="<?php 
    esc_attr_e('To copy the system info, click below then press Ctrl + C (PC) or Cmd + C (Mac).', 'give');
    ?>
"><?php 
    echo give_tools_sysinfo_get();
    ?>
</textarea>
	<p class="submit">
		<input type="hidden" name="give-action" value="download_sysinfo"/>
		<?php 
    submit_button(esc_html__('Download System Info File', 'give'), 'secondary', 'give-download-sysinfo', false);
    ?>
	</p>
	<?php 
}
コード例 #2
0
ファイル: system-info.php プロジェクト: duongnguyen92/tvd12v2
/**
 * Display the system info tab
 *
 * @since       1.0
 * @return      void
 */
function give_system_info_callback()
{
    if (!current_user_can('manage_give_settings')) {
        return;
    }
    ?>
	<textarea readonly="readonly" onclick="this.focus(); this.select()" id="system-info-textarea" name="give-sysinfo" title="To copy the system info, click below then press Ctrl + C (PC) or Cmd + C (Mac)."><?php 
    echo give_tools_sysinfo_get();
    ?>
</textarea>
	<p class="submit">
		<input type="hidden" name="give-action" value="download_sysinfo" />
		<?php 
    submit_button('Download System Info File', 'secondary', 'give-download-sysinfo', false);
    ?>
	</p>
	<style>
		.give_forms_page_give-settings .give-submit-wrap {
			display: none; /* Hide Save settings button on System Info Tab (not needed) */
		}
	</style>
<?php 
}