forked from wp-plugins/powerpress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpowerpressadmin-search.php
172 lines (156 loc) · 6.85 KB
/
powerpressadmin-search.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<?php
// powerpressadmin-search.php
function powerpress_admin_search()
{
$General = powerpress_get_settings('powerpress_general');
if( empty($General['seo_feed_title']) )
$General['seo_feed_title'] = '';
?>
<script language="javascript"><!--
jQuery(document).ready(function() {
<?php
if( empty($General['seo_append_show_title']) )
echo " jQuery('#powerpress_example_show_title').hide();\n";
if( !empty($General['seo_feed_title']) && $General['seo_feed_title'] == 1 )
echo " jQuery('#powerpress_example_post_title').hide();\n";
?>
jQuery('#seo_feed_title').change( function() {
if( this.checked )
jQuery('#powerpress_seo_feed_title_1').prop('checked', true);
else
jQuery('.powerpress_seo_feed_title').prop('checked', false);
});
jQuery('#seo_append_show_title').change( function() {
if( jQuery(this).prop('checked') )
jQuery('#powerpress_example_show_title').show();
else
jQuery('#powerpress_example_show_title').hide();
});
jQuery('.powerpress_seo_feed_title').change( function() {
jQuery('#seo_feed_title').prop('checked', true);
switch( this.value )
{
case '1':
case 1: {
jQuery('#powerpress_example_post_title').hide();
}; break;
case '2':
case 2: {
jQuery('#powerpress_example_post_title').show();
var p_title_html = jQuery('#powerpress_example_post_title')[0].outerHTML;
var e_title_html = jQuery('#powerpress_example_episode_title')[0].outerHTML;
jQuery('#powerpress_example_post_episode_title').html( e_title_html + p_title_html);
}; break;
case '3':
case 3: {
jQuery('#powerpress_example_post_title').show();
var p_title_html = jQuery('#powerpress_example_post_title')[0].outerHTML;
var e_title_html = jQuery('#powerpress_example_episode_title')[0].outerHTML;
jQuery('#powerpress_example_post_episode_title').html( p_title_html + e_title_html);
}; break;
default: {
}
}
});
});
//-->
</script>
<input type="hidden" name="action" value="powerpress-save-search" />
<h2><?php echo __('Podcasting SEO', 'powerpress'); ?></h2>
<p><?php echo __('Enable features to help with podcasting search engine optimization (SEO). The following options can assist your web and podcasting SEO strategies.', 'powerpress'); ?></p>
<p>
<a href="http://create.blubrry.com/resources/powerpress/advanced-tools-and-options/podcasting-seo-settings/" target="_blank"><?php echo __('Learn More', 'powerpress'); ?></a>
</p>
<table class="form-table">
<tr valign="top">
<th scope="row"><?php echo __('Episode Titles', 'powerpress'); ?></th>
<td>
<p>
<label for="seo_feed_title">
<input name="PowerPressSearchToggle[seo_feed_title]" type="hidden" value="0" />
<input id="seo_feed_title" name="PowerPressSearchToggle[seo_feed_title]" type="checkbox" value="1" <?php if( !empty($General['seo_feed_title']) ) echo 'checked '; ?> />
<?php echo __('Specify custom episode titles for podcast feeds.', 'powerpress'); ?></label>
</p>
<div style="margin-left: 40px;">
<p><label style="display: block;"><input type="radio" class="powerpress_seo_feed_title" id="powerpress_seo_feed_title_1" name="General[seo_feed_title]" value="1" <?php if( $General['seo_feed_title'] == 1 ) echo 'checked'; ?> />
<?php echo __('Feed episode title replaces post title (default)', 'powerpress'); ?></label></p>
<p><label style="display: block;"><input type="radio" class="powerpress_seo_feed_title" id="powerpress_seo_feed_title_2" name="General[seo_feed_title]" value="2" <?php if( $General['seo_feed_title'] == 2 ) echo 'checked'; ?> />
<?php echo __('Feed episode title prefixes post title', 'powerpress'); ?></label></p>
<p><label style="display: block;"><input type="radio" class="powerpress_seo_feed_title" id="powerpress_seo_feed_title_3" name="General[seo_feed_title]" value="3" <?php if( $General['seo_feed_title'] == 3 ) echo 'checked'; ?> />
<?php echo __('Feed episode title appended to post title', 'powerpress'); ?></label></p>
</div>
<p>
<label for="seo_append_show_title">
<input name="General[seo_append_show_title]" type="hidden" value="0" />
<input id="seo_append_show_title" name="General[seo_append_show_title]" type="checkbox" value="1" <?php if( !empty($General['seo_append_show_title']) ) echo 'checked '; ?> />
<?php echo __('Append show title to episode titles.', 'powerpress'); ?></label>
</p>
<p style="margin: 10px 0 0 40px;">
<strong><?php echo __('Example based on options selected above:', 'powerpress'); ?></strong><br /><i>
<span id="powerpress_example_post_episode_title">
<span id="powerpress_example_post_title" style="margin: 0 5px;"> <?php echo __('Blog Post Title', 'powerpress'); ?> </span>
<span id="powerpress_example_episode_title" style="margin: 0 5px;"> <?php echo __('Custom Episode Title', 'powerpress'); ?> </span>
</span>
<span id="powerpress_example_show_title"> - <span style="margin: 0 5px;"><?php echo __('Show Title', 'powerpress'); ?></span></span>
</i>
</p>
</td>
</tr>
<tr valign="top">
<th scope="row"><?php echo __('AudioObjects', 'powerpress'); ?></th>
<td>
<p>
<input name="General[seo_audio_objects]" type="hidden" value="0" />
<input name="General[seo_audio_objects]" type="checkbox" value="1" <?php if( !empty($General['seo_audio_objects']) ) echo 'checked '; ?> />
<?php echo __('Schema.org audio objects in microdata format.', 'powerpress'); ?>
</p>
</td>
</tr>
<tr valign="top">
<th scope="row"><?php echo __('VideoObjects', 'powerpress'); ?></th>
<td>
<p>
<input name="General[seo_video_objects]" type="hidden" value="0" />
<input name="General[seo_video_objects]" type="checkbox" value="1" <?php if( !empty($General['seo_video_objects']) ) echo 'checked '; ?> />
<?php echo __('Schema.org video objects in microdata format.', 'powerpress'); ?>
</p>
</td>
</tr>
<tr valign="top">
<th scope="row"><?php echo __('Podcast Directory SEO Guidance', 'powerpress'); ?></th>
<td>
<p>
<input name="General[seo_itunes]" type="hidden" value="0" />
<input name="General[seo_itunes]" type="checkbox" value="1" <?php if( !empty($General['seo_itunes']) ) echo 'checked '; ?> />
<?php echo __('Enable and highlight features that help with Podcast Directory Search Engine Optimization.', 'powerpress'); ?>
</p>
<p>
<ul>
<li>
<ul>
<li>
<?php echo __('Highlight fields for Podcasting SEO', 'powerpress'); ?>
</li>
<li>
<?php echo __('Enables iTunes Subtitle field', 'powerpress'); ?>
</li>
<li>
<?php echo __('Enables Google Play Music Description field', 'powerpress'); ?>
</li>
<li>
<?php echo __('Enables iTunes Author field', 'powerpress'); ?>
</li>
<li>
<?php echo __('Enables Enhanced iTunes Summary feature', 'powerpress'); ?>
</li>
</ul>
</li>
</ul>
</p>
</td>
</tr>
</table>
<?php
?>
<?php
} // End powerpress_admin_search()