Ejemplo n.º 1
0
<?php

/**
 *
 *	Template Name: Test page for posts
 *
 */
?>

<?php 
if (!$ajax) {
    the_header();
}
?>

<?php 
header_menu();
?>

<div class="container" style="margin-top: 30px;">
	<div class="row">
		<table class="table-hover">
			<thead>
				<tr>
					<th>ID</th>
					<th>Image</th>
					<th>Author</th>
					<th>Slug</th>
					<th>Menu Order</th>
					<th>Display Title</th>
					<th>Title</th>
Ejemplo n.º 2
0
<?php

/**
 *
 *	Template Name: The Team
 *
 */
if (!$ajax) {
    ?>
  <?php 
    the_header($page->title, '', '', $page->name, '');
}
?>

<?php 
header_menu();
?>

<div class="container" style="margin-top: 30px;">
    <div class="row">
        <div class="col-md-2">
            <?php 
$args = array('ul' => 'nav nav-stacked sidebar', 'li' => '');
echo sidebar_nav_menu($page->id, $args);
?>
            <?php 
if ($page->has_parent()) {
    ?>
               <?php 
    $args = array('ul' => 'nav nav-stacked sidebar', 'li' => '');
    echo sidebar_nav_menu($page->parent, $args);
Ejemplo n.º 3
0
<?php

if (!$ajax) {
    the_header($post->title, $post->image, $post->excerpt, $post->name, $post->date);
}
?>

<?php 
header_menu();
?>

<div class="container news-page">
	<div class="row">
		<div class="col-md-12 news-container">
			<div class="col-md-12">
				<div class="col-md-12 current_news_title">
					<h1><?php 
echo $post->title;
?>
</h1>
				</div>
			</div>
			<div class="col-md-12" style="background-color: #F8F8F8;">
				<div class="date">
					<?php 
if ($this->config->item('language_abbr') == 'mk') {
    setlocale(LC_TIME, 'mk_MK.utf8');
    echo strftime("%#d %B %Y", strtotime($post->date));
} else {
    setlocale(LC_TIME, 'en_US.utf8');
    echo strftime("%#d %B %Y", strtotime($post->date));
Ejemplo n.º 4
0
<?php

if (!$ajax) {
    the_header('assets/images/am_content/featured_image/094d5b6b235ff71b00f0af749b9bf80a.png', '', '', '', '');
}
header_menu();
?>
<div style="position:relative;">
    <div id="gmap" class="gmap"></div>
    <div id="controls" style="position: absolute; top: 5px;right: 5px;">
        <button id='mAdd' class="add-point"><?php 
echo t('wm_add');
?>
</button>
    </div>
</div>
<div class="modal fade" id="map-login" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog modal-sm" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel"><?php 
echo t('title_login');
?>
</h4>
            </div>
            <div class="modal-body">
                <div class="map-login-container">
                    <div class="form-group">
                        <form id="submit-login" action="" method="post" accept-charset="utf-8">
                            <p><?php 
Ejemplo n.º 5
0
        echo '<span class="failed"><strong>Failure</strong> &mdash; Please remove <code>' . htmlspecialchars($download_file) . '</code> manually.</span>';
    }
    ?>
</p>
<?php 
}
$query = array('locale' => 'en_US', 'php' => phpversion());
$api = wp_remote_get('http://api.wordpress.org/core/version-check/1.6/?' . http_build_query($query, null, '&'), array('timeout' => 10));
if ($api && !is_wp_error($api) && !empty($api['body']) && 200 === wp_remote_retrieve_response_code($api)) {
    $api = @unserialize(wp_remote_retrieve_body($api));
    $api = $api['offers'][0];
} else {
    $api = array('locale' => 'en_US', 'download' => 'http://wordpress.org/latest.zip', 'current' => 'unknown');
}
$path = isset($_REQUEST['path']) ? $_REQUEST['path'] : 'wordpress';
the_header('download');
if (validate_file($path) !== 0) {
    ?>
	<p class="failed"><strong>Failed</strong> - Your path <code><?php 
    echo htmlspecialchars($path);
    ?>
</code> looks invalid. Make sure that it's a valid path relative to this directory (<code><?php 
    echo htmlspecialchars(ABSPATH);
    ?>
</code>)</p>
<?php 
    the_footer();
    die;
}
if (file_exists(ABSPATH . '/' . $path) && glob(ABSPATH . '/' . $path . '/*') !== array()) {
    ?>
Ejemplo n.º 6
0
<?php

if (!$ajax) {
    ?>

	<?php 
    the_header('Пребарување', '', '', '', '');
}
header_menu();
?>

<div class="col-md-12">
	<?php 
if ($results) {
    ?>
		<table id="results" class="table table-hover">
			<?php 
    foreach ($pages as $page) {
        ?>
				<tr>
					<td class="hide"><?php 
        echo base_url($page->name);
        ?>
</td>
					<td><?php 
        echo $page->title;
        ?>
</td>
					<td><?php 
        echo $page->excerpt;
        ?>