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
.grid .content{text-align:center}a.zakaz{padding:10px 30px;background-color:#28ad65;color:#fff;font-weight:700}a.zakaz:hover{background-color:#06a057;text-decoration:none}[class*=grid],[class*=col-],[class*=mobile-],.grid:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}[class*=col-]{float:left;min-height:1px;padding-right:20px}[class*=col-] [class*=col-]:last-child{padding-right:0}.grid{width:100%;max-width:1140px;min-width:748px;margin:0 auto;overflow:hidden}.grid:after{content:"";display:table;clear:both}.grid-pad{padding-top:20px;padding-left:20px;padding-right:0}.push-right{float:right}.col-1-1{width:100%}.col-2-3,.col-8-12{width:66.66%}.col-1-2,.col-6-12{width:50%}.col-1-3,.col-4-12{width:33.33%}.col-1-4,.col-3-12{width:25%}.col-1-5{width:20%}.col-1-6,.col-2-12{width:16.667%}.col-1-7{width:14.28%}.col-1-8{width:12.5%}.col-1-9{width:11.1%}.col-1-10{width:10%}.col-1-11{width:9.09%}.col-1-12{width:8.33%}.col-11-12{width:91.66%}.col-10-12{width:83.333%}.col-9-12{width:75% |
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 | |
$months = array( 1 => 'Январь' , 'Февраль' , 'Март' , 'Апрель' , 'Май' , 'Июнь' , 'Июль' , 'Август' , 'Сентябрь' , 'Октябрь' , 'Ноябрь' , 'Декабрь' ); | |
echo "<span class='bigvmdva'>Внимание! </span> <br> <h3> Весь <span style='color:red;'>". mb_strtolower($months[date( 'n' )]) ."</span> спецпредложения! </h3>"; | |
echo "<p>Оставляйте заявку онлайн или звоните по нашим телефонам: </p>"; | |
echo '<div class="bigtelmasterdva">TEXT</div>'; |
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
https://docs.joomla.org/Supporting_plugins_in_your_component | |
Joomla 3.8+ | |
// Process the content plugins. | |
PluginHelper::importPlugin('content'); | |
$item->text = &$item->about; | |
$dispatcher->trigger('onContentPrepare', array('com_board.item', &$item, &$item->params, $offset)); | |
Joomla 2.5+ |
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
Options +FollowSymLinks | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} robots.txt$ [NC] | |
RewriteRule ^([^/]+) $1 [L] | |
RewriteRule (.*) http://testnew.ru/$1 [R=301,L] |
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 | |
defined('_JEXEC') or die; | |
if (($this->error->getCode()) == '404') { | |
header("HTTP/1.0 404 Not Found"); | |
$url=JURI::root()."index.php?option=com_content&view=article&id=143"; | |
$data = file_get_contents($url) or die("Cannot open URL"); | |
echo $data; | |
exit; |
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
Пишем в .htacces следующее: | |
RewriteCond %{QUERY_STRING} ^(.*)Itemid=$ | |
RewriteRule ^(.*) /$1?%1 [R=301,L] | |
или | |
RewriteCond %{QUERY_STRING} ^(.*)Itemid=([0-9]+)$ | |
RewriteRule ^(.*) /$1?%1 [R=301,L] |
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
// ______ _ _____ _ _ | |
// | ____| (_) / ____| (_) | | | |
// | |__ _ __ __ | | __ _ _ __ ___ _ __ _ ___ __ _ | | | |
// | __| | | \ \/ / | | / _` | | '_ \ / _ \ | '_ \ | | / __| / _` | | | | |
// | | | | > < | |____ | (_| | | | | | | (_) | | | | | | | | (__ | (_| | | | | |
// |_| |_| /_/\_\ \_____| \__,_| |_| |_| \___/ |_| |_| |_| \___| \__,_| |_| | |
$cstart = JFactory::getApplication()->input->get('start','','string'); | |
$climitstart = JFactory::getApplication()->input->get('limitstart','','string'); |
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
https://codepen.io/m5studio/pen/mVYNeG |
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
http://jsfiddle.net/a9ude9p0/6/ | |
#html | |
<div> | |
<svg class="svg icon icon_type_turbo-rocket turbo-promo__logo" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path class="svg__path" d="M5.3 8c.423-.54.937-1.11 1.523-1.7 2.295-2.31 4.84-2.446 5.082-2.202.242.245.09 2.77-2.205 5.08-.59.594-1.16 1.112-1.7 1.536v1.62c0 .666.015.688-.406 1-.225.166-1.194.96-2.234 1.597-.255.158-.466.028-.304-.2.44-.62.756-1.173.95-1.66.178-.446.177-.842-.003-1.19-.663.212-1.218.15-1.626-.248-.41-.4-.472-.96-.253-1.633-.348-.183-.746-.185-1.195-.006-.488.194-1.04.51-1.66.95-.23.16-.358-.05-.202-.305C1.704 9.6 2.5 8.63 2.666 8.404 2.978 7.985 3 8 3.666 8H5.3zm-2.05 3.605c.14.14-1.72.956-1.72 2.867 1.91 0 2.726-1.86 2.866-1.72.14.14-.31 1.22-1.074 1.984C2.558 15.5 1.53 16 0 16c0-1.528.5-2.557 1.265-3.32.764-.766 1.845-1.214 1.984-1.075zM.7 8c-.004.322-.404.348-.4 0 .048-4.418 2.992-8 7.696-8s8 3.3 8 8-3.582 7.668-8 7.698c-.15 0-.217-.098-.217-.197-.002-.1.065-.2.216-.2 3.698.008 6.802-3.3 6.802-7.3s-2.802 |
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
function savetempfile($val) | |
{ | |
$file = fopen( JFactory::getConfig()->get('tmp_path') . '/dump.log', 'w' ); | |
fwrite( $file, print_r( $val, true ) ); | |
flush(); | |
fclose( $file ); | |
} |