This file contains 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
<div class="mb-4 leading-relaxed product-description prose" | |
x-data="{ isCollapsed: false, maxLength: 420, originalContent: '', content: '' }" | |
x-init="originalContent = $el.firstElementChild.textContent.trim(); content = originalContent.slice(0, maxLength) + '...'"> | |
<p x-text="isCollapsed ? originalContent : content" class="m-0"> | |
<?= /* @noEscape */ $shortDescription ?> | |
</p> | |
<a class="inline-flex font-black underline uppercase cursor-pointer text-sm hover:text-orange" | |
@click="isCollapsed = !isCollapsed" | |
x-show="originalContent.length > maxLength" | |
x-text="isCollapsed ? '<?= __('- Read less') ?>' : '<?= __('+ Read more') ?>'"> |
This file contains 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
# Install a Webserver | |
apt-get -y install apache2 | |
# Target docroot to /home/satis/web/ | |
# Install PHP5 CLI and needed programs. | |
apt-get -y install php5-cli php5-curl php5-json git wget | |
# Add a specifix user for our task | |
adduser satis |
This file contains 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
User-agent: * | |
# Directories | |
Disallow: /app/ | |
Disallow: /bin/ | |
Disallow: /dev/ | |
Disallow: /lib/ | |
Disallow: /phpserver/ | |
Disallow: /pkginfo/ | |
Disallow: /report/ |
This file contains 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
<referenceContainer name="root" htmlTag="div" htmlClass="my-custom-css-class" htmlId="my-custom-css-id"> | |
</referenceContainer> |
This file contains 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 echo $this->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('my-custom-block')->toHtml(); ?> |
This file contains 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
<pre data-bind="text: ko.toJSON($data, null, 2)"></pre> |