#Local PHP Dev Environment
###Set up Apache
Uncomment this line in: /etc/apache2/httpd.conf
#Include /private/etc/apache2/extra/httpd-vhosts.conf
Paste this into: /etc/apache2/extra/httpd-vhosts.conf
git checkout origin/master folder-or-file |
I am writing to you because we are looking for someone to develop a book of around 300-320 pages on Drupal 8 Theme Development Hotshot. By the end of this book the reader would have experienced and developed various Drupal themes for different business and personal needs through 10-11 different projects. | |
The target audience will be Drupal developers, designers and consultants who want to develop and design their own themes using Drupal. | |
Taken into consideration that you have previously authored a book on similar technology, I was wondering if you would be interested in authoring this book as well. So, if authoring this book for Packt is something you’d be interested in, or if you have any questions, please do get in touch. |
#content div.afm li ul, #content div.afm li ol { | |
margin: 0 !important; | |
} | |
#content div.afm h1, #content div.afm h2, #content div.afm h3, #content div.afm h4, #content div.afm h5, #content div.afm h6, #content div.afm p, #content div.afm ol, #content div.afm ul, #content div.afm blockquote { | |
background-color: rgba(0, 0, 0, 0) !important; | |
background-image: none !important; | |
border: 0 none !important; | |
box-shadow: 0 0 0 #FFFFFF !important; | |
color: #333333 !important; | |
margin: 15px 0 !important; |
<?php | |
/** | |
* Implements hook_preprocess_HOOK(). | |
* | |
*/ | |
function MYTHEME_preprocess_html(&$vars) { | |
// Fixes page titles for login, register & password. | |
switch (current_path()) { | |
case 'user': | |
$vars['head_title_array']['title'] = t('Login'); |
1. replace @ with $ | |
Find: @ | |
Replace: $ | |
2. replace mixins | |
Find: \.([\w\-]*)\s*\((.*)\)\s*\{ | |
Replace: @mixin \1\(\2\)\n{ | |
3. replace includes | |
Find: \.([\w\-]*\(.*\)\s*;) |
<?php | |
/** | |
* Implements hook_form_user_profile_form_alter() | |
* | |
**/ | |
function hamilton_trust_form_user_profile_form_alter(&$form, &$form_state, $form_id) { | |
unset($form['field_user_fieldname']); | |
} |
#Local PHP Dev Environment
###Set up Apache
Uncomment this line in: /etc/apache2/httpd.conf
#Include /private/etc/apache2/extra/httpd-vhosts.conf
Paste this into: /etc/apache2/extra/httpd-vhosts.conf
{ | |
"bold_folder_labels": true, | |
"caret_style": "wide", | |
"color_scheme": "Packages/Decent Color Scheme/Samuel's decent.tmTheme", | |
"default_line_ending": "unix", | |
"dictionary": "Packages/Language - English/en_GB.dic", | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"fade_fold_buttons": false, | |
"fallback_encoding": "UTF-8", |