Esempio n. 1
0
                        <i class="icon-briefcase"></i> <?php 
_e('Latest Announcement', 'dokan');
?>

                        <span class="pull-right">
                            <a href="<?php 
echo dokan_get_navigation_url('announcement');
?>
"><?php 
_e('See All', 'dokan');
?>
</a>
                        </span>
                    </div>
                    <?php 
$template_notice = Dokan_Template_Notice::init();
$query = $template_notice->get_announcement_by_users(3);
?>
                    <?php 
if ($query->posts) {
    ?>
                        <ul class="list-unstyled">
                            <?php 
    foreach ($query->posts as $notice) {
        ?>
                                <?php 
        $notice_url = trailingslashit(dokan_get_navigation_url('single-announcement') . '' . $notice->ID);
        ?>
                                <li>
                                    <div class="dokan-dashboard-announce-content dokan-left">
                                        <a href="<?php 
Esempio n. 2
0
<?php

$announcement = Dokan_Template_Notice::init();
?>

<div class="dokan-dashboard-wrap">
    <?php 
dokan_get_template('dashboard-nav.php', array('active_menu' => 'notice'));
?>

    <div class="dokan-dashboard-content dokan-notice-listing">

        <?php 
do_action('dokan_before_listing_notice');
?>

            <article class="dokan-notice-listing-area">
                <header class="dokan-dashboard-header dokan-clearfix">
                    <span class="left-header-content">
                        <h1 class="entry-title"><?php 
_e('Announcement', 'dokan');
?>
</h1>
                    </span>
                </header>

                <div class="notice-listing-top dokan-clearfix">
                    <!-- Listing filters -->
                </div>

                <?php