Exemplo n.º 1
0
 public function getDelete($id)
 {
     $agama = Agama::find($id);
     if ($agama->delete()) {
         return Redirect::to('agama')->with('succes', 'Anda Berhasi Menghapus data Agama');
     } else {
         return Redirect::to('agama')->with('error', 'Anda gagal menghapus data ini');
     }
 }
 function agama_render_blog_post_date()
 {
     global $post;
     // If not single post
     if (!is_single()) {
         echo '<div class="entry-date">';
         echo '<div class="date-box updated">';
         echo sprintf('<span class="date">%s</span>', get_the_time('d'));
         // Get day
         echo sprintf('<span class="month-year">%s</span>', get_the_time('m, Y'));
         // Get month, year
         echo '</div>';
         echo '<div class="format-box">';
         echo sprintf('%s', Agama::post_format());
         echo '</div>';
         echo '</div><!-- .entry-date -->';
     }
 }
Exemplo n.º 3
0
		
		<?php 
the_content();
?>
		
		<!-- Tag Cloud -->
		<div class="tagcloud clearfix bottommargin">
			<?php 
the_tags(false, false, false);
?>
		</div>
		
		<?php 
wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'agama'), 'after' => '</div>'));
?>
	</div>
	
	<!-- Content Footer -->
	<footer class="entry-meta">
		
		<?php 
edit_post_link(__('Edit', 'agama'), '<span class="edit-link">', '</span>');
?>
		
		<?php 
Agama::about_author();
?>
		
	</footer><!-- .entry-meta -->

</div>
Exemplo n.º 4
0
				<li><i class="fa fa-folder-open"></i> <?php 
    echo get_the_category_list(', ');
    ?>
</li>
				<li><a href="<?php 
    the_permalink();
    ?>
#comments"><i class="fa fa-comments"></i> <?php 
    echo Agama::comments_count();
    ?>
</a></li>
				<li><a href="<?php 
    the_permalink();
    ?>
"><?php 
    echo Agama::post_format();
    ?>
</a></li>
			</ul><!--.entry-meta-->
			<?php 
}
?>
			
			<!-- Entry Content -->
			<div class="entry-content">
				
				<?php 
the_excerpt();
?>

			</div><!--.entry-content -->
?>
		
	</hgroup><!-- hgroup -->

	<nav id="site-navigation" class="main-navigation" role="navigation">
	
		<?php 
echo Agama::menu('primary', 'nav-menu');
?>
		
	</nav><!-- #main-navigation -->

	<div class="mobile-nav">
		<div class="mobile-nav-icons">
			<?php 
if (class_exists('Woocommerce')) {
    global $woocommerce;
    ?>
			<a href="<?php 
    echo esc_url($woocommerce->cart->get_cart_url());
    ?>
" class="fa fa-2x fa-shopping-cart"></a>
			<?php 
}
?>
			<a class="fa fa-2x fa-bars"></a>
		</div>
		<?php 
echo Agama::menu('primary', 'mobile-nav-menu');
?>
	</div><!-- .mobile-nav -->
Exemplo n.º 6
0
	
	<footer id="colophon" class="clear" role="contentinfo">
		<div class="footer-sub-wrapper clear">
			<div class="site-info col-md-6">
				<?php 
do_action('agama_credits');
?>
			</div><!-- .site-info -->
			
			<?php 
if (get_theme_mod('agama_footer_social', true)) {
    ?>
			<div class="social col-md-6">
				
				<?php 
    Agama::sociali('top');
    ?>
				
			</div>
			<?php 
}
?>
			
		</div>
	</footer><!-- #colophon -->
	
</div><!-- .main-wrapper -->

<?php 
if (get_theme_mod('agama_to_top', true)) {
    ?>