Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
add default.xml and chatbox block
Browse files Browse the repository at this point in the history
  • Loading branch information
blopa committed Dec 24, 2017
1 parent 52bcde2 commit 8cad9ec
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
33 changes: 33 additions & 0 deletions Magento2/app/code/Werules/Chatbot/Block/Chatbox/Messenger.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?php
/**
* Magento Chatbot Integration
* Copyright (C) 2017
*
* This file is part of Werules/Chatbot.
*
* Werules/Chatbot is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

namespace Werules\Chatbot\Block\Chatbox;

class Messenger extends \Magento\Framework\View\Element\Template
{
public function __construct(
\Magento\Framework\View\Element\Template\Context $context,
array $data = array()
)
{
parent::__construct($context, $data);
}
}
10 changes: 10 additions & 0 deletions Magento2/app/code/Werules/Chatbot/view/frontend/layout/default.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceContainer name="footer">
<!--<block class='Company\Module\Block\Module' name="company_module" as="company_module" template="Company_Module::tracking.phtml"/>-->
<block class="Werules\Chatbot\Block\Chatbox\Messenger" name="chatbox.messenger" template="Werules_Chatbot::chatbox/messenger.phtml"/>
</referenceContainer>
<move element="company_module" destination="before.body.end"/>
</body>
</page>

0 comments on commit 8cad9ec

Please sign in to comment.