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
| stderr: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/a/apache2/apache2.2-bin_2.2.22-1ubuntu1.3_amd64.deb 404 Not Found [IP: 91.189.91.15 80] | |
| Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/a/apache2/apache2-utils_2.2.22-1ubuntu1.3_amd64.deb 404 Not Found [IP: 91.189.91.15 80] | |
| Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/a/apache2/apache2.2-common_2.2.22-1ubuntu1.3_amd64.deb 404 Not Found [IP: 91.189.91.15 80] | |
| Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/a/apache2/apache2-mpm-prefork_2.2.22-1ubuntu1.3_amd64.deb 404 Not Found [IP: 91.189.91.15 80] | |
| Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/a/apache2/apache2_2.2.22-1ubuntu1.3_amd64.deb 404 Not Found [IP: 91.189.91.15 80] | |
| E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? |
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 | |
| $date=strtotime($entity->field_event_date['und'][0]['value']); | |
| print '<div class="event-date-styled">'; | |
| print '<span class="event-date-styled-day">'.format_date($date,'day').'</span>'; | |
| print '<span class="event-date-styled-inner-wrapper">'; | |
| print '<div class="event-date-styled-month">'.format_date($date,'month').'</div>'; | |
| print '<div class="event-date-styled-year">'.format_date($date,'year').'</div>'; | |
| print '</span></div>'; | |
| ?> |
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 | |
| $last_page_visited = $_SERVER['HTTP_REFERER']; | |
| if(preg_match('/order-step1/', $last_page_visited) && preg_match('/cart/', current_path())) | |
| { | |
| drupal_goto($path = 'order-step2'); | |
| } | |
| ?> |
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 | |
| function mymodule_node_view($node){ | |
| switch($node) { | |
| case $node->nid == 'the node id here': | |
| $node['someLogicalNameHere'] = array ( | |
| '#type' => 'markup', | |
| '#markup' => views_embed_view($viewName, $display_name); | |
| //to get view name click on edit in views_ui and select your display, the url will have the following format: | |
| // admin/structure/views/view/$viewName/edit/$display_name | |
| //if you want to change the $display_name click advanced in the view and look for machine name about halfway down. Care |
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 sponsor_school_page_menu() { | |
| $items['add/teacher/%'] = array( | |
| 'title' => t('Add a Teacher'), | |
| 'page callback' => 'drupal_get_form', | |
| 'page arguments' => array('sponsor_school_page_add_teacher_form', array(1)), | |
| 'access callback' => TRUE, | |
| ); | |
| $items['add/point-of-contact/%'] = array( | |
| 'title' => t('Add a Point of Contact'), | |
| 'page callback' => 'sponsor_school_page_add_poc_form', |
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
| /* Slider */ | |
| .jcarousel-skin-cssrc .jcarousel-clip-horizontal { background: #4F0F0F; } | |
| /* Link */ | |
| .html a, ul.primary li.active a, .event-date-styled { color: #4F0F0F; } | |
| .html a:visited, ul.primary li a:visited { color: #4F0F0F; } | |
| .html a:hover, ul.primary li a:hover { color: #861919; } | |
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 | |
| function custom_blocks_block_info() { | |
| $blocks['left_social'] = array( | |
| // info: The name of the block. | |
| 'info' => t('Social Header Left'), | |
| ); | |
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 | |
| /** | |
| * Created by JetBrains PhpStorm. | |
| * User: richallen | |
| * Date: 9/25/13 | |
| * Time: 11:26 AM | |
| * To change this template use File | Settings | File Templates. | |
| */ | |
| $tidList = 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
| (function ($) { | |
| Drupal.behaviors.taoti_javascript = { | |
| attach: function (context, settings) { | |
| $('.view-display-id-our_work_slider .views-field-nothing p').click( function () { | |
| var tid = $(this).attr('data-tid'); | |
| var descURL = 'slider/' + tid + '/topic-embed'; | |
| var newsURL = 'slider/' + tid + '/news-embed'; | |
| $('#our-work-taxonomy-desc').empty(); |
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 | |
| function taoti_javascript_menu() { | |
| $items['slider/%/news-embed'] = array( | |
| 'page callback' => 'taoti_javascript_get_news_view_embed', | |
| 'delivery callback' => 'taoti_javascript_get_embed_wrapper', | |
| 'page arguments' => array(1), | |
| 'access callback' => TRUE, | |
| ); | |
| $items['slider/%/topic-embed'] = array( |