Version Description
Download this release
Release Info
Developer | keywordrush |
Plugin | Content Egg |
Version | 3.0.5 |
Comparing to | |
See all releases |
Code changes from version 3.0.2 to 3.0.5
- application/Plugin.php +2 -2
- application/PriceAlert.php +1 -1
- application/admin/AutoblogController.php +2 -2
- application/admin/GeneralConfig.php +0 -1
- application/admin/PluginAdmin.php +22 -0
- application/admin/views/autoblog_edit.php +1 -1
- application/components/BlockTemplateManager.php +7 -0
- application/components/Config.php +2 -0
- application/components/ContentManager.php +6 -0
- application/components/ModuleConfig.php +3 -3
- application/components/ModuleTemplateManager.php +2 -12
- application/components/TemplateManager.php +13 -2
- application/helpers/TemplateHelper.php +1 -1
- application/modules/AE/AEModule.php +1 -0
- application/modules/Amazon/AmazonModule.php +1 -1
- application/modules/Amazon/templates/data_compare.php +1 -1
- application/modules/CjLinks/templates/data_universal.php +1 -1
- application/modules/Offer/views/metabox_module.php +2 -2
- content-egg.php +1 -1
- languages/content-egg-ru_RU.mo +0 -0
- languages/content-egg-ru_RU.po +2 -2
- readme.txt +1 -1
- templates/block_offers_list.php +1 -4
- templates/block_offers_logo.php +0 -4
application/Plugin.php
CHANGED
@@ -14,7 +14,7 @@ use ContentEgg\application\helpers\CurrencyHelper;
|
|
14 |
*/
|
15 |
class Plugin {
|
16 |
|
17 |
-
const version = '3.0.
|
18 |
const db_version = 26;
|
19 |
const wp_requires = '4.2.2';
|
20 |
const slug = 'content-egg';
|
@@ -58,7 +58,7 @@ class Plugin {
|
|
58 |
{
|
59 |
\wp_register_style('egg-bootstrap', \ContentEgg\PLUGIN_RES . '/bootstrap/css/egg-bootstrap.css');
|
60 |
\wp_register_script('bootstrap', \ContentEgg\PLUGIN_RES . '/bootstrap/js/bootstrap.min.js', array('jquery'), null, false);
|
61 |
-
\wp_register_style('
|
62 |
\wp_register_script('raphaeljs', \ContentEgg\PLUGIN_RES . '/js/morris.js/raphael.min.js', array('jquery'));
|
63 |
\wp_register_script('morrisjs', \ContentEgg\PLUGIN_RES . '/js/morris.js/morris.min.js', array('raphaeljs'));
|
64 |
\wp_register_style('morrisjs', \ContentEgg\PLUGIN_RES . '/js/morris.js/morris.min.css');
|
14 |
*/
|
15 |
class Plugin {
|
16 |
|
17 |
+
const version = '3.0.5';
|
18 |
const db_version = 26;
|
19 |
const wp_requires = '4.2.2';
|
20 |
const slug = 'content-egg';
|
58 |
{
|
59 |
\wp_register_style('egg-bootstrap', \ContentEgg\PLUGIN_RES . '/bootstrap/css/egg-bootstrap.css');
|
60 |
\wp_register_script('bootstrap', \ContentEgg\PLUGIN_RES . '/bootstrap/js/bootstrap.min.js', array('jquery'), null, false);
|
61 |
+
\wp_register_style('egg-products', \ContentEgg\PLUGIN_RES . '/css/products.css');
|
62 |
\wp_register_script('raphaeljs', \ContentEgg\PLUGIN_RES . '/js/morris.js/raphael.min.js', array('jquery'));
|
63 |
\wp_register_script('morrisjs', \ContentEgg\PLUGIN_RES . '/js/morris.js/morris.min.js', array('raphaeljs'));
|
64 |
\wp_register_style('morrisjs', \ContentEgg\PLUGIN_RES . '/js/morris.js/morris.min.css');
|
application/PriceAlert.php
CHANGED
@@ -277,7 +277,7 @@ class PriceAlert {
|
|
277 |
// clean up & optimize
|
278 |
if ($total && rand(1, 5) == 5)
|
279 |
{
|
280 |
-
|
281 |
}
|
282 |
}
|
283 |
|
277 |
// clean up & optimize
|
278 |
if ($total && rand(1, 5) == 5)
|
279 |
{
|
280 |
+
PriceAlertModel::model()->cleanOld(PriceAlertModel::CLEAN_DELETED_DAYS);
|
281 |
}
|
282 |
}
|
283 |
|
application/admin/AutoblogController.php
CHANGED
@@ -74,7 +74,7 @@ class AutoblogController {
|
|
74 |
{
|
75 |
\add_submenu_page(Plugin::slug, __('Autoblogging', 'content-egg') . ' ‹ Content Egg', __('Autoblogging', 'content-egg'), 'manage_options', self::slug, array($this, 'actionIndex'));
|
76 |
\add_submenu_page(Plugin::slug, __('Add autoblogging', 'content-egg') . ' ‹ Content Egg', __('Add autoblogging', 'content-egg'), 'manage_options', 'content-egg-autoblog-edit', array($this, 'actionUpdate'));
|
77 |
-
\add_submenu_page(
|
78 |
}
|
79 |
|
80 |
public function actionIndex()
|
@@ -90,7 +90,7 @@ class AutoblogController {
|
|
90 |
|
91 |
public function actionUpdate()
|
92 |
{
|
93 |
-
if ($GLOBALS['pagenow'] == 'admin.php' && !empty($_GET['page']) && $_GET['page'] == 'content-egg-autoblog-batch
|
94 |
$batch = true;
|
95 |
else
|
96 |
$batch = false;
|
74 |
{
|
75 |
\add_submenu_page(Plugin::slug, __('Autoblogging', 'content-egg') . ' ‹ Content Egg', __('Autoblogging', 'content-egg'), 'manage_options', self::slug, array($this, 'actionIndex'));
|
76 |
\add_submenu_page(Plugin::slug, __('Add autoblogging', 'content-egg') . ' ‹ Content Egg', __('Add autoblogging', 'content-egg'), 'manage_options', 'content-egg-autoblog-edit', array($this, 'actionUpdate'));
|
77 |
+
\add_submenu_page('options.php', __('Add autoblogging - bulk mode', 'content-egg') . ' ‹ Content Egg', __('Add autoblogging - bulk mode', 'content-egg'), 'manage_options', 'content-egg-autoblog-edit--batch', array($this, 'actionUpdate'));
|
78 |
}
|
79 |
|
80 |
public function actionIndex()
|
90 |
|
91 |
public function actionUpdate()
|
92 |
{
|
93 |
+
if ($GLOBALS['pagenow'] == 'admin.php' && !empty($_GET['page']) && $_GET['page'] == 'content-egg-autoblog-edit--batch')
|
94 |
$batch = true;
|
95 |
else
|
96 |
$batch = false;
|
application/admin/GeneralConfig.php
CHANGED
@@ -139,7 +139,6 @@ class GeneralConfig extends Config {
|
|
139 |
'<p class="description">' . sprintf(__('Active subscriptions now: <b>%d</b>', 'content-egg'), $total_price_alerts) .
|
140 |
'. ' . sprintf(__('Messages are sent for last %d days: <b>%d</b>', 'content-egg'), PriceAlertModel::CLEAN_DELETED_DAYS, $sent_price_alerts) . '.</p>' .
|
141 |
'<p class="description">' . __('This option requires "Price history" option (must be enabled) to work.', 'content-egg') . '</p>',
|
142 |
-
'checkbox_options' => $post_types,
|
143 |
'callback' => array($this, 'render_checkbox'),
|
144 |
'default' => true,
|
145 |
'section' => 'default',
|
139 |
'<p class="description">' . sprintf(__('Active subscriptions now: <b>%d</b>', 'content-egg'), $total_price_alerts) .
|
140 |
'. ' . sprintf(__('Messages are sent for last %d days: <b>%d</b>', 'content-egg'), PriceAlertModel::CLEAN_DELETED_DAYS, $sent_price_alerts) . '.</p>' .
|
141 |
'<p class="description">' . __('This option requires "Price history" option (must be enabled) to work.', 'content-egg') . '</p>',
|
|
|
142 |
'callback' => array($this, 'render_checkbox'),
|
143 |
'default' => true,
|
144 |
'section' => 'default',
|
application/admin/PluginAdmin.php
CHANGED
@@ -35,6 +35,7 @@ class PluginAdmin {
|
|
35 |
|
36 |
\add_action('admin_menu', array($this, 'add_admin_menu'));
|
37 |
\add_action('admin_enqueue_scripts', array($this, 'admin_load_scripts'));
|
|
|
38 |
|
39 |
if (isset($GLOBALS['pagenow']) && $GLOBALS['pagenow'] == 'plugins.php')
|
40 |
{
|
@@ -109,5 +110,26 @@ class PluginAdmin {
|
|
109 |
|
110 |
include \ContentEgg\PLUGIN_PATH . 'application/admin/views/' . TextHelper::clear($view_name) . '.php';
|
111 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
|
113 |
}
|
35 |
|
36 |
\add_action('admin_menu', array($this, 'add_admin_menu'));
|
37 |
\add_action('admin_enqueue_scripts', array($this, 'admin_load_scripts'));
|
38 |
+
\add_filter('parent_file', array($this, 'highlight_admin_menu'));
|
39 |
|
40 |
if (isset($GLOBALS['pagenow']) && $GLOBALS['pagenow'] == 'plugins.php')
|
41 |
{
|
110 |
|
111 |
include \ContentEgg\PLUGIN_PATH . 'application/admin/views/' . TextHelper::clear($view_name) . '.php';
|
112 |
}
|
113 |
+
|
114 |
+
/**
|
115 |
+
* Highlight menu for hidden submenu item
|
116 |
+
*/
|
117 |
+
function highlight_admin_menu($file)
|
118 |
+
{
|
119 |
+
global $plugin_page;
|
120 |
+
|
121 |
+
// options.php - hidden submenu items
|
122 |
+
if ($file != 'options.php' || substr($plugin_page, 0, strlen(Plugin::slug())) !== Plugin::slug())
|
123 |
+
return $file;
|
124 |
+
|
125 |
+
$page_parts = explode('--', $plugin_page);
|
126 |
+
if (count($page_parts) > 1){
|
127 |
+
$plugin_page = $page_parts[0];}
|
128 |
+
else
|
129 |
+
$plugin_page = Plugin::slug();
|
130 |
+
|
131 |
+
return $file;
|
132 |
+
}
|
133 |
+
|
134 |
|
135 |
}
|
application/admin/views/autoblog_edit.php
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
<?php endif; ?>
|
13 |
<?php endif; ?>
|
14 |
<?php if (!$batch && !$item['id']): ?>
|
15 |
-
<a class="add-new-h2 button-primary" href="<?php echo get_admin_url(get_current_blog_id(), 'admin.php?page=content-egg-autoblog-batch
|
16 |
<?php endif; ?>
|
17 |
<a class="add-new-h2" href="<?php echo get_admin_url(get_current_blog_id(), 'admin.php?page=content-egg-autoblog'); ?>"><?php _e('Back to list', 'content-egg'); ?></a>
|
18 |
</h2>
|
12 |
<?php endif; ?>
|
13 |
<?php endif; ?>
|
14 |
<?php if (!$batch && !$item['id']): ?>
|
15 |
+
<a class="add-new-h2 button-primary" href="<?php echo get_admin_url(get_current_blog_id(), 'admin.php?page=content-egg-autoblog-edit--batch'); ?>"><?php _e('Bulk adding', 'content-egg'); ?></a>
|
16 |
<?php endif; ?>
|
17 |
<a class="add-new-h2" href="<?php echo get_admin_url(get_current_blog_id(), 'admin.php?page=content-egg-autoblog'); ?>"><?php _e('Back to list', 'content-egg'); ?></a>
|
18 |
</h2>
|
application/components/BlockTemplateManager.php
CHANGED
@@ -62,5 +62,12 @@ class BlockTemplateManager extends TemplateManager {
|
|
62 |
$templates = \apply_filters('content_egg_block_templates', $templates);
|
63 |
return $templates;
|
64 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
|
66 |
}
|
62 |
$templates = \apply_filters('content_egg_block_templates', $templates);
|
63 |
return $templates;
|
64 |
}
|
65 |
+
|
66 |
+
public function render($view_name, array $_data = array())
|
67 |
+
{
|
68 |
+
if (!self::isCustomTemplate($view_name))
|
69 |
+
$this->enqueueProductsStyle();
|
70 |
+
return parent::render($view_name, $_data);
|
71 |
+
}
|
72 |
|
73 |
}
|
application/components/Config.php
CHANGED
@@ -2,6 +2,8 @@
|
|
2 |
|
3 |
namespace ContentEgg\application\components;
|
4 |
|
|
|
|
|
5 |
/**
|
6 |
* Config class file
|
7 |
*
|
2 |
|
3 |
namespace ContentEgg\application\components;
|
4 |
|
5 |
+
use ContentEgg\application\Plugin;
|
6 |
+
|
7 |
/**
|
8 |
* Config class file
|
9 |
*
|
application/components/ContentManager.php
CHANGED
@@ -278,6 +278,12 @@ class ContentManager {
|
|
278 |
return;
|
279 |
}
|
280 |
|
|
|
|
|
|
|
|
|
|
|
|
|
281 |
// save & update time
|
282 |
ContentManager::saveData($updated_data, $module_id, $post_id);
|
283 |
ContentManager::touchUpdateItemsTime($post_id, $module_id);
|
278 |
return;
|
279 |
}
|
280 |
|
281 |
+
$time = time();
|
282 |
+
foreach ($updated_data as $key => $data)
|
283 |
+
{
|
284 |
+
$updated_data[$key]['last_update'] = $time;
|
285 |
+
}
|
286 |
+
|
287 |
// save & update time
|
288 |
ContentManager::saveData($updated_data, $module_id, $post_id);
|
289 |
ContentManager::touchUpdateItemsTime($post_id, $module_id);
|
application/components/ModuleConfig.php
CHANGED
@@ -17,7 +17,7 @@ abstract class ModuleConfig extends Config {
|
|
17 |
protected $module_id;
|
18 |
|
19 |
protected function __construct($module_id = null)
|
20 |
-
{
|
21 |
if ($module_id)
|
22 |
{
|
23 |
$this->module_id = $module_id;
|
@@ -46,7 +46,7 @@ abstract class ModuleConfig extends Config {
|
|
46 |
|
47 |
public function page_slug()
|
48 |
{
|
49 |
-
return Plugin::slug() . '
|
50 |
}
|
51 |
|
52 |
public function option_name()
|
@@ -56,7 +56,7 @@ abstract class ModuleConfig extends Config {
|
|
56 |
|
57 |
public function add_admin_menu()
|
58 |
{
|
59 |
-
\add_submenu_page(
|
60 |
}
|
61 |
|
62 |
public function settings_page()
|
17 |
protected $module_id;
|
18 |
|
19 |
protected function __construct($module_id = null)
|
20 |
+
{
|
21 |
if ($module_id)
|
22 |
{
|
23 |
$this->module_id = $module_id;
|
46 |
|
47 |
public function page_slug()
|
48 |
{
|
49 |
+
return Plugin::slug() . '--' . $this->getModuleId();
|
50 |
}
|
51 |
|
52 |
public function option_name()
|
56 |
|
57 |
public function add_admin_menu()
|
58 |
{
|
59 |
+
\add_submenu_page('options.php', $this->getModuleId() . ' ' . __('settings', 'content-egg') . ' ‹ Content Egg', '', 'manage_options', $this->page_slug, array($this, 'settings_page'));
|
60 |
}
|
61 |
|
62 |
public function settings_page()
|
application/components/ModuleTemplateManager.php
CHANGED
@@ -65,21 +65,11 @@ class ModuleTemplateManager extends TemplateManager {
|
|
65 |
return $templates;
|
66 |
}
|
67 |
|
68 |
-
public function render($view_name, array $_data = array()
|
69 |
{
|
70 |
-
if ($
|
71 |
$this->enqueueProductsStyle();
|
72 |
return parent::render($view_name, $_data);
|
73 |
}
|
74 |
|
75 |
-
public function enqueueProductsStyle()
|
76 |
-
{
|
77 |
-
\wp_enqueue_style('egg-bootstrap');
|
78 |
-
\wp_enqueue_style('content-egg-products');
|
79 |
-
|
80 |
-
$button_color = GeneralConfig::getInstance()->option('button_color');
|
81 |
-
$custom_css = ".egg-container .btn-success{background-color:" . \wp_strip_all_tags($button_color) . " !important}";
|
82 |
-
\wp_add_inline_style('content-egg-products', $custom_css);
|
83 |
-
}
|
84 |
-
|
85 |
}
|
65 |
return $templates;
|
66 |
}
|
67 |
|
68 |
+
public function render($view_name, array $_data = array())
|
69 |
{
|
70 |
+
if (!self::isCustomTemplate($view_name))
|
71 |
$this->enqueueProductsStyle();
|
72 |
return parent::render($view_name, $_data);
|
73 |
}
|
74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
}
|
application/components/TemplateManager.php
CHANGED
@@ -3,6 +3,7 @@
|
|
3 |
namespace ContentEgg\application\components;
|
4 |
|
5 |
use ContentEgg\application\helpers\TextHelper;
|
|
|
6 |
|
7 |
/**
|
8 |
* TemplateManager class file
|
@@ -125,7 +126,7 @@ abstract class TemplateManager {
|
|
125 |
public function getViewPath($view_name)
|
126 |
{
|
127 |
$view_name = str_replace('.', '', $view_name);
|
128 |
-
if (
|
129 |
{
|
130 |
$view_name = substr($view_name, 7);
|
131 |
foreach ($this->getCustomTempateDirs() as $custom_dir)
|
@@ -199,4 +200,14 @@ abstract class TemplateManager {
|
|
199 |
return $template;
|
200 |
}
|
201 |
|
202 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
namespace ContentEgg\application\components;
|
4 |
|
5 |
use ContentEgg\application\helpers\TextHelper;
|
6 |
+
use ContentEgg\application\admin\GeneralConfig;
|
7 |
|
8 |
/**
|
9 |
* TemplateManager class file
|
126 |
public function getViewPath($view_name)
|
127 |
{
|
128 |
$view_name = str_replace('.', '', $view_name);
|
129 |
+
if (self::isCustomTemplate($view_name))
|
130 |
{
|
131 |
$view_name = substr($view_name, 7);
|
132 |
foreach ($this->getCustomTempateDirs() as $custom_dir)
|
200 |
return $template;
|
201 |
}
|
202 |
|
203 |
+
public function enqueueProductsStyle()
|
204 |
+
{
|
205 |
+
\wp_enqueue_style('egg-bootstrap');
|
206 |
+
\wp_enqueue_style('egg-products');
|
207 |
+
|
208 |
+
$button_color = GeneralConfig::getInstance()->option('button_color');
|
209 |
+
$custom_css = ".egg-container .btn-success{background-color:" . \wp_strip_all_tags($button_color) . " !important}";
|
210 |
+
\wp_add_inline_style('egg-products', $custom_css);
|
211 |
+
}
|
212 |
+
|
213 |
+
}
|
application/helpers/TemplateHelper.php
CHANGED
@@ -26,7 +26,7 @@ class TemplateHelper {
|
|
26 |
if ($thousand_sep == 'number_format_thousands_sep')
|
27 |
$thousand_sep = null;
|
28 |
|
29 |
-
return CurrencyHelper::getInstance()->currencyFormat($price, $currencyCode, $thousand_sep, $decimal_sep, $before_symbol
|
30 |
}
|
31 |
|
32 |
public static function currencyTyping($c)
|
26 |
if ($thousand_sep == 'number_format_thousands_sep')
|
27 |
$thousand_sep = null;
|
28 |
|
29 |
+
return CurrencyHelper::getInstance()->currencyFormat($price, $currencyCode, $thousand_sep, $decimal_sep, $before_symbol, $after_symbol);
|
30 |
}
|
31 |
|
32 |
public static function currencyTyping($c)
|
application/modules/AE/AEModule.php
CHANGED
@@ -104,6 +104,7 @@ class AEModule extends AffiliateParserModule {
|
|
104 |
$content->unique_id = md5($r['orig_url']);
|
105 |
$content->url = LinkHandler::createAffUrl($r['orig_url'], $deeplink);
|
106 |
$content->orig_url = $r['orig_url'];
|
|
|
107 |
$content->img = $r['img'];
|
108 |
$content->title = $r['title'];
|
109 |
$content->description = $r['description'];
|
104 |
$content->unique_id = md5($r['orig_url']);
|
105 |
$content->url = LinkHandler::createAffUrl($r['orig_url'], $deeplink);
|
106 |
$content->orig_url = $r['orig_url'];
|
107 |
+
$content->domain = TextHelper::getHostName($r['orig_url']);
|
108 |
$content->img = $r['img'];
|
109 |
$content->title = $r['title'];
|
110 |
$content->description = $r['description'];
|
application/modules/Amazon/AmazonModule.php
CHANGED
@@ -260,7 +260,7 @@ class AmazonModule extends AffiliateParserModule {
|
|
260 |
$items[$key]['extra']['customerReviews'] = (array) new ExtraAmazonCustomerReviews;
|
261 |
$items[$key]['extra']['customerReviews'] = ExtraData::fillAttributes($items[$key]['extra']['customerReviews'], $results[$i]['CustomerReviews']);
|
262 |
}
|
263 |
-
|
264 |
$return[$item['unique_id']] = $items[$key];
|
265 |
$i++;
|
266 |
}
|
260 |
$items[$key]['extra']['customerReviews'] = (array) new ExtraAmazonCustomerReviews;
|
261 |
$items[$key]['extra']['customerReviews'] = ExtraData::fillAttributes($items[$key]['extra']['customerReviews'], $results[$i]['CustomerReviews']);
|
262 |
}
|
263 |
+
$items[$key]['domain'] = AmazonConfig::getDomainByLocale($locale);
|
264 |
$return[$item['unique_id']] = $items[$key];
|
265 |
$i++;
|
266 |
}
|
application/modules/Amazon/templates/data_compare.php
CHANGED
@@ -10,7 +10,7 @@ use ContentEgg\application\helpers\TemplateHelper;
|
|
10 |
|
11 |
<?php
|
12 |
\wp_enqueue_style('egg-bootstrap');
|
13 |
-
\wp_enqueue_style('
|
14 |
?>
|
15 |
|
16 |
<?php
|
10 |
|
11 |
<?php
|
12 |
\wp_enqueue_style('egg-bootstrap');
|
13 |
+
\wp_enqueue_style('egg-products');
|
14 |
?>
|
15 |
|
16 |
<?php
|
application/modules/CjLinks/templates/data_universal.php
CHANGED
@@ -10,7 +10,7 @@ use ContentEgg\application\helpers\TemplateHelper;
|
|
10 |
|
11 |
<?php
|
12 |
\wp_enqueue_style('egg-bootstrap');
|
13 |
-
\wp_enqueue_style('
|
14 |
?>
|
15 |
|
16 |
<div class="egg-container egg-list egg-list-coupons">
|
10 |
|
11 |
<?php
|
12 |
\wp_enqueue_style('egg-bootstrap');
|
13 |
+
\wp_enqueue_style('egg-products');
|
14 |
?>
|
15 |
|
16 |
<div class="egg-container egg-list egg-list-coupons">
|
application/modules/Offer/views/metabox_module.php
CHANGED
@@ -48,10 +48,10 @@
|
|
48 |
<img ng-if="data.img" ng-src="{{data.img}}" class="img-responsive" style="max-height: 100px;" />
|
49 |
</div>
|
50 |
<div ng-class="data.img ? 'col-md-9' : 'col-md-10'">
|
51 |
-
<input type="text" placeholder="<?php _e('Title', 'content-egg'); ?>" ng-model="data.title" class="form-control" style="margin-bottom: 5px;">
|
52 |
<div class="row" style="margin:0px;">
|
53 |
<div class="col-md-6" style="padding:0px;">
|
54 |
-
<input type="text" placeholder="<?php _e('Offer URL', 'content-egg'); ?>" ng-model="data.orig_url" class="form-control" style="margin-bottom: 5px;">
|
55 |
</div>
|
56 |
<div class="col-md-6" style="padding-right:0px;">
|
57 |
<input type="text" placeholder="<?php _e('Deeplink', 'content-egg'); ?>" ng-model="data.extra.deeplink" class="form-control" style="margin-bottom: 5px;">
|
48 |
<img ng-if="data.img" ng-src="{{data.img}}" class="img-responsive" style="max-height: 100px;" />
|
49 |
</div>
|
50 |
<div ng-class="data.img ? 'col-md-9' : 'col-md-10'">
|
51 |
+
<input type="text" placeholder="<?php _e('Title', 'content-egg'); ?> (<?php _e('required', 'content-egg'); ?>)" ng-model="data.title" class="form-control" style="margin-bottom: 5px;">
|
52 |
<div class="row" style="margin:0px;">
|
53 |
<div class="col-md-6" style="padding:0px;">
|
54 |
+
<input type="text" placeholder="<?php _e('Offer URL', 'content-egg'); ?> (<?php _e('required', 'content-egg'); ?>)" ng-model="data.orig_url" class="form-control" style="margin-bottom: 5px;">
|
55 |
</div>
|
56 |
<div class="col-md-6" style="padding-right:0px;">
|
57 |
<input type="text" placeholder="<?php _e('Deeplink', 'content-egg'); ?>" ng-model="data.extra.deeplink" class="form-control" style="margin-bottom: 5px;">
|
content-egg.php
CHANGED
@@ -6,7 +6,7 @@ namespace ContentEgg;
|
|
6 |
Plugin Name: Content Egg
|
7 |
Plugin URI: http://www.keywordrush.com/contentegg
|
8 |
Description: Easily adding auto updating products from affiliate systems and additional content to posts.
|
9 |
-
Version: 3.0.
|
10 |
Author: keywordrush.com
|
11 |
Author URI: http://www.keywordrush.com
|
12 |
Text Domain: content-egg
|
6 |
Plugin Name: Content Egg
|
7 |
Plugin URI: http://www.keywordrush.com/contentegg
|
8 |
Description: Easily adding auto updating products from affiliate systems and additional content to posts.
|
9 |
+
Version: 3.0.5
|
10 |
Author: keywordrush.com
|
11 |
Author URI: http://www.keywordrush.com
|
12 |
Text Domain: content-egg
|
languages/content-egg-ru_RU.mo
CHANGED
Binary file
|
languages/content-egg-ru_RU.po
CHANGED
@@ -4,7 +4,7 @@ msgstr ""
|
|
4 |
"Project-Id-Version: Content Egg 1.1.1\n"
|
5 |
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/content-egg\n"
|
6 |
"POT-Creation-Date: 2016-12-13 17:20+0200\n"
|
7 |
-
"PO-Revision-Date: 2016-12-
|
8 |
"Last-Translator: Sizam themes <sizamtheme@gmail.com>\n"
|
9 |
"Language-Team: \n"
|
10 |
"Language: en_EN\n"
|
@@ -952,7 +952,7 @@ msgstr "Вы действительно хотите удалить все ре
|
|
952 |
#: application/admin/views/metabox_module.php:54
|
953 |
#: application/modules/GoogleImages/GoogleImagesConfig.php:160
|
954 |
msgid "Search"
|
955 |
-
msgstr "Поиск
|
956 |
|
957 |
# msgid "No data found..."
|
958 |
# msgstr "Данные не найдены..."
|
4 |
"Project-Id-Version: Content Egg 1.1.1\n"
|
5 |
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/content-egg\n"
|
6 |
"POT-Creation-Date: 2016-12-13 17:20+0200\n"
|
7 |
+
"PO-Revision-Date: 2016-12-25 12:37+0200\n"
|
8 |
"Last-Translator: Sizam themes <sizamtheme@gmail.com>\n"
|
9 |
"Language-Team: \n"
|
10 |
"Language: en_EN\n"
|
952 |
#: application/admin/views/metabox_module.php:54
|
953 |
#: application/modules/GoogleImages/GoogleImagesConfig.php:160
|
954 |
msgid "Search"
|
955 |
+
msgstr "Поиск"
|
956 |
|
957 |
# msgid "No data found..."
|
958 |
# msgstr "Данные не найдены..."
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: keywordrush,wpsoul
|
|
3 |
Tags: content, affiliate, autoblogging, amazon, affilinet, coupons, linkshare, shareasale, ozon, flickr, youtube, commission junction, aliexpress, cj, images, wikipedia, freebase, ecommerce, links, shortcode, monetize, search engine optimization, ebay, zanox, moneymaking, price comparison, google images, timesaving, clickbank, linkshare, pixabay, admitad, affilitewindow, otimisemedia, tradedoubler, flipkart, paytm, price alert, tracker, impactradius
|
4 |
Requires at least: 4.2.2
|
5 |
Tested up to: 4.7
|
6 |
-
Stable tag: 3.0.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
3 |
Tags: content, affiliate, autoblogging, amazon, affilinet, coupons, linkshare, shareasale, ozon, flickr, youtube, commission junction, aliexpress, cj, images, wikipedia, freebase, ecommerce, links, shortcode, monetize, search engine optimization, ebay, zanox, moneymaking, price comparison, google images, timesaving, clickbank, linkshare, pixabay, admitad, affilitewindow, otimisemedia, tradedoubler, flipkart, paytm, price alert, tracker, impactradius
|
4 |
Requires at least: 4.2.2
|
5 |
Tested up to: 4.7
|
6 |
+
Stable tag: 3.0.5
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
templates/block_offers_list.php
CHANGED
@@ -29,10 +29,7 @@ usort($all_items, function($a, $b) {
|
|
29 |
return $a['price'] - $b['price'];
|
30 |
});
|
31 |
?>
|
32 |
-
|
33 |
-
\wp_enqueue_style('egg-bootstrap');
|
34 |
-
\wp_enqueue_style('content-egg-products');
|
35 |
-
?>
|
36 |
<div class="egg-container">
|
37 |
<?php if ($title): ?>
|
38 |
<h3><?php echo esc_html($title); ?></h3>
|
29 |
return $a['price'] - $b['price'];
|
30 |
});
|
31 |
?>
|
32 |
+
|
|
|
|
|
|
|
33 |
<div class="egg-container">
|
34 |
<?php if ($title): ?>
|
35 |
<h3><?php echo esc_html($title); ?></h3>
|
templates/block_offers_logo.php
CHANGED
@@ -12,10 +12,6 @@ use ContentEgg\application\helpers\TemplateHelper;
|
|
12 |
use ContentEgg\application\helpers\TextHelper;
|
13 |
?>
|
14 |
|
15 |
-
<?php
|
16 |
-
\wp_enqueue_style('egg-bootstrap');
|
17 |
-
\wp_enqueue_style('content-egg-products');
|
18 |
-
?>
|
19 |
<div class="egg-container">
|
20 |
<?php if ($title): ?>
|
21 |
<h3><?php echo esc_html($title); ?></h3>
|
12 |
use ContentEgg\application\helpers\TextHelper;
|
13 |
?>
|
14 |
|
|
|
|
|
|
|
|
|
15 |
<div class="egg-container">
|
16 |
<?php if ($title): ?>
|
17 |
<h3><?php echo esc_html($title); ?></h3>
|