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 | |
/** | |
* @file | |
* VIH Kalendersiden admin settings. | |
*/ | |
/** | |
* Return the VIH Kalendersiden global settings form. | |
*/ |
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
Feature: Add spotlight widget | |
In order to promote content | |
As a site administrator | |
I need to be able to add a spotlight | |
@api @javascript | |
Scenario: Add a spotlight | |
Given I am logged in as a user with the "administrator" role | |
When I visit "/node/add/panopoly-page" | |
And I fill in the following: |
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
<div class="front"> | |
<div class="span4 sidebar panel-panel"> | |
<div class="panel-panel-inner"> | |
<div class="panel-pane pane-fieldable-panels-pane pane-fpid-14 pane-bundle-image" > | |
<h4 class="pane-title"><a href="/media">Billeder og video</a></h4> | |
<div class="pane-content"> | |
<div class="fieldable-panels-pane"> |
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
<div class="skew"> | |
<p>Testing</p> | |
</div> |
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
<div class="view view-vies-subjects view-id-vies_subjects view-display-id-panel_pane_2 frontpage-subjects view-dom-id-3a14a77dd4ddb2fca4b946d030519b60 contextual-links-region"> | |
<div class="view-content row-fluid"> | |
<div class="views-row views-row-1 views-row-odd views-row-first views-row-last span6"> | |
<div class="views-field views-field-field-featured-image-1"> | |
<div class="field-content"><a href="/content/atletik"> | |
<img class="panopoly-image-thumbnail" src="http://dev.kursuscenter.vih.dk/sites/dev.kursuscenter.vih.dk/files/styles/panopoly_image_thumbnail/public/employees/1260304147bbsc%20%281%29.png?itok=FHlB6MQ_" width="80" height="60" alt="" /></a> | |
</div> | |
</div> | |
<div class="views-field views-field-title"> | |
<h3 class="field-content"><a href="/content/atletik">Atletik</a></h3> |
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
<div class="view view-vies-subjects view-id-vies_subjects view-display-id-panel_pane_2 frontpage-subjects view-dom-id-3a14a77dd4ddb2fca4b946d030519b60 contextual-links-region"> | |
<div class="view-content row-fluid"> | |
<div class="views-row views-row-1 views-row-odd views-row-first views-row-last span6"> | |
<div class="views-field views-field-field-featured-image-1"> | |
<div class="field-content"><a href="/content/atletik"><img class="panopoly-image-thumbnail" src="http://dev.kursuscenter.vih.dk/sites/dev.kursuscenter.vih.dk/files/styles/panopoly_image_thumbnail/public/employees/1260304147bbsc%20%281%29.png?itok=FHlB6MQ_" width="80" height="60" alt="" /></a></div> </div> | |
<div class="views-field views-field-title"> | |
<h3 class="field-content"><a href="/content/atletik">Atletik</a></h3> </div> </div> | |
</div> | |
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
function billysbilling_create_invoice_confirm($form, &$form_state, $order) { | |
$form['order_id'] = array('#type' => 'value', '#value' => $order->order_id); | |
return confirm_form($form, | |
t('Are you sure you want to invoice order @id?', array('@id' => $order->order_id)), | |
'admin/commercer/orders/' . $order->order_id . '/billysbilling', | |
t('This action cannot be undone.'), | |
t('Invoice'), | |
t('Cancel') | |
); | |
} |
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 | |
/** | |
* @file | |
* Provides BillysBilling functionality. | |
*/ | |
/** | |
* Implements hook_menu(). | |
*/ |
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
// Add any selected training. | |
if (!empty($form_state['values']['kayak']) && is_numeric($form_state['values']['kayak']) && $form_state['values']['kayak'] != 'none') { | |
$line_item = NULL; | |
if ($product = commerce_product_load(check_plain($form_state['values']['kayak']))) { | |
$line_item = commerce_product_line_item_new($product, check_plain($form_state['values']['quantity']), check_plain($form_state['line_item']->order_id$ | |
commerce_line_item_save($line_item); | |
$line_item->field_wetsuit_size[LANGUAGE_NONE][0]['value'] = check_plain($form_state['values']['wetsuit_size']); | |
$line_item->field_registrant_name[LANGUAGE_NONE][0]['value'] = check_plain($form_state['values']['line_item_fields']['field_registrant_name'][LANGUA$ | |
commerce_line_item_save($line_item); | |
$line_item = commerce_line_item_load($line_item->line_item_id); |
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
Chef::Log.debug("Running barracuda recipe") | |
remote_file "/tmp/BOA.sh" do | |
source "http://files.aegir.cc/BOA.sh.txt" | |
mode 00755 | |
end | |
execute "/tmp/BOA.sh" do | |
creates "/usr/local/bin/boa" | |
end |