php AppThemes的Vantage没有关注目录链接和社交图标。将其替换为single-listing.php上的内容替换为a

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php AppThemes的Vantage没有关注目录链接和社交图标。将其替换为single-listing.php上的内容替换为a相关的知识,希望对你有一定的参考价值。

<div id="main">

<?php the_post(); ?>

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

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> itemscope itemtype="http://schema.org/Organization">
	<?php the_listing_image_gallery(); ?>

	<?php appthemes_before_post_title( VA_LISTING_PTYPE ); ?>
	<h1 class="entry-title" itemprop="name"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
	<p class="vcard author"><?php printf( __( 'Added by %s', APP_TD ), '<span class="fn" itemprop="employee">'. va_get_the_author_listings_link() .'</span>' ); ?></p>
	
	<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
		<?php the_listing_star_rating(); ?>
		<p class="reviews"><?php
			the_review_count();

			if ( va_user_can_add_reviews() ) {
				echo ', ' . html_link( '#add-review', __( 'Add your review', APP_TD ) );
			}
		?></p>
	</div><!-- /.aggregateRating -->
	
	<p><?php the_listing_categories(); ?></p>
	<?php appthemes_after_post_title( VA_LISTING_PTYPE ); ?>

	<?php $website = get_post_meta( get_the_ID(), 'website', true ); ?>
	<?php $facebook = get_post_meta( get_the_ID(), 'facebook', true ); ?>
	<?php $twitter = get_post_meta( get_the_ID(), 'twitter', true ); ?>

	<div itemprop="location" itemscope itemtype="http://schema.org/Place">
		<ul>
			<li class="address" itemprop="address"><?php the_listing_address(); ?></li>
			<li class="phone" itemprop="telephone"><strong><?php echo esc_html( get_post_meta( get_the_ID(), 'phone', true ) ); ?></strong></li>
		<?php if ( $website ) : ?>
			<li id="listing-website"><a href="<?php echo esc_url( 'http://' . $website ); ?>" title="<?php _e( 'Website', APP_TD ); ?>" target="_blank" itemprop="url" rel="nofollow"><?php echo esc_html( $website ); ?></a></li>
		<?php endif; ?>
		</ul>

		<?php 
		$coord = appthemes_get_coordinates( $post->ID ); 
		if ( 0 < $coord->lat ) :
		?>
			<div itemprop="geo" itemscope itemtype="http://schema.org/GeoCoordinates">
				<meta itemprop="latitude" content="<?php echo esc_attr( $coord->lat ); ?>" />
				<meta itemprop="longitude" content="<?php echo esc_attr( $coord->lng ); ?>" />
			</div>
		<?php endif; ?>
	</div><!-- /.Place -->

	<?php if ( $facebook or $twitter ) : ?>
		<div id="listing-follow">
			<p><?php _e( 'Follow:', APP_TD ); ?></p>
			<?php if ( $facebook ) : ?>
			<a href="<?php echo esc_url( 'https://facebook.com/' . $facebook ); ?>" title="<?php _e( 'Facebook', APP_TD ); ?>" target="_blank" rel="nofollow"><div class="facebook-icon">Facebook</div></a>
			<?php endif; ?>
			<?php if ( $twitter ) : ?>
			<a href="<?php echo esc_url( 'https://twitter.com/' . $twitter ); ?>" title="<?php _e( 'Twitter', APP_TD ); ?>" target="_blank" rel="nofollow"><div class="twitter-icon">Twitter -</div> <span class="twitter-handle">@<?php echo esc_html( $twitter ); ?></span></a>
			<?php endif; ?>
		</div>
	<?php endif; ?>

	<div class="listing-fields">
		<?php the_listing_fields(); ?>
	</div>

	<div class="single-listing listing-faves">
		<?php the_listing_faves_link(); ?>
	</div>

	<div class="listing-actions">
		<?php the_listing_edit_link(); ?>
		<?php the_listing_claimable_link(); ?>
		<?php the_listing_purchase_link(); ?>
		<?php the_contact_listing_owner_button(); ?>
	</div>

	<div class="listing-share">
		<?php if ( function_exists( 'sharethis_button' ) ) sharethis_button(); ?>
	</div>

	<hr />
	<div class="tags"><?php the_listing_tags( '<span>' . __( 'Tags:', APP_TD ) . '</span> ' ); ?></div>
	<div class="added" style="display:none;"><?php _e( 'Updated:', APP_TD ); ?> <span class="date updated"><?php the_modified_time('M j, Y'); ?></span></div>

	<?php va_the_files_list(); ?>

	<div id="listing-tabs">
		<div class="tabs">
			<a id="overview-tab" class="active-tab rounded-t first" href="#overview"><?php _e( 'Overview', APP_TD ); ?></a>
			<a id="reviews-tab" class="rounded-t" href="#reviews"><?php _e( 'Reviews', APP_TD ); ?></a>

			<br class="clear" />
		</div>

		<section id="overview" itemprop="description">
			<?php appthemes_before_post_content( VA_LISTING_PTYPE ); ?>
			<?php the_content(); ?>
			<?php appthemes_after_post_content( VA_LISTING_PTYPE ); ?>
		</section>

		<section id="reviews">
			<?php get_template_part( 'reviews', 'listing' ); ?>
		</section>
	</div>

	<div class="section-head">
		<a id="add-review" name="add-review"></a>
		<h2 id="left-hanger-add-review"><?php _e( 'Add Your Review', APP_TD ); ?></h2>
	</div>

	<?php if ( $review_id = va_get_user_review_id( get_current_user_id(), get_the_ID() ) ) : ?>
		<p>
			<?php _e( 'You have already reviewed this listing.', APP_TD ); ?>
		</p>
	<?php elseif ( va_user_can_add_reviews() ) : ?>
		<?php appthemes_load_template( 'form-review.php' ); ?>
	<?php elseif ( get_current_user_id() == get_the_author_meta('ID') ) : ?>
		<p>
			<?php _e( "You can't review your own listing.", APP_TD ); ?>
		</p>
	<?php elseif ( !is_user_logged_in() ) : ?>
		<p>
			<?php printf( __( "Please %s to add your review.", APP_TD ), html_link( wp_login_url(), __( 'login', APP_TD ) ) ); ?>
		</p>
	<?php endif; ?>

</article>

</div><!-- /#main -->

<div id="sidebar">
<?php get_sidebar( 'single-listing' ); ?>
</div>

以上是关于php AppThemes的Vantage没有关注目录链接和社交图标。将其替换为single-listing.php上的内容替换为a的主要内容,如果未能解决你的问题,请参考以下文章

如何直接从Python使用Alpha Vantage API

Vr-Vantage之显示引擎

Vr-Vantage2.1之网络连接

GitHub Copilot实战 Leetcode和Alpha Vantage API获取股票数据

GitHub Copilot实战 Leetcode和Alpha Vantage API获取股票数据

FCA监管经纪商Atom8将被Vantage FX收购