PluginProbe
Catch Breadcrumb / 1.1
Catch Breadcrumb v1.1
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 1.1, at admin/partials/dashboard-display.php

104 lines 5.0 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 <div id="message" class="notice updated fade">
24 <p><strong><?php esc_html_e( 'Plugin Options Saved.', 'catch-breadcrumb' ) ?></strong></p>
25 </div>
26 <?php } ?>
27 <?php // Use nonce for verification.
28 wp_nonce_field( basename( __FILE__ ), 'catch_breadcrumb_nounce' );
29 ?>
30 <div id="breadcrumb_main">
31 <form method="post" action="options.php">
32 <?php settings_fields( 'catch-breadcrumb-group' ); ?>
33 <?php
34 $defaults =catch_breadcrumb_default_options();
35 $settings = catch_breadcrumb_get_options();
36 ?>
37 <div class="option-container">
38 <table class="form-table" bgcolor="white">
39 <tbody>
40
41 <tr>
42 <th>
43 <label><?php esc_html_e( 'Content Selector', 'catch-breadcrumb' ); ?></label>
44 </th>
45 <td>
46 <input type="text" name="catch_breadcrumb_options[content_selector]" id="breadcrumb-selector" class="breadcrumb-selector" value="<?php echo esc_attr($settings['content_selector']); ?>"/>
47 <span class="dashicons dashicons-info" title="<?php esc_html_e( 'Breadcrumb will be displayed just before this selector.', 'catch-breadcrumb' ); ?>"></span>
48 </td>
49 </tr>
50
51 <tr>
52 <th>
53 <label><?php esc_html_e( 'Breadcrumb Separator', 'catch-breadcrumb' ); ?></label>
54 </th>
55 <td>
56 <input type="text" name="catch_breadcrumb_options[breadcrumb_separator]" id="breadcrumb-separator" value="<?php echo esc_attr($settings['breadcrumb_separator']); ?>" />
57 <span class="dashicons dashicons-info" title="<?php esc_html_e( 'Anything you want to put as separator inbetween the breadcrumbs.', 'catch-breadcrumb' ); ?>"></span>
58 </td>
59 </tr>
60 <tr>
61 <th scope="row" colspan="2">
62 <code>[catch-breadcrumb]</code>
63 <?php _e( 'shortcode (in the Post/Page content) will enable Breadcrumb into the Page/Post.', 'catch-breadcrumb' ); ?>
64 <p><?php _e( 'OR', 'breadcrumb' ); ?></p>
65 <code>&lt;?php echo do_shortcode( '[catch-breadcrumb]' );?&gt;</code>
66 </th>
67 </tr>
68 <tr>
69 <th scope="row"><?php _e( 'Enable Home Icon', 'catch-breadcrumb' ); ?></th>
70 <td>
71 <?php $text = ( ! empty ( $settings['breadcrumb_home_icon'] ) && $settings['breadcrumb_home_icon'] ) ? 'checked' : '';
72 echo '<input type="checkbox" ' .$text. ' name="catch_breadcrumb_options[breadcrumb_home_icon]" value="1"/>&nbsp;&nbsp;'. __( ' Check to enable', 'catch-breadcrumb' );
73 ?>
74 <span class="dashicons dashicons-info" title="<?php esc_html_e( 'Checking this option will enable Home icon in breadcrumb.', 'catch-breadcrumb' ); ?>"></span>
75 </td>
76 </tr>
77 <tr>
78 <th scope="row"><?php _e( 'Enable On Home Page', 'catch-breadcrumb' ); ?></th>
79 <td>
80 <?php $text = ( ! empty ( $settings['breadcrumb_display_home'] ) && $settings['breadcrumb_display_home'] ) ? 'checked' : '';
81 echo '<input type="checkbox" ' .$text. ' name="catch_breadcrumb_options[breadcrumb_display_home]" value="1"/>&nbsp;&nbsp;'. __( ' Check to enable', 'catch-breadcrumb' );
82 ?>
83 <span class="dashicons dashicons-info" title="<?php esc_html_e( 'Checking this option will display breadcrumb on homepage/frontpage.', 'catch-breadcrumb' ); ?>"></span>
84 </td>
85 </tr>
86 <tr>
87 <th scope="row"><?php esc_html_e( 'Reset Options', 'catch-breadcrumb' ); ?></th>
88 <td>
89 <?php
90 echo '<input name="catch_breadcrumb_options[reset]" id="catch_breadcrumb_options[reset]" type="checkbox" value="1" class="catch_breadcrumb_options[reset]" />' . esc_html__( 'Check to reset', 'catch-breadcrumb' );
91 ?>
92 <span class="dashicons dashicons-info" title="<?php esc_html_e( 'Caution: Reset all settings to default.', 'catch-breadcrumb' ); ?>"></span>
93 </td>
94 </tr>
95 </tbody>
96 </table>
97 <?php submit_button( esc_html__( 'Save Changes', 'catch-breadcrumb' ) ); ?>
98 </div><!-- .option-container -->
99 </form>
100 </div><!-- #breadcrumb_main -->
101 </div><!-- .content -->
102 </div><!-- .content-wrapper -->
103 </div><!---catch-breadcrumb-->
104