Content Egg - Version 5.2.1

Version Description

Download this release

Release Info

Developer keywordrush
Plugin Icon 128x128 Content Egg
Version 5.2.1
Comparing to
See all releases

Code changes from version 5.2.0 to 5.2.1

application/Plugin.php CHANGED
@@ -17,7 +17,7 @@ use ContentEgg\application\components\ExternalFeaturedImage;
17
  */
18
  class Plugin {
19
 
20
- const version = '5.2.0';
21
  const db_version = 53;
22
  const wp_requires = '4.6.1';
23
  const slug = 'content-egg';
17
  */
18
  class Plugin {
19
 
20
+ const version = '5.2.1';
21
  const db_version = 53;
22
  const wp_requires = '4.6.1';
23
  const slug = 'content-egg';
application/components/AffiliateFeedParserModule.php CHANGED
@@ -13,7 +13,7 @@ use ContentEgg\application\helpers\TextHelper;
13
  *
14
  * @author keywordrush.com <support@keywordrush.com>
15
  * @link https://www.keywordrush.com
16
- * @copyright Copyright &copy; 2019 keywordrush.com
17
  */
18
  abstract class AffiliateFeedParserModule extends AffiliateParserModule {
19
 
@@ -228,7 +228,7 @@ abstract class AffiliateFeedParserModule extends AffiliateParserModule {
228
  protected function processFeed($file)
229
  {
230
  $encoding = $this->config('encoding', 'UTF-8');
231
-
232
  $handle = fopen($file, "r");
233
  $fields = array();
234
  $products = array();
@@ -240,9 +240,11 @@ abstract class AffiliateFeedParserModule extends AffiliateParserModule {
240
  {
241
  if ($encoding == 'ISO-8859-1')
242
  $data = array_map('utf8_encode', $data);
243
-
244
  if (!$fields)
245
  {
 
 
246
  $fields = $data;
247
  continue;
248
  }
13
  *
14
  * @author keywordrush.com <support@keywordrush.com>
15
  * @link https://www.keywordrush.com
16
+ * @copyright Copyright &copy; 2021 keywordrush.com
17
  */
18
  abstract class AffiliateFeedParserModule extends AffiliateParserModule {
19
 
228
  protected function processFeed($file)
229
  {
230
  $encoding = $this->config('encoding', 'UTF-8');
231
+
232
  $handle = fopen($file, "r");
233
  $fields = array();
234
  $products = array();
240
  {
241
  if ($encoding == 'ISO-8859-1')
242
  $data = array_map('utf8_encode', $data);
243
+
244
  if (!$fields)
245
  {
246
+ // remove bom
247
+ $data = str_replace("\xEF\xBB\xBF", '', $data);
248
  $fields = $data;
249
  continue;
250
  }
application/components/ModuleManager.php CHANGED
@@ -171,7 +171,12 @@ class ModuleManager {
171
  break;
172
  }
173
 
174
- if (count($result) < self::MAX_NUM_FEED_MODULES)
 
 
 
 
 
175
  {
176
  $num = count($result) + 1;
177
  $result[] = self::FEED_MODULES_PREFIX . '__' . $num;
171
  break;
172
  }
173
 
174
+ if (Plugin::isFree())
175
+ $max = 3;
176
+ else
177
+ $max = self::MAX_NUM_FEED_MODULES;
178
+
179
+ if (count($result) < $max)
180
  {
181
  $num = count($result) + 1;
182
  $result[] = self::FEED_MODULES_PREFIX . '__' . $num;
application/models/AutoblogModel.php CHANGED
@@ -16,7 +16,7 @@ use ContentEgg\application\admin\GeneralConfig;
16
  *
17
  * @author keywordrush.com <support@keywordrush.com>
18
  * @link https://www.keywordrush.com
19
- * @copyright Copyright &copy; 2020 keywordrush.com
20
  */
21
  class AutoblogModel extends Model {
22
 
16
  *
17
  * @author keywordrush.com <support@keywordrush.com>
18
  * @link https://www.keywordrush.com
19
+ * @copyright Copyright &copy; 2021 keywordrush.com
20
  */
21
  class AutoblogModel extends Model {
22
 
application/modules/Feed/FeedModule.php CHANGED
@@ -327,7 +327,6 @@ class FeedModule extends AffiliateFeedParserModule {
327
  if (isset($data[$feed_field]))
328
  $mapped_data[$field] = $data[$feed_field];
329
  }
330
-
331
  return $mapped_data;
332
  }
333
 
327
  if (isset($data[$feed_field]))
328
  $mapped_data[$field] = $data[$feed_field];
329
  }
 
330
  return $mapped_data;
331
  }
332
 
content-egg.php CHANGED
@@ -6,7 +6,7 @@ namespace ContentEgg;
6
  Plugin Name: Content Egg
7
  Plugin URI: https://www.keywordrush.com/contentegg
8
  Description: All in one solution for creating affiliate websites.
9
- Version: 5.2.0
10
  Author: keywordrush.com
11
  Author URI: https://www.keywordrush.com
12
  Text Domain: content-egg
6
  Plugin Name: Content Egg
7
  Plugin URI: https://www.keywordrush.com/contentegg
8
  Description: All in one solution for creating affiliate websites.
9
+ Version: 5.2.1
10
  Author: keywordrush.com
11
  Author URI: https://www.keywordrush.com
12
  Text Domain: content-egg
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: content, affiliate, autoblogging, affilinet, coupons, linkshare, shareasal
4
  Requires at least: 4.6.1
5
  Tested up to: 5.7.2
6
  Requires PHP: 5.4
7
- Stable tag: 5.2.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
4
  Requires at least: 4.6.1
5
  Tested up to: 5.7.2
6
  Requires PHP: 5.4
7
+ Stable tag: 5.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10