本文整理匯總了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
}