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
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
DocumentRoot "D:\devsoft\xampp\htdocs\migratedev" | |
ServerName migratedev.dev | |
ErrorLog "logs/migratedev.dev-error.log" | |
CustomLog "logs/migratedev.dev-access.log" common | |
<Directory "D:\devsoft\xampp\htdocs\migratedev"> | |
AllowOverride All | |
php_admin_value apc.enabled 1 | |
php_admin_value apc.filters "-D:/devsoft/xampp/htdocs/migratedev/sites/all/modules/custom/*" |
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 | |
/*Template Name: FlexSlider Slideshow*/ | |
// Add js and css | |
drupal_add_js("sites/all/libraries/flexslider/jquery.flexslider.js"); | |
drupal_add_css("sites/all/libraries/flexslider/flexslider.css"); | |
//dpm($data); | |
?> | |
<!-- Place somewhere in the <body> of your page --> |
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 | |
/*Template Name: FlexSlider Thumbnail Slideshow*/ | |
// Add js and css. | |
drupal_add_js("sites/all/libraries/flexslider/jquery.flexslider.js"); | |
drupal_add_css("sites/all/libraries/flexslider/flexslider.css"); | |
// dpm($data); | |
// FlexSlider need jQuery >= 1.7 so you need install jquery_update module and | |
// select jQuery 1.7 for your Drupal. | |
?> |
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 | |
/*Template Name: CarouFredSel Example 71*/ | |
// Organic Code http://coolcarousels.frebsite.nl/c/71/ | |
// Add js | |
// You can download caroufredsel library and place at sites/all/libraries folder | |
// Or using cdn library. | |
drupal_add_js("//cdnjs.cloudflare.com/ajax/libs/jquery.caroufredsel/6.2.1/jquery.carouFredSel.packed.js"); | |
?> |
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 | |
/*Template Name: Owl Carousel*/ | |
// Add CSS and JS | |
drupal_add_css("//cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.2/owl.carousel.min.css", "external"); | |
drupal_add_css("//cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.2/owl.theme.min.css", "external"); | |
drupal_add_css("//cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.2/owl.transitions.min.css", "external"); | |
drupal_add_js("//cdnjs.cloudflare.com/ajax/libs/owl-carousel/1.3.2/owl.carousel.min.js", "external"); |
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
<Directory /> | |
Options FollowSymLinks | |
AllowOverride All | |
Allow from all | |
</Directory> |
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 | |
/** | |
* Override theme image style to remove query string. | |
*/ | |
function zmbootstrap_image_style($variables) { | |
// Determine the dimensions of the styled image. | |
$dimensions = array( | |
'width' => $variables['width'], | |
'height' => $variables['height'], | |
); |
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 | |
/** | |
* Implements hook_block_info(). | |
*/ | |
function bluecollar_helper_block_info() { | |
/* $blocks['bluecollar_resource_filter'] = array( | |
'info' => t('Resource Filter'), | |
'cache' => DRUPAL_CACHE_PER_ROLE, | |
); | |
*/ |
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 | |
function mymodule_force_goto($url) { | |
$_GET['destination'] = $url; | |
drupal_goto($url); | |
} |
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 | |
function fft_get_field_types() { | |
return array_keys(\Drupal::service('plugin.manager.field.field_type')->getDefinitions()); | |
} |