Esempio n. 1
0
function vuetiful_theme_setup()
{
    include_once 'lib/modules/Module.php';
    include_once 'lib/modules/Module_Manager.php';
    include_once 'includes/actions.php';
    include_once 'includes/filters.php';
    include_once 'includes/helpers.php';
    add_theme_support('html5');
    register_nav_menus(array('main-menu' => __('Main Menu', 'vuetiful')));
    $module_manager = Vuetiful\Module_Manager::instance();
    $module_manager->load_modules();
}
Esempio n. 2
0
			<h2><?php 
_e('Theme Color', 'vuetiful');
?>
</h2>
			<div class="vuetiful-colors">
				<a v-for="(value, key) in themeColors" @click.prevent="setThemeColor( key )" :title=value[0] :class="{ selected: key === themeColor }" :style="{ backgroundColor: value[1] }" href="#"></a>
				<input type="hidden" class="vuetiful-color-selected" name="vuetiful_theme_color" v-model="themeColor" />
			</div>

			<!-- Modules -->
			<h2><?php 
_e('Modules', 'vuetiful');
?>
</h2>
			<?php 
$module_manager = Vuetiful\Module_Manager::instance();
$modules = $module_manager->get_modules();
$loaded_modules = get_option('vuetiful-modules');
if (!is_array($loaded_modules)) {
    $loaded_modules = array();
}
if ($modules) {
    ?>
					<div class="vuetiful-modules">
						<?php 
    foreach ($modules as $module) {
        ?>
								<p>
									<label>
										<input type="checkbox" name="vuetiful_modules[]" value="<?php 
        echo sanitize_title($module);