Пример #1
0
function get_theme_option($key)
{
    $options = get_theme_options();
    if (array_key_exists($key, $options)) {
        return $options[$key];
    }
    return false;
}
Пример #2
0
    }
    ?>
								<?php 
}
?>

							</ul>
						</div>
					</div>
				</div>
			</div>
		</header>

		<div id="page-wrapper" class="content-area">
			<?php 
if (get_theme_options('display_crumbs') === '1' and ($breadcrumbs = get_breadcrumbs()) !== '') {
    ?>
	            <div id="breadcrumb">
	                <div class="container">
	                    <div class="row">
	                        <div class="col-xs-12">
                                <?php 
    echo $breadcrumbs;
    ?>
	                        </div>
	                    </div>
	                </div>
	            </div>
			<?php 
}
?>
Пример #3
0
                    <!-- TastyIgniter is open source software developed and maintained by a volunteer community.
						It would be much appreciated by the TastyIgniter community if you left the full copyright and "powered by" notice intact,
						to show your support for TastyIgniter.  If you choose to remove or modify the copyright below,
						you may be refused support on the TastyIgniter Community Forums.

						This is free software, support us and we'll support you. -->
                    <li><?php 
echo sprintf(lang('site_copyright'), date('Y'), config_item('site_name'), lang('ti_text_system_name')) . lang('ti_text_system_powered');
?>
</li>
                    <!-- End powered by -->
                </ul>
            </div>

            <?php 
$social_icons = get_theme_options('social');
?>

            <div class="col-md-4">
                <?php 
if (!empty($social_icons) and array_filter($social_icons)) {
    ?>
                    <div class="social-bottom">
                        <ul class="social-icons">
                            <?php 
    if (!empty($social_icons['facebook'])) {
        ?>
                                <li><a class="fa fa-facebook" target="_blank" href="<?php 
        echo $social_icons['facebook'];
        ?>
"></a></li>
Пример #4
0
function comments_status()
{
    $options = get_theme_options();
    if (array_key_exists('comments_disabled', $options) && $options['comments_disabled']) {
        return FALSE;
    } else {
        return TRUE;
    }
}
Пример #5
0
?>
        <title><?php 
echo sprintf(lang('site_title'), get_title(), config_item('site_name'));
?>
</title>
        <?php 
echo get_style_tags();
?>
        <?php 
echo get_active_styles();
?>
        <?php 
echo get_script_tags();
?>
        <?php 
echo get_theme_options('ga_tracking_code');
?>
		<script type="text/javascript">
			var alert_close = '<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>';

			var js_site_url = function(str) {
				var strTmp = "<?php 
echo rtrim(site_url(), '/') . '/';
?>
" + str;
			 	return strTmp;
			}

			var js_base_url = function(str) {
				var strTmp = "<?php 
echo base_url();
function option_copyright_info()
{
    $options = get_theme_options();
    ?>
	<textarea id="copyright_info" name="theme_options[option_copyright_info]" cols="50" rows="20" /><?php 
    echo stripslashes($options['option_copyright_info']);
    ?>
</textarea>
	<?php 
}
Пример #7
0
            </div>
        </div>
    </div>

    <div class="bottom-footer">
        <div class="container">
            <div class="row">
                <div class="col-xs-12 wrap-all border-top">
                    <!-- TastyIgniter is open source software developed and maintained by a volunteer community.
                    It would be much appreciated by the TastyIgniter community if you left the full copyright and "powered by" notice intact,
                    to show your support for TastyIgniter.  If you choose to remove or modify the copyright below,
                    you may be refused support on the TastyIgniter Community Forums.

                    This is free software, support us and we'll support you. -->
                    <?php 
echo sprintf(lang('site_copyright'), date('Y'), config_item('site_name'), lang('tastyigniter_system_name')) . lang('tastyigniter_system_powered');
?>
                    <!-- End powered by -->
                </div>
            </div>
        </div>
	</div>
</footer>
<?php 
$custom_script = get_theme_options('custom_script');
if (!empty($custom_script['footer'])) {
    echo '<script type="text/javascript">' . $custom_script['footer'] . '</script>';
}
?>
</body>
</html>
Пример #8
0
<?php

if (!isset($social_icons)) {
    $social_icons = get_theme_options('theme_options', 'global', 'social_icons');
}
if (!$social_icons) {
    return;
}
?>
<ul class="social-icons">
	<?php 
foreach ($social_icons as $icon) {
    ?>
	<li class="<?php 
    echo sanitize_title($icon['link']['title']);
    ?>
"><?php 
    echo sprintf($icon['link']['sprintf'], $icon['icon'], '');
    ?>
</li>
	<?php 
}
?>
</ul>