This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This quick and dirty script installs the Source Guardian loader on the web70 VM. | |
# Similar commands should work on other version of PHP -- simply replace the .lin file copied and the .ini file with the correct version. | |
cd /tmp | |
wget https://www.sourceguardian.com/loaders/download/loaders.linux-x86_64.tar.gz -O ./source-guardian.tgz | |
mkdir source-guardian |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd"> | |
<system> | |
<section id="catalog"> | |
<group id="search"> | |
<!-- add messaging for fields which are set in env.php --> | |
<field id="elasticsearch_server_hostname" translate="label comment" canRestore="1"> | |
<comment> | |
This field is configured by the server environment. Any changes will not take effect. | |
</comment> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media (max-width: $bp-large) and (min-width: $bp-medium) { | |
html { | |
position: relative; | |
overflow: hidden; | |
&:before { | |
content: "Resize your browser"; | |
background-color: black; | |
color: white; | |
display: block; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "ericthehacker/magento2-configscopehints", | |
"description": "Magento 2 store config override hints module", | |
"require": { | |
"magento/magento-composer-installer": "*" | |
}, | |
"type": "magento2-module", | |
"version": "2.0", | |
"extra": { | |
"map": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace EW\ConfigScopeHints\Helper; | |
use \Magento\Store\Model\Website; | |
use \Magento\Store\Model\Store; | |
class Data extends \Magento\Framework\App\Helper\AbstractHelper | |
{ | |
/** @var \Magento\Framework\App\Helper\Context */ | |
protected $_context; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/ObjectManager/etc/config.xsd"> | |
<type name="Magento\Config\Block\System\Config\Form"> | |
<plugin name="configScopeHints" type="EW\ConfigScopeHints\Model\Plugin" sortOrder="100" /> | |
</type> | |
</config> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace EW\ConfigScopeHints\Model; | |
use \Magento\Config\Model\Config\Structure\Element\Field; | |
use \Magento\Framework\Phrase; | |
class Plugin | |
{ | |
/** @var \EW\ConfigScopeHints\Helper\Data */ | |
protected $_helper; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app/code/community/EW/ConfigScopeHints | |
app/etc/modules/EW_ConfigScopeHints.xml | |
app/design/adminhtml/default/default/layout/ew/configscopehints.xml | |
skin/adminhtml/default/default/ew/configscopehints | |
## translations | |
app/locale/en_US/EW_ConfigScopeHints.csv | |
app/locale/es_ES/EW_ConfigScopeHints.csv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class EW_ConfigScopeHints_Helper_Data extends Mage_Core_Helper_Abstract | |
{ | |
const PROFILER_KEY = 'EW_ConfigScopeHints'; | |
/** | |
* Get default store ID. | |
* Abstracted so it can be improved if default store | |
* ID not always 0. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<config> | |
<!-- disable annoying adminhtml observers and modules --> | |
<adminhtml> | |
<events> | |
<controller_action_predispatch> | |
<observers> | |
<awall_exts> | |
<type>disabled</type> | |
</awall_exts> |