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
<!-- Basic resize --> | |
<img src="/folder_name/image_file_name.jpg?Action=thumbnail&Width=80&Height=80" alt="image"> | |
<!-- Proportional resize --> | |
<img src="/folder_name/image_file_name.jpg?Action=thumbnail&Width=80&Height=80&algorithm=fill_proportional" alt="image"> | |
<!-- Non-proportional resize --> | |
<img src="/folder_name/image_file_name.jpg?Action=thumbnail&Width=80&Height=80&algorithm=fill" alt="image"> | |
<!-- Set output format --> |
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
<!-- Output full list of Business Catalyst classifications --> | |
<tr> | |
<td><label for="CAT_Category">Classifications:</label> | |
<select name="CAT_Category" id="CAT_Category" class="cat_listbox">{module_categorylist}</select></td> | |
</tr> |
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
{exp:channel:entries channel="pages" disable="categories|member_data|pagination"} | |
{!-- GRAB IMAGES WITH MX JUMPER, IF ANY --} | |
{page_images} | |
{exp:mx_jumper:put name="image_{row_count}"} | |
<figure class="align-{image_align}"{if image_width} style="width:{image_width}"{/if}> | |
<img src="{image_url}{url:normal}{/image_url}" alt="{image_alt}"> | |
<figcaption class="caption-and-credit"> | |
{if image_caption}<span class="image-caption">{image_caption}</span>{/if} | |
{if image_credit}<span class="image-credit">{image_credit}</span>{/if} |
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
{image_field} | |
<img src="{url:thumbnail}" alt="{title}"> | |
{/image_field} |
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 | |
if (!isset($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == "off") { | |
$redirect = "https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; | |
header("Location: $redirect"); | |
exit(); | |
} | |
?> |
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
// Default BC alert messages | |
/* | |
var Oshoplang = { | |
RemoveError: 'ERROR: To remove or update quantities select the View Cart link.', | |
Added: ' item(s) added to your cart.', | |
OutOfStock: 'Either product is out of stock or choose a smaller quantity', | |
PreOrder: ' item(s) pre-ordered and added to your cart.', | |
MinLimit: 'ERROR: Quantity entered is too small, please enter a larger quantity.', | |
MaxLimit: 'ERROR: Quantity entered is too large, please enter a smaller quantity.', | |
InvalidQuantity: 'ERROR: Quantity entered is not valid.', |
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
# Months | |
January,February,March,April,May,June,July,August,September,October,November,December | |
#Dates | |
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 |
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
DELETE FROM exp_member_homepage | |
WHERE member_id not in ( 1, 2, 3 ) | |
DELETE FROM exp_member_data | |
WHERE member_id not in ( 1, 2, 3 ) | |
# 'Members' member group | |
DELETE FROM exp_members | |
WHERE group_id = 5 | |
AND member_id not in ( 1, 2, 3 ) |
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
// if element length is greater than 0 | |
if ($('.selector').length) { | |
// do something | |
} |
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 getPageField('page-slug-name','field-name'); ?> |
OlderNewer