The best solution for implement two icon enable or disable : <p>I need two icon,<br>
If is verify email, show an icon without hyberlink and set "activated" css class for green style and checked.<br>
If is not verify email, the icon is linked to the verify page, and default is gray color style.<br>
Which of the below solution is better and standard?  </p>

<h1>Solution #1:</h1>

<pre><code>&lt;a href="&lt;?php echo ($modelStatic-&gt;isVerifiedEmail) ? 'javascript:void(0)' :
    Yii::app()-&gt;createUrl('/user/reActivate'); ?&gt;"
   class="item&lt;?php if($modelStatic-&gt;isVerifiedEmail) echo ' activated'; ?&gt;"&gt;
    &lt;div class="confirm-icon"&gt;
        &lt;i class="fa fa-envelope-o"&gt;&lt;/i&gt;
    &lt;/div&gt;
    &lt;div class="text"&gt;
        &lt;?php echo Yii::t('app', 'Verify Email'); ?&gt;
    &lt;/div&gt;
&lt;/a&gt;
&lt;style&gt;
.activated {
    cursor: default;
}
&lt;/style&gt;
</code></pre>

<h1>Solution #2:</h1>

<pre><code>if($modelStatic-&gt;isVerifiedEmail) : ?&gt;
    &lt;div class="item activated"&gt;
        &lt;div class="confirm-icon"&gt;
            &lt;i class="fa fa-envelope-o"&gt;&lt;/i&gt;
        &lt;/div&gt;
        &lt;div class="text"&gt;
            &lt;?php echo Yii::t('app', 'Verify Email'); ?&gt;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;?php else: ?&gt;
    &lt;a href="&lt;?php echo Yii::app()-&gt;createUrl('/user/reActivate'); ?&gt;"
       class="item"&gt;
        &lt;div class="confirm-icon"&gt;
            &lt;i class="fa fa-envelope-o"&gt;&lt;/i&gt;
        &lt;/div&gt;
        &lt;div class="text"&gt;
            &lt;?php echo Yii::t('app', 'Verify Email'); ?&gt;
        &lt;/div&gt;
    &lt;/a&gt;
&lt;?php endif; ?&gt;
</code></pre>

<h1>Solution #3:</h1>

<pre><code>&lt;?php if($modelStatic-&gt;isVerifiedEmail) : ?&gt;
    &lt;div class="item activated"&gt;
&lt;?php else: ?&gt;
    &lt;a href="&lt;?php echo Yii::app()-&gt;createUrl('/user/reActivate'); ?&gt;" class="item"&gt;
&lt;?php endif; ?&gt;
        &lt;div class="confirm-icon"&gt;
            &lt;i class="fa fa-envelope-o"&gt;&lt;/i&gt;
        &lt;/div&gt;
        &lt;div class="text"&gt;
            &lt;?php echo Yii::t('app', 'Verify Email'); ?&gt;
        &lt;/div&gt;
&lt;?php if($modelStatic-&gt;isVerifiedEmail) : ?&gt;
    &lt;/div&gt;
&lt;?php else: ?&gt;
    &lt;/a&gt;
&lt;?php endif; ?&gt;
</code></pre>
