Skip to content

Instantly share code, notes, and snippets.

View bheyde's full-sized avatar

Brennan Heyde bheyde

View GitHub Profile
Requirements For Use
5.18 Engine or Higher
Available on any page, no item assignment required.
Definition
<mvt:assign name="variable" value="expression, string or number" />
Executes the expression contained within value and saves that value to the variable defined in the name attribute.
@bheyde
bheyde / gist:018606f7fe7a8966374d
Last active August 29, 2015 14:04
Ready Theme Logo Example COde
<div class="logo">
<mvt:if expr="l.settings:readytheme:logo_type EQ 'text'">
<a href="http://&mvt:global:domain:name;">
<span class="logo-name">&mvt:readytheme:logo_name;</span>
<span class="logo-tagline">&mvt:readytheme:logo_tagline;</span>
</a>
<mvt:elseif expr="l.settings:readytheme:logo_type EQ 'image'">
<a href="http://&mvt:global:domain:name;"><img src="&mvte:readytheme:logo_image;" alt="&mvt:readytheme:logo_alt;" title="&mvt:readytheme:logo_alt;" border="0" /></a>
<mvt:else>
</mvt:if>
@bheyde
bheyde / rt_settings_entities.html
Last active August 29, 2015 14:04
Ready Theme Settings Entities
&mvt:readytheme:background_color;
&mvt:readytheme:background_image;
&mvt:readytheme:background_position_horizontal;
&mvt:readytheme:background_position_vertical;
&mvt:readytheme:background_repeat;
&mvt:readytheme:font;
&mvt:readytheme:logo_alt;
&mvt:readytheme:logo_image;
&mvt:readytheme:logo_image_height;
&mvt:readytheme:logo_image_width;
<style type="text/css">
body
{
background-image: url( "graphics/00000001/conquer_arnold.jpg" );
background-repeat: no-repeat;
background-position: center center;
background-color: #FFFFFF;
font-family: Verdana, Geneva, sans-serif;
}
</style>
@bheyde
bheyde / gist:2a44b590f6fb70b0efb8
Last active August 29, 2015 14:04
3rd Party Social Sharing & Trust Symbol
<mvt:item name="readytheme" param="thirdpartysharing" />
<mvt:item name="readytheme" param="trustsymbol" />
This item:
<mvt:item name="readytheme" param="image('banner-image')" />
Outputs this Code:
<a href="http://domain.com/mm5/merchant.mvc?Store_code=test&amp;Screen=ABUS" target="_self">
<img src="graphics/00000002/slide1.gif" alt="Homepage Banner"></a>
@bheyde
bheyde / gist:6b20bfd5747740671ad9
Last active August 29, 2015 14:04
Ready Theme Banners
Item Tag:
<mvt:item name="readytheme" param="banner('promo-banner')" />
Output:
<span id="promo-banner" class="readytheme-banner">
Free Shipping for all order over $200
</span>
@bheyde
bheyde / gist:85a6365eed0925dd6654
Last active August 29, 2015 14:04
Ready Themes Content Section
Item Tag:
<mvt:item name="readytheme" param="contentsection('about-us')" />
Outputs:
<div id="about-us" class="readytheme-contentsection">
Welcome to my site!
</div>
@bheyde
bheyde / gist:095746610d62f882d41a
Last active August 29, 2015 14:04
Ready Theme Product Listing
<mvt:item name="readytheme" param="productlisting('featured-products')" />
/* ---- These are the styles required to make the various navigation elements display and function correctly. ---- */
.navigation-set,
.navigation-set *,
.navigation-set *:before,
.navigation-set *:after { /* Apply a natural box layout model to all "navigation-set" elements */
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.navigation-set {