https://github.com/garand/sticky
This gist describes how to install Garand Sticky into FoundationPress https://github.com/olefredrik/FoundationPress
https://github.com/garand/sticky
This gist describes how to install Garand Sticky into FoundationPress https://github.com/olefredrik/FoundationPress
Step 1 | |
Create .htaccess file in root folder, i.e advanced/.htaccess and write below code. | |
--------------- | |
Options +FollowSymlinks | |
RewriteEngine On | |
# deal with admin first | |
RewriteCond %{REQUEST_URI} ^/(admin) <------ | |
RewriteRule ^admin/assets/(.*)$ backend/web/assets/$1 [L] | |
RewriteRule ^admin/css/(.*)$ backend/web/css/$1 [L] |
export PKG_CONFIG_PATH=/usr/lib64/pkgconfig:/usr/lib/pkgconfig | |
export PATH=/usr/bin:$PATH | |
export LDFLAGS=-L/usr/lib64:/usr/lib | |
export LD_LIBRARY_PATH=/usr/lib64:/usr/lib | |
export CPPFLAGS=-I/usr/include | |
sudo yum-config-manager --enable epel | |
#sudo yum update -y | |
sudo yum install -y gcc gcc-c++ glib2-devel.x86_64 libxml2-devel.x86_64 libpng-devel.x86_64 \ | |
libjpeg-turbo-devel.x86_64 gobject-introspection.x86_64 gobject-introspection-devel.x86_64 |
<?php | |
set_time_limit(0); | |
// List of fetch styles to test | |
$fetchStyles = array( | |
'Assoc' => PDO::FETCH_ASSOC, | |
'Both' => PDO::FETCH_BOTH, | |
'Lazy' => PDO::FETCH_LAZY, | |
'Num' => PDO::FETCH_NUM, |
/** | |
* Custom validation callback to validate UK postcodes. | |
* | |
* It also tries to format provided postcode in correct format. | |
* | |
* Note: It's only usable for "postcode" fields. | |
*/ | |
public function check_postcode_uk($original_postcode) | |
{ | |
// Set callback's custom error message (CI specific) |