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
{# Define Page #} | |
{% set bodyClass = "article" %} | |
{% extends "_layouts/main" %} | |
{# Includes #} | |
{% import "_macros/designer.twig" as _designer %} | |
{% import "_macros/actions.twig" as _actions %} | |
{% import "_macros/ads.twig" as _ads %} | |
{% block content %} |
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
{# This file contains macros for calculating text values #} | |
{## | |
# CREATE RESOURCE ACTION | |
# - Creates an unlinked span of text for use on cards etc. | |
# | |
# @param resource | |
# An entry object, i.e. an Activity or Resource | |
# | |
# Required Fields: resourceType (dropdown) |
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="container"> | |
<div class="cards"> | |
{% for activity in relatedActivities %} | |
{% set activityLink = _action.determineResourceLink(activity) %} | |
<a href="{{ activityLink }}" class="card -icon {% if loop.length < 4 %}-tight{% endif %}"> | |
{% set activityImage = activity.resourceThumbnail|length ? activity.resourceThumbnail[0] : null %} | |
<div class="card__icon lazyload" data-bgset="{{ activityImage ? activityImage.url('thumbnail') : '/images/placeholder.jpg' }}" role="img" title="{{ activityImage ? activityImage.imageAltText : '' }}"></div> | |
<div class="card__content"> | |
<p class="card__topic topic">{{ activity.resourceTopics.one }}</p> | |
<h3 class="card__headline">{{ activity.title }}</h3> |
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
{# contact bar partial #} | |
<section class="contact-bar"> | |
<div class="container"> | |
<div> | |
<a href="#contact-form" class="modal"> | |
<img class="lazyload" data-src="/img/icons/contact-icon.svg" alt=""> | |
<h4>Contact<br>us Today</h4> | |
</a> | |
<a href="#demo-form" class="modal"> | |
<img class="lazyload" data-src="/img/icons/demo-icon-colorful.svg" alt=""> |
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
<main> | |
<section id="overview"> | |
<div class="container"> | |
<div class="intro"> | |
{% if entry.overviewIcon and entry.overviewIcon.one %} | |
<div class="icon"> | |
{% set img = entry.overviewIcon.one %} | |
<img src="{{ img.getUrl('iconMedium') }}" alt="{{ img.imageAltText|length ? img.imageAltText : img.title }}"> | |
</div> | |
{% endif %} |
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="popular-now" id="mainContent" tabindex="-1"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-4"> | |
<h2>Popular <span>Now!</span></h2> | |
</div> | |
<div class="col-4"> | |
<ul class="populars -first"> | |
{% for article in articles %} | |
{% if loop.index < 4 %} |
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
{% set sportArticles = craft.entries.section('articles').relatedTo(['and', | |
{ element : state }, | |
{ element : sport } | |
]) %} | |
{# Set Popular Articles #} | |
{% do craft.views_work.sortPopular(sportArticles, 'month') %} | |
{% set popularArticles = sportArticles.limit(6).all %} | |
<div class="hero" {% if sport %}style="background: url({{ sport.sportBackground.one.url('sportBg') }}) center center no-repeat; background-size: cover;"{% endif %}> |
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
$ns = '{http://example.org/}'; | |
$service->write('{http://example.org/}root',[ | |
$ns . 'title' => 'Foundation', | |
$ns . 'author' => [ | |
$ns . 'firstname' => 'Isaac', | |
$ns . 'lastname' => 'Asimov', | |
] | |
]); |
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
$ns = '{http://www.w3.org/2005/Atom}'; | |
$service->namespaceMap['http://www.w3.org/2005/Atom'] = ''; | |
$service->write($ns . 'feed', [ | |
$ns . 'title' => 'Example Feed', | |
[ | |
'name' => $ns . 'link', | |
'attributes' => ['href' => 'http://example.org/'] | |
], | |
$ns . 'updated' => '2003-12-13T18:30:02Z', |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<x:Envelope | |
xmlns:x="http://schemas.xmlsoap.org/soap/envelope/"> | |
<x:Header/> | |
<x:Body> | |
<SalesOrderServiceCreateRequest | |
xmlns="http://schemas.microsoft.com/dynamics/2008/01/services"> | |
<SalesOrder | |
xmlns="http://schemas.microsoft.com/dynamics/2008/01/documents/SalesOrder"> | |
<SalesTable class="entity"> |
OlderNewer