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 | |
$feed = 'recent.rss'; | |
$xml = new SimpleXMLElement(file_get_contents($feed)); | |
$xml->registerXPathNamespace('media', $feed); | |
$images = $xml->xpath('/rss/channel/item/media:content/@url'); | |
foreach ( $xml->channel->item as $item ) { | |
$namespaces = $item->getNameSpaces(true); | |
$media = $item->children($namespaces['media']); |
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
#[ new linesonly set linesonly = "" ]# | |
<csp:if condition='$get(%request.Data("psid", 1))'> | |
#[ set linesonly = $zconvert(##class(dt.cms.support.Utilities).getSummaryLayout(gSection, ##class(dt.cms.support.Rules).getSlot(gMapping, gSection, 0), gMapping).name, "L") ]# | |
<csp:else> | |
#[ set linesonly = $zconvert(##class(dt.cms.support.Utilities).getSummaryLayout(gSection, gSlot, gMapping).name, "L") ]# | |
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
<dti:file:include base="assets" file="/includes/webembed.csp" /> |
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
<csp:comment>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</csp:comment> | |
<script language="cache" method="picinfo" arguments='fhid:%Integer=-1, item:%String=""' returntype="%String" procedureblock="1"> | |
/// My half-baked attempt at an easy way to get an image's meta data. | |
/// @TODO: Make more robust; allow for multiple values to be retunred; return the fileheader as an object? | |
//---------------------------------- | |
// Initialize: | |
//---------------------------------- |
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
<csp:comment> | |
/// Converts an ODBC timestamp to W3C date for use with HTML5 <time> tag. | |
/// | |
/// @param ODBC formatted timestamp. Example: 2010-10-25 01:08:21.512. Required. | |
/// @see http://bit.ly/fj8ZI1 | |
/// @see http://rgne.ws/QuTBrv | |
/// @see http://rgne.ws/S6kSSE | |
/// @see http://rgne.ws/Rh67IW | |
/// @return Valid rfc3339 formatted date. Example: YYYY-MM-DDThh:mm:ss.sTZD (eg 1997-07-16T19:20:30.45+01:00). | |
</csp:comment> |
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
<csp:comment>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</csp:comment> | |
<script language="cache" method="summary" arguments='psid:%String, section:dt.cms.schema.Section, mapping:dt.cms.schema.Mapping, slot:dt.cms.schema.Slot' returntype="dt.cms.schema.LayoutSummary" procedureblock="1"> | |
set return = "" | |
if ($isobject(section) && $isobject(mapping)) { | |
if ($length(psid)) { | |
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
<csp:comment>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</csp:comment> | |
<csp:comment> | |
/// @param: Category/subcategory id. Required. | |
/// @return: Category/subcategory name. | |
</csp:comment> | |
<script language="cache" method="catName" arguments='id:%String=""' returntype="%String" procedureblock="1"> | |
//---------------------------------- |
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
<script language="cache" runat="server"> | |
//-------------------------------------------------------------------------- | |
// | |
// Snakes. Why did it have to be snakes? | |
// | |
//-------------------------------------------------------------------------- | |
/** | |
* Validate date. |
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
<script language="cache" runat="server"> | |
/* | |
** | |
** GETs: | |
** | |
*/ | |
set conf("section") = $get(%request.Data("s", 1)) // The current section. | |
set conf("parent") = $get(%request.Data("p", 1)) // The current section's parent. |
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
<csp:comment>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</csp:comment> | |
<csp:comment> | |
Get story headline. | |
Call: ##class(csp.web.assets.methods.story).headline() | |
Dependencies: 1) ..dboStoryStatus(), 2) ##class(dt.cms.support.Rules).extractStoryElement | |
</csp:comment> | |
<script language="cache" method="headline" arguments='cmsStory:dt.cms.schema.CMSStory=-1, update:%String=""' returntype="%String" procedureblock="1"> | |
NewerOlder