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 | |
/* | |
Plugin Name: Convert Custom Taxonomy to Custom Post Type | |
Plugin URI: N/A | |
Description: A plugin to convert a Custom Taxonomy to a Custom Post Type and transfer associated metadata. | |
Version: 0.1 | |
Author: Strap1 | |
Author URI: http:/www.hiphopinenglish.com | |
/** Convert Taxonomy '%name%' to CPT '%name%' **/ |
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
UPDATE | |
wp_posts | |
SET | |
post_type = 'resources' | |
WHERE | |
post_type = 'media' |
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="panel panel-default"> | |
<div class="panel-heading">Registrations</div> | |
<ul class="list-group list-group-panel"> | |
{% registration where:'PersonAliasId == {{ CurrentPerson.PrimaryAliasId }}' %} | |
{% for reg in registrationItems %} | |
{% if reg.BalanceDue > 0 %} | |
<li class="list-group-item"> | |
{{ reg.RegistrationInstance.Name }} <br /> | |
Balance due - {{ reg.BalanceDue | FormatAsCurrency }} <br /> | |
<a href="{{ 'Global' | Attribute:'PublicApplicationRoot' }}Registration?RegistrationId={{ reg.Id }}">Complete Payment</a> |
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
{%metricvalue where:'MetricId == 990' sort:'MetricValueDateTime desc' limit:'1'%} | |
{% for metricvalue in metricvalueItems %} | |
{% capture currentWorshipAttendance %}{{ metricvalue.YValue | Format:'#,##0' }}{% endcapture %} | |
{% endfor %} | |
{% endmetricvalue %} | |
{%metricvalue where:'MetricId == 1117' sort:'MetricValueDateTime desc' limit:'1'%} | |
{% for metricvalue in metricvalueItems %} | |
{% capture currentChapelAttendance %}{{ metricvalue.YValue | Format:'#,##0' }}{% endcapture %} | |
{% endfor %} | |
{% endmetricvalue %} |
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
<script src="//cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script> | |
<script> | |
$(document).ready( function () { | |
$('#CGFollowUp').DataTable( { | |
paging: false, | |
"searching": false, | |
"order": [3, 'asc'], | |
"info": false | |
} ); | |
} ); |
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="row"> | |
<div class="col-sm-12"> | |
<div class="persondetails-group"> | |
<header> | |
<h1>Hallmark's Discipleship Pathway</h1> | |
</header> | |
</div><!-- .persondetails-group--> | |
</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="panel panel-block"> | |
<div class="panel-heading"> | |
<h4 class="panel-title">Important Events</h4> | |
</div> | |
<div class=""> | |
{% eventcalendaritem where:'EventCalendarId == 1' %} | |
<ul class="list-group list-group-panel"> | |
{% for eventcalendaritem in eventcalendaritemItems %} | |
{% if eventcalendaritem.EventItem.IsActive == true %} | |
{% assign level = eventcalendaritem | Attribute:'EventLevel' %} |
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
{% assign previousSunday = 'Now' | SundayDate | DateAdd:-7 | Date:'M/dd/yyyy' %} | |
Metric Date: {{ previousSunday }} | |
<br /> | |
{% group where:'ParentGroupId == 49 || ParentGroupId == 10603 && IsActive == true' %} | |
{% for group in groupItems %} | |
{% attendance where:'DidAttend == true && GroupId == {{ group.Id }} && SundayDate == "{{ previousSunday }}"' count:'true' %} | |
{% if count > 0 %} | |
Metric Partition: {{ group.Name }} | |
<br /> | |
Metric Value: {{ count }} |
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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
# BEGIN THIS DL-FILE.PHP ADDITION |
NewerOlder