Results 1 to 3 of 3

Thread: php in widget

  1. #1
    Thread Starter
    tradeamillion's Avatar
    Join Date
    Mar 2012
    Location
    New York
    Posts
    1,076
    Thanks
    82
    Thanked 12 Times in 12 Posts

    php in widget

    trying to add the user dashboard widget php in widget text box
    not working
    any idea why?
    <aside id="dashboard-side-nav">

    <div class="avatar">
    <?php if ( $is_own_dashboard ) {
    echo html_link( va_dashboard_url( 'listings', $dashboard_user->ID, true ), get_avatar( $dashboard_user->ID, 45 ) );
    } else {
    echo html_link( va_dashboard_url( 'listings', $dashboard_user->ID ), get_avatar( $dashboard_user->ID, 45 ) );
    }
    ?>
    </div>
    <div class="user_meta">
    <p><?php $is_own_dashboard ? _e( 'Welcome, ' , APP_TD ) : ''; ?><b><?php echo $dashboard_user->display_name; ?></b></p>
    <p class="smaller"><?php _e( 'Member Since: ', APP_TD ); ?><?php echo mysql2date( get_option('date_format'), $dashboard_user->user_registered ); ?></p>
    </div>
    <ul class="links">
    <?php echo html('li', array('class'=>'faves'), html_link( va_dashboard_url( 'favorites', $dashboard_user->ID, $is_own_dashboard ), __( 'Favorite Listings', APP_TD ) ) ); ?>

    <?php echo html('li', array('class'=>'reviews'), html_link( va_dashboard_url( 'reviews', $dashboard_user->ID, $is_own_dashboard ), __( 'View Reviews', APP_TD ) ) ); ?>
    <?php echo html('li', array('class'=>'view-listings'), html_link( va_dashboard_url( 'listings', $dashboard_user->ID, $is_own_dashboard ), __( 'View Listings', APP_TD ) ) ); ?>

    <?php do_action('va_dashboard_sidebar_links', $dashboard_user, $is_own_dashboard ); ?>

    <?php if ( $is_own_dashboard ) { ?>
    <li class="edit-profile"><?php echo html_link( appthemes_get_edit_profile_url(), __( 'Edit Profile', APP_TD ) ); ?></li>
    <li class="add-listings"><?php echo html_link( va_get_listing_create_url(), __( 'New Listing', APP_TD ) ); ?></li>
    <?php if ( $dashboard_user->has_claimed ) { ?>
    <li class="claimed-listings"><?php echo html_link( va_dashboard_url( 'claimed-listings' ), __( 'Claimed Listings', APP_TD ) ); ?></li>
    <?php } ?>
    <?php } ?>
    </ul>

    </aside>
    Computers are incredibly fast, accurate, and stupid: humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination.

  2. #2
    Expired Customer gonesmith's Avatar
    Join Date
    Jun 2012
    Posts
    764
    Thanks
    50
    Thanked 202 Times in 137 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,617
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Map Widget
    By greggfranklin in forum Vantage General Discussion (Legacy)
    Replies: 0
    Last Post: December 3rd, 2012, 01:28 PM
  2. [SOLVED] Taking off ad numbers of widget (Ad Categories Widget)
    By homme143 in forum Report ClassiPress Bugs
    Replies: 4
    Last Post: March 16th, 2011, 01:23 PM
  3. cp top ads overall widget
    By digipro3 in forum ClassiPress General Discussion
    Replies: 1
    Last Post: January 28th, 2011, 12:11 AM
  4. top ads widget
    By bruno.87 in forum ClassiPress General Discussion
    Replies: 3
    Last Post: January 27th, 2011, 07:55 PM
  5. [SOLVED] "Ad Search Box" Widget disappeared from (Appearance>Widget)
    By jeferson in forum Report ClassiPress Bugs
    Replies: 13
    Last Post: September 12th, 2010, 01:13 PM