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
| jQuery(function() { | |
| days = void 0; | |
| hours = void 0; | |
| minutes = void 0; | |
| seconds = void 0; | |
| intervalId = void 0; | |
| return $.ajax({ | |
| url: "/api/data.json", | |
| dataType: "json", | |
| success: function(data) { |
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
| {% cache key:'ne-services' duration:'1800' %} | |
| {% assign domain = "https://9embers.online.church" %} | |
| {% assign jsonResults = '' %} | |
| {% webrequest url:'{{domain}}/auth/guest' method:'POST' return:'auth' %} | |
| {%- assign dateTimeNow = 'Now' | Date:'yyyy-MM-ddTHH:mm:ss zzz' %} | |
| {%- capture body -%}{"operationName":"ServicesConnectionQuery","variables":{"limit":1,"from":"{{dateTimeNow}}"},"query":"query ServicesConnectionQuery($from: Timestamp, $limit: Int = 0) {currentOrganization { id servicesConnection(from: $from, limit: $limit) { services { id startTime scheduleTime endTime __typename } __typename } __typename }}"}{%- endcapture -%} | |
| {% webrequest url:'{{domain}}/graphql' method:'POST' body:'{{body}}' requestcontenttype:'application/json' headers:'Authorization^Bearer {{auth.access_token}}' %} | |
| {% assign jsonResults = results | ToJSON %} | |
| {% endwebrequest %} | |
| {% endwebrequest %} |
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
| <!-- | |
| If today is Sunday && Service time is 10:30am-12pm show live button otherwise hide it | |
| to change day of week replace 0 after == with one of the following options: | |
| 0 Sunday | |
| 1 Monday | |
| 2 Tuesday | |
| 3 Wednesday | |
| 4 Thursday | |
| 5 Friday |
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 | |
| if ((date("w") == 0) && (date("Hi")>845) && (date("Hi")<1240)) $config->live = true; | |
| if ((date("w") == 0) && (date("Hi")>859) && (date("Hi")<1240)) $config->live_need_countdown = 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
| <?php foreach($page->children() as $campus): ?> | |
| <div class="pd-xs"><a href="#"><img class="img-responsive img-full-width" src="<?= $campus->img->url; ?>" style="width:343; height:156;" /></a> | |
| <h3><?= $campus->title; ?></h3> | |
| <p class="campus-times"><?php echo $page->service_times;?></p> | |
| <ul class="fa-ul"> | |
| <li><?php echo $page->street_adress;?></li> | |
| <li><?php echo $page->phone_number;?></li> | |
| </ul> | |
| <div class='mg-t-sm2'><a href="<?php echo $page->google_maps;?>" target="_blank" class='btn btn-default btn-left '> | |
| <i class='icon-right-4 icon-fw'></i> Get Directions</a></div></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
| {%- assign scheduleid = 240 -%} | |
| <script type="text/javascript"> | |
| $(function () { | |
| var holiday = new Date(); | |
| holiday = new Date("{[ scheduledcontent schedulecategoryid:'{{scheduleid}}' showwhen:'notlive' ]}{{ NextOccurrenceDateTime | Date: 'yyyy/MM/dd HH:mm:ss' }}{[ endscheduledcontent ]}{[ scheduledcontent schedulecategoryid:'{{scheduleid}}' showwhen:'live' ]}islive{[ endscheduledcontent ]}"); | |
| $('#expireMessage').countdown({until: shortly, | |
| expiryText: '<div class="over">It\'s all over</div>'}); | |
| $('#expireMessageStart').click(function() { | |
| shortly = new Date(); |
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
| .bttn { | |
| -moz-border-radius: 5px; | |
| -webkit-border-radius: 5px; | |
| -khtml-border-radius: 5px; | |
| border-radius: 5px; | |
| border: 0; | |
| padding: 6px; | |
| text-transform: uppercase; | |
| font-size: 11px; | |
| font-weight: 600; |