Skip to content

Instantly share code, notes, and snippets.

AndyXmas andyxmas

Block or report user

Report or block andyxmas

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@andyxmas
andyxmas / .lando.yml
Created Jan 4, 2018
wordpress lando
View .lando.yml
name: remadeagency
recipe: wordpress
config:
webroot: .
events:
post-db-import:
# Set PROD_URL and DEV_URL values in .env file
View Structure
<root available-locales="en_GB" default-locale="en_GB">
<dynamic-element dataType="string" indexType="" multiple="false" name="Date_Style" readOnly="false" repeatable="false" required="false" showLabel="true" type="select" width="">
<dynamic-element name="optionycmh" type="option" value="1">
<meta-data locale="en_GB">
<entry name="label">
<![CDATA[Start date]]>
</entry>
</meta-data>
</dynamic-element>
View Template
<div class="tabs">
<ul>
#if (($welcome.data != "") || ($ambassadors.data !="") || ($social-media-name.data !=""))
<li>
<a href="#welcome">Welcome</a>
</li>
#end
#if ($visit.data != "")
<li>
@andyxmas
andyxmas / Contact Dropdown
Last active Aug 29, 2015
Output template for Contact Details
View Contact Dropdown
<form id="contact-drop">
<select name="titles">
#foreach ($cur_title1 in $title.getSiblings())
#set ($item-title1 = $cur_title1.getData())
<option value="$velocityCount" data-contact="$velocityCount">$item-title1</option>
#end
</select>
</form>
#if (!$title.getSiblings().isEmpty())
@andyxmas
andyxmas / Course search page PGR search
Last active Nov 3, 2017
A Freemaker Application Display Template for Asset Publisher in Liferay, that outputs various fields from a specific piece of structured content, and usings datatables.net to make the table sortable and searchable.
View Course search page PGR search
View pgr-projects-adt
<#if entries?has_content>
<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] />
<table class="pgrList table table-striped table-bordered table-hover">
<thead>
<tr>
<th>Title</th>
<th>Primary Supervisor</th>
<th>Application Deadline</th>
You can’t perform that action at this time.