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
FILTER_VALIDATE_EMAIL |
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
if (strpos($imagePath, 'http') !== false) { | |
return true; | |
} else if (JFile::exists($imagePath) || JFile::exists(JPATH_ROOT . '/' . $imagePath)) { | |
return true; | |
} |
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
JLoader::register('ContentHelperRoute', JPATH_SITE . '/components/com_content/helpers/route.php'); | |
$rootURL = rtrim(JURI::base(),'/'); | |
$subpathURL = JURI::base(true); | |
if(!empty($subpathURL) && ($subpathURL != '/')) { | |
$rootURL = substr($rootURL, 0, -1 * strlen($subpathURL)); | |
} | |
$itemUrl = $rootURL.JRoute::_(ContentHelperRoute::getArticleRoute($item->id, $item->catid)); |
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
Congratulations! You are pretty awesome. | |
You are well on your way to a highly customized server. | |
However, if you are seeing this page, it means you are using IP Address, not virtual host! | |
This is probably not the page you want. | |
This page is being served from /var/www/html/index.html, and is the default vhost (virtual host) that comes with most web servers. | |
What you want to do is to add all vhosts that you defined on PuPHPet.com to your hosts file. |
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
Здравствуйте уважаемые читатели блога sivway.com. Анализируя сайты клиентов, все время наблюдаю одну и ту же ошибку - дубль главной страницы в joomla. Ошибка достаточно распространенная и легко исправима, но из-за нее мне приходится тратить больше времени и сил. Поэтому в этой статье я опишу, какого вида бывают дубли страниц и как с ними бороться. | |
Виды дублей главной страницы и методы борьбы с ними. | |
Самый распространенный дубль – название сайта с www и без. До сих пор многие люди вводят название сайта с www, но некоторые «умные» вебмастера настраивают свой домен так, что попасть на сайт без www невозможно. Поэтому целесообразно давать доступ к такому домену. Но возникает следующая проблема, поисковики считают сайт с www и без как два разных сайта. Правда, через какое-то время они делают склейку домена (зеркало), но на это необходимо время, которое в наши дни очень ценно. Поэтому при создании сайта на любой CMS и не только необходимо сразу избавится от этого дубля. Для этого воспользуемся 301 редиректом. |
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
class JBCartElementModifierOrderPriceColdiscount extends JBCartElementModifierOrderPrice | |
{ | |
public function getRate() | |
{ | |
$orderSum = $this->_order->getTotalForItems(); // сумма за все товары (без доставки и прочего) | |
$discount = 0; | |
if ($orderSum->compare('100rub', '=')) { // сравниваем c ценой 100 рублей | |
$discount = '2'; // скидка 2 руб, если сумма равна |
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 JRegistry extends \Joomla\Registry\Registry {} | |
abstract class JRegistryFormat extends \Joomla\Registry\AbstractRegistryFormat {} | |
class JRegistryFormatIni extends \Joomla\Registry\Format\Ini {} | |
class JRegistryFormatJson extends \Joomla\Registry\Format\Json {} | |
class JRegistryFormatPhp extends \Joomla\Registry\Format\Php {} | |
class JRegistryFormatXml extends \Joomla\Registry\Format\Xml {} | |
class JStringInflector extends \Joomla\String\Inflector {} | |
abstract class JStringNormalise extends \Joomla\String\Normalise {} | |
class JData extends \Joomla\Data\DataObject {} |
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 | |
/** | |
* @package yoo_master2 | |
* @author YOOtheme http://www.yootheme.com | |
* @copyright Copyright (C) YOOtheme GmbH | |
* @license http://www.gnu.org/licenses/gpl.html GNU/GPL | |
*/ | |
// no direct access | |
defined('_JEXEC') or die('Restricted access'); |
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
<meta http-equiv="X-UA-Compatible" content="IE=9" /> |
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 | |
/** | |
* JBZoo App is universal Joomla CCK, application for YooTheme Zoo component | |
* | |
* @package jbzoo | |
* @version 2.x Pro | |
* @author JBZoo App http://jbzoo.com | |
* @copyright Copyright (C) JBZoo.com, All rights reserved. | |
* @license http://jbzoo.com/license-pro.php JBZoo Licence | |
* @coder Denis Smetannikov <[email protected]> |