A Pen by Rezwan Ferdous Niloy on CodePen.
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 | |
| /** | |
| * Controller. Implements ContainerInjectionInterface | |
| */ | |
| namespace Drupal\gurei\Controller; | |
| use Drupal\Core\Controller\ControllerBase; | |
| use Drupal\Core\DependencyInjection\ContainerInjectionInterface; | |
| use Drupal\gurei\Service\CompanyService; | |
| use Symfony\Component\DependencyInjection\ContainerInterface; |
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
| /* | |
| editor styles | |
| */ | |
| .Bold{ | |
| font-weight:bold; | |
| } | |
| .Medium{ |
Here are some example WP All Import [IF] statements. The criteria for an IF statment is written in XPath 1.0 syntax and can use XPath functions. Although powerful, XPath syntax can be quite complex. In many cases it might be easier to use a PHP function as shown here.
Note: The [ELSE]<something> part is optional
[IF({price[.=0]})]Zero[ELSE]Not Zero[ENDIF]
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 | |
| function advanced_asyc_scripts($url) { | |
| if ( strpos( $url, '#asyncload') === false ) { | |
| return $url; | |
| } else if ( is_admin() ) { | |
| return str_replace( '#asyncload', '', $url ); | |
| } else { | |
| return str_replace( '#asyncload', '', $url )."' async='async' defer='defer"; | |
| } | |
| } |
from http://www.example.com/category.html/ to http://www.example.com/category.html
Go to ../app/code/core/Mage/Core/Block/Abstract.php copy this file to ../app/code/local/Mage/Core/Block/Abstract.php
Find the following line of code:
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
| //taphover - a solution to the lack of hover on touch devices. | |
| //more info: http://www.hnldesign.nl/work/code/mouseover-hover-on-touch-devices-using-jquery/ | |
| $('a.taphover').on('touchstart', function (e) { | |
| 'use strict'; //satisfy the code inspectors | |
| var link = $(this); //preselect the link | |
| if (link.hasClass('hover')) { | |
| return true; | |
| } else { | |
| link.addClass('hover'); | |
| $('a.taphover').not(this).removeClass('hover'); |
- Create certificate
- Config Apache to access
httpsinstead ofhttp - Config mod rewrite to generate SSL url
- Config Virtual host to test site
- Go to your XAMPP installation directory (in my case it’s E:\xampp), figure out apache folder. In this, find & run batch 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
| <?php | |
| function get_isotope_item( $query_args = array() ){ | |
| $defaults = array( | |
| 'post_type' => 'post', | |
| 'posts_per_page' => -1, | |
| 'post_status' => 'publish', | |
| ); | |
NewerOlder