Example #1
0
<?php

include 'model.php';
include 'functions.php';
echo embed('tpl/home.tpl.php', array('header' => embed('tpl/header.tpl.php', array()), 'sidebar_first' => embed('tpl/category.tpl.php', array('result' => get_category())), 'body' => embed('tpl/allproduct.tpl.php', array('result' => get_products())), 'sidebar_second' => embed('tpl/top_last_added.tpl.php', array('result' => last_added()))));
Example #2
0
<?php

include 'functions.php';
include 'model.php';
echo embed('tpl/user.home.tpl.php', array('title' => 'products', 'header' => embed('tpl/header.php', array()), 'form' => embed('tpl/search.tpl.php', array()), 'category' => embed('tpl/category.tpl.php', array('result' => get_category())), 'body' => embed('tpl/user.tpl.php', array('result' => get_user_info()))));
Example #3
0
<?php

include 'functions.php';
include 'model.php';
echo embed('tpl/admin.tpl.php', array());
Example #4
0
 protected function embed($file_url, $type = NULL)
 {
     echo embed($this->plugin_url($file_url), $type);
 }
Example #5
0
<section class="videos div">
  <div class="wrap">
    <h2 class="heading"><?php 
the_sub_field('title');
?>
</h2>
    <p class="frame"><?php 
embed(get_sub_field('video'));
?>
</p>
    <p class="txt-right">
      <?php 
if (get_sub_field('show_youtube') && get_field('youtube', 'option')) {
    ?>
      <a href="<?php 
    the_field('youtube', 'option');
    ?>
" class="button" target="_blank"><?php 
    the_sub_field('youtube_label');
    ?>
 <img src="<?php 
    echo f('img/youtube.png');
    ?>
" alt="Youtube" width="73" height="30"></a>
      <?php 
}
?>
      <?php 
if (get_sub_field('show_vimeo') && get_field('vimeo', 'option')) {
    ?>
      <a href="<?php 
Example #6
0
		<div class="row-fluid">
			<div class="span3">
				<?php 
print embed("tpl/add_product.tpl.php", array());
?>
			</div>
			
		</div>
		<div class="row-fluid">
			<div class="span6">
				<div class = "page-header">
					<h1><small>Registered Users</small></h1>
				</div>
				<?php 
print embed("tpl/users.tpl.php", array('result' => get_all_user()));
?>
			</div>
			<div class="span6">
				<div class = "page-header">
					<h1><small>Transactions</small></h1>
				</div>
				<?php 
print embed("tpl/transaction.tpl.php", array('result' => get_transactions()));
?>
			</div>
		</div>
	</div>
	<script type = "text/javascript" src = "js/admin.js"></script>
	<script src="http://code.jquery.com/jquery-latest.js"></script>
	<script src="js/bootstrap.min.js"></script>	
</body>
Example #7
0
}
?>
	

		<div class = "row-fluid">
		<?php 
if (!empty($sidebar_second)) {
    ?>
			<?php 
    print $sidebar_second;
    ?>
		<?php 
}
?>
		</div>
	</div>
</div>
<div>

	<?php 
print embed('tpl/footer.tpl.php', array());
?>
</div>
	<script type = "text/javascript" src = "js/admin.js"></script>			
	<script src="http://code.jquery.com/jquery-latest.js"></script>
	<script src="js/bootstrap.min.js"></script>	
	<script type="text/javascript" src="js/search.js"></script>

</body>

</html>
Example #8
0
<?php

require_once '../wombat.php';
WombatHead('Robot Wants Kitty: Adventure Edition');
?>
<h1>RWK: Adventure Edition</h1>
<p>Welcome to the home of <b>Robot Wants Kitty: Adventure Edition</b>!<br />
<?php 
include 'linkbar.php';
?>
</p>

<?php 
embed('rwa', 640, 480);
?>

<p>Current build is <b>182</b>. Hard refresh if what's shown is below that!</p>

<?php 
WombatFoot();
Example #9
0
 <div class = "navbar">
	<div class = "navbar-inner">
		<div class ="container">
		<a class="brand" href="home.php">Pharmacy</a>
		<div class ="span3 offset2"><?php 
print embed('tpl/search.tpl.php', array());
?>
</div>
				<?php 
print embed('tpl/user_info.tpl.php', array());
?>
		</div>
	</div>
</div>
 

Example #10
0
		 	<p id = "aval" class = "text text-success">In Stock (<?php 
        print $value->quantity;
        ?>
)</p>
		 <?php 
    } else {
        ?>
 
		 
		<p id = "aval" class = "text text-error">Not Available</p> 
		<?php 
    }
    ?>
	
		<?php 
    echo embed('tpl/addtocart.tpl.php', array());
    ?>
		
		</div>	
	<label>
	<h5>Product Description</h5>
	</label>
	<p class="desc"><?php 
    print $value->productDetails;
    ?>
</p>		
</div>	
<?php 
}
?>
</div>
Example #11
0
     if (is_file(CSS_DIR . $page['customstyle'] . '.css')) {
         echo '<link rel="stylesheet" href="css/' . $page['customstyle'] . '.css" />';
     } else {
         Lightwork::Log('Requested stylesheet ' . $page['customstyle'] . ' could not be found.', Lightwork::LOG_WARN);
     }
     // The defined stylesheet could not be found, log this event
 }
 if (!is_null($page['customscript'])) {
     if (is_file(JS_DIR . $page['customscript'] . '.js')) {
         echo '<script type="text/javascript" src="js/' . $page['customscript'] . '.js"></script>';
     } else {
         Lightwork::Log('Requested script ' . $page['customscript'] . ' could not be found.', Lightwork::LOG_WARN);
     }
     // The defined script could not be found, log this event
 }
 $success = embed($page);
 // Try to embed this page
 if (!$page['partial']) {
     echo '</div>';
 }
 // Close the open container div (if this is no partial site)
 if ($success) {
     if ($page['cache']) {
         $content = ob_get_flush();
         // The page was created successfully and we can flush it
         Cache::Write('pages/' . Translation::Language() . '/' . $page['id'], $content, $page['cacheduration'], true);
         // Write the successfully embeded page to cache
     }
 } else {
     ob_end_clean();
     Lightwork::Log('Page is missing: ' . $page['path'] . '.', Lightwork::LOG_WARN);
Example #12
0
<?php

include 'functions.php';
include 'model.php';
echo embed('tpl/home.register.tpl.php', array('login' => embed('tpl/login.tpl.php', array()), 'login_message' => embed('controller.php', array()), 'reg_form' => embed('tpl/registration.tpl.php', array())));
Example #13
0
<?php

include 'functions.php';
include 'model.php';
echo embed('tpl/home.tpl.php', array('header' => embed('tpl/header.tpl.php', array()), 'sidebar_first' => embed('tpl/category.tpl.php', array('result' => get_category())), 'body' => embed('tpl/product.tpl.php', array('result' => get_product_by_id($_GET['id'])))));
Example #14
0
<?php

include 'functions.php';
include 'model.php';
echo embed('tpl/home.tpl.php', array('header' => embed('tpl/header.tpl.php', array()), 'sidebar_first' => embed('tpl/category.tpl.php', array('result' => get_category())), 'body' => embed('tpl/searchquery.tpl.php', array('result' => get_drug($_GET['query']))), 'sidebar_second' => embed('tpl/top_last_added.tpl.php', array('result' => last_added()))));