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 $stars = $data->_field_data['nid']['entity']->field_stars['und'][0]['value']; | |
| for ($i = 1; $i <= $stars; $i++) { | |
| echo "<span class='star'>$stars</span>\n"; | |
| } | |
| for ($j = 1; $j <= (5 - $stars); $j++) { | |
| echo "<span class='dead star'>$stars</span>\n"; | |
| } | |
| ?> |
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
| Additional uncaught exception thrown while handling exception. | |
| Original | |
| PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT DISTINCT field_data_field_make.field_make_tid AS field_data_field_make_field_make_tid FROM {node} node LEFT JOIN {field_data_field_make} field_data_field_make ON node.nid = field_data_field_make.entity_id AND (field_data_field_make.entity_type = :views_join_condition_0 AND field_data_field_make.deleted = :views_join_condition_1) WHERE (( (node.nid IN (:oids_0, :oids_1, :oids_2, :oids_3, :oids_4, :oids_5, :oids_6, :oids_7, :oids_8, :oids_9, :oids_10, :oids_11, :oids_12, :oids_13, :oids_14, :oids_15, :oids_16, :oids_17, :oids_18, :oids_19, :oids_20, :oids_21, :oids_22, :oids_23, :oids_24, :oids_25, :oids_26, :oids_27, :oids_28, :oids_29, :oids_30, :oids_31, :oids_32, :oids_33, :oids_34, :oids_35, :oids_36, :oids_37, :oids_38, :oids_39, :oids_40, :oids_41, :oids_42, :oids_43, :oids_44, :oids_45, :oids_46, :oids_47, :oids_48, :oids_49, :oids_50, :oids_51, |
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
| // | |
| // refine search sidebar on mobile | |
| // | |
| if(checkMediaMode('mobile')){ | |
| if ($("#filter-button").length) { | |
| $('#side').tinyscrollbar(); | |
| $('#filter-button').click(function() { |
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
| <div class="date-time-wrapper time"> | |
| <span class="date-time time from"><?= $start_time; ?></span> | |
| <?php if (isset($end_time) && $start_date != $end_date && $start_time != $end_time) { ?><span class="separator"> - </span><span class="date-time time to"><?= $end_time; ?></span> <?php } ?> | |
| </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
| <? | |
| // 2013-09-30 18:00:00 to 2013-09-30 20:00:00 (contents of #markup) | |
| $dates = explode(' to ', $items[0]['#markup']); | |
| $time_format = 'g:i A'; | |
| $date_format = 'F jS, Y'; | |
| $s = $dates[0] . " -0500"; | |
| $start = strtotime($s); | |
| //$start_date = date($date_format, $start); |
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
| (.virtualenv)chadsten@chadsten-ubuntu-desktop [/var/www/roshambio] | |
| $ python socket.py | |
| Traceback (most recent call last): | |
| File "socket.py", line 1, in <module> | |
| from socketIO_client import SocketIO | |
| File "/home/chadsten/.virtualenv/local/lib/python2.7/site-packages/socketIO_client/__init__.py", line 1, in <module> | |
| import requests | |
| File "/home/chadsten/.virtualenv/local/lib/python2.7/site-packages/requests/__init__.py", line 58, in <module> | |
| from . import utils | |
| File "/home/chadsten/.virtualenv/local/lib/python2.7/site-packages/requests/utils.py", line 12, in <module> |
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
| chadsten@chadsten-ubuntu-desktop [/var/www/peterscars] | |
| $ drush cc all | |
| PHP Fatal error: Call to undefined function newrelic_add_custom_parameter() in /var/www/peterscars/sites/all/modules/new_relic_rpm/new_relic_rpm.drush.inc on line 19 | |
| Drush command terminated abnormally due to an unrecoverable error. [error] | |
| Error: Call to undefined function newrelic_add_custom_parameter() in /var/www/peterscars/sites/all/modules/new_relic_rpm/new_relic_rpm.drush.inc, line 19 | |
| chadsten@chadsten-ubuntu-desktop [/var/www/peterscars] |
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
| error sass/global/tabs.scss (Line 61 of sass/global/_functions.scss: Unrecognized file type: png) |
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 = 'property_listings'; | |
| $view->description = ''; | |
| $view->tag = 'default'; | |
| $view->base_table = 'node'; | |
| $view->human_name = 'Property Listings'; | |
| $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
| <?php | |
| # Let's grab the Condition (new/used) to compare against later | |
| $tid = $data->_field_data['nid']['entity']->field_type['und'][0]['tid']; | |
| # we need to check the make to hide chevy | |
| $make = $data->_field_data['nid']['entity']->field_make['und'][0]['tid']; | |
| # loading vin here, to check later for empty vin to avoid bad links | |
| $vin = $data->_field_data['nid']['entity']->field_vin['und'][0]['safe_value']; |