echo get_page('title'); ?> </h2> <?php get_breads(); ?> </div> </div> </div> </section> <section class="content blog"> <div class="container"> <div class="row"> <div class="col-xs-12 col-sm-8 col-md-8 col-lg-8"> <div class="blog_medium"> <?php echo get_active_theme_vars('page_content'); ?> </div> </div> <!--Sidebar Widget--> <?php $this->sidebar_right(); ?> </div> <!--/.row--> </div> <!--/.container--> </section> </section> <!--end wrapper-->
</div> </form> <?php } } } } if ($static_items = return_if_array_key_exists('theme_items', $active_theme)) { if (is_array($static_items)) { foreach ($static_items as $namespace => $item) { // Seul les éléments statics sont parcouru if ($is_static = return_if_array_key_exists('is_static', $item)) { $description = return_if_array_key_exists('description', $item); $title = return_if_array_key_exists('title', $item); $name = return_if_array_key_exists('name', $item); $settings = get_active_theme_vars('theme_settings'); $item_setting = return_if_array_key_exists($namespace, $settings) ? return_if_array_key_exists($namespace, $settings) : array(); ?> <form class="panel panel-default" method="post"> <input type="hidden" name="is_static_item" value="true"> <div class="panel-heading"> <h4 class="panel-title"> <a data-toggle="collapse" data-parent="#accordion" href="#<?php echo $namespace; ?> "> <?php echo $name; ?> </a> </h4> </div> <!-- collapse --> <div id="<?php
<?php $active_theme = get_core_vars('active_theme'); $theme_settings = return_if_array_key_exists('theme_settings', $active_theme); if ($theme_settings) { if (is_array(get_active_theme_vars('theme_items'))) { foreach (get_active_theme_vars('theme_items') as $namespace => $items) { // Si l'item à été enregistré dans les réglages du thèmes if (array_key_exists($namespace, $theme_settings)) { $item_settings = $theme_settings[$namespace]; $api = get_apis(return_if_array_key_exists('declared_apis', $item_settings)); $callback = return_if_array_key_exists('callback', $api); if ($callback) { if (is_array($callback)) { if (method_exists($callback[0], $callback[1])) { // We dont consider Item IF setting limit result to 0 if ((int) $item_settings['api_limit'] > 0) { $returned = $callback[0]->{$callback}[1]($item_settings['api_limit']); // Set Item With Returned datas from API if (is_array($returned)) { foreach ($returned as $r) { set_item($namespace, $r); } } } } } } // } }
/** * set_app_compatibility() : définit une compatibilité pour un thème. **/ function active_theme_compatibility($APP) { if (is_array($APP)) { foreach ($APP as $_app) { active_theme_compatibility($_app); } return true; } else { $apps_supported = get_active_theme_vars('APPS_COMPATIBILITY') ? get_active_theme_vars('APPS_COMPATIBILITY') : array(); $apps_supported[] = $APP; return set_active_theme_vars('APPS_COMPATIBILITY', $apps_supported); } return false; }