Exemplo n.º 1
0
					<td><a href="<?php 
        echo get_permalink($snippet_id);
        ?>
" title="پیوند یکتا به <?php 
        echo $snippet->post_title;
        ?>
"><?php 
        if (snihub_is_private($snippet->ID)) {
            echo '<span class="icon-private snippet-title-icon"></span> ';
        }
        ?>
 <?php 
        echo $snippet->post_title;
        ?>
</a></td>
					<td><a href="<?php 
        echo get_permalink($snippet_id);
        ?>
" class="btn btn-primary"><span class="icon-snippets"></span> مشاهده</a></td>
					<td><?php 
        snippet_like_btn($snippet_id);
        ?>
</td>
				</tr>
				<?php 
    }
    ?>
</tbody>
		</table><?php 
    wp_reset_postdata();
}
Exemplo n.º 2
0
        if (is_tax('language', $cat['title'])) {
            $class = 'btn-warning active';
        }
        ?>
										<a href="<?php 
        echo $cat['link'];
        ?>
" class="btn <?php 
        echo $class;
        ?>
"><span class="icon-bug"></span> زبان: <?php 
        echo $cat['title'];
        ?>
</a>
										<?php 
        snippet_like_btn(get_the_ID());
        ?>
										<a href="<?php 
        the_permalink();
        ?>
" class="btn btn-success"><span class="icon-code"></span> مشاهده کد</a>
									</div>
									<div class="pull-right">
										<?php 
        $tags = snihub_tags(get_the_ID());
        if ($tags) {
            ?>
										<div class="btn-group">
											<?php 
            foreach ($tags as $tag) {
                ?>