<modification>
	<id>News</id>
	<version>OC 2.x</version>
	<vqmver>2.0.0</vqmver>
	<author>Equotix</author>
	<file name="admin/view/template/common/menu.tpl">
		<operation>
			<search position="after"><![CDATA[
				<li><a href="<?php echo $feed; ?>"><?php echo $text_feed; ?></a></li>
			]]></search>
			<add><![CDATA[
				<li><a href="<?php echo $news; ?>">News</a></li>
			]]></add>
		</operation>
	</file>
	<file name="admin/controller/common/menu.php">
		<operation>
			<search position="after"><![CDATA[
				$data['feed'] = $this->url->link('extension/feed', 'token=' . $this->session->data['token'], 'SSL');	
			]]></search>
			<add><![CDATA[
				$data['news'] = $this->url->link('extension/news', 'token=' . $this->session->data['token'], 'SSL');	
			]]></add>
		</operation>
	</file>
	<file name="catalog/controller/common/footer.php">
		<operation>
			<search position="after" index="1"><![CDATA[
				$data['text_account']
			]]></search>
			<add><![CDATA[
				$data['news'] = $this->url->link('information/news');
				$data['text_news'] = $this->language->get('text_news');
			]]></add>
		</operation>
	</file>
	<file name="catalog/language/*/common/footer.php">
		<operation>
			<search position="after" index="1"><![CDATA[
				$_
			]]></search>
			<add><![CDATA[
				$_['text_news'] = 'Our News';
			]]></add>
		</operation>
	</file>
	<file name="catalog/view/theme/*/template/common/footer.tpl">
		<operation>
			<search position="before"><![CDATA[
				<li><a href="<?php echo $voucher; ?>"><?php echo $text_voucher; ?></a></li>
			]]></search>
			<add><![CDATA[
				<li><a href="<?php echo $news; ?>"><?php echo $text_news; ?></a></li>
			]]></add>
		</operation>
	</file>
	<file name="catalog/controller/common/seo_url.php">
		<operation>
			<search position="before"><![CDATA[
				if ($url[0] == 'information_id') {
			]]></search>
			<add><![CDATA[
				if ($url[0] == 'news_id') {
					$this->request->get['news_id'] = $url[1];
				}	
			]]></add>
		</operation>
		<operation>
			<search position="before"><![CDATA[
				} elseif (isset($this->request->get['information_id'])) {
			]]></search>
			<add><![CDATA[
				} elseif (isset($this->request->get['news_id'])) {
					$this->request->get['route'] = 'information/news/news';
			]]></add>
		</operation>
		<operation>
			<search position="replace"><![CDATA[
				if (($data['route'] == 'product/product' && $key == 'product_id') || (($data['route'] == 'product/manufacturer/info' || $data['route'] == 'product/product') && $key == 'manufacturer_id') || ($data['route'] == 'information/information' && $key == 'information_id')) {
			]]></search>
			<add><![CDATA[
				if (($data['route'] == 'information/news/news' && $key == 'news_id') || ($data['route'] == 'product/product' && $key == 'product_id') || (($data['route'] == 'product/manufacturer/info' || $data['route'] == 'product/product') && $key == 'manufacturer_id') || ($data['route'] == 'information/information' && $key == 'information_id')) {
			]]></add>
		</operation>
		<operation>
			<search position="replace"><![CDATA[
				if ($query->row['query'] && $url[0] != 'information_id' && $url[0] != 'manufacturer_id' && $url[0] != 'category_id' && $url[0] != 'product_id') {
			]]></search>
			<add><![CDATA[
				if ($query->row['query'] && $url[0] != 'information_id' && $url[0] != 'manufacturer_id' && $url[0] != 'category_id' && $url[0] != 'product_id' && $url[0] != 'news_id') {
			]]></add>
		</operation>
	</file>
	<file name="admin/controller/common/dashboard.php" error="skip">
		<operation>
			<search position="after"><![CDATA[
				function index()
			]]></search>
			<add><![CDATA[	
				$this->load->model('setting/news');
				$results = $this->model_setting_news->getNews();
				$data['json'] = json_decode($results['text'], true);
			]]></add>
		</operation>
	</file>
	<file name="admin/view/template/common/dashboard.tpl" error="skip">
		<operation>
			<search position="before"><![CDATA[
				<?php if ($error_install) { ?>
			]]></search>
			<add><![CDATA[
				<?php if ($json) { ?>
				<div class="alert alert-info">
					<ul style="margin:0px; padding: 0px;">
					<?php foreach ($json as $value) { ?>
						<li style="margin: 0px 20px;"><?php echo $value['title']; ?></li>
					<?php }	?>
					</ul>
				</div>
				<?php } ?>
			]]></add>
		</operation>
	</file>
</modification>