|
|
@@ -6,6 +6,50 @@
|
|
|
<author>Reverb OpenCart</author>
|
|
|
<link>https://reverb.com/au/page/integrations</link>
|
|
|
|
|
|
+ <!--
|
|
|
+ ========================================================================
|
|
|
+ FILE: admin/controller/common/header.php
|
|
|
+
|
|
|
+ Loads reverb.css so the sidebar icon class is defined before the
|
|
|
+ column_left template renders.
|
|
|
+ ========================================================================
|
|
|
+ -->
|
|
|
+ <file path="admin/controller/common/header.php">
|
|
|
+ <operation error="skip">
|
|
|
+ <search><![CDATA[addStyle('view/stylesheet/opencart.css');]]></search>
|
|
|
+ <add position="after"><![CDATA[
|
|
|
+ $this->document->addStyle('view/stylesheet/reverb.css');]]></add>
|
|
|
+ </operation>
|
|
|
+ </file>
|
|
|
+
|
|
|
+ <!--
|
|
|
+ ========================================================================
|
|
|
+ FILE: admin/controller/common/column_left.php
|
|
|
+
|
|
|
+ Adds the Reverb menu item to the left-hand navigation, positioned
|
|
|
+ above the Sale (menu-sale) block. A regex search is used so the match
|
|
|
+ is whitespace-agnostic across OC3 minor versions.
|
|
|
+ ========================================================================
|
|
|
+ -->
|
|
|
+ <file path="admin/controller/common/column_left.php">
|
|
|
+ <operation error="skip">
|
|
|
+ <search regex="true"><![CDATA[if \(\$sale\) \{\s+\$data\['menus'\]\[\]\s*=\s*array\(]]></search>
|
|
|
+ <add position="before"><![CDATA[
|
|
|
+ // Reverb
|
|
|
+ if ($this->user->hasPermission('access', 'extension/module/reverb')) {
|
|
|
+ $data['menus'][] = array(
|
|
|
+ 'id' => 'menu-reverb',
|
|
|
+ 'icon' => 'reverb-nav-icon',
|
|
|
+ 'name' => 'Reverb',
|
|
|
+ 'href' => $this->url->link('extension/module/reverb', 'user_token=' . $this->session->data['user_token'], true),
|
|
|
+ 'children' => array()
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ ]]></add>
|
|
|
+ </operation>
|
|
|
+ </file>
|
|
|
+
|
|
|
<!--
|
|
|
========================================================================
|
|
|
FILE: admin/view/template/catalog/product_form.twig
|