예제 #1
0
                                <a class="delete confirm" href="<?php 
        echo $pagination->GetURL('delete=' . $comment->comment_id);
        ?>
" data-confirm="You're about to delete this comment. This cannot be undone. Do you want to proceed?">Delete</a>
                            </div>
                        </td>
                        <td><a href="<?php 
        echo $video->url;
        ?>
/"><?php 
        echo $video->title;
        ?>
</a></td>
                        <td><?php 
        echo Functions::DateFormat('m/d/Y', $comment->date_created);
        ?>
</td>
                    </tr>

                <?php 
    }
    ?>
                </tbody>
            </table>
        </div>

        <?php 
    echo $pagination->paginate();
    ?>
예제 #2
0
    $namespace .= ' xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"';
    $xml_root = '<urlset' . $namespace . '></urlset>';
    $xml_frame = $xml_header . $xml_root;
    $xml = new SimpleXMLElement($xml_frame);
    // Add video entries
    while ($row = $db->FetchObj($result)) {
        $video = new Video($row->video_id);
        $url = $xml->addChild('url');
        $url->addChild('loc', $video->url . '/');
        $block = $url->addChild('video:video', '', 'video');
        $block->addChild('content_loc', $config->flv_url . '/' . $video->filename . '.flv');
        $block->addChild('thumbnail_loc', $config->thumb_url . '/' . $video->filename . '.jpg');
        $block->addChild('title', $video->title);
        $block->addChild('description', $video->description);
        $block->addChild('rating', Rating::GetFiveScaleRating($row->video_id));
        $block->addChild('view_count', $video->views);
        $block->addChild('publication_date', Functions::DateFormat('Y-m-d', $video->date_created));
        foreach ($video->tags as $_value) {
            $block->addChild('tag', $_value);
        }
        $block->addChild('category', $row->cat_name);
        $block->addChild('family_friendly', 'yes');
        $block->addChild('duration', Functions::DurationInSeconds($video->duration));
    }
} else {
    App::Throw404();
}
// Output XML
Plugin::Trigger('video_sitemap.output');
header("Content-type: text/xml");
echo $xml->asXML();
예제 #3
0
/pages_edit.php?id=<?php 
        echo $page->page_id;
        ?>
">Edit</a>
                                <a class="delete confirm" href="<?php 
        echo $pagination->GetURL('delete=' . $page->page_id);
        ?>
" data-confirm="You are about to delete this page, this cannot be undone. Are you sure you want to do this?">Delete</a>
                            </div>
                        </td>
                        <td><?php 
        echo $page->status == 'published' ? 'Published' : 'Draft';
        ?>
</td>
                        <td><?php 
        echo Functions::DateFormat('m/d/Y', $page->date_created);
        ?>
</td>
                    </tr>

                <?php 
    }
    ?>
                </tbody>
            </table>
        </div>

        <?php 
    echo $pagination->paginate();
    ?>
예제 #4
0
                                <a href="<?php 
        echo $pagination->GetURL('dismiss=' . $flag->id);
        ?>
">Dismiss Flag</a>
                                <a class="delete" href="<?php 
        echo $pagination->GetURL('ban=' . $flag->id);
        ?>
">Ban</a>
                            </div>
                        </td>
                        <td><?php 
        echo $user->username;
        ?>
</td>
                        <td><?php 
        echo Functions::DateFormat('m/d/Y', $flag->date_created);
        ?>
</td>
                    </tr>

                <?php 
    }
    ?>
                </tbody>
            </table>
        </div>

        <?php 
    echo $pagination->paginate();
    ?>
예제 #5
0
                                <?php 
        }
        ?>

                                <a class="delete confirm" href="<?php 
        echo $pagination->GetURL('delete=' . $user->user_id);
        ?>
" data-confirm="You're about to delete this member and their content. This cannot be undone. Do you want to proceed?">Delete</a>
                            </div>
                        </td>
                        <td><?php 
        echo $user->email;
        ?>
</td>
                        <td><?php 
        echo Functions::DateFormat('m/d/Y', $user->date_created);
        ?>
</td>
                    </tr>

                <?php 
    }
    ?>
                </tbody>
            </table>
        </div>

        <?php 
    echo $pagination->paginate();
    ?>
예제 #6
0
                                <a class="delete confirm" href="<?php 
        echo $pagination->GetURL('delete=' . $video->video_id);
        ?>
" data-confirm="You're about to delete this video. This cannot be undone. Do you want to proceed?">Delete</a>
                            </div>
                        </td>
                        <td class="category"><?php 
        echo $categories[$video->cat_id];
        ?>
</td>
                        <td><?php 
        echo $video->username;
        ?>
</td>
                        <td><?php 
        echo Functions::DateFormat('m/d/Y', $video->date_created);
        ?>
</td>
                    </tr>

                <?php 
    }
    ?>
                </tbody>
            </table>
        </div>

        <?php 
    echo $pagination->paginate();
    ?>