PluginProbe
Catch Breadcrumb / 2.2
Catch Breadcrumb v2.2
trunk 1.0.0 1.0.1 1.0.2 1.1 1.2 1.3 1.4 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6 1.7 1.8 1.9 2.0 2.1 2.2 All 29 releases
catch-breadcrumb / admin / partials / dashboard-display.php

dashboard-display.php in Catch Breadcrumb 2.2, at admin/partials/dashboard-display.php

132 lines 5.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Provide a admin area view for the plugin
5 *
6 * This file is used to markup the admin-facing aspects of the plugin.
7 *
8 * @link https://catchplugins.com/plugins
9 * @since 1.0.0
10 *
11 * @package Catch_Breadcrumb
12 * @subpackage Catch_Breadcrumb/admin/partials
13 */
14 ?>
15
16 <div id="catch-breadcrumb">
17 <div class="content-wrapper">
18 <div class="header">
19 <h2><?php esc_html_e( 'Settings', 'catch-breadcrumb' ); ?></h2>
20 </div> <!-- .Header -->
21 <div class="content">
22 <?php if ( isset( $_GET['settings-updated'] ) ) { ?>
23
24 <div id="message" class="notice updated fade">
25 <p><strong><?php esc_html_e( 'Plugin Options Saved.', 'catch-breadcrumb' ); ?></strong></p>
26 </div>
27
28 <?php } ?>
29
30 <?php
31 // Use nonce for verification.
32 wp_nonce_field( CATCH_BREADCRUMB_BASENAME, 'catch_breadcrumb_nonce' );
33 ?>
34
35 <div id="breadcrumb_main">
36 <form method="post" action="options.php">
37
38 <?php settings_fields( 'catch-breadcrumb-group' ); ?>
39
40 <?php
41 $defaults = catch_breadcrumb_default_options();
42 $settings = catch_breadcrumb_get_options();
43 ?>
44
45 <div class="option-container">
46 <table class="form-table" bgcolor="white">
47 <tbody>
48
49 <tr>
50 <th>
51 <label><?php esc_html_e( 'Content Selector', 'catch-breadcrumb' ); ?></label>
52 </th>
53 <td>
54 <input type="text" name="catch_breadcrumb_options[content_selector]" id="breadcrumb-selector" class="breadcrumb-selector" value="<?php echo esc_attr( $settings['content_selector'] ); ?>"/>
55 <span class="dashicons dashicons-info tooltip" title="<?php esc_attr_e( 'Breadcrumb will be displayed just before this selector.', 'catch-breadcrumb' ); ?>"></span>
56 </td>
57 </tr>
58
59 <tr>
60 <th>
61 <label><?php echo esc_html__( 'Display Breadcrumb', 'catch-breadcrumb' ); ?></label>
62 </th>
63 <td>
64 <select name="catch_breadcrumb_options[breadcrumb_dynamic]" id="catch_breadcrumb_options[breadcrumb_dynamic]">
65 <?php
66 $breadcrumb_dynamic = catch_breadcrumb_dynamic_position();
67 foreach ( $breadcrumb_dynamic as $k => $value ) {
68 echo '<option value="' . $k . '"' . selected( $settings['breadcrumb_dynamic'], $k, false ) . '>' . $value . '</option>';
69 }
70 ?>
71
72 </select>
73 <span class="dashicons dashicons-info tooltip" title="<?php esc_attr_e( 'Set your desire breadcrumb position which will be display before/after content selector.', 'catch-breadcrumb' ); ?>"></span>
74 </td>
75 </tr>
76
77
78 <tr>
79 <th>
80 <label><?php esc_html_e( 'Breadcrumb Separator', 'catch-breadcrumb' ); ?></label>
81 </th>
82 <td>
83 <input type="text" name="catch_breadcrumb_options[breadcrumb_separator]" id="breadcrumb-separator" value="<?php echo esc_attr( $settings['breadcrumb_separator'] ); ?>" />
84 <span class="dashicons dashicons-info tooltip" title="<?php esc_attr_e( 'Anything you want to put as separator inbetween the breadcrumbs.', 'catch-breadcrumb' ); ?>"></span>
85 </td>
86 </tr>
87 <tr>
88 <th scope="row" colspan="2">
89 <code>[catch-breadcrumb]</code>
90 <?php esc_html_e( 'shortcode (in the Post/Page content) will enable Breadcrumb into the Page/Post.', 'catch-breadcrumb' ); ?>
91 <p><?php esc_html_e( 'OR', 'breadcrumb' ); ?></p>
92 <code>&lt;?php echo do_shortcode( '[catch-breadcrumb]' );?&gt;</code>
93 </th>
94 </tr>
95 <tr>
96 <th scope="row"><?php esc_html_e( 'Enable Home Icon', 'catch-breadcrumb' ); ?></th>
97 <td>
98 <?php
99 $text = ( ! empty( $settings['breadcrumb_home_icon'] ) && $settings['breadcrumb_home_icon'] ) ? 'checked' : '';
100 echo '<input type="checkbox" ' . esc_attr( $text ) . ' name="catch_breadcrumb_options[breadcrumb_home_icon]" value="1" />&nbsp;&nbsp;' . esc_html__( ' Check to enable', 'catch-breadcrumb' );
101 ?>
102 <span class="dashicons dashicons-info tooltip" title="<?php esc_attr_e( 'Checking this option will enable Home icon in breadcrumb.', 'catch-breadcrumb' ); ?>"></span>
103 </td>
104 </tr>
105 <tr>
106 <th scope="row"><?php esc_html_e( 'Enable On Home Page', 'catch-breadcrumb' ); ?></th>
107 <td>
108 <?php
109 $text = ( ! empty( $settings['breadcrumb_display_home'] ) && $settings['breadcrumb_display_home'] ) ? 'checked' : '';
110 echo '<input type="checkbox" ' . esc_attr( $text ) . ' name="catch_breadcrumb_options[breadcrumb_display_home]" value="1"/>&nbsp;&nbsp;' . esc_html__( ' Check to enable', 'catch-breadcrumb' );
111 ?>
112 <span class="dashicons dashicons-info tooltip" title="<?php esc_attr_e( 'Checking this option will display breadcrumb on homepage/frontpage.', 'catch-breadcrumb' ); ?>"></span>
113 </td>
114 </tr>
115 <tr>
116 <th scope="row"><?php esc_html_e( 'Reset Options', 'catch-breadcrumb' ); ?></th>
117 <td>
118 <input name="catch_breadcrumb_options[reset]" id="catch_breadcrumb_options[reset]" type="checkbox" value="1" class="catch_breadcrumb_options[reset]" />
119 <?php esc_html__( 'Check to reset', 'catch-breadcrumb' ); ?>
120 <span class="dashicons dashicons-info tooltip" title="<?php esc_attr_e( 'Caution: Reset all settings to default.', 'catch-breadcrumb' ); ?>"></span>
121 </td>
122 </tr>
123 </tbody>
124 </table>
125 <?php submit_button( esc_html__( 'Save Changes', 'catch-breadcrumb' ) ); ?>
126 </div><!-- .option-container -->
127 </form>
128 </div><!-- #breadcrumb_main -->
129 </div><!-- .content -->
130 </div><!-- .content-wrapper -->
131 </div><!---catch-breadcrumb-->
132