PluginProbe
Filter Everything — WordPress & WooCommerce Filters / 1.9.7
Filter Everything — WordPress & WooCommerce Filters v1.9.7
1.9.7 1.9.6 1.9.5 1.9.4 1.9.3 1.9.2.2 1.9.2.1 trunk 1.2.1 1.2.3 1.2.4 1.2.5 1.3.0 1.3.1 1.3.2 1.4.1 1.4.4 1.4.5 1.4.8 1.4.9 1.5.0 1.5.1 1.6.0 1.6.1 1.6.2 All 52 releases
filter-everything / views / admin / filters-seo-rules.php

filters-seo-rules.php in Filter Everything — WordPress & WooCommerce Filters 1.9.7, at views/admin/filters-seo-rules.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
3 if ( ! defined('ABSPATH') ) {
4 exit;
5 }
6
7 $fields = flrt_get_seo_rules_fields( $post->ID );
8 $post_type = flrt_extract_vars($fields, array('rule_post_type') );
9 $postType = reset( $post_type );
10 $seo_fields = flrt_extract_vars( $fields, array( 'rule_seo_title', 'rule_meta_desc', 'rule_h1', 'rule_description') );
11 ?>
12
13 <div class="wpc-filters-seo-rules-wrapper">
14 <div class="wpc-filter-set-hidden-fields">
15 <input type="hidden" id="wpc_seo_rule_nonce" name="_flrt_nonce" value="<?php echo esc_attr( flrt_create_seo_rules_nonce() ); ?>" />
16 </div>
17 <div class="wpc-column-labels-wrapper">
18 <table class="wpc-form-fields-table">
19 <tr id="wpc-rule-post-type">
20 <td class="wpc-filter-label-td">
21 <label for="<?php echo esc_attr( $postType['id'] ); ?>" class="wpc-filter-label">
22 <?php esc_html_e('Post Type', 'filter-everything'); ?>
23 </label>
24 <p class="wpc-field-description"><?php esc_html_e('Select Post Type for SEO Rule', 'filter-everything'); ?></p>
25 </td>
26 <td class="wpc-filter-field-td">
27 <?php echo flrt_render_input( $postType ); //Safe, escaped inside ?>
28 </td>
29 </tr>
30 <tr class="wpc-filter-intersection-tr">
31 <td class="wpc-filter-label-td">
32 <label class="wpc-filter-label">
33 <?php esc_html_e('Filters Combination', 'filter-everything'); ?>
34 </label>
35 <p class="wpc-field-description"><?php esc_html_e('Specify the filter or filters combination for which you need to set SEO data', 'filter-everything'); ?></p>
36 <?php echo flrt_help_tip(
37 wp_kses(
38 __('For example, you need to set SEO data for the page with URL path:<br />/color-blue/size-large/<br />For this purpose, you have to select filters «Color» and «Size» only.<br />If you want to create a common template for all color and size values, please choose <br />«Any Color» and «Any Size». If you need to set SEO data for specific Color and Size, please choose specific values like «Blue» and «Large».', 'filter-everything'),
39 array('br' => array() )
40 ), true ); ?>
41 </td>
42 <td class="wpc-filter-field-td">
43 <div class="wpc-intersection-fields-wrapper" id="wpc-intersection-fields-container">
44 <span class="spinner"></span>
45 <?php
46 flrt_include_admin_view('filters-intersections', array(
47 'fields' => $fields
48 )
49 );
50 ?>
51 </div>
52 </td>
53 </tr>
54 <tr>
55 <td colspan="2">
56 <hr />
57 </td>
58 </tr>
59 <?php foreach ( $seo_fields as $key => $attributes ): ?>
60 <tr class="wpc-filter-tr <?php echo esc_attr( $attributes['class'] ); ?>-tr">
61 <td class="wpc-filter-label-td">
62 <label for="<?php echo esc_attr( $attributes['id'] ); ?>" class="wpc-filter-label">
63 <?php echo esc_html( $attributes['label'] ); ?>
64 </label>
65 <?php echo flrt_field_instructions($attributes); // Already escaped in function ?>
66 <?php echo flrt_tooltip($attributes); ?>
67 </td>
68 <td class="wpc-filter-field-td">
69 <div class="wpc-field-wrap <?php echo esc_attr( $attributes['id'] ); ?>-wrap">
70 <?php echo flrt_render_input( $attributes ); ?>
71 </div>
72 </td>
73 </tr>
74 <?php endforeach; ?>
75 </table>
76 </div>
77 </div>