PluginProbe
Zotpress / trunk
Zotpress vtrunk
7.4.4 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.6 2.0 2.1 2.2 2.3 2.4 2.5 2.5.1 2.5.2 2.6 2.6.1 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1 All 138 releases
zotpress / lib / admin / admin.setup.php

admin.setup.php in Zotpress trunk, at lib/admin/admin.setup.php

86 lines 3.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
4
5 if ( ! isset( $_GET['setupstep'] ) ) { ?>
6
7 <div id="zp-Setup">
8
9 <div id="zp-Zotpress-Navigation">
10
11 <div id="zp-Icon">
12 <img src="<?php echo esc_url(ZOTPRESS_PLUGIN_URL); ?>/images/icon-64x64.png" title="Zotero + WordPress = Zotpress">
13 </div>
14
15 <div class="nav">
16 <div id="step-1" class="nav-item nav-tab-active"><strong>1.</strong>
17 <?php echo esc_html('Validate Account','zotpress'); ?>
18 </div>
19 <div id="step-2" class="nav-item"><strong>2.</strong>
20 <?php echo esc_html('Default Options','zotpress'); ?>
21 </div>
22 </div>
23
24 </div><!-- #zp-Zotpress-Navigation -->
25
26 <div id="zp-Setup-Step"><?php
27
28 $zp_check_curl = (int) function_exists('curl_version');
29 $zp_check_streams = (int) function_exists('stream_get_contents');
30 $zp_check_fsock = (int) function_exists('fsockopen');
31 if ( ($zp_check_curl + $zp_check_streams + $zp_check_fsock) <= 1 ) { ?>
32
33 <div id="zp-Setup-Check" class="error">
34 <p>
35 <strong><?php echo esc_html('Warning','zotpress'); ?>!</strong>
36 <?php echo esc_html('Zotpress requires at least one of the following to work: cURL, fopen with Streams (PHP 5), or fsockopen. You will not be able to use Zotpress until your administrator or tech support has set up one of these options. cURL is recommended.','zotpress'); ?>
37 </p>
38 </div>
39 <?php } ?>
40
41 <div id="zp-AddAccount-Form" class="visible">
42 <?php include(__DIR__ . '/admin.accounts.addform.php'); ?>
43 </div>
44
45 </div>
46
47 </div>
48
49
50
51 <?php } elseif ( isset($_GET['setupstep']) && $_GET['setupstep'] == 'two' ) { ?>
52
53 <div id="zp-Setup">
54
55 <div id="zp-Zotpress-Navigation">
56
57 <div id="zp-Icon">
58 <img src="<?php echo esc_url(ZOTPRESS_PLUGIN_URL); ?>/images/icon-64x64.png" title="Zotero + WordPress = Zotpress">
59 </div>
60
61 <div class="nav">
62 <div id="step-1" class="nav-item"><strong>1.</strong>
63 <?php echo esc_html('Validate Account','zotpress'); ?>
64 </div>
65 <div id="step-2" class="nav-item nav-tab-active"><strong>2.</strong>
66 <?php echo esc_html('Default Options','zotpress'); ?>
67 </div>
68 </div>
69
70 </div><!-- #zp-Zotpress-Navigation -->
71
72 <div id="zp-Setup-Step">
73
74 <h3><?php echo esc_html('Set Default Options','zotpress'); ?></h3>
75
76 <?php include(__DIR__ . "/admin.options.form.php"); ?>
77
78 <div id="zp-Zotpress-Setup-Buttons" class="proceed">
79 <input type="button" id="zp-Zotpress-Setup-Options-Complete" class="button-primary" value="<?php echo esc_html('Finish','zotpress'); ?>">
80 </div>
81
82 </div>
83
84 </div>
85
86 <?php } ?>