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 | |
| /** | |
| * Return all term child tids. | |
| */ | |
| function helper_get_all_term_child_tids($tid) { | |
| $query = db_select('taxonomy_term_data', 'd'); | |
| $query->fields('d', array('tid')); | |
| $query->innerJoin('taxonomy_term_hierarchy', 'h', 'd.tid = h.tid'); | |
| $query->condition('h.parent', $tid); |
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
| /** | |
| * Implements hook_form_alter(). | |
| */ | |
| function bushwacker_extras_form_alter(&$form, &$form_state, $form_id) { | |
| if ($form_id == "views_exposed_form" && $form['#id'] == 'views-exposed-form-search-api-results-solr-page') { | |
| $options = bushwacker_extras_build_vehicel_otions(); | |
| $form['field_make'] = array( |
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
| curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); |
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 | |
| // Make sure we have a payload, stop if we do not. | |
| if( ! isset( $_POST['payload'] ) ) | |
| die( '<h1>No payload present</h1><p>A BitBucket POST payload is required to deploy from this script.</p>' ); | |
| /** | |
| * Tell the script this is an active end point. | |
| */ | |
| define( 'ACTIVE_DEPLOY_ENDPOINT', 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
| .ui-dialog .ui-dialog-content{ | |
| width: auto !important; | |
| -webkit-box-sizing: initial; -moz-box-sizing:initial; box-sizing: initial; | |
| } |
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
| (function ($) { | |
| Drupal.behaviors.AdvancedAJAXExamples = { | |
| attach: function (context, settings) { | |
| /** | |
| * Use a class to bind custom behavior to a link. As it happens, the behavior | |
| * if this link is nearly exactly the same as with "use-ajax". But instead | |
| * we are ensuring that the throbber is active. |
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
| Cay Chan Chim | |
| Ha Thu O | |
| Dua gai | |
| Cu Rang Bay | |
| Dau Tam an | |
| 3 chen con 8 phan | |
| 2 lan/thang/ngay |
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
| $view = new view(); | |
| $view->name = 'demo'; | |
| $view->description = ''; | |
| $view->tag = 'default'; | |
| $view->base_table = 'node'; | |
| $view->human_name = 'Demo'; | |
| $view->core = 7; | |
| $view->api_version = '3.0'; | |
| $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
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
| https://der-linux-admin.de/2014/12/centos-zusaetzliche-php-versionen-php-5-5-php-5-4-fuer-plesk-bereitstellen/ | |
| PHP-Versionen (PHP 5.4 / PHP 5.5) unter für CentOS 6 | |
| Installation des Software Collections Repository für PHP 5.5: | |
| yum install https://www.softwarecollections.org/en/scls/rhscl/php55/epel-6-x86_64/download/rhscl-php55-epel-6-x86_64.noarch.rpm yum install https://www.softwarecollections.org/en/scls/remi/php55more/epel-6-x86_64/download/remi-php55more-epel-6-x86_64.noarch.rpm | |
| 1 | |
| 2 | |
| yum install https://www.softwarecollections.org/en/scls/rhscl/php55/epel-6-x86_64/download/rhscl-php55-epel-6-x86_64.noarch.rpm |
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 | |
| // include our wordpress functions | |
| // change relative path to find your WP dir | |
| define('WP_USE_THEMES', false); | |
| require('./blog/wp-blog-header.php'); | |
| // set header for json mime type | |
| header('Content-type: application/json;'); | |
| // get latest single post |