sally 추천버튼 중앙


361번째부터

@php
			$_tag_list = $oDocument->getTags();
			if($_tag_list) $_tag_count = count($_tag_list);
		@endphp
		<div class="dalso-vote">
		@if ($mi->use_vote != 'N')
			<span class="slatc-bts-vote unit" data-voted-count="{{ $oDocument->get('voted_count') }}" data-blamed-count="{{ -$oDocument->get('blamed_count') }}">
				@php
					$_vote_class = "bt-vote bt-vote--up";
					$_blame_class = "bt-vote bt-vote--down";
					$_vote_desc = $_vote_up_text;
					$_blame_desc = $_vote_down_text;
					if(!$is_logged && !$_nonlogin_vote):
						$_atc_vote_act = "istAlert('".$lang->msg_not_permitted."')";
						$_atc_blame_act = "istAlert('".$lang->msg_not_permitted."')";
					else:
						if($_my_atc2):
							$_atc_vote_act = "istAlert('".$lang->_my_article_vote."')";
							$_atc_blame_act = "istAlert('".$lang->_my_article_blame."')";
						endif;
						if($_not_my2):
							$_atc_vote_act = "doVote(this);return false;";
							$_atc_blame_act = "doVote(this);return false;";
						endif;
						if($_voted_atc):
							$_vote_class = $_vote_class.' voted';
							$_use_vote_cancel? $_atc_vote_act = "doVoteCancel(this);return false;": $_atc_vote_act = "istAlert('".$lang->_already_voted."')";
							$_atc_blame_act = "istAlert('".$lang->_already_voted."')";
							$_use_vote_cancel? $_vote_desc = $_vote_up_text.' '.$lang->cmd_cancel: $_vote_desc = $lang->_complete_vote;
							$_blame_desc = $lang->_complete_vote;
						elseif($_blamed_atc):
							$_blame_Class = $_blame_Class.' voted';
							$_use_vote_cancel? $_atc_blame_act = "doVoteCancel(this);return false;": $_atc_blame_act = "istAlert('".$lang->_already_blamed."')";
							$_atc_vote_act = "istAlert('".$lang->_already_blamed."')";
							$_vote_desc = $lang->_complete_blame;
							$_use_vote_cancel? $_blame_desc = $_vote_down_text.' '.$lang->cmd_cancel: $_blame_desc = $lang->_complete_blame;
						endif;
					endif;
					isset($mi->vote_text)? $_vote_text = $mi->vote_text: $_vote_text = $lang->cmd_vote;
					isset($mi->blame_text)? $_blame_text = $mi->blame_text: $_blame_text = $lang->cmd_vote_down;
				 @endphp
				<button class="slbb-bt dalso-vote-button {{ $_vote_class }}" onclick="{{ $_atc_vote_act }}" type="button">추천 <span class="vote-icon">{{ $_vote_up_icon|noescape }}</span> <span class="count-num txt-en">{{ $oDocument->get('voted_count') }}</span></button>@if ($mi->use_vote != 'vote')<button class="slbb-bt {{ $_blame_class }}" onclick="{{ $_atc_blame_act }}" type="button">@if ($mi->show_vote_down != 'N' || $grant->manager)<span class="count-num txt-en">{{ -$oDocument->get('blamed_count') }}</span>@else<span class="sli sli--lock"></span>@endif <span class="vote-icon">{{ $_vote_down_icon|noescape }}</span></button>@endif
			</span>
			@if ($_show_vote_who == 'F')
				@if ($_show_read_profile == 'Y')
				@php
					$_vote_member_bt = [];
					$i = 0;
					foreach($_vote_member as $val):
						if($val->member_srl && $i < 4):
							$_vote_member_bt[$i] = $val;
							$i++;
						elseif($i == 4):
							break;
						endif;
					endforeach;
				@endphp
				<span class="slbb"><button class="slbb-bt bt-show_who bt-show_who-profile">
					@if (!empty($_vote_member_bt))@foreach ($_vote_member_bt as $val)
					@php $profile_info = $oMemberModel->getProfileImage($val->member_srl); @endphp
					<span @class([
						'slpf',
						'my-vote' => $val->member_srl == $logged_info->member_srl,
					])>@if ($profile_info->src)<img src="{{ $profile_info->src }}" alt="{{ $val->nick_name }}" />@else@php $_pf_last = substr($val->member_srl,-1); @endphp<span class="pf{{ $_pf_last }}"></span>@endif</span>
					@endforeach	@endif
				</button><span class="slbb-desc">{{ $lang->_show_vote_who }}</span></span>
				@else
				<button class="bt-show_who bt-show_who-bt unit">{{ $lang->_show_vote_who }}</button>
				@endif
			@endif
			@endif
		</div>