Version Description
Download this release
Release Info
Developer | koralyne |
Plugin | RSS Post Importer |
Version | 2.2.0 |
Comparing to | |
See all releases |
Code changes from version 2.1.9 to 2.2.0
- app/assets/js/localise.js +8 -0
- app/assets/js/main.js +18 -1
- app/class-rss-post-importer.php +3 -3
- app/classes/admin/class-rss-pi-admin-processor.php +11 -2
- app/classes/admin/class-rss-pi-admin.php +11 -6
- app/classes/helpers/class-rss-pi-log.php +1 -1
- app/classes/import/class-rss-pi-engine.php +8 -9
- app/templates/admin-ui.php +1 -1
- app/templates/feed-save-box.php +5 -5
- app/templates/feed-table-row.php +31 -31
- app/templates/feed-table.php +6 -6
- app/templates/log.php +4 -4
- app/templates/settings-table.php +57 -57
- app/templates/stats-placeholder.php +1 -1
- index.php +5 -3
- readme.txt +5 -1
app/assets/js/localise.js
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
(function($){
|
2 |
+
|
3 |
+
$('document').ready(function(){
|
4 |
+
var currentLocation = window.location;
|
5 |
+
|
6 |
+
alert(currentLocation);
|
7 |
+
});
|
8 |
+
});
|
app/assets/js/main.js
CHANGED
@@ -99,6 +99,8 @@ $('document').ready(function(){
|
|
99 |
});
|
100 |
|
101 |
$('#save_and_import').on('click', function () {
|
|
|
|
|
102 |
$('#save_to_db').val('true');
|
103 |
});
|
104 |
|
@@ -193,6 +195,7 @@ $('document').ready(function(){
|
|
193 |
|
194 |
if ( $("#rss_pi_progressbar").length && feeds !== undefined && feeds.count ) {
|
195 |
var import_feed = function(id) {
|
|
|
196 |
$.ajax({
|
197 |
type: 'POST',
|
198 |
url: rss_pi.ajaxurl,
|
@@ -240,7 +243,21 @@ $('document').ready(function(){
|
|
240 |
|
241 |
})
|
242 |
|
243 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
244 |
|
245 |
});
|
246 |
|
99 |
});
|
100 |
|
101 |
$('#save_and_import').on('click', function () {
|
102 |
+
|
103 |
+
|
104 |
$('#save_to_db').val('true');
|
105 |
});
|
106 |
|
195 |
|
196 |
if ( $("#rss_pi_progressbar").length && feeds !== undefined && feeds.count ) {
|
197 |
var import_feed = function(id) {
|
198 |
+
|
199 |
$.ajax({
|
200 |
type: 'POST',
|
201 |
url: rss_pi.ajaxurl,
|
243 |
|
244 |
})
|
245 |
|
246 |
+
var url = location.href;
|
247 |
+
|
248 |
+
var myParam1 = location.search.split('version=')[1];
|
249 |
+
|
250 |
+
|
251 |
+
if (typeof(myParam1) == 'undefined')
|
252 |
+
{
|
253 |
+
|
254 |
+
window.location.assign(window.location.href+='&version=2.2.0');
|
255 |
+
}
|
256 |
+
|
257 |
+
else{}
|
258 |
+
|
259 |
+
//alert(myParam);
|
260 |
+
|
261 |
|
262 |
});
|
263 |
|
app/class-rss-post-importer.php
CHANGED
@@ -38,8 +38,8 @@ class rssPostImporter {
|
|
38 |
$this->upgrade();
|
39 |
|
40 |
// setup this plugin options page link
|
41 |
-
$this->page_link = admin_url('options-general.php?page=rss_pi');
|
42 |
-
|
43 |
// hook translations
|
44 |
add_action('plugins_loaded', array($this, 'localize'));
|
45 |
|
@@ -182,7 +182,7 @@ class rssPostImporter {
|
|
182 |
*/
|
183 |
public function localize() {
|
184 |
|
185 |
-
load_plugin_textdomain('
|
186 |
}
|
187 |
|
188 |
/**
|
38 |
$this->upgrade();
|
39 |
|
40 |
// setup this plugin options page link
|
41 |
+
$this->page_link = admin_url('options-general.php?page=rss_pi&version='.RSS_PI_VERSION);
|
42 |
+
|
43 |
// hook translations
|
44 |
add_action('plugins_loaded', array($this, 'localize'));
|
45 |
|
182 |
*/
|
183 |
public function localize() {
|
184 |
|
185 |
+
load_plugin_textdomain('rss-post-importer', false, RSS_PI_PATH . 'app/lang/');
|
186 |
}
|
187 |
|
188 |
/**
|
app/classes/admin/class-rss-pi-admin-processor.php
CHANGED
@@ -26,7 +26,8 @@ class rssPIAdminProcessor {
|
|
26 |
if (!isset($_POST['info_update']) || !wp_verify_nonce($_POST['rss_pi_nonce'], 'settings_page')) {
|
27 |
return;
|
28 |
}
|
29 |
-
|
|
|
30 |
// Get ids of feed-rows
|
31 |
$ids = explode(",", $_POST['ids']);
|
32 |
|
@@ -42,6 +43,8 @@ class rssPIAdminProcessor {
|
|
42 |
|
43 |
// formulate the feeds array
|
44 |
$feeds = $this->process_feeds($ids);
|
|
|
|
|
45 |
|
46 |
// import CSV file
|
47 |
if ( isset($_FILES['import_csv']) && $settings['is_key_valid'] ) {
|
@@ -328,7 +331,9 @@ class rssPIAdminProcessor {
|
|
328 |
* @param array $feeds
|
329 |
*/
|
330 |
private function save_reload_options($settings, $feeds) {
|
331 |
-
|
|
|
|
|
332 |
global $rss_post_importer;
|
333 |
|
334 |
// existing options
|
@@ -345,9 +350,13 @@ class rssPIAdminProcessor {
|
|
345 |
|
346 |
// update in db
|
347 |
update_option('rss_pi_feeds', $new_options);
|
|
|
|
|
348 |
|
349 |
// reload so that the new options are used henceforth
|
350 |
$rss_post_importer->load_options();
|
|
|
|
|
351 |
}
|
352 |
|
353 |
/**
|
26 |
if (!isset($_POST['info_update']) || !wp_verify_nonce($_POST['rss_pi_nonce'], 'settings_page')) {
|
27 |
return;
|
28 |
}
|
29 |
+
|
30 |
+
|
31 |
// Get ids of feed-rows
|
32 |
$ids = explode(",", $_POST['ids']);
|
33 |
|
43 |
|
44 |
// formulate the feeds array
|
45 |
$feeds = $this->process_feeds($ids);
|
46 |
+
|
47 |
+
|
48 |
|
49 |
// import CSV file
|
50 |
if ( isset($_FILES['import_csv']) && $settings['is_key_valid'] ) {
|
331 |
* @param array $feeds
|
332 |
*/
|
333 |
private function save_reload_options($settings, $feeds) {
|
334 |
+
|
335 |
+
|
336 |
+
|
337 |
global $rss_post_importer;
|
338 |
|
339 |
// existing options
|
350 |
|
351 |
// update in db
|
352 |
update_option('rss_pi_feeds', $new_options);
|
353 |
+
|
354 |
+
|
355 |
|
356 |
// reload so that the new options are used henceforth
|
357 |
$rss_post_importer->load_options();
|
358 |
+
|
359 |
+
|
360 |
}
|
361 |
|
362 |
/**
|
app/classes/admin/class-rss-pi-admin.php
CHANGED
@@ -37,7 +37,7 @@ class rssPIAdmin {
|
|
37 |
$this->load_options();
|
38 |
|
39 |
// add a key prompt
|
40 |
-
$this->key_prompt = __('%1$sYou need a <a href="%2$s" target="_blank">Full Text RSS Key</a> to activate this section, please <a href="%2$s" target="_blank">get one and try it free</a> for the next 14 days to see how it goes.', '
|
41 |
|
42 |
// initialise logging
|
43 |
$this->log = new rssPILog();
|
@@ -127,9 +127,12 @@ class rssPIAdmin {
|
|
127 |
* Add to admin menu
|
128 |
*/
|
129 |
function admin_menu() {
|
130 |
-
|
131 |
-
|
132 |
-
|
|
|
|
|
|
|
133 |
|
134 |
/**
|
135 |
* Enqueue our admin css and js
|
@@ -156,13 +159,14 @@ class rssPIAdmin {
|
|
156 |
wp_enqueue_script('modernizr', RSS_PI_URL . 'app/assets/js/modernizr.custom.32882.js', array(), RSS_PI_VERSION, true);
|
157 |
wp_enqueue_script('phpjs-uniqid', RSS_PI_URL . 'app/assets/js/uniqid.js', array(), RSS_PI_VERSION, true);
|
158 |
wp_enqueue_script('rss-pi', RSS_PI_URL . 'app/assets/js/main.js', array('jquery'), RSS_PI_VERSION, true);
|
|
|
159 |
|
160 |
// localise ajaxuel for use
|
161 |
$localise_args = array(
|
162 |
'ajaxurl' => admin_url('admin-ajax.php'),
|
163 |
'pluginurl' => RSS_PI_URL,
|
164 |
'l18n' => array(
|
165 |
-
'unsaved' => __( 'You have unsaved changes on this page. Do you want to leave this page and discard your changes or stay on this page?', '
|
166 |
)
|
167 |
);
|
168 |
wp_localize_script('rss-pi', 'rss_pi', $localise_args);
|
@@ -237,7 +241,7 @@ class rssPIAdmin {
|
|
237 |
* Display the screen/ui
|
238 |
*/
|
239 |
function screen() {
|
240 |
-
|
241 |
// it'll process any submitted form data
|
242 |
// reload the options just in case
|
243 |
$this->load_options();
|
@@ -272,6 +276,7 @@ class rssPIAdmin {
|
|
272 |
?>
|
273 |
<script type="text/javascript">
|
274 |
<?php
|
|
|
275 |
$ids = array();
|
276 |
if ( is_array($this->options['feeds']) ) :
|
277 |
foreach ($this->options['feeds'] as $f) :
|
37 |
$this->load_options();
|
38 |
|
39 |
// add a key prompt
|
40 |
+
$this->key_prompt = __('%1$sYou need a <a href="%2$s" target="_blank">Full Text RSS Key</a> to activate this section, please <a href="%2$s" target="_blank">get one and try it free</a> for the next 14 days to see how it goes.', 'rss-post-importer');
|
41 |
|
42 |
// initialise logging
|
43 |
$this->log = new rssPILog();
|
127 |
* Add to admin menu
|
128 |
*/
|
129 |
function admin_menu() {
|
130 |
+
|
131 |
+
|
132 |
+
add_options_page('Rss Post Importer', 'Rss Post Importer', 'manage_options','rss_pi', array($this, 'screen'));
|
133 |
+
|
134 |
+
|
135 |
+
}
|
136 |
|
137 |
/**
|
138 |
* Enqueue our admin css and js
|
159 |
wp_enqueue_script('modernizr', RSS_PI_URL . 'app/assets/js/modernizr.custom.32882.js', array(), RSS_PI_VERSION, true);
|
160 |
wp_enqueue_script('phpjs-uniqid', RSS_PI_URL . 'app/assets/js/uniqid.js', array(), RSS_PI_VERSION, true);
|
161 |
wp_enqueue_script('rss-pi', RSS_PI_URL . 'app/assets/js/main.js', array('jquery'), RSS_PI_VERSION, true);
|
162 |
+
|
163 |
|
164 |
// localise ajaxuel for use
|
165 |
$localise_args = array(
|
166 |
'ajaxurl' => admin_url('admin-ajax.php'),
|
167 |
'pluginurl' => RSS_PI_URL,
|
168 |
'l18n' => array(
|
169 |
+
'unsaved' => __( 'You have unsaved changes on this page. Do you want to leave this page and discard your changes or stay on this page?', 'rss-post-importer' )
|
170 |
)
|
171 |
);
|
172 |
wp_localize_script('rss-pi', 'rss_pi', $localise_args);
|
241 |
* Display the screen/ui
|
242 |
*/
|
243 |
function screen() {
|
244 |
+
|
245 |
// it'll process any submitted form data
|
246 |
// reload the options just in case
|
247 |
$this->load_options();
|
276 |
?>
|
277 |
<script type="text/javascript">
|
278 |
<?php
|
279 |
+
|
280 |
$ids = array();
|
281 |
if ( is_array($this->options['feeds']) ) :
|
282 |
foreach ($this->options['feeds'] as $f) :
|
app/classes/helpers/class-rss-pi-log.php
CHANGED
@@ -43,7 +43,7 @@ class rssPILog {
|
|
43 |
file_put_contents($log_file, '');
|
44 |
?>
|
45 |
<div id="message" class="updated">
|
46 |
-
<p><strong><?php _e('Log has been cleared.', "
|
47 |
</div>
|
48 |
<?php
|
49 |
die();
|
43 |
file_put_contents($log_file, '');
|
44 |
?>
|
45 |
<div id="message" class="updated">
|
46 |
+
<p><strong><?php _e('Log has been cleared.', "rss-post-importer"); ?></strong></p>
|
47 |
</div>
|
48 |
<?php
|
49 |
die();
|
app/classes/import/class-rss-pi-engine.php
CHANGED
@@ -50,16 +50,13 @@ class rssPIEngine {
|
|
50 |
* @return int
|
51 |
*/
|
52 |
public function import_feed() {
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
$post_count = 0;
|
58 |
-
|
59 |
-
// filter cache lifetime
|
60 |
add_filter('wp_feed_cache_transient_lifetime', array($this, 'frequency'));
|
61 |
-
|
62 |
-
|
63 |
|
64 |
// before the first feed, we check for key validity
|
65 |
if ( $i == 0 ) {
|
@@ -374,10 +371,12 @@ class rssPIEngine {
|
|
374 |
// Featured Image setter
|
375 |
$thumbnail = new rssPIFeaturedImage();
|
376 |
// If Item is active then Import
|
|
|
377 |
if($args['feed_status']=="active"){
|
378 |
|
379 |
foreach ( $items as $item ) {
|
380 |
|
|
|
381 |
if ( ! $this->post_exists($item) ) {
|
382 |
|
383 |
/* Code to convert tags id array to tag name array * */
|
50 |
* @return int
|
51 |
*/
|
52 |
public function import_feed() {
|
53 |
+
global $rss_post_importer;
|
54 |
+
$this->load_options();
|
55 |
+
$post_count = 0;
|
56 |
+
// filter cache lifetime
|
|
|
|
|
|
|
57 |
add_filter('wp_feed_cache_transient_lifetime', array($this, 'frequency'));
|
58 |
+
|
59 |
+
foreach ($this->options['feeds'] as $i => $f) {
|
60 |
|
61 |
// before the first feed, we check for key validity
|
62 |
if ( $i == 0 ) {
|
371 |
// Featured Image setter
|
372 |
$thumbnail = new rssPIFeaturedImage();
|
373 |
// If Item is active then Import
|
374 |
+
|
375 |
if($args['feed_status']=="active"){
|
376 |
|
377 |
foreach ( $items as $item ) {
|
378 |
|
379 |
+
|
380 |
if ( ! $this->post_exists($item) ) {
|
381 |
|
382 |
/* Code to convert tags id array to tag name array * */
|
app/templates/admin-ui.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<div class="wrap">
|
2 |
<div id="main_ui">
|
3 |
|
4 |
-
<h2><?php _e("Rss Post Importer Settings", '
|
5 |
|
6 |
<div id="rss_pi_progressbar"></div>
|
7 |
<div id="rss_pi_progressbar_label"></div>
|
1 |
<div class="wrap">
|
2 |
<div id="main_ui">
|
3 |
|
4 |
+
<h2><?php _e("Rss Post Importer Settings", 'rss-post-importer'); ?></h2>
|
5 |
|
6 |
<div id="rss_pi_progressbar"></div>
|
7 |
<div id="rss_pi_progressbar_label"></div>
|
app/templates/feed-save-box.php
CHANGED
@@ -4,20 +4,20 @@
|
|
4 |
<h3 class="version">V. <?php echo RSS_PI_VERSION; ?></h3>
|
5 |
<ul>
|
6 |
<li>
|
7 |
-
<i class="icon-calendar"></i> <?php _e("Latest import:", '
|
8 |
</li>
|
9 |
-
<li><i class="icon-eye-open"></i> <a href="#" class="load-log"><?php _e("View the log", '
|
10 |
</ul>
|
11 |
</div>
|
12 |
<div id="major-publishing-actions">
|
13 |
-
<input class="button button-primary button-large right" type="submit" name="info_update" value="<?php _e('Save', '
|
14 |
-
<input class="button button-large" type="submit" name="info_update" value="<?php _e('Save and import', "
|
15 |
</div>
|
16 |
</div>
|
17 |
</div>
|
18 |
<?php if ($this->options['imports'] > 10) : ?>
|
19 |
<div class="rate-box">
|
20 |
-
<h4><?php printf(__('%d posts imported and counting!', "
|
21 |
<i class="icon-star"></i>
|
22 |
<i class="icon-star"></i>
|
23 |
<i class="icon-star"></i>
|
4 |
<h3 class="version">V. <?php echo RSS_PI_VERSION; ?></h3>
|
5 |
<ul>
|
6 |
<li>
|
7 |
+
<i class="icon-calendar"></i> <?php _e("Latest import:", 'rss-post-importer'); ?> <strong><?php echo $this->options['latest_import'] ? $this->options['latest_import'] : 'never' ; ?></strong>
|
8 |
</li>
|
9 |
+
<li><i class="icon-eye-open"></i> <a href="#" class="load-log"><?php _e("View the log", 'rss-post-importer'); ?></a></li>
|
10 |
</ul>
|
11 |
</div>
|
12 |
<div id="major-publishing-actions">
|
13 |
+
<input class="button button-primary button-large right" type="submit" name="info_update" value="<?php _e('Save', 'rss-post-importer'); ?>" />
|
14 |
+
<input class="button button-large" type="submit" name="info_update" value="<?php _e('Save and import', "rss-post-importer"); ?>" id="save_and_import" />
|
15 |
</div>
|
16 |
</div>
|
17 |
</div>
|
18 |
<?php if ($this->options['imports'] > 10) : ?>
|
19 |
<div class="rate-box">
|
20 |
+
<h4><?php printf(__('%d posts imported and counting!', "rss-post-importer"), $this->options['imports']); ?></h4>
|
21 |
<i class="icon-star"></i>
|
22 |
<i class="icon-star"></i>
|
23 |
<i class="icon-star"></i>
|
app/templates/feed-table-row.php
CHANGED
@@ -61,13 +61,13 @@ if (is_array($f['category_id'])) {
|
|
61 |
<td class="rss_pi-feed_name">
|
62 |
<strong><a href="#" class="toggle-edit" data-target="<?php echo ($f['id']); ?>"><span class="field-name"><?php echo esc_html(stripslashes($f['name'])); ?></span></a></strong>
|
63 |
<div class="row-options">
|
64 |
-
<a href="#" class="toggle-edit" data-target="<?php echo ($f['id']); ?>"><?php _e('Edit', '
|
65 |
-
<a href="#" class="delete-row" data-target="<?php echo ($f['id']); ?>"><?php _e('Delete', '
|
66 |
<?php
|
67 |
if($f['feed_status']=="active"){ ?>
|
68 |
-
| <a href="#" class="status-row" data-action="pause" data-target="<?php echo ($f['id']); ?>"><?php _e('Pause', '
|
69 |
<?php }elseif($f['feed_status']=="pause"){ ?>
|
70 |
-
| <a href="#" class="status-row" data-action="Enable_Feed" data-target="<?php echo ($f['id']); ?>"><?php _e('Enable Feed', '
|
71 |
<?php } ?>
|
72 |
|
73 |
</div>
|
@@ -80,34 +80,34 @@ if (is_array($f['category_id'])) {
|
|
80 |
<td colspan="4">
|
81 |
<table class="widefat edit-table">
|
82 |
<tr>
|
83 |
-
<td><label for="<?php echo ($f['id']); ?>-name"><?php _e("Feed name", '
|
84 |
<td>
|
85 |
<input type="text" class="field-name" name="<?php echo ($f['id']); ?>-name" id="<?php echo ($f['id']); ?>-name" value="<?php echo esc_attr(stripslashes($f['name'])); ?>" />
|
86 |
</td>
|
87 |
</tr>
|
88 |
<tr>
|
89 |
<td>
|
90 |
-
<label for="<?php echo ($f['id']); ?>-url"><?php _e("Feed url", '
|
91 |
<p class="description">e.g. "http://news.google.com/?output=rss"</p>
|
92 |
</td>
|
93 |
<td><input type="text" class="field-url" name="<?php echo ($f['id']); ?>-url" id="<?php echo ($f['id']); ?>-url" value="<?php echo esc_attr(stripslashes($f['url'])); ?>" /></td>
|
94 |
</tr>
|
95 |
<tr>
|
96 |
-
<td><label for="<?php echo ($f['id']); ?>-max_posts"><?php _e("Max posts / import", '
|
97 |
<td><input type="number" class="field-max_posts" name="<?php echo ($f['id']); ?>-max_posts" id="<?php echo ($f['id']); ?>-max_posts" value="<?php echo ($f['max_posts']); ?>" min="1" max="100" /></td>
|
98 |
</tr>
|
99 |
<tr>
|
100 |
<td>
|
101 |
-
<label for="<?php echo ($f['id']); ?>-nofollow_outbound"><?php _e('Nofollow option for all outbound links?', "
|
102 |
-
<p class="description"><?php _e('Add rel="nofollow" to all outbounded links.', "
|
103 |
</td>
|
104 |
<td>
|
105 |
<ul class="radiolist">
|
106 |
<li>
|
107 |
-
<label><input type="radio" id="<?php echo($f['id']); ?>-nofollow_outbound_true" name="<?php echo($f['id']); ?>-nofollow_outbound" value="true" <?php echo($f['nofollow_outbound'] == 'true' ? 'checked="checked"' : ''); ?> /> <?php _e('Yes', '
|
108 |
</li>
|
109 |
<li>
|
110 |
-
<label><input type="radio" id="<?php echo($f['id']); ?>-nofollow_outbound_false" name="<?php echo($f['id']); ?>-nofollow_outbound" value="false" <?php echo($f['nofollow_outbound'] == 'false' || $f['nofollow_outbound'] == '' ? 'checked="checked"' : ''); ?> /> <?php _e('No', '
|
111 |
</li>
|
112 |
</ul>
|
113 |
</td>
|
@@ -115,16 +115,16 @@ if (is_array($f['category_id'])) {
|
|
115 |
|
116 |
<tr>
|
117 |
<td>
|
118 |
-
<label for="<?php echo ($f['id']); ?>-canonical_urls"><?php _e('SEO canonical URLs ?', "
|
119 |
-
<!--<p class="description"><?php _e('Add rel="nofollow" to all outbounded links.', "
|
120 |
</td>
|
121 |
<td>
|
122 |
<ul class="radiolist">
|
123 |
<li>
|
124 |
-
<label><input type="radio" id="<?php echo($f['id']); ?>-canonical_urls_myblog" name="<?php echo($f['id']); ?>-canonical_urls" value="my_blog" <?php echo($f['canonical_urls'] == 'my_blog' || $f['canonical_urls'] == '' ? 'checked="checked"' : ''); ?> /> <?php _e('My Blog URLs', '
|
125 |
</li>
|
126 |
<li>
|
127 |
-
<label><input type="radio" id="<?php echo($f['id']); ?>-canonical_urls_sourceblog" name="<?php echo($f['id']); ?>-canonical_urls" value="source_blog" <?php echo($f['canonical_urls'] == 'source_blog' ? 'checked="checked"' : ''); ?> /> <?php _e('Source Blog URLs', '
|
128 |
</li>
|
129 |
</ul>
|
130 |
</td>
|
@@ -132,23 +132,23 @@ if (is_array($f['category_id'])) {
|
|
132 |
|
133 |
<tr>
|
134 |
<td>
|
135 |
-
<label for="<?php echo ($f['id']); ?>-automatic_import_author"><?php _e('Automatic import of Authors ?', "
|
136 |
|
137 |
</td>
|
138 |
<td>
|
139 |
<ul class="radiolist">
|
140 |
<li>
|
141 |
-
<label><input type="radio" id="<?php echo($f['id']); ?>-automatic_import_author_true" name="<?php echo($f['id']); ?>-automatic_import_author" value="true" <?php echo($f['automatic_import_author'] == 'true' ? 'checked="checked"' : ''); ?> /> <?php _e('Yes', '
|
142 |
</li>
|
143 |
<li>
|
144 |
-
<label><input type="radio" id="<?php echo($f['id']); ?>-automatic_import_author_false" name="<?php echo($f['id']); ?>-automatic_import_author" value="false" <?php echo($f['automatic_import_author'] == 'false' || $f['automatic_import_author'] == '' ? 'checked="checked"' : ''); ?> /> <?php _e('No', '
|
145 |
</li>
|
146 |
</ul>
|
147 |
</td>
|
148 |
</tr>
|
149 |
|
150 |
<tr>
|
151 |
-
<td><label for="<?php echo ($f['id']); ?>-author_id"><?php _e("Feed Author", '
|
152 |
<td>
|
153 |
<?php
|
154 |
if (!$this->is_key_valid) {
|
@@ -167,16 +167,16 @@ wp_dropdown_users($args);
|
|
167 |
|
168 |
<tr>
|
169 |
<td>
|
170 |
-
<label for="<?php echo ($f['id']); ?>-automatic_import_categories"><?php _e('Automatic import of Categories ?', "
|
171 |
|
172 |
</td>
|
173 |
<td>
|
174 |
<ul class="radiolist">
|
175 |
<li>
|
176 |
-
<label><input type="radio" id="<?php echo($f['id']); ?>-automatic_import_categories_true" name="<?php echo($f['id']); ?>-automatic_import_categories" value="true" <?php echo($f['automatic_import_categories'] == 'true' ? 'checked="checked"' : ''); ?> /> <?php _e('Yes', '
|
177 |
</li>
|
178 |
<li>
|
179 |
-
<label><input type="radio" id="<?php echo($f['id']); ?>-automatic_import_categories_false" name="<?php echo($f['id']); ?>-automatic_import_categories" value="false" <?php echo($f['automatic_import_categories'] == 'false' || $f['automatic_import_categories'] == '' ? 'checked="checked"' : ''); ?> /> <?php _e('No', '
|
180 |
</li>
|
181 |
</ul>
|
182 |
</td>
|
@@ -184,7 +184,7 @@ wp_dropdown_users($args);
|
|
184 |
|
185 |
|
186 |
<tr>
|
187 |
-
<td><label for=""><?php _e("Category", '
|
188 |
<td>
|
189 |
<?php
|
190 |
$rss_post_pi_admin = new rssPIAdmin();
|
@@ -210,7 +210,7 @@ wp_dropdown_users($args);
|
|
210 |
</tr>
|
211 |
|
212 |
<tr>
|
213 |
-
<td><label for=""><?php _e("Tags", '
|
214 |
<td>
|
215 |
<?php
|
216 |
$disabled = '';
|
@@ -230,10 +230,10 @@ wp_dropdown_users($args);
|
|
230 |
</tr>
|
231 |
<tr>
|
232 |
<td>
|
233 |
-
<label for="<?php echo ($f['id']); ?>-keywords"><?php _e('Keywords Filter', '
|
234 |
-
<p class="description"><?php _e('Enter keywords and/or regex, separated by commas', "
|
235 |
<p class="description">
|
236 |
-
<?php _e('Only posts matching these keywords/regex will be imported', "
|
237 |
</p>
|
238 |
</td>
|
239 |
<td>
|
@@ -251,21 +251,21 @@ wp_dropdown_users($args);
|
|
251 |
</tr>
|
252 |
|
253 |
<tr>
|
254 |
-
<td><label for=""><?php _e("Strip html tags", '
|
255 |
<td>
|
256 |
<ul class="radiolist">
|
257 |
<li>
|
258 |
-
<label><input type="radio" id="<?php echo($f['id']); ?>-strip_html" name="<?php echo($f['id']); ?>-strip_html" value="true" <?php echo($f['strip_html'] == 'true' ? 'checked="checked"' : ''); ?> /> <?php _e('Yes', '
|
259 |
</li>
|
260 |
<li>
|
261 |
-
<label><input type="radio" id="<?php echo($f['id']); ?>-strip_html" name="<?php echo($f['id']); ?>-strip_html" value="false" <?php echo($f['strip_html'] == 'false' ? 'checked="checked"' : ''); ?> /> <?php _e('No', '
|
262 |
</li>
|
263 |
</ul>
|
264 |
</td>
|
265 |
</tr>
|
266 |
<tr>
|
267 |
<td><input type="hidden" name="id" value="<?php echo($f['id']); ?>" /></td>
|
268 |
-
<td><a id="close-edit-table-<?php echo($f['id']); ?>" class="button button-large toggle-edit" data-target="<?php echo ($f['id']); ?>"><?php _e('Close', '
|
269 |
</tr>
|
270 |
</table>
|
271 |
|
61 |
<td class="rss_pi-feed_name">
|
62 |
<strong><a href="#" class="toggle-edit" data-target="<?php echo ($f['id']); ?>"><span class="field-name"><?php echo esc_html(stripslashes($f['name'])); ?></span></a></strong>
|
63 |
<div class="row-options">
|
64 |
+
<a href="#" class="toggle-edit" data-target="<?php echo ($f['id']); ?>"><?php _e('Edit', 'rss-post-importer'); ?></a> |
|
65 |
+
<a href="#" class="delete-row" data-target="<?php echo ($f['id']); ?>"><?php _e('Delete', 'rss-post-importer'); ?></a>
|
66 |
<?php
|
67 |
if($f['feed_status']=="active"){ ?>
|
68 |
+
| <a href="#" class="status-row" data-action="pause" data-target="<?php echo ($f['id']); ?>"><?php _e('Pause', 'rss-post-importer'); ?></a>
|
69 |
<?php }elseif($f['feed_status']=="pause"){ ?>
|
70 |
+
| <a href="#" class="status-row" data-action="Enable_Feed" data-target="<?php echo ($f['id']); ?>"><?php _e('Enable Feed', 'rss-post-importer'); ?></a>
|
71 |
<?php } ?>
|
72 |
|
73 |
</div>
|
80 |
<td colspan="4">
|
81 |
<table class="widefat edit-table">
|
82 |
<tr>
|
83 |
+
<td><label for="<?php echo ($f['id']); ?>-name"><?php _e("Feed name", 'rss-post-importer'); ?></label></td>
|
84 |
<td>
|
85 |
<input type="text" class="field-name" name="<?php echo ($f['id']); ?>-name" id="<?php echo ($f['id']); ?>-name" value="<?php echo esc_attr(stripslashes($f['name'])); ?>" />
|
86 |
</td>
|
87 |
</tr>
|
88 |
<tr>
|
89 |
<td>
|
90 |
+
<label for="<?php echo ($f['id']); ?>-url"><?php _e("Feed url", 'rss-post-importer'); ?></label>
|
91 |
<p class="description">e.g. "http://news.google.com/?output=rss"</p>
|
92 |
</td>
|
93 |
<td><input type="text" class="field-url" name="<?php echo ($f['id']); ?>-url" id="<?php echo ($f['id']); ?>-url" value="<?php echo esc_attr(stripslashes($f['url'])); ?>" /></td>
|
94 |
</tr>
|
95 |
<tr>
|
96 |
+
<td><label for="<?php echo ($f['id']); ?>-max_posts"><?php _e("Max posts / import", 'rss-post-importer'); ?></label></td>
|
97 |
<td><input type="number" class="field-max_posts" name="<?php echo ($f['id']); ?>-max_posts" id="<?php echo ($f['id']); ?>-max_posts" value="<?php echo ($f['max_posts']); ?>" min="1" max="100" /></td>
|
98 |
</tr>
|
99 |
<tr>
|
100 |
<td>
|
101 |
+
<label for="<?php echo ($f['id']); ?>-nofollow_outbound"><?php _e('Nofollow option for all outbound links?', "rss-post-importer"); ?></label>
|
102 |
+
<p class="description"><?php _e('Add rel="nofollow" to all outbounded links.', "rss-post-importer"); ?></p>
|
103 |
</td>
|
104 |
<td>
|
105 |
<ul class="radiolist">
|
106 |
<li>
|
107 |
+
<label><input type="radio" id="<?php echo($f['id']); ?>-nofollow_outbound_true" name="<?php echo($f['id']); ?>-nofollow_outbound" value="true" <?php echo($f['nofollow_outbound'] == 'true' ? 'checked="checked"' : ''); ?> /> <?php _e('Yes', 'rss-post-importer'); ?></label>
|
108 |
</li>
|
109 |
<li>
|
110 |
+
<label><input type="radio" id="<?php echo($f['id']); ?>-nofollow_outbound_false" name="<?php echo($f['id']); ?>-nofollow_outbound" value="false" <?php echo($f['nofollow_outbound'] == 'false' || $f['nofollow_outbound'] == '' ? 'checked="checked"' : ''); ?> /> <?php _e('No', 'rss-post-importer'); ?></label>
|
111 |
</li>
|
112 |
</ul>
|
113 |
</td>
|
115 |
|
116 |
<tr>
|
117 |
<td>
|
118 |
+
<label for="<?php echo ($f['id']); ?>-canonical_urls"><?php _e('SEO canonical URLs ?', "rss-post-importer"); ?></label>
|
119 |
+
<!--<p class="description"><?php _e('Add rel="nofollow" to all outbounded links.', "rss-post-importer"); ?></p>-->
|
120 |
</td>
|
121 |
<td>
|
122 |
<ul class="radiolist">
|
123 |
<li>
|
124 |
+
<label><input type="radio" id="<?php echo($f['id']); ?>-canonical_urls_myblog" name="<?php echo($f['id']); ?>-canonical_urls" value="my_blog" <?php echo($f['canonical_urls'] == 'my_blog' || $f['canonical_urls'] == '' ? 'checked="checked"' : ''); ?> /> <?php _e('My Blog URLs', 'rss-post-importer'); ?></label>
|
125 |
</li>
|
126 |
<li>
|
127 |
+
<label><input type="radio" id="<?php echo($f['id']); ?>-canonical_urls_sourceblog" name="<?php echo($f['id']); ?>-canonical_urls" value="source_blog" <?php echo($f['canonical_urls'] == 'source_blog' ? 'checked="checked"' : ''); ?> /> <?php _e('Source Blog URLs', 'rss-post-importer'); ?></label>
|
128 |
</li>
|
129 |
</ul>
|
130 |
</td>
|
132 |
|
133 |
<tr>
|
134 |
<td>
|
135 |
+
<label for="<?php echo ($f['id']); ?>-automatic_import_author"><?php _e('Automatic import of Authors ?', "rss-post-importer"); ?></label>
|
136 |
|
137 |
</td>
|
138 |
<td>
|
139 |
<ul class="radiolist">
|
140 |
<li>
|
141 |
+
<label><input type="radio" id="<?php echo($f['id']); ?>-automatic_import_author_true" name="<?php echo($f['id']); ?>-automatic_import_author" value="true" <?php echo($f['automatic_import_author'] == 'true' ? 'checked="checked"' : ''); ?> /> <?php _e('Yes', 'rss-post-importer'); ?></label>
|
142 |
</li>
|
143 |
<li>
|
144 |
+
<label><input type="radio" id="<?php echo($f['id']); ?>-automatic_import_author_false" name="<?php echo($f['id']); ?>-automatic_import_author" value="false" <?php echo($f['automatic_import_author'] == 'false' || $f['automatic_import_author'] == '' ? 'checked="checked"' : ''); ?> /> <?php _e('No', 'rss-post-importer'); ?></label>
|
145 |
</li>
|
146 |
</ul>
|
147 |
</td>
|
148 |
</tr>
|
149 |
|
150 |
<tr>
|
151 |
+
<td><label for="<?php echo ($f['id']); ?>-author_id"><?php _e("Feed Author", 'rss-post-importer'); ?></label></td>
|
152 |
<td>
|
153 |
<?php
|
154 |
if (!$this->is_key_valid) {
|
167 |
|
168 |
<tr>
|
169 |
<td>
|
170 |
+
<label for="<?php echo ($f['id']); ?>-automatic_import_categories"><?php _e('Automatic import of Categories ?', "rss-post-importer"); ?></label>
|
171 |
|
172 |
</td>
|
173 |
<td>
|
174 |
<ul class="radiolist">
|
175 |
<li>
|
176 |
+
<label><input type="radio" id="<?php echo($f['id']); ?>-automatic_import_categories_true" name="<?php echo($f['id']); ?>-automatic_import_categories" value="true" <?php echo($f['automatic_import_categories'] == 'true' ? 'checked="checked"' : ''); ?> /> <?php _e('Yes', 'rss-post-importer'); ?></label>
|
177 |
</li>
|
178 |
<li>
|
179 |
+
<label><input type="radio" id="<?php echo($f['id']); ?>-automatic_import_categories_false" name="<?php echo($f['id']); ?>-automatic_import_categories" value="false" <?php echo($f['automatic_import_categories'] == 'false' || $f['automatic_import_categories'] == '' ? 'checked="checked"' : ''); ?> /> <?php _e('No', 'rss-post-importer'); ?></label>
|
180 |
</li>
|
181 |
</ul>
|
182 |
</td>
|
184 |
|
185 |
|
186 |
<tr>
|
187 |
+
<td><label for=""><?php _e("Category", 'rss-post-importer'); ?></label></td>
|
188 |
<td>
|
189 |
<?php
|
190 |
$rss_post_pi_admin = new rssPIAdmin();
|
210 |
</tr>
|
211 |
|
212 |
<tr>
|
213 |
+
<td><label for=""><?php _e("Tags", 'rss-post-importer'); ?></label></td>
|
214 |
<td>
|
215 |
<?php
|
216 |
$disabled = '';
|
230 |
</tr>
|
231 |
<tr>
|
232 |
<td>
|
233 |
+
<label for="<?php echo ($f['id']); ?>-keywords"><?php _e('Keywords Filter', 'rss-post-importer'); ?></label>
|
234 |
+
<p class="description"><?php _e('Enter keywords and/or regex, separated by commas', "rss-post-importer"); ?></p>
|
235 |
<p class="description">
|
236 |
+
<?php _e('Only posts matching these keywords/regex will be imported', "rss-post-importer"); ?>
|
237 |
</p>
|
238 |
</td>
|
239 |
<td>
|
251 |
</tr>
|
252 |
|
253 |
<tr>
|
254 |
+
<td><label for=""><?php _e("Strip html tags", 'rss-post-importer'); ?></label></td>
|
255 |
<td>
|
256 |
<ul class="radiolist">
|
257 |
<li>
|
258 |
+
<label><input type="radio" id="<?php echo($f['id']); ?>-strip_html" name="<?php echo($f['id']); ?>-strip_html" value="true" <?php echo($f['strip_html'] == 'true' ? 'checked="checked"' : ''); ?> /> <?php _e('Yes', 'rss-post-importer'); ?></label>
|
259 |
</li>
|
260 |
<li>
|
261 |
+
<label><input type="radio" id="<?php echo($f['id']); ?>-strip_html" name="<?php echo($f['id']); ?>-strip_html" value="false" <?php echo($f['strip_html'] == 'false' ? 'checked="checked"' : ''); ?> /> <?php _e('No', 'rss-post-importer'); ?></label>
|
262 |
</li>
|
263 |
</ul>
|
264 |
</td>
|
265 |
</tr>
|
266 |
<tr>
|
267 |
<td><input type="hidden" name="id" value="<?php echo($f['id']); ?>" /></td>
|
268 |
+
<td><a id="close-edit-table-<?php echo($f['id']); ?>" class="button button-large toggle-edit" data-target="<?php echo ($f['id']); ?>"><?php _e('Close', 'rss-post-importer'); ?></a></td>
|
269 |
</tr>
|
270 |
</table>
|
271 |
|
app/templates/feed-table.php
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
<table class="widefat rss_pi-table" id="rss_pi-feed-table">
|
2 |
<thead>
|
3 |
<tr>
|
4 |
-
<th><?php _e("Feed name", '
|
5 |
-
<th><?php _e("Feed url", '
|
6 |
-
<th><?php _e("Max posts / import", '
|
7 |
-
<!--<th><?php _e("Category", '
|
8 |
</tr>
|
9 |
</thead>
|
10 |
<tbody class="rss-rows">
|
@@ -21,7 +21,7 @@
|
|
21 |
?>
|
22 |
<tr>
|
23 |
<td colspan="4" class="empty_table">
|
24 |
-
<?php _e('You haven\'t specified any feeds to import yet, why don\'t you <a href="#" class="add-row">add one now</a>?', "
|
25 |
</td>
|
26 |
</tr>
|
27 |
<?php
|
@@ -32,7 +32,7 @@
|
|
32 |
<tr>
|
33 |
<td colspan="4">
|
34 |
<a href="#" class="button button-large button-primary add-row">
|
35 |
-
<?php _e('Add new feed', "
|
36 |
</a>
|
37 |
<input type="hidden" name="ids" id="ids" value="<?php echo(join($saved_ids, ',')); ?>" />
|
38 |
<input type="hidden" id="sts_id" name="sts_id" value="" />
|
1 |
<table class="widefat rss_pi-table" id="rss_pi-feed-table">
|
2 |
<thead>
|
3 |
<tr>
|
4 |
+
<th><?php _e("Feed name", 'rss-post-importer'); ?></th>
|
5 |
+
<th><?php _e("Feed url", 'rss-post-importer'); ?></th>
|
6 |
+
<th><?php _e("Max posts / import", 'rss-post-importer'); ?></th>
|
7 |
+
<!--<th><?php _e("Category", 'rss-post-importer'); ?></th>-->
|
8 |
</tr>
|
9 |
</thead>
|
10 |
<tbody class="rss-rows">
|
21 |
?>
|
22 |
<tr>
|
23 |
<td colspan="4" class="empty_table">
|
24 |
+
<?php _e('You haven\'t specified any feeds to import yet, why don\'t you <a href="#" class="add-row">add one now</a>?', "rss-post-importer"); ?>
|
25 |
</td>
|
26 |
</tr>
|
27 |
<?php
|
32 |
<tr>
|
33 |
<td colspan="4">
|
34 |
<a href="#" class="button button-large button-primary add-row">
|
35 |
+
<?php _e('Add new feed', "rss-post-importer"); ?>
|
36 |
</a>
|
37 |
<input type="hidden" name="ids" id="ids" value="<?php echo(join($saved_ids, ',')); ?>" />
|
38 |
<input type="hidden" id="sts_id" name="sts_id" value="" />
|
app/templates/log.php
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
<div class="wrap">
|
2 |
-
<h2><?php _e("Rss Post Importer Log", '
|
3 |
<div id="poststuff">
|
4 |
<div id="post-body" class="metabox-holder columns-2">
|
5 |
<div id="postbox-container-2" class="postbox-container">
|
6 |
<p class="large">
|
7 |
-
<?php printf(__("If your imports are not running regularly according to your settings you might need to set up a scheduled task, there are several ways to do this, most convenient is to set up a scheduled task on your server and simply ask it to hit your sites url (%s) regularly, there are also external sites that offer the same service, such as:", "
|
8 |
<ul>
|
9 |
<li><a href="http://www.mywebcron.com" target="_blank">www.mywebcron.com</a></li>
|
10 |
<li><a href="http://www.onlinecronjobs.com" target="_blank">www.onlinecronjobs.com</a></li>
|
@@ -12,8 +12,8 @@
|
|
12 |
<li><a href="http://cronless.com" target="_blank">cronless.com</a></li>
|
13 |
</ul>
|
14 |
</p>
|
15 |
-
<a href="#" class="button button-large button-primary show-main-ui"><?php _e("Ok, all done", "
|
16 |
-
<a href="#" class="button button-large button-warning clear-log"><?php _e("Clear log", "
|
17 |
<div class="log">
|
18 |
<code><?php echo(wpautop($log, true)); ?></code>
|
19 |
</div>
|
1 |
<div class="wrap">
|
2 |
+
<h2><?php _e("Rss Post Importer Log", 'rss-post-importer'); ?></h2>
|
3 |
<div id="poststuff">
|
4 |
<div id="post-body" class="metabox-holder columns-2">
|
5 |
<div id="postbox-container-2" class="postbox-container">
|
6 |
<p class="large">
|
7 |
+
<?php printf(__("If your imports are not running regularly according to your settings you might need to set up a scheduled task, there are several ways to do this, most convenient is to set up a scheduled task on your server and simply ask it to hit your sites url (%s) regularly, there are also external sites that offer the same service, such as:", "rss-post-importer"), get_site_url()); ?>
|
8 |
<ul>
|
9 |
<li><a href="http://www.mywebcron.com" target="_blank">www.mywebcron.com</a></li>
|
10 |
<li><a href="http://www.onlinecronjobs.com" target="_blank">www.onlinecronjobs.com</a></li>
|
12 |
<li><a href="http://cronless.com" target="_blank">cronless.com</a></li>
|
13 |
</ul>
|
14 |
</p>
|
15 |
+
<a href="#" class="button button-large button-primary show-main-ui"><?php _e("Ok, all done", "rss-post-importer"); ?></a>
|
16 |
+
<a href="#" class="button button-large button-warning clear-log"><?php _e("Clear log", "rss-post-importer"); ?></a>
|
17 |
<div class="log">
|
18 |
<code><?php echo(wpautop($log, true)); ?></code>
|
19 |
</div>
|
app/templates/settings-table.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<table class="widefat rss_pi-table" id="rss_pi-settings-table">
|
2 |
<thead>
|
3 |
<tr>
|
4 |
-
<th colspan="5"><?php _e('Settings', '
|
5 |
</tr>
|
6 |
</thead>
|
7 |
<tbody class="setting-rows">
|
@@ -10,9 +10,9 @@
|
|
10 |
<table class="widefat edit-table">
|
11 |
<tr>
|
12 |
<td>
|
13 |
-
<label for="frequency"><?php _e('Frequency', "
|
14 |
-
<p class="description"><?php _e('How often will the import run.', "
|
15 |
-
<p class="description"><?php _e('Custom Frequency in minutes only.', "
|
16 |
</td>
|
17 |
<td>
|
18 |
<?php
|
@@ -34,7 +34,7 @@
|
|
34 |
<?php endif;
|
35 |
endforeach; ?>
|
36 |
|
37 |
-
<option value="custom_frequency" <?php if ($this->options['settings']['custom_frequency'] == "true"){ echo('selected="selected"');} ?>><?php _e('Custom frequency', "
|
38 |
</select>
|
39 |
|
40 |
|
@@ -45,10 +45,10 @@
|
|
45 |
</tr>
|
46 |
<tr>
|
47 |
<td>
|
48 |
-
<label for="feeds_api_key"><?php _e('Full Text RSS Feed API Key', "
|
49 |
<?php if ( ! $this->is_key_valid ) : ?>
|
50 |
<p class="description">
|
51 |
-
<?php _e('Boost Your traffic with Full RSS Content - ', "
|
52 |
Request a Free 14 Days <a href="http://www.feedsapi.com/?utm_source=rsspi-full-rss-key-here" target="_blank"> Full RSS Key Here !</a>
|
53 |
</p>
|
54 |
<?php endif; ?>
|
@@ -61,10 +61,10 @@
|
|
61 |
|
62 |
<tr>
|
63 |
<td>
|
64 |
-
<label for="post_template"><?php _e('Template', '
|
65 |
-
<p class="description"><?php _e('This is how the post will be formatted.', "
|
66 |
<p class="description">
|
67 |
-
<?php _e('Available tags:', "
|
68 |
<dl>
|
69 |
<dt><code>{$content}</code></dt>
|
70 |
<dt><code>{$permalink}</code></dt>
|
@@ -89,10 +89,10 @@
|
|
89 |
</tr>
|
90 |
<tr>
|
91 |
<td>
|
92 |
-
<label for="post_template"><?php _e('Keywords Filter', '
|
93 |
-
<p class="description"><?php _e('Enter keywords and/or regex, separated by commas', "
|
94 |
<p class="description">
|
95 |
-
<?php _e('Only posts matching these keywords/regex will be imported', "
|
96 |
</p>
|
97 |
</td>
|
98 |
<td>
|
@@ -109,7 +109,7 @@
|
|
109 |
</td>
|
110 |
</tr>
|
111 |
<tr>
|
112 |
-
<td><label for="post_status"><?php _e('Post status', "
|
113 |
<td>
|
114 |
|
115 |
<select name="post_status" id="post_status">
|
@@ -129,7 +129,7 @@
|
|
129 |
</td>
|
130 |
</tr>
|
131 |
<tr>
|
132 |
-
<td><?php _e('Author', '
|
133 |
<td>
|
134 |
<?php
|
135 |
$args = array(
|
@@ -142,86 +142,86 @@
|
|
142 |
</td>
|
143 |
</tr>
|
144 |
<tr>
|
145 |
-
<td><?php _e('Allow comments', "
|
146 |
<td>
|
147 |
<ul class="radiolist">
|
148 |
<li>
|
149 |
-
<label><input type="radio" id="allow_comments_open" name="allow_comments" value="open" <?php echo($this->options['settings']['allow_comments'] == 'open' ? 'checked="checked"' : ''); ?> /> <?php _e('Yes', '
|
150 |
</li>
|
151 |
<li>
|
152 |
-
<label><input type="radio" id="allow_comments_false" name="allow_comments" value="false" <?php echo($this->options['settings']['allow_comments'] == 'false' ? 'checked="checked"' : ''); ?> /> <?php _e('No', '
|
153 |
</li>
|
154 |
</ul>
|
155 |
</td>
|
156 |
</tr>
|
157 |
<tr>
|
158 |
<td>
|
159 |
-
<?php _e('Block search indexing?', "
|
160 |
-
<p class="description"><?php _e('Prevent your content from appearing in search results.', "
|
161 |
</td>
|
162 |
<td>
|
163 |
<ul class="radiolist">
|
164 |
<li>
|
165 |
-
<label><input type="radio" id="block_indexing_true" name="block_indexing" value="true" <?php echo($this->options['settings']['block_indexing'] == 'true' ? 'checked="checked"' : ''); ?> /> <?php _e('Yes', '
|
166 |
</li>
|
167 |
<li>
|
168 |
-
<label><input type="radio" id="block_indexing_false" name="block_indexing" value="false" <?php echo($this->options['settings']['block_indexing'] == 'false' || $this->options['settings']['block_indexing'] == '' ? 'checked="checked"' : ''); ?> /> <?php _e('No', '
|
169 |
</li>
|
170 |
</ul>
|
171 |
</td>
|
172 |
</tr>
|
173 |
<tr>
|
174 |
<td>
|
175 |
-
<?php _e('Nofollow option for all outbound links?', "
|
176 |
-
<p class="description"><?php _e('Add rel="nofollow" to all outbounded links.', "
|
177 |
</td>
|
178 |
<td>
|
179 |
<ul class="radiolist">
|
180 |
<li>
|
181 |
-
<label><input type="radio" id="nofollow_outbound_true" name="nofollow_outbound" value="true" <?php echo($this->options['settings']['nofollow_outbound'] == 'true' ? 'checked="checked"' : ''); ?> /> <?php _e('Yes', '
|
182 |
</li>
|
183 |
<li>
|
184 |
-
<label><input type="radio" id="nofollow_outbound_false" name="nofollow_outbound" value="false" <?php echo($this->options['settings']['nofollow_outbound'] == 'false' || $this->options['settings']['nofollow_outbound'] == '' ? 'checked="checked"' : ''); ?> /> <?php _e('No', '
|
185 |
</li>
|
186 |
</ul>
|
187 |
</td>
|
188 |
</tr>
|
189 |
<tr>
|
190 |
<td>
|
191 |
-
<?php _e('Enable logging?', "
|
192 |
-
<p class="description"><?php _e('The logfile can be found <a href="#" class="load-log">here</a>.', "
|
193 |
</td>
|
194 |
<td>
|
195 |
<ul class="radiolist">
|
196 |
<li>
|
197 |
-
<label><input type="radio" id="enable_logging_true" name="enable_logging" value="true" <?php echo($this->options['settings']['enable_logging'] == 'true' ? 'checked="checked"' : ''); ?> /> <?php _e('Yes', '
|
198 |
</li>
|
199 |
<li>
|
200 |
-
<label><input type="radio" id="enable_logging_false" name="enable_logging" value="false" <?php echo($this->options['settings']['enable_logging'] == 'false' || $this->options['settings']['enable_logging'] == '' ? 'checked="checked"' : ''); ?> /> <?php _e('No', '
|
201 |
</li>
|
202 |
</ul>
|
203 |
</td>
|
204 |
</tr>
|
205 |
<tr>
|
206 |
<td>
|
207 |
-
<?php _e('Download and save images locally?', "
|
208 |
-
<p class="description"><?php _e('Images in the feeds will be downloaded and saved in the WordPress media.', "
|
209 |
</td>
|
210 |
<td>
|
211 |
<ul class="radiolist">
|
212 |
<li>
|
213 |
-
<label><input type="radio" id="import_images_locally_true" name="import_images_locally" value="true" <?php echo($this->options['settings']['import_images_locally'] == 'true' ? 'checked="checked"' : ''); ?> /> <?php _e('Yes', '
|
214 |
</li>
|
215 |
<li>
|
216 |
-
<label><input type="radio" id="import_images_locally_false" name="import_images_locally" value="false" <?php echo($this->options['settings']['import_images_locally'] == 'false' || $this->options['settings']['enable_logging'] == '' ? 'checked="checked"' : ''); ?> /> <?php _e('No', '
|
217 |
</li>
|
218 |
</ul>
|
219 |
</td>
|
220 |
</tr>
|
221 |
<tr>
|
222 |
<td>
|
223 |
-
<?php _e('Disable the featured image?', "
|
224 |
-
<p class="description"><?php _e('Don\'t set a featured image for the imported posts.', "
|
225 |
</td>
|
226 |
<td>
|
227 |
<ul class="radiolist">
|
@@ -229,15 +229,15 @@
|
|
229 |
<label><input type="radio" id="disable_thumbnail_true" name="disable_thumbnail" value="true" <?php echo($this->options['settings']['disable_thumbnail'] == 'true' ? 'checked="checked"' : ''); ?> /> <?php _e('Yes', 'rss_pi'); ?></label>
|
230 |
</li>
|
231 |
<li>
|
232 |
-
<label><input type="radio" id="disable_thumbnail_false" name="disable_thumbnail" value="false" <?php echo($this->options['settings']['disable_thumbnail'] == 'false' || $this->options['settings']['disable_thumbnail'] == '' ? 'checked="checked"' : ''); ?> /> <?php _e('No', '
|
233 |
</li>
|
234 |
</ul>
|
235 |
</td>
|
236 |
</tr>
|
237 |
<tr>
|
238 |
<td>
|
239 |
-
<?php _e('Import already deleted posts?', "
|
240 |
-
<p class="description"><?php _e('Allow imported and later deleted posts to be imported once again.', "
|
241 |
</td>
|
242 |
<td>
|
243 |
<?php
|
@@ -249,10 +249,10 @@
|
|
249 |
?>
|
250 |
<ul class="radiolist">
|
251 |
<li>
|
252 |
-
<label class="tooltips"><input type="radio" id="cache_deleted_true" name="cache_deleted" value="false" <?php echo($this->options['settings']['cache_deleted'] == 'false' ? 'checked="checked"' : ''); ?><?php echo $disabled; ?> /> <?php _e('Yes', '
|
253 |
</li>
|
254 |
<li>
|
255 |
-
<label><input type="radio" id="cache_deleted_false" name="cache_deleted" value="true" <?php echo($this->options['settings']['cache_deleted'] == 'true' || $this->options['settings']['cache_deleted'] == '' ? 'checked="checked"' : ''); ?><?php echo $disabled; ?> /> <?php _e('No', '
|
256 |
</li>
|
257 |
</ul>
|
258 |
</td>
|
@@ -260,8 +260,8 @@
|
|
260 |
<?php if ( isset($this->options['upgraded']['deleted_posts']) ) { ?>
|
261 |
<tr>
|
262 |
<td>
|
263 |
-
<?php _e('Purge deleted posts cache', "
|
264 |
-
<p class="description"><?php _e('This option will allow you to reset the deleted posts cache and re-import posts you have deleted in the past.', "
|
265 |
</td>
|
266 |
<td>
|
267 |
<?php
|
@@ -272,15 +272,15 @@
|
|
272 |
}
|
273 |
?>
|
274 |
<?php $rss_pi_deleted_posts = count( get_option( 'rss_pi_deleted_posts', array() ) ); ?>
|
275 |
-
<p><?php printf( _n('Cached: <strong>%d</strong> deleted post', 'Cached: <strong>%d</strong> deleted posts', $rss_pi_deleted_posts, '
|
276 |
<input type="submit" value="Purge Cache" name="purge_deleted_cache" class="button button-primary button-large"<?php echo $disabled; ?> />
|
277 |
</td>
|
278 |
</tr>
|
279 |
<?php } ?>
|
280 |
<tr>
|
281 |
<td>
|
282 |
-
<?php _e('Export and backup your Feeds and setting as CSV File', "
|
283 |
-
<p class="description"><?php _e('This option will help you download a csv file with all your feeds setting , you can upload it back later.', "
|
284 |
</td>
|
285 |
<td>
|
286 |
<?php
|
@@ -295,7 +295,7 @@
|
|
295 |
</tr>
|
296 |
<tr>
|
297 |
<td>
|
298 |
-
<?php _e('Import your CSV file with your feeds\' settings', "
|
299 |
<p class="description"><?php _e('Create and Import a CSV file with your Feeds\' Setting with the following Structure and heading:<br/>
|
300 |
<br/>
|
301 |
url , name, max_posts, author_id, category_id, tags, keywords, strip_html<br/>
|
@@ -307,7 +307,7 @@ author_id = your author ID, this is a number<br/>
|
|
307 |
category_id = the Category IDs - number(s) separated with comma (,)<br/>
|
308 |
tags = the Tag IDs - number(s) separated with comma (,)<br/>
|
309 |
keywords = the filter keywords - string(s) separated with comma (,)<br/>
|
310 |
-
strip_html = strip html tags - "true" or "false"', "
|
311 |
</td>
|
312 |
<td>
|
313 |
<?php
|
@@ -322,8 +322,8 @@ strip_html = strip html tags - "true" or "false"', "rss_pi"); ?></p>
|
|
322 |
</tr>
|
323 |
<tr>
|
324 |
<td>
|
325 |
-
<?php _e('Export and backup your Feeds as OPML File', "
|
326 |
-
<p class="description"><?php _e('This option will help you download an OPML file with all your feeds so you can upload it back later.', "
|
327 |
</td>
|
328 |
<td>
|
329 |
<?php
|
@@ -338,8 +338,8 @@ strip_html = strip html tags - "true" or "false"', "rss_pi"); ?></p>
|
|
338 |
</tr>
|
339 |
<tr>
|
340 |
<td>
|
341 |
-
<?php _e('Import your OPML file with your feeds', "
|
342 |
-
<p class="description"><?php _e('Create and Import an OPML file with your Feeds', "
|
343 |
</td>
|
344 |
<td>
|
345 |
<?php
|
@@ -355,19 +355,19 @@ strip_html = strip html tags - "true" or "false"', "rss_pi"); ?></p>
|
|
355 |
|
356 |
<tr>
|
357 |
<td>
|
358 |
-
<?php _e('Social Media Optimization and Open Graph', "
|
359 |
-
<p class="description"><?php _e('Social Media and Open Graph optimization', "
|
360 |
</td>
|
361 |
<td>
|
362 |
<ul class="radiolist">
|
363 |
<li>
|
364 |
-
<label><label><input type="checkbox" name="tw_show" id="tw_show" value="1" <?php echo($this->options['settings']['tw_show'] == '1' ? 'checked="checked"' : ''); ?> /> <?php _e('Twitter', '
|
365 |
</li>
|
366 |
<li>
|
367 |
-
<label><label><input type="checkbox" name="gg_show" id="gg_show" value="1" <?php echo($this->options['settings']['gg_show'] == '1' ? 'checked="checked"' : ''); ?> /> <?php _e('Google+', '
|
368 |
</li>
|
369 |
<li>
|
370 |
-
<label><label><input type="checkbox" name="og_show" id="og_show" value="1" <?php echo($this->options['settings']['og_show'] == '1' ? 'checked="checked"' : ''); ?> /> <?php _e('Facebook Opengraph', '
|
371 |
</li>
|
372 |
</ul>
|
373 |
</td>
|
1 |
<table class="widefat rss_pi-table" id="rss_pi-settings-table">
|
2 |
<thead>
|
3 |
<tr>
|
4 |
+
<th colspan="5"><?php _e('Settings', 'rss-post-importer'); ?></th>
|
5 |
</tr>
|
6 |
</thead>
|
7 |
<tbody class="setting-rows">
|
10 |
<table class="widefat edit-table">
|
11 |
<tr>
|
12 |
<td>
|
13 |
+
<label for="frequency"><?php _e('Frequency', "rss-post-importer"); ?></label>
|
14 |
+
<p class="description"><?php _e('How often will the import run.', "rss-post-importer"); ?></p>
|
15 |
+
<p class="description"><?php _e('Custom Frequency in minutes only.', "rss-post-importer"); ?></p>
|
16 |
</td>
|
17 |
<td>
|
18 |
<?php
|
34 |
<?php endif;
|
35 |
endforeach; ?>
|
36 |
|
37 |
+
<option value="custom_frequency" <?php if ($this->options['settings']['custom_frequency'] == "true"){ echo('selected="selected"');} ?>><?php _e('Custom frequency', "rss-post-importer"); ?></option>
|
38 |
</select>
|
39 |
|
40 |
|
45 |
</tr>
|
46 |
<tr>
|
47 |
<td>
|
48 |
+
<label for="feeds_api_key"><?php _e('Full Text RSS Feed API Key', "rss-post-importer"); ?></label>
|
49 |
<?php if ( ! $this->is_key_valid ) : ?>
|
50 |
<p class="description">
|
51 |
+
<?php _e('Boost Your traffic with Full RSS Content - ', "rss-post-importer"); ?>
|
52 |
Request a Free 14 Days <a href="http://www.feedsapi.com/?utm_source=rsspi-full-rss-key-here" target="_blank"> Full RSS Key Here !</a>
|
53 |
</p>
|
54 |
<?php endif; ?>
|
61 |
|
62 |
<tr>
|
63 |
<td>
|
64 |
+
<label for="post_template"><?php _e('Template', 'rss-post-importer'); ?></label>
|
65 |
+
<p class="description"><?php _e('This is how the post will be formatted.', "rss-post-importer"); ?></p>
|
66 |
<p class="description">
|
67 |
+
<?php _e('Available tags:', "rss-post-importer"); ?>
|
68 |
<dl>
|
69 |
<dt><code>{$content}</code></dt>
|
70 |
<dt><code>{$permalink}</code></dt>
|
89 |
</tr>
|
90 |
<tr>
|
91 |
<td>
|
92 |
+
<label for="post_template"><?php _e('Keywords Filter', 'rss-post-importer'); ?></label>
|
93 |
+
<p class="description"><?php _e('Enter keywords and/or regex, separated by commas', "rss-post-importer"); ?></p>
|
94 |
<p class="description">
|
95 |
+
<?php _e('Only posts matching these keywords/regex will be imported', "rss-post-importer"); ?>
|
96 |
</p>
|
97 |
</td>
|
98 |
<td>
|
109 |
</td>
|
110 |
</tr>
|
111 |
<tr>
|
112 |
+
<td><label for="post_status"><?php _e('Post status', "rss-post-importer"); ?></label></td>
|
113 |
<td>
|
114 |
|
115 |
<select name="post_status" id="post_status">
|
129 |
</td>
|
130 |
</tr>
|
131 |
<tr>
|
132 |
+
<td><?php _e('Author', 'rss-post-importer'); ?></td>
|
133 |
<td>
|
134 |
<?php
|
135 |
$args = array(
|
142 |
</td>
|
143 |
</tr>
|
144 |
<tr>
|
145 |
+
<td><?php _e('Allow comments', "rss-post-importer"); ?></td>
|
146 |
<td>
|
147 |
<ul class="radiolist">
|
148 |
<li>
|
149 |
+
<label><input type="radio" id="allow_comments_open" name="allow_comments" value="open" <?php echo($this->options['settings']['allow_comments'] == 'open' ? 'checked="checked"' : ''); ?> /> <?php _e('Yes', 'rss-post-importer'); ?></label>
|
150 |
</li>
|
151 |
<li>
|
152 |
+
<label><input type="radio" id="allow_comments_false" name="allow_comments" value="false" <?php echo($this->options['settings']['allow_comments'] == 'false' ? 'checked="checked"' : ''); ?> /> <?php _e('No', 'rss-post-importer'); ?></label>
|
153 |
</li>
|
154 |
</ul>
|
155 |
</td>
|
156 |
</tr>
|
157 |
<tr>
|
158 |
<td>
|
159 |
+
<?php _e('Block search indexing?', "rss-post-importer"); ?>
|
160 |
+
<p class="description"><?php _e('Prevent your content from appearing in search results.', "rss-post-importer"); ?></p>
|
161 |
</td>
|
162 |
<td>
|
163 |
<ul class="radiolist">
|
164 |
<li>
|
165 |
+
<label><input type="radio" id="block_indexing_true" name="block_indexing" value="true" <?php echo($this->options['settings']['block_indexing'] == 'true' ? 'checked="checked"' : ''); ?> /> <?php _e('Yes', 'rss-post-importer'); ?></label>
|
166 |
</li>
|
167 |
<li>
|
168 |
+
<label><input type="radio" id="block_indexing_false" name="block_indexing" value="false" <?php echo($this->options['settings']['block_indexing'] == 'false' || $this->options['settings']['block_indexing'] == '' ? 'checked="checked"' : ''); ?> /> <?php _e('No', 'rss-post-importer'); ?></label>
|
169 |
</li>
|
170 |
</ul>
|
171 |
</td>
|
172 |
</tr>
|
173 |
<tr>
|
174 |
<td>
|
175 |
+
<?php _e('Nofollow option for all outbound links?', "rss-post-importer"); ?>
|
176 |
+
<p class="description"><?php _e('Add rel="nofollow" to all outbounded links.', "rss-post-importer"); ?></p>
|
177 |
</td>
|
178 |
<td>
|
179 |
<ul class="radiolist">
|
180 |
<li>
|
181 |
+
<label><input type="radio" id="nofollow_outbound_true" name="nofollow_outbound" value="true" <?php echo($this->options['settings']['nofollow_outbound'] == 'true' ? 'checked="checked"' : ''); ?> /> <?php _e('Yes', 'rss-post-importer'); ?></label>
|
182 |
</li>
|
183 |
<li>
|
184 |
+
<label><input type="radio" id="nofollow_outbound_false" name="nofollow_outbound" value="false" <?php echo($this->options['settings']['nofollow_outbound'] == 'false' || $this->options['settings']['nofollow_outbound'] == '' ? 'checked="checked"' : ''); ?> /> <?php _e('No', 'rss-post-importer'); ?></label>
|
185 |
</li>
|
186 |
</ul>
|
187 |
</td>
|
188 |
</tr>
|
189 |
<tr>
|
190 |
<td>
|
191 |
+
<?php _e('Enable logging?', "rss-post-importer"); ?>
|
192 |
+
<p class="description"><?php _e('The logfile can be found <a href="#" class="load-log">here</a>.', "rss-post-importer"); ?></p>
|
193 |
</td>
|
194 |
<td>
|
195 |
<ul class="radiolist">
|
196 |
<li>
|
197 |
+
<label><input type="radio" id="enable_logging_true" name="enable_logging" value="true" <?php echo($this->options['settings']['enable_logging'] == 'true' ? 'checked="checked"' : ''); ?> /> <?php _e('Yes', 'rss-post-importer'); ?></label>
|
198 |
</li>
|
199 |
<li>
|
200 |
+
<label><input type="radio" id="enable_logging_false" name="enable_logging" value="false" <?php echo($this->options['settings']['enable_logging'] == 'false' || $this->options['settings']['enable_logging'] == '' ? 'checked="checked"' : ''); ?> /> <?php _e('No', 'rss-post-importer'); ?></label>
|
201 |
</li>
|
202 |
</ul>
|
203 |
</td>
|
204 |
</tr>
|
205 |
<tr>
|
206 |
<td>
|
207 |
+
<?php _e('Download and save images locally?', "rss-post-importer"); ?>
|
208 |
+
<p class="description"><?php _e('Images in the feeds will be downloaded and saved in the WordPress media.', "rss-post-importer"); ?></p>
|
209 |
</td>
|
210 |
<td>
|
211 |
<ul class="radiolist">
|
212 |
<li>
|
213 |
+
<label><input type="radio" id="import_images_locally_true" name="import_images_locally" value="true" <?php echo($this->options['settings']['import_images_locally'] == 'true' ? 'checked="checked"' : ''); ?> /> <?php _e('Yes', 'rss-post-importer'); ?></label>
|
214 |
</li>
|
215 |
<li>
|
216 |
+
<label><input type="radio" id="import_images_locally_false" name="import_images_locally" value="false" <?php echo($this->options['settings']['import_images_locally'] == 'false' || $this->options['settings']['enable_logging'] == '' ? 'checked="checked"' : ''); ?> /> <?php _e('No', 'rss-post-importer'); ?></label>
|
217 |
</li>
|
218 |
</ul>
|
219 |
</td>
|
220 |
</tr>
|
221 |
<tr>
|
222 |
<td>
|
223 |
+
<?php _e('Disable the featured image?', "rss-post-importer"); ?>
|
224 |
+
<p class="description"><?php _e('Don\'t set a featured image for the imported posts.', "rss-post-importer"); ?></p>
|
225 |
</td>
|
226 |
<td>
|
227 |
<ul class="radiolist">
|
229 |
<label><input type="radio" id="disable_thumbnail_true" name="disable_thumbnail" value="true" <?php echo($this->options['settings']['disable_thumbnail'] == 'true' ? 'checked="checked"' : ''); ?> /> <?php _e('Yes', 'rss_pi'); ?></label>
|
230 |
</li>
|
231 |
<li>
|
232 |
+
<label><input type="radio" id="disable_thumbnail_false" name="disable_thumbnail" value="false" <?php echo($this->options['settings']['disable_thumbnail'] == 'false' || $this->options['settings']['disable_thumbnail'] == '' ? 'checked="checked"' : ''); ?> /> <?php _e('No', 'rss-post-importer'); ?></label>
|
233 |
</li>
|
234 |
</ul>
|
235 |
</td>
|
236 |
</tr>
|
237 |
<tr>
|
238 |
<td>
|
239 |
+
<?php _e('Import already deleted posts?', "rss-post-importer"); ?>
|
240 |
+
<p class="description"><?php _e('Allow imported and later deleted posts to be imported once again.', "rss-post-importer"); ?></p>
|
241 |
</td>
|
242 |
<td>
|
243 |
<?php
|
249 |
?>
|
250 |
<ul class="radiolist">
|
251 |
<li>
|
252 |
+
<label class="tooltips"><input type="radio" id="cache_deleted_true" name="cache_deleted" value="false" <?php echo($this->options['settings']['cache_deleted'] == 'false' ? 'checked="checked"' : ''); ?><?php echo $disabled; ?> /> <?php _e('Yes', 'rss-post-importer'); ?></label>
|
253 |
</li>
|
254 |
<li>
|
255 |
+
<label><input type="radio" id="cache_deleted_false" name="cache_deleted" value="true" <?php echo($this->options['settings']['cache_deleted'] == 'true' || $this->options['settings']['cache_deleted'] == '' ? 'checked="checked"' : ''); ?><?php echo $disabled; ?> /> <?php _e('No', 'rss-post-importer'); ?></label>
|
256 |
</li>
|
257 |
</ul>
|
258 |
</td>
|
260 |
<?php if ( isset($this->options['upgraded']['deleted_posts']) ) { ?>
|
261 |
<tr>
|
262 |
<td>
|
263 |
+
<?php _e('Purge deleted posts cache', "rss-post-importer"); ?>
|
264 |
+
<p class="description"><?php _e('This option will allow you to reset the deleted posts cache and re-import posts you have deleted in the past.', "rss-post-importer"); ?></p>
|
265 |
</td>
|
266 |
<td>
|
267 |
<?php
|
272 |
}
|
273 |
?>
|
274 |
<?php $rss_pi_deleted_posts = count( get_option( 'rss_pi_deleted_posts', array() ) ); ?>
|
275 |
+
<p><?php printf( _n('Cached: <strong>%d</strong> deleted post', 'Cached: <strong>%d</strong> deleted posts', $rss_pi_deleted_posts, 'rss-post-importer'), $rss_pi_deleted_posts ); ?></p>
|
276 |
<input type="submit" value="Purge Cache" name="purge_deleted_cache" class="button button-primary button-large"<?php echo $disabled; ?> />
|
277 |
</td>
|
278 |
</tr>
|
279 |
<?php } ?>
|
280 |
<tr>
|
281 |
<td>
|
282 |
+
<?php _e('Export and backup your Feeds and setting as CSV File', "rss-post-importer"); ?>
|
283 |
+
<p class="description"><?php _e('This option will help you download a csv file with all your feeds setting , you can upload it back later.', "rss-post-importer"); ?></p>
|
284 |
</td>
|
285 |
<td>
|
286 |
<?php
|
295 |
</tr>
|
296 |
<tr>
|
297 |
<td>
|
298 |
+
<?php _e('Import your CSV file with your feeds\' settings', "rss-post-importer"); ?>
|
299 |
<p class="description"><?php _e('Create and Import a CSV file with your Feeds\' Setting with the following Structure and heading:<br/>
|
300 |
<br/>
|
301 |
url , name, max_posts, author_id, category_id, tags, keywords, strip_html<br/>
|
307 |
category_id = the Category IDs - number(s) separated with comma (,)<br/>
|
308 |
tags = the Tag IDs - number(s) separated with comma (,)<br/>
|
309 |
keywords = the filter keywords - string(s) separated with comma (,)<br/>
|
310 |
+
strip_html = strip html tags - "true" or "false"', "rss-post-importer"); ?></p>
|
311 |
</td>
|
312 |
<td>
|
313 |
<?php
|
322 |
</tr>
|
323 |
<tr>
|
324 |
<td>
|
325 |
+
<?php _e('Export and backup your Feeds as OPML File', "rss-post-importer"); ?>
|
326 |
+
<p class="description"><?php _e('This option will help you download an OPML file with all your feeds so you can upload it back later.', "rss-post-importer"); ?></p>
|
327 |
</td>
|
328 |
<td>
|
329 |
<?php
|
338 |
</tr>
|
339 |
<tr>
|
340 |
<td>
|
341 |
+
<?php _e('Import your OPML file with your feeds', "rss-post-importer"); ?>
|
342 |
+
<p class="description"><?php _e('Create and Import an OPML file with your Feeds', "rss-post-importer"); ?></p>
|
343 |
</td>
|
344 |
<td>
|
345 |
<?php
|
355 |
|
356 |
<tr>
|
357 |
<td>
|
358 |
+
<?php _e('Social Media Optimization and Open Graph', "rss-post-importer"); ?>
|
359 |
+
<p class="description"><?php _e('Social Media and Open Graph optimization', "rss-post-importer"); ?></p>
|
360 |
</td>
|
361 |
<td>
|
362 |
<ul class="radiolist">
|
363 |
<li>
|
364 |
+
<label><label><input type="checkbox" name="tw_show" id="tw_show" value="1" <?php echo($this->options['settings']['tw_show'] == '1' ? 'checked="checked"' : ''); ?> /> <?php _e('Twitter', 'rss-post-importer'); ?></label>
|
365 |
</li>
|
366 |
<li>
|
367 |
+
<label><label><input type="checkbox" name="gg_show" id="gg_show" value="1" <?php echo($this->options['settings']['gg_show'] == '1' ? 'checked="checked"' : ''); ?> /> <?php _e('Google+', 'rss-post-importer'); ?></label>
|
368 |
</li>
|
369 |
<li>
|
370 |
+
<label><label><input type="checkbox" name="og_show" id="og_show" value="1" <?php echo($this->options['settings']['og_show'] == '1' ? 'checked="checked"' : ''); ?> /> <?php _e('Facebook Opengraph', 'rss-post-importer'); ?></label>
|
371 |
</li>
|
372 |
</ul>
|
373 |
</td>
|
app/templates/stats-placeholder.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<table class="widefat rss_pi-table" id="rss_pi-stats-table">
|
2 |
<thead>
|
3 |
<tr>
|
4 |
-
<th><?php _e('Stats', '
|
5 |
</tr>
|
6 |
</thead>
|
7 |
<tbody class="setting-rows">
|
1 |
<table class="widefat rss_pi-table" id="rss_pi-stats-table">
|
2 |
<thead>
|
3 |
<tr>
|
4 |
+
<th><?php _e('Stats', 'rss-post-importer'); ?></th>
|
5 |
</tr>
|
6 |
</thead>
|
7 |
<tbody class="setting-rows">
|
index.php
CHANGED
@@ -5,11 +5,11 @@
|
|
5 |
Plugin URI: https://wordpress.org/plugins/rss-post-importer/
|
6 |
Description: This plugin lets you set up an import posts from one or several rss-feeds and save them as posts on your site, simple and flexible.
|
7 |
Author: feedsapi
|
8 |
-
Version: 2.
|
9 |
Author URI: https://www.feedsapi.org/
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
-
Text Domain:
|
13 |
Domain Path: /lang/
|
14 |
*/
|
15 |
|
@@ -27,7 +27,7 @@ if (!defined('RSS_PI_BASENAME')) {
|
|
27 |
}
|
28 |
|
29 |
if (!defined('RSS_PI_VERSION')) {
|
30 |
-
define('RSS_PI_VERSION', '2.
|
31 |
}
|
32 |
|
33 |
if (!defined('RSS_PI_LOG_PATH')) {
|
@@ -38,6 +38,8 @@ if (!is_dir(RSS_PI_LOG_PATH)) {
|
|
38 |
mkdir(RSS_PI_LOG_PATH);
|
39 |
}
|
40 |
|
|
|
|
|
41 |
// helper classes
|
42 |
include_once RSS_PI_PATH . 'app/classes/helpers/class-rss-pi-log.php';
|
43 |
include_once RSS_PI_PATH . 'app/classes/helpers/class-rss-pi-featured-image.php';
|
5 |
Plugin URI: https://wordpress.org/plugins/rss-post-importer/
|
6 |
Description: This plugin lets you set up an import posts from one or several rss-feeds and save them as posts on your site, simple and flexible.
|
7 |
Author: feedsapi
|
8 |
+
Version: 2.2.0
|
9 |
Author URI: https://www.feedsapi.org/
|
10 |
License: GPLv2 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
+
Text Domain: rss-post-importer
|
13 |
Domain Path: /lang/
|
14 |
*/
|
15 |
|
27 |
}
|
28 |
|
29 |
if (!defined('RSS_PI_VERSION')) {
|
30 |
+
define('RSS_PI_VERSION', '2.2.0');
|
31 |
}
|
32 |
|
33 |
if (!defined('RSS_PI_LOG_PATH')) {
|
38 |
mkdir(RSS_PI_LOG_PATH);
|
39 |
}
|
40 |
|
41 |
+
|
42 |
+
|
43 |
// helper classes
|
44 |
include_once RSS_PI_PATH . 'app/classes/helpers/class-rss-pi-log.php';
|
45 |
include_once RSS_PI_PATH . 'app/classes/helpers/class-rss-pi-featured-image.php';
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.feedsapi.org/
|
|
4 |
Tags: rss, feeds, import, feed, autoblog, feed aggregation, rss-feed, aggregation, atom, feed, rss, syndication, FeedWordPress, autoblog aggregator, Autoblogger, autoblogging, feed import, rss multi importer, feed reader, feed to post, multi feed import, multi feed importer, multi import, multi rss feeds, multiple feed import, multiple feeds, multiple rss feeds, rss, rss aggregator, rss feader, RSS import, rss to post, content curation, RSS Retriever, RSS fetch feed, WP RSS Aggregator, AutoPost, RSS Feed to Post, RSSImport, yahoo pipes, WP Pipes, Import XML feed , FeedSyndicate, RSSpost, RSS in Page
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 4.2.4
|
7 |
-
Stable tag:
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -124,6 +124,10 @@ Learn more (and get detailed instructions) in our [contribute guide](http://jetp
|
|
124 |
|
125 |
== Change Log ==
|
126 |
|
|
|
|
|
|
|
|
|
127 |
= Version 2.1.9 =
|
128 |
* Diverse bug fixes.
|
129 |
* SEO Best Practices implementation.
|
4 |
Tags: rss, feeds, import, feed, autoblog, feed aggregation, rss-feed, aggregation, atom, feed, rss, syndication, FeedWordPress, autoblog aggregator, Autoblogger, autoblogging, feed import, rss multi importer, feed reader, feed to post, multi feed import, multi feed importer, multi import, multi rss feeds, multiple feed import, multiple feeds, multiple rss feeds, rss, rss aggregator, rss feader, RSS import, rss to post, content curation, RSS Retriever, RSS fetch feed, WP RSS Aggregator, AutoPost, RSS Feed to Post, RSSImport, yahoo pipes, WP Pipes, Import XML feed , FeedSyndicate, RSSpost, RSS in Page
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 4.2.4
|
7 |
+
Stable tag: c
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
124 |
|
125 |
== Change Log ==
|
126 |
|
127 |
+
|
128 |
+
= Version 2.2.0 =
|
129 |
+
* Small Bugs fixing and Open Graph tweaks
|
130 |
+
|
131 |
= Version 2.1.9 =
|
132 |
* Diverse bug fixes.
|
133 |
* SEO Best Practices implementation.
|