Skip to content

Instantly share code, notes, and snippets.

@JayGreentree
JayGreentree / main.css
Last active November 2, 2023 02:46
tcarchives
.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;

Core_member

an ExpressioneEngine add-on

Core Member is a Mash-up of the old Freemember plugin and cp-login code. This add-on was developed for a hobby-group website that uses EE-Core and to allow member-only templates and members-only content.

Members can be added and edited in the control panel, by the admin. This plugin provides only some very basic member functionality like: login, logout, forgot password, reset password and change password.

<!-- section class="post-wrapper-top section-shadow clearfix">
<div class="container">
<div class="col-lg-12">
<h2><?php the_title(); ?></h2>
<?php awada_breadcrumbs(); ?>
</div>
</div>
</section --><!-- end post-wrapper-top -->
var __tracked = 0;
nwindow["trackVisitorCount"] = function(count) {
__tracked = 1;
$(".close - reveal - modal").click();
ga(" send ", " event ", " Online Service ", " viewer ", count.toString());
var $img = $( < img > );
$img.attr(" style ", " display: none; ");
$img.attr(" src ", \" http: //my.thursdaychurch.org/WebHooks/OnlineCampusAttendance.ashx?count=" + count.toString()); $img.appendTo("body");
};

Keybase proof

I hereby claim:

  • I am jaygreentree on github.
  • I am jaygreentree (https://keybase.io/jaygreentree) on keybase.
  • I have a public key ASCtp2Tc14orMttffoYQbw4I9z9YgNe8I5fsyaS5xcdR-wo

To claim this, I am signing this object:

<iframe width="100%" height="100%"
src="https://www.youtube.com/embed/live_stream?channel=UCZfh7wXSDMbtXcolvAXVVHw&fbclid=IwAR3Pwl9ms7unWF0pms-_3yrlOS7NHEdU2L8anRnv4I-Q5krqCiNFaSyuKi8"
frameborder="0" allow="accelerometer;
autoplay; encrypted-media; gyroscope;
picture-in-picture" allowfullscreen></iframe>
{%- 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();
<?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>
<?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;
?>
@JayGreentree
JayGreentree / ShowLivebtn.php
Created January 24, 2022 01:53
Show a LIVE now button when streaming
<!--
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