Example #1
0
    _e('You don\'t have any items yet', 'watchlist');
    ?>
</h3>
        <?php 
} else {
    ?>
        <h3><?php 
    //echo  $iTotalItems;
    ?>
</h3>
         <div id="grid" data-columns class="listings">
    <?php 
    View::newInstance()->_exportVariableToView("listAdmin", true);
    View::newInstance()->_exportVariableToView("listType", 'watchlist');
    osc_current_web_theme_path('loop-items.php');
    ?>
        </div>
        <div class="clear"></div>
        <div class="pagination">
            <?php 
    echo osc_pagination(array('url' => osc_render_file_url(osc_plugin_folder(__FILE__) . 'watchlist.php') . '&iPage={PAGE}'));
    ?>
        </div>
        <?php 
}
?>
    </div>
        </div>
</div>
    
Example #2
0
                      <?php 
            $user = User::newInstance()->findByPrimaryKey($recipPM['recip_id']);
            ?>
                        <td class="pmCheckboxes"><input class="delChecks" type="checkbox" id="delete<?php 
            echo $recipPM['pm_id'];
            ?>
" name="pms[]" value="<?php 
            echo $recipPM['pm_id'];
            ?>
" /></td>
                        <td><?php 
            echo osc_format_date($recipPM['message_date']) . ', ' . osclass_pm_format_time($recipPM['message_date']);
            ?>
</td>
                        <td><a class="mesLink" href="<?php 
            echo osc_render_file_url(osc_plugin_folder(__FILE__) . 'user-messages.php?message=' . $recipPM['pm_id'] . '&box=outbox');
            ?>
"><?php 
            echo $recipPM['pm_subject'];
            ?>
</a></td>
                        <td><?php 
            echo $user['s_name'];
            ?>
</td>
                      </tr>
                  <?php 
        }
        ?>
                  <?php 
    }
Example #3
0
"><?php 
    _e('My listings', 'pop');
    ?>
</a></li>
                            <li>
                                <a href="<?php 
    echo osc_user_alerts_url();
    ?>
"><?php 
    _e('Search watchlist', 'pop');
    ?>
</a>
                            </li>
                            <li>
                                <a href="<?php 
    echo osc_render_file_url('watchlist/watchlist.php');
    ?>
"><?php 
    _e('Watchlist', 'pop');
    ?>
</a>
                            </li>
                            <li>
                                <a href="<?php 
    echo osc_user_profile_url();
    ?>
"><?php 
    _e('Account settings', 'pop');
    ?>
</a>
                            </li>
Example #4
0
function osclass_pm_supertoolbar()
{
    if (!osc_is_web_user_logged_in()) {
        return false;
    }
    /*if( Rewrite::newInstance()->get_location() != 'item' ) {
          return false;
      }*/
    //if( osc_item_user_id() != osc_logged_user_id() ) {
    //  return false;
    //}
    $toolbar = SuperToolBar::newInstance();
    $newPMs = ModelPM::newInstance()->getRecipientMessages(osc_logged_user_id(), 1, 1, 'pm_id', 'DESC');
    $countPMs = count($newPMs);
    $pm_url = osc_render_file_url(osc_plugin_folder(__FILE__) . 'user-inbox.php');
    $totalNew = '';
    if ($countPMs > 0) {
        $totalNew = '(' . $countPMs . ')';
    }
    $toolbar->addOption('<a href="' . $pm_url . '" />' . __('Inbox', 'osclass_pm') . ' ' . $totalNew . '</a>');
}
Example #5
0
function watchlist_user_menu()
{
    echo '<li class="" ><a href="' . osc_render_file_url(osc_plugin_folder(__FILE__) . 'watchlist.php') . '" >' . __('Watchlist', 'watchlist') . '</a></li>';
}
Example #6
0
function cover_photo_user_menu()
{
    echo '<li class="" ><a href="' . osc_render_file_url(osc_plugin_folder(__FILE__) . 'uploads.php') . '" >' . __('Cover Photo Uploader', 'cover_photo') . '</a></li>';
}