PluginProbe
Import Social Events / 1.2.0
Import Social Events v1.2.0
1.9.1 1.9.0 trunk 1.0.0 1.0.1 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2.0 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.6.0 1.6.1 1.6.10 1.6.11 1.6.12 All 61 releases
import-facebook-events / templates / settings.php

settings.php in Import Social Events 1.2.0, at templates/settings.php

77 lines 4.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // If this file is called directly, abort.
3 if ( ! defined( 'ABSPATH' ) ) exit;
4 $ife_options_temp = get_option( IFE_OPTIONS );
5 $ife_options = !empty( $ife_options_temp ) ? $ife_options_temp : array();
6 ?>
7 <div class="ife_container">
8 <div class="ife_row">
9
10 <form method="post" id="ife_setting_form">
11 <h3 class="setting_bar"><?php esc_attr_e( 'Facebook Settings', 'import-facebook-events' ); ?></h3>
12 <p><?php _e( 'You need a Facebook App ID and App Secret to import your events from Facebook.','import-facebook-events' ); ?> </p>
13
14 <table class="form-table">
15 <tbody>
16 <tr>
17 <th scope="row">
18 <?php _e( 'Facebook App ID','import-facebook-events' ); ?> :
19 </th>
20 <td>
21 <input class="facebook_app_id" name="facebook[facebook_app_id]" type="text" value="<?php if ( isset( $ife_options['facebook_app_id'] ) ) { echo $ife_options['facebook_app_id']; } ?>" />
22 <span class="xtei_small">
23 <?php
24 printf( '%s <a href="https://developers.facebook.com/apps" target="_blank">%s</a>',
25 __('You can veiw or create your Facebook Apps', 'import-facebook-events'),
26 __('from here', 'import-facebook-events')
27 );
28 ?>
29 </span>
30 </td>
31 </tr>
32
33 <tr>
34 <th scope="row">
35 <?php _e( 'Facebook App secret','import-facebook-events' ); ?> :
36 </th>
37 <td>
38 <input class="facebook_app_secret" name="facebook[facebook_app_secret]" type="text" value="<?php if ( isset( $ife_options['facebook_app_secret'] ) ) { echo $ife_options['facebook_app_secret']; } ?>" />
39 <span class="xtei_small">
40 <?php
41 printf( '%s <a href="https://developers.facebook.com/apps" target="_blank">%s</a>',
42 __('You can veiw or create your Facebook Apps', 'import-facebook-events'),
43 __('from here', 'import-facebook-events')
44 );
45 ?>
46 </span>
47 </td>
48 </tr>
49
50 <tr>
51 <th scope="row">
52 <?php _e( 'Update existing events', 'import-facebook-events' ); ?> :
53 </th>
54 <td>
55 <?php
56 $update_facebook_events = isset( $ife_options['update_events'] ) ? $ife_options['update_events'] : 'no';
57 ?>
58 <input type="checkbox" name="facebook[update_events]" value="yes" <?php if( $update_facebook_events == 'yes' ) { echo 'checked="checked"'; } ?> />
59 <span class="xtei_small">
60 <?php _e( 'Check to updates existing events.', 'import-facebook-events' ); ?>
61 </span>
62 </td>
63 </tr>
64
65 </tbody>
66 </table>
67 <br/>
68
69 <div class="ife_element">
70 <input type="hidden" name="ife_action" value="ife_save_settings" />
71 <?php wp_nonce_field( 'ife_setting_form_nonce_action', 'ife_setting_form_nonce' ); ?>
72 <input type="submit" class="button-primary xtei_submit_button" style="" value="<?php esc_attr_e( 'Save Settings', 'import-facebook-events' ); ?>" />
73 </div>
74 </form>
75 </div>
76 </div>
77