本文整理汇总了PHP中Gdn_Format::RssHtml方法的典型用法代码示例。如果您正苦于以下问题:PHP Gdn_Format::RssHtml方法的具体用法?PHP Gdn_Format::RssHtml怎么用?PHP Gdn_Format::RssHtml使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gdn_Format
的用法示例。
在下文中一共展示了Gdn_Format::RssHtml方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Url
?>
]]></title>
<link href="<?php
echo $Discussion->Url;
?>
"/>
<id><?php
echo $Discussion->DiscussionID . '@' . Url('/discussions');
?>
</id>
<author>
<name><?php
echo Gdn_Format::text($Discussion->FirstName);
?>
</name>
<uri><?php
echo htmlspecialchars(url('/profile/' . $Discussion->InsertUserID . '/' . $Discussion->FirstName, true));
?>
</uri>
</author>
<updated><?php
echo date('c', Gdn_Format::ToTimeStamp($Discussion->DateLastComment));
?>
</updated>
<summary><![CDATA[<?php
echo Gdn_Format::RssHtml($Discussion->Body, $Discussion->Format);
?>
]]></summary>
</entry>
<?php
}
示例2: url
<link><?php
echo url(userUrl($Author, '', 'activity'), true);
?>
</link>
<pubDate><?php
echo date('r', Gdn_Format::ToTimeStamp(val('DateUpdated', $Activity)));
?>
</pubDate>
<dc:creator><?php
echo Gdn_Format::text($Author->Name);
?>
</dc:creator>
<guid
isPermaLink="false"><?php
echo val('ActivityID', $Activity) . '@' . Url(userUrl($Author, '', 'activity'));
?>
</guid>
<?php
if ($Story = val('Story', $Activity)) {
?>
<description><![CDATA[<?php
echo Gdn_Format::RssHtml($Story, val('Format', $Activity));
?>
]]>
</description>
<?php
}
?>
</item>
<?php
}
示例3: Url
?>
</title>
<link><?php
echo Url(UserUrl($Author, '', 'activity'), TRUE);
?>
</link>
<pubDate><?php
echo date('r', Gdn_Format::ToTimeStamp(GetValue('DateUpdated', $Activity)));
?>
</pubDate>
<dc:creator><?php
echo Gdn_Format::Text($Author->Name);
?>
</dc:creator>
<guid isPermaLink="false"><?php
echo GetValue('ActivityID', $Activity) . '@' . Url(UserUrl($Author, '', 'activity'));
?>
</guid>
<?php
if ($Story = GetValue('Story', $Activity)) {
?>
<description><![CDATA[<?php
echo Gdn_Format::RssHtml($Story, GetValue('Format', $Activity));
?>
]]></description>
<?php
}
?>
</item>
<?php
}