Example #1
0
<?php

/*
 * @package       OctoMS.com
 * @subpackage    DesignJotter
 * @copyright     Copyright 2011, Valentino-Jivko Radosavlevici
 * @license       GPL v3.0 (http://www.gnu.org/licenses/gpl-3.0.txt)
 * 
 * Redistributions of files must retain the above copyright notice.
 * 
 * @since         OctoMS 0.0.1, DesignJotter 2.0.1
 */
// Print the header
get_header();
// Print the contents via the DesignJotter dispatcher
print octoms('view', OMS_CL)->addon('ocean', 'ship', 'dispatch');
// Print the footer
get_footer();
Example #2
0
 function widget($args, $instance)
 {
     // Any additional widget class?
     if (isset($instance['*class']) && !empty($instance['*class'])) {
         $args['before_widget'] = str_replace('class="', 'class="' . $instance['*class'] . (isset($instance['*class2']) ? $instance['*class2'] . ' ' : ''), $args['before_widget']);
     }
     unset($instance['*class']);
     unset($instance['*class2']);
     // Start the widget
     echo $args['before_widget'];
     // Title
     if (!empty($instance['*title'])) {
         echo $args['before_title'] . apply_filters('widget_title', $instance['*title']) . $args['after_title'];
     }
     // Remove the title
     unset($instance['*title']);
     // Get the content
     $content = isset($instance['*content']) ? $instance['*content'] : null;
     unset($instance['*content']);
     // Parse string commands
     foreach ($instance as $key => $value) {
         if ($value === 'true') {
             $instance[$key] = true;
         }
         if ($value === 'false') {
             $instance[$key] = false;
         }
         if ($value === 'null' || $value === '') {
             $instance[$key] = null;
         }
         if (false !== strpos($value, '{') && false !== strpos($value, '}')) {
             if (null !== ($json = @json_decode(str_replace('&quot;', '"', $value)))) {
                 $instance[$key] = (array) $json;
             }
         }
     }
     // Remove trailing nulls
     $keys = array_keys($instance);
     for ($i = count($instance); $i > 0; $i--) {
         if (null === $instance[$keys[$i - 1]]) {
             unset($instance[$keys[$i - 1]]);
         } else {
             break;
         }
     }
     // Call the widget
     if (count($instance) > 0) {
         print octoms('template', OMS_L)->widget($this->widgetClassName, $this->widgetClassMethod, $instance, $content);
     } else {
         print octoms('template', OMS_L)->widget($this->widgetClassName, $this->widgetClassMethod, null, $content);
     }
     // End
     echo $args['after_widget'];
 }
Example #3
0
    dynamic_sidebar('footer');
    ?>
				</div>
				<div class="ending">
					<div class="eight columns alpha">
						<?php 
    print octoms('settings', OMS_L)->get('copyright');
    ?>
					</div>
					<div class="s eight columns omega">
						<?php 
    octoms('template', OMS_L)->widget('_content', 'identity');
    ?>
						<div class="call">
							<?php 
    octoms('template', OMS_L)->widget('_content', 'identity', array(true));
    ?>
							<div class="phone"></div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<?php 
}
wp_footer();
?>
</body>
</html>
Example #4
0
<?php 
if (!$simplified) {
    ?>
<div class="top-slice">
	<div class="top-slice-overlay">
		<div class="top container">
			<div class="sixteen columns top">
				<div class="seven columns">
				<span id="header">
					<?php 
    octoms('template', OMS_L)->header(false, null, true);
    ?>
				</span>
				</div>
				<div class="nine columns">
					<div class="top-icon for-search"></div>
					<?php 
    get_search_form(true);
    ?>
					<div class="top-icon for-menu"></div>
					<?php 
    octoms('template', OMS_L)->menu_theme('top', array('class' => 'menu-top-dropdown'), null, true);
    ?>
				</div>
				<div class="clearfix"></div>
			</div>
		</div>
	</div>
</div>
<?php 
}
Example #5
0
<?php

get_header();
octoms('template', OMS_L)->scriptroot()->js('wp-octoms')->scriptroot('_content')->css('chromium')->js('chromium');
?>
<div class="content">
	<div class="sixteen columns container">		
		<div class="page-divider notfound">
			<div class="image">
				Page not found
			</div>
		</div>
		<div class="sixteen columns">
			<h1>404</h1>
		</div>
	</div>
</div>
<?php 
get_footer();