コード例 #1
0
$_start = count($GLOBALS['posts']) - 1;
for ($_i = $_start; $_i >= 0; $_i--) {
    $GLOBALS['post'] = $GLOBALS['posts'][$_i];
    start_wp();
    if (get_Lon() != "" && get_Lon() != null && get_Lon() > -360 && get_Lon() < 360) {
        ?>
    <location arrival="<?php 
        the_date_xml();
        ?>
">
        <name><?php 
        the_title_rss();
        ?>
</name>
        <latitude><?php 
        print_Lat(true);
        ?>
</latitude>
        <longitude><?php 
        print_Lon(true);
        ?>
</longitude>
<?php 
        $GLOBALS['more'] = 1;
        if (get_settings('rss_use_excerpt')) {
            ?>
        <note><?php 
            the_excerpt_rss(get_settings('rss_excerpt_length'), get_settings('rss_encoded_html'));
            ?>
</note>
<?php 
コード例 #2
0
$start = count($posts) - 1;
for ($i = $start; $i >= 0; $i--) {
    $post = $posts[$i];
    start_wp();
    if (get_Lon() != null && get_Lon > -360 && get_Lon() < 360) {
        ?>
    <location arrival="<?php 
        the_date_xml();
        ?>
">
        <name><?php 
        the_title_rss();
        ?>
</name>
        <latitude><?php 
        print_Lat();
        ?>
</latitude>
        <longitude><?php 
        print_Lon();
        ?>
</longitude>
<?php 
        if ($rss_use_excerpt) {
            ?>
        <note><?php 
            the_content_rss('', 0, '', get_settings('rss_excerpt_length'), get_settings('rss_encoded_html'));
            ?>
        </note>
<?php 
        } else {