<xf:title>{$campaign.title}</xf:title>

<xf:wrap template="thdonate_campaign_wrapper">
	<xf:set var="$pageSelected" value="overview" />
</xf:wrap>

<div class="block js-CampaignInfoBlock">
	<div class="block-container">
		<div class="block-body">
			<div class="block-row">
				<div class="campaign-description">
					<xf:if is="$campaign.description">
						{{ bb_code($campaign.description, 'html', $campaign) }}
						<xf:else />
						{{ phrase('thdonate_no_campaign_description') }}
					</xf:if>
				</div>

				<div class="reactionsBar js-reactionsList {{ $campaign.reactions ? 'is-active' : '' }}">
					<xf:reactions content="{$campaign}" link="donate/reactions" />
				</div>

				<xf:if is="is_addon_active('ThemeHouse/Reactions')
						   && $xf.options.th_reactHandlers_reactions.thdonate_campaign">

					<xf:macro template="th_display_reactions"
							  name="reactions_bar"
							  arg-type="thdonate_campaign"
							  arg-id="campaign_id"
							  arg-content="{$campaign}" />

					<xf:else />

					<xf:if contentcheck="true">
						<div class="actionBar">
							<xf:contentcheck>
								<xf:if contentcheck="true">
									<div class="actionBar-set actionBar-set--external">
										<xf:contentcheck>
											<xf:if is="$campaign->isValidRelation('Bookmarks')">
											<xf:macro template="bookmark_macros" name="link"
													  arg-content="{$campaign}"
													  arg-class="message-attribution-gadget bookmarkLink--highlightable"
													  arg-confirmUrl="{{ link('donate/bookmark', $campaign) }}"
													  arg-showText="{{ false }}"/>
											</xf:if>
											<xf:react content="{$campaign}" link="donate/react" list="< .js-CampaignInfoBlock | .js-reactionsList" />
										</xf:contentcheck>
									</div>
								</xf:if>
							</xf:contentcheck>
						</div>
					</xf:if>
				</xf:if>
			</div>
		</div>
	</div>
</div>