Skip to content

Instantly share code, notes, and snippets.

View farmerbradllc's full-sized avatar

Bradley Wood farmerbradllc

View GitHub Profile
@farmerbradllc
farmerbradllc / liferay-look-and-feel.xml
Created May 16, 2012 15:33
Theme Setting default value as HTML
<look-and-feel>
<theme id="healthcare" name="Healthcare Theme">
<settings>
<setting configurable="true" key="contact-content" type="textarea" value="&lt;ul&gt;
&lt;li&gt;456 Cog Way, CA 78910&lt;/li&gt;
&lt;li&gt;123.456.7890&lt;/li&gt;
&lt;li&gt;[email protected]&lt;/li&gt;
&lt;/ul&gt;" />
</settings>
</theme>
@farmerbradllc
farmerbradllc / sitemap.json
Created May 7, 2012 18:09
healthcare theme sitemap
{
"layoutTemplateId": "2_columns_ii",
"layouts": [
{
"title": "Home",
"name": "Home",
"friendlyURL": "/home",
"layoutTemplateId": "columns-1-2-3",
"columns": [
[
@farmerbradllc
farmerbradllc / DDL.vm
Created April 13, 2012 23:49
Recent Listings DDL template
## Get the reference of DDL Record Service via serviceLocator, which is automatically set in the context
#set($ddlRecordService = $serviceLocator.findService('com.liferay.portlet.dynamicdatalists.service.DDLRecordLocalService'))
#set($ddlRecordSetService = $serviceLocator.findService('com.liferay.portlet.dynamicdatalists.service.DDLRecordSetLocalService'))
#set ($localizationUtil = $portal.getClass().forName('com.liferay.portal.kernel.util.LocalizationUtil'))
## $reserved_record_set_id is also an object set in the context and it has the value of the list id configured for the portlet instance
#set ($recordSetId = $getterUtil.getInteger($reserved_record_set_id.data, 0))
@farmerbradllc
farmerbradllc / index.html
Created February 23, 2012 20:42
tab.html
<div class="markupTabs">
<ul class="aui-tabview-list aui-widget-hd tab-list">
<li class="aui-tab"><a class="aui-tab-label" href="javascript:;">Hello A</a></li>
<li class="aui-tab"><a class="aui-tab-label" href="javascript:;">Hello B</a></li>
<li class="aui-tab"><a class="aui-tab-label" href="javascript:;">Hello C</a></li>
</ul>
<div class="aui-tabview-content aui-widget-bd tab-content">
<div class="aui-tabview-content-item">
<h3>1. New tab content</h3><br />
@farmerbradllc
farmerbradllc / index.html
Created January 19, 2012 00:42 — forked from farmerbradllc/index.html
Vimeo API Alloy Js World Impact
#set ($namespace = "p_p_id_" + $request.theme-display.portlet-display.id + "_")
#set ($list = $namespace + "video-list")
#set ($friendlyURL = $request.get('attributes').get('CURRENT_COMPLETE_URL'))
#set ($videoid = $httpUtil.getParameter($friendlyURL, 'v'))
#set($baseurl = $request.get('CURRENT_COMPLETE_URL'))
$videoid
@farmerbradllc
farmerbradllc / index.html
Created January 18, 2012 22:25
Vimeo Simple API Alloy Js
<style>
ul { list-style-type: none; margin: 0; padding: 0; }
li { display: inline; padding: 0; margin: 10px 2px; }
img { border: 0; }
img#portrait { float: left; margin-right: 5px; }
#stats { clear: both; }
</style>
<h1>Vimeo Simple API Example</h1>
<div id="stats"></div>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template name="vimeo">
<xsl:param name="vimeo-element"/>
<xsl:param name="color"/>
<xsl:if test="$vimeo-element/@clip-id and $vimeo-element/@duration and $vimeo-element/@plays">
<h1>$section-title.data</h1>
$intro-paragraph.data
#foreach ($item in $item.siblings)
<div class="article">
<h3 class="action">$item.data</h3>
$item.short.data
#if($item.long.data !='')
<a href="#" class="action read-more">read more</a>
#end
@farmerbradllc
farmerbradllc / custom.css
Created January 11, 2012 00:52
Allow Signed in users to change the skin of the site
#skin-selector {
background: #000;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
display: inline-block;
padding: 5px 0;
position: absolute;
right: 0;
top: 0;
@farmerbradllc
farmerbradllc / index.html
Created January 11, 2012 00:23
Navigation section of World Impact's School giving page
<div id="navigation">
<ul>
<li class="selected"><a href="http://www.innercitychristianschools.com/" target="new_window"><span>Home</span></a></li>
<li>
<a href="http://www.innercitychristianschools.com/schools" target="new_window"><span>Schools</span></a>
<ul class="child-menu">
<li><a href="http://www.innercitychristianschools.com/schools/frederick-douglass" target="new_window"><span>Frederick Douglass</span></a></li>
<li><a href="http://www.innercitychristianschools.com/schools/los-angeles" target="new_window"><span>Los Angeles</span></a></li>
<li><a href="http://www.innercitychristianschools.com/schools/newark" target="new_window"><span>Newark</span></a></li>
<li><a href="http://www.innercitychristianschools.com/schools/watts" target="new_window"><span>Watts</span></a></li>