Beispiel #1
0
function dynpages_replace_match($match)
{
    global $args;
    $replacement = '';
    if ($match[1] && (!isset($match[4]) || !$match[4])) {
        $replacement .= $match[1];
    }
    if (isset($args)) {
        $saved_args = $args;
    }
    $args = array();
    $paramstr = isset($match[3]) ? html_entity_decode(trim($match[3]), ENT_QUOTES, 'UTF-8') : '';
    while ($paramstr && preg_match('/^([^"\', ]*|"[^"]*"|\'[^\']*\')(\\s+|\\s*,\\s*|$)/', $paramstr, $pmatch)) {
        $value = trim($pmatch[1]);
        if (substr($value, 0, 1) == '"' || substr($value, 0, 1) == "'") {
            $value = substr($value, 1, strlen($value) - 2);
        }
        $args[] = $value;
        $paramstr = substr($paramstr, strlen($pmatch[0]));
    }
    ob_start();
    if (function_exists('get_i18n_component')) {
        get_i18n_component($match[2]);
    } else {
        get_component($match[2]);
    }
    $replacement .= ob_get_contents();
    ob_end_clean();
    if (isset($saved_args)) {
        $args = $saved_args;
    } else {
        unset($args);
    }
    if (!$match[1] && isset($match[4]) && $match[4]) {
        $replacement .= $match[4];
    }
    return $replacement;
}
Beispiel #2
0
<?php

if (!defined('IN_GS')) {
    die('you cannot load this page directly.');
}
include 'header.inc.php';
?>
<div class="container">
<div class="col-md-4 col-xs-12">
<?php 
get_i18n_component('sidebar');
?>
</div>
<div class="col-md-8 col-xs-12">
			<h1><?php 
get_page_title();
?>
</h1>                					     
			<?php 
get_page_content();
?>
</div>
<!-- Space between blocks -->
<div class="col-xs-12 visible-xs">
<br>
</div>
</div>
<?php 
include 'footer.inc.php';
Beispiel #3
0
 
<div class="panel-footer"><?php 
get_footer();
?>
<div class="container">
	<div class="row">
        <div class="col-lg-4"><?php 
get_i18n_component('footer_left');
?>
</div>
        <div class="col-lg-4"><?php 
get_i18n_component('footer_middle');
?>
</div>
        <div class="col-lg-4"><?php 
get_i18n_component('footer_right');
?>
</div>
    </div>
</div>
</div>
<div class="credits">
	<div class="text-center">
		<br>
			<small><?php 
echo date('Y');
?>
 :: <a href="<?php 
get_site_url();
?>
" ><?php 
Beispiel #4
0
</div>
<div class="container">
	<div class="row">
		<div class="col-md-4 col-xs-12">
			<?php 
get_i18n_component('box1');
?>
		</div>
		<div class="col-md-4 col-xs-12">
			<?php 
get_i18n_component('box2');
?>
		</div>
		<div class="col-md-4 col-xs-12">
			<?php 
get_i18n_component('box3');
?>
		</div>
	</div>
	<div class="row">
		<div class="col-md-12 col-xs-12">
		<h1><?php 
get_page_title();
?>
</h1>                					     
		<?php 
get_page_content();
?>
	</div>
</div>
Beispiel #5
0
		<img src="<?php 
get_theme_url();
?>
/images/carousel3.jpg" alt="Third slide">
			<div class="container">
				<div class="carousel-caption"><?php 
get_i18n_component('carousel3');
?>
</div>
			</div>
        </div>
    </div>
    </div>
</div>
<!-- Carousel replacement on mobile devices -->
<div class="col-xs-12 visible-xs">
<?php 
get_i18n_component('carousel1');
get_i18n_component('carousel2');
get_i18n_component('carousel3');
?>
</br>
</div>
<!-- Space between blocks -->
<div class="col-xs-12 visible-xs">
<br>
</div>
</div>
<br>
<?php 
include 'footer.inc.php';