diff --git a/404.php b/404.php new file mode 100644 index 0000000..e1f5733 --- /dev/null +++ b/404.php @@ -0,0 +1,40 @@ + +
+ + +
+
+ +
+
+
+ +
+
+

+
+ +
+

+ +
+
+ +
+
+
+ + + +
+ + \ No newline at end of file diff --git a/archive.php b/archive.php new file mode 100644 index 0000000..0fafd23 --- /dev/null +++ b/archive.php @@ -0,0 +1,117 @@ + +
+ + +
+
+ +
+
+
+ + + +
', $term_description ); + endif; + ?> + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ \ No newline at end of file diff --git a/class-tgm-plugin-activation.php b/class-tgm-plugin-activation.php new file mode 100644 index 0000000..a42b082 --- /dev/null +++ b/class-tgm-plugin-activation.php @@ -0,0 +1,2199 @@ + + * @author Gary Jones + * @copyright Copyright (c) 2012, Thomas Griffin + * @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later + * @link https://github.com/thomasgriffin/TGM-Plugin-Activation + */ + +/* + Copyright 2014 Thomas Griffin (thomasgriffinmedia.com) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License, version 2, as + published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +*/ + +if ( ! class_exists( 'TGM_Plugin_Activation' ) ) { + /** + * Automatic plugin installation and activation library. + * + * Creates a way to automatically install and activate plugins from within themes. + * The plugins can be either pre-packaged, downloaded from the WordPress + * Plugin Repository or downloaded from a private repository. + * + * @since 1.0.0 + * + * @package TGM-Plugin-Activation + * @author Thomas Griffin + * @author Gary Jones + */ + class TGM_Plugin_Activation { + + /** + * Holds a copy of itself, so it can be referenced by the class name. + * + * @since 1.0.0 + * + * @var TGM_Plugin_Activation + */ + public static $instance; + + /** + * Holds arrays of plugin details. + * + * @since 1.0.0 + * + * @var array + */ + public $plugins = array(); + + /** + * Name of the unique ID to hash notices. + * + * @since 2.4.0 + * + * @var string + */ + public $id = 'tgmpa'; + + /** + * Name of the querystring argument for the admin page. + * + * @since 1.0.0 + * + * @var string + */ + public $menu = 'tgmpa-install-plugins'; + + /** + * Default absolute path to folder containing pre-packaged plugin zip files. + * + * @since 2.0.0 + * + * @var string Absolute path prefix to packaged zip file location. Default is empty string. + */ + public $default_path = ''; + + /** + * Flag to show admin notices or not. + * + * @since 2.1.0 + * + * @var boolean + */ + public $has_notices = true; + + /** + * Flag to determine if the user can dismiss the notice nag. + * + * @since 2.4.0 + * + * @var boolean + */ + public $dismissable = true; + + /** + * Message to be output above nag notice if dismissable is false. + * + * @since 2.4.0 + * + * @var string + */ + public $dismiss_msg = ''; + + /** + * Flag to set automatic activation of plugins. Off by default. + * + * @since 2.2.0 + * + * @var boolean + */ + public $is_automatic = false; + + /** + * Optional message to display before the plugins table. + * + * @since 2.2.0 + * + * @var string Message filtered by wp_kses_post(). Default is empty string. + */ + public $message = ''; + + /** + * Holds configurable array of strings. + * + * Default values are added in the constructor. + * + * @since 2.0.0 + * + * @var array + */ + public $strings = array(); + + /** + * Holds the version of WordPress. + * + * @since 2.4.0 + * + * @var int + */ + public $wp_version; + + /** + * Adds a reference of this object to $instance, populates default strings, + * does the tgmpa_init action hook, and hooks in the interactions to init. + * + * @since 1.0.0 + * + * @see TGM_Plugin_Activation::init() + */ + public function __construct() { + + self::$instance = $this; + + // Set the current WordPress version. + global $wp_version; + $this->wp_version = $wp_version; + + // Announce that the class is ready, and pass the object (for advanced use). + do_action_ref_array( 'tgmpa_init', array( $this ) ); + + // When the rest of WP has loaded, kick-start the rest of the class. + add_action( 'init', array( $this, 'init' ) ); + + } + + /** + * Initialise the interactions between this class and WordPress. + * + * Hooks in three new methods for the class: admin_menu, notices and styles. + * + * @since 2.0.0 + * + * @see TGM_Plugin_Activation::admin_menu() + * @see TGM_Plugin_Activation::notices() + * @see TGM_Plugin_Activation::styles() + */ + public function init() { + + // Load class strings. + $this->strings = array( + 'page_title' => __( 'Install Required Plugins', 'tgmpa' ), + 'menu_title' => __( 'Install Plugins', 'tgmpa' ), + 'installing' => __( 'Installing Plugin: %s', 'tgmpa' ), + 'oops' => __( 'Something went wrong.', 'tgmpa' ), + 'notice_can_install_required' => _n_noop( 'This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.', 'tgmpa' ), + 'notice_can_install_recommended' => _n_noop( 'This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.', 'tgmpa' ), + 'notice_cannot_install' => _n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.', 'tgmpa' ), + 'notice_can_activate_required' => _n_noop( 'The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.', 'tgmpa' ), + 'notice_can_activate_recommended'=> _n_noop( 'The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.', 'tgmpa' ), + 'notice_cannot_activate' => _n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.', 'tgmpa' ), + 'notice_ask_to_update' => _n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.', 'tgmpa' ), + 'notice_cannot_update' => _n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.', 'tgmpa' ), + 'install_link' => _n_noop( 'Begin installing plugin', 'Begin installing plugins', 'tgmpa' ), + 'activate_link' => _n_noop( 'Begin activating plugin', 'Begin activating plugins', 'tgmpa' ), + 'return' => __( 'Return to Required Plugins Installer', 'tgmpa' ), + 'dashboard' => __( 'Return to the dashboard', 'tgmpa' ), + 'plugin_activated' => __( 'Plugin activated successfully.', 'tgmpa' ), + 'activated_successfully' => __( 'The following plugin was activated successfully:', 'tgmpa' ), + 'complete' => __( 'All plugins installed and activated successfully. %1$s', 'tgmpa' ), + 'dismiss' => __( 'Dismiss this notice', 'tgmpa' ), + ); + + do_action( 'tgmpa_register' ); + // After this point, the plugins should be registered and the configuration set. + + // Proceed only if we have plugins to handle. + if ( $this->plugins ) { + $sorted = array(); + + foreach ( $this->plugins as $plugin ) { + $sorted[] = $plugin['name']; + } + + array_multisort( $sorted, SORT_ASC, $this->plugins ); + + add_action( 'admin_menu', array( $this, 'admin_menu' ) ); + add_action( 'admin_head', array( $this, 'dismiss' ) ); + add_filter( 'install_plugin_complete_actions', array( $this, 'actions' ) ); + add_action( 'switch_theme', array( $this, 'flush_plugins_cache' ) ); + + // Load admin bar in the header to remove flash when installing plugins. + if ( $this->is_tgmpa_page() ) { + remove_action( 'wp_footer', 'wp_admin_bar_render', 1000 ); + remove_action( 'admin_footer', 'wp_admin_bar_render', 1000 ); + add_action( 'wp_head', 'wp_admin_bar_render', 1000 ); + add_action( 'admin_head', 'wp_admin_bar_render', 1000 ); + } + + if ( $this->has_notices ) { + add_action( 'admin_notices', array( $this, 'notices' ) ); + add_action( 'admin_init', array( $this, 'admin_init' ), 1 ); + add_action( 'admin_enqueue_scripts', array( $this, 'thickbox' ) ); + add_action( 'switch_theme', array( $this, 'update_dismiss' ) ); + } + + // Setup the force activation hook. + foreach ( $this->plugins as $plugin ) { + if ( isset( $plugin['force_activation'] ) && true === $plugin['force_activation'] ) { + add_action( 'admin_init', array( $this, 'force_activation' ) ); + break; + } + } + + // Setup the force deactivation hook. + foreach ( $this->plugins as $plugin ) { + if ( isset( $plugin['force_deactivation'] ) && true === $plugin['force_deactivation'] ) { + add_action( 'switch_theme', array( $this, 'force_deactivation' ) ); + break; + } + } + } + + } + + /** + * Handles calls to show plugin information via links in the notices. + * + * We get the links in the admin notices to point to the TGMPA page, rather + * than the typical plugin-install.php file, so we can prepare everything + * beforehand. + * + * WP doesn't make it easy to show the plugin information in the thickbox - + * here we have to require a file that includes a function that does the + * main work of displaying it, enqueue some styles, set up some globals and + * finally call that function before exiting. + * + * Down right easy once you know how... + * + * @since 2.1.0 + * + * @global string $tab Used as iframe div class names, helps with styling + * @global string $body_id Used as the iframe body ID, helps with styling + * @return null Returns early if not the TGMPA page. + */ + public function admin_init() { + + if ( ! $this->is_tgmpa_page() ) { + return; + } + + if ( isset( $_REQUEST['tab'] ) && 'plugin-information' == $_REQUEST['tab'] ) { + require_once ABSPATH . 'wp-admin/includes/plugin-install.php'; // Need for install_plugin_information(). + + wp_enqueue_style( 'plugin-install' ); + + global $tab, $body_id; + $body_id = $tab = 'plugin-information'; + + install_plugin_information(); + + exit; + } + + } + + /** + * Enqueues thickbox scripts/styles for plugin info. + * + * Thickbox is not automatically included on all admin pages, so we must + * manually enqueue it for those pages. + * + * Thickbox is only loaded if the user has not dismissed the admin + * notice or if there are any plugins left to install and activate. + * + * @since 2.1.0 + */ + public function thickbox() { + + if ( ! get_user_meta( get_current_user_id(), 'tgmpa_dismissed_notice_' . $this->id, true ) ) { + add_thickbox(); + } + + } + + /** + * Adds submenu page under 'Appearance' tab. + * + * This method adds the submenu page letting users know that a required + * plugin needs to be installed. + * + * This page disappears once the plugin has been installed and activated. + * + * @since 1.0.0 + * + * @see TGM_Plugin_Activation::init() + * @see TGM_Plugin_Activation::install_plugins_page() + */ + public function admin_menu() { + + // Make sure privileges are correct to see the page + if ( ! current_user_can( 'install_plugins' ) ) { + return; + } + + $this->populate_file_path(); + + foreach ( $this->plugins as $plugin ) { + if ( ! is_plugin_active( $plugin['file_path'] ) ) { + add_theme_page( + $this->strings['page_title'], // Page title. + $this->strings['menu_title'], // Menu title. + 'edit_theme_options', // Capability. + $this->menu, // Menu slug. + array( $this, 'install_plugins_page' ) // Callback. + ); + break; + } + } + + } + + /** + * Echoes plugin installation form. + * + * This method is the callback for the admin_menu method function. + * This displays the admin page and form area where the user can select to install and activate the plugin. + * + * @since 1.0.0 + * + * @return null Aborts early if we're processing a plugin installation action + */ + public function install_plugins_page() { + + // Store new instance of plugin table in object. + $plugin_table = new TGMPA_List_Table; + + // Return early if processing a plugin installation action. + if ( isset( $_POST['action'] ) && 'tgmpa-bulk-install' == $_POST['action'] && $plugin_table->process_bulk_actions() || $this->do_plugin_install() ) { + return; + } + + ?> +
+ +

+ prepare_items(); ?> + + message ) ) { + echo wp_kses_post( $this->message ); + } ?> + +
+ + display(); ?> +
+ +
+ $this->menu, + 'plugin' => $plugin['slug'], + 'plugin_name' => $plugin['name'], + 'plugin_source' => $plugin['source'], + 'tgmpa-install' => 'install-plugin', + ), + admin_url( 'themes.php' ) + ), + 'tgmpa-install' + ); + $method = ''; // Leave blank so WP_Filesystem can populate it as necessary. + $fields = array( 'tgmpa-install' ); // Extra fields to pass to WP_Filesystem. + + if ( false === ( $creds = request_filesystem_credentials( $url, $method, false, false, $fields ) ) ) { + return true; + } + + if ( ! WP_Filesystem( $creds ) ) { + request_filesystem_credentials( $url, $method, true, false, $fields ); // Setup WP_Filesystem. + return true; + } + + require_once ABSPATH . 'wp-admin/includes/plugin-install.php'; // Need for plugins_api. + require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; // Need for upgrade classes. + + // Set plugin source to WordPress API link if available. + if ( isset( $plugin['source'] ) && 'repo' == $plugin['source'] ) { + $api = plugins_api( 'plugin_information', array( 'slug' => $plugin['slug'], 'fields' => array( 'sections' => false ) ) ); + + if ( is_wp_error( $api ) ) { + wp_die( $this->strings['oops'] . var_dump( $api ) ); + } + + if ( isset( $api->download_link ) ) { + $plugin['source'] = $api->download_link; + } + } + + // Set type, based on whether the source starts with http:// or https://. + $type = preg_match( '|^http(s)?://|', $plugin['source'] ) ? 'web' : 'upload'; + + // Prep variables for Plugin_Installer_Skin class. + $title = sprintf( $this->strings['installing'], $plugin['name'] ); + $url = add_query_arg( array( 'action' => 'install-plugin', 'plugin' => $plugin['slug'] ), 'update.php' ); + if ( isset( $_GET['from'] ) ) { + $url .= add_query_arg( 'from', urlencode( stripslashes( $_GET['from'] ) ), $url ); + } + + $nonce = 'install-plugin_' . $plugin['slug']; + + // Prefix a default path to pre-packaged plugins. + $source = ( 'upload' == $type ) ? $this->default_path . $plugin['source'] : $plugin['source']; + + // Create a new instance of Plugin_Upgrader. + $upgrader = new Plugin_Upgrader( $skin = new Plugin_Installer_Skin( compact( 'type', 'title', 'url', 'nonce', 'plugin', 'api' ) ) ); + + // Perform the action and install the plugin from the $source urldecode(). + $upgrader->install( $source ); + + // Flush plugins cache so we can make sure that the installed plugins list is always up to date. + wp_cache_flush(); + + // Only activate plugins if the config option is set to true. + if ( $this->is_automatic ) { + $plugin_activate = $upgrader->plugin_info(); // Grab the plugin info from the Plugin_Upgrader method. + $activate = activate_plugin( $plugin_activate ); // Activate the plugin. + $this->populate_file_path(); // Re-populate the file path now that the plugin has been installed and activated. + + if ( is_wp_error( $activate ) ) { + echo '

' . $activate->get_error_message() . '

'; + echo '

' . $this->strings['return'] . '

'; + return true; // End it here if there is an error with automatic activation + } + else { + echo '

' . $this->strings['plugin_activated'] . '

'; + } + } + + // Display message based on if all plugins are now active or not. + $complete = array(); + foreach ( $this->plugins as $plugin ) { + if ( ! is_plugin_active( $plugin['file_path'] ) ) { + echo '

' . $this->strings['return'] . '

'; + $complete[] = $plugin; + break; + } + // Nothing to store. + else { + $complete[] = ''; + } + } + + // Filter out any empty entries. + $complete = array_filter( $complete ); + + // All plugins are active, so we display the complete string and hide the plugin menu. + if ( empty( $complete ) ) { + echo '

' . sprintf( $this->strings['complete'], '' . __( 'Return to the Dashboard', 'tgmpa' ) . '' ) . '

'; + echo ''; + } + + return true; + } + // Checks for actions from hover links to process the activation. + elseif ( isset( $_GET['plugin'] ) && ( isset( $_GET['tgmpa-activate'] ) && 'activate-plugin' == $_GET['tgmpa-activate'] ) ) { + check_admin_referer( 'tgmpa-activate', 'tgmpa-activate-nonce' ); + + // Populate $plugin array with necessary information. + $plugin['name'] = $_GET['plugin_name']; + $plugin['slug'] = $_GET['plugin']; + $plugin['source'] = $_GET['plugin_source']; + + $plugin_data = get_plugins( '/' . $plugin['slug'] ); // Retrieve all plugins. + $plugin_file = array_keys( $plugin_data ); // Retrieve all plugin files from installed plugins. + $plugin_to_activate = $plugin['slug'] . '/' . $plugin_file[0]; // Match plugin slug with appropriate plugin file. + $activate = activate_plugin( $plugin_to_activate ); // Activate the plugin. + + if ( is_wp_error( $activate ) ) { + echo '

' . $activate->get_error_message() . '

'; + echo '

' . $this->strings['return'] . '

'; + return true; // End it here if there is an error with activation. + } + else { + // Make sure message doesn't display again if bulk activation is performed immediately after a single activation. + if ( ! isset( $_POST['action'] ) ) { + $msg = $this->strings['activated_successfully'] . ' ' . $plugin['name'] . '.'; + echo '

' . $msg . '

'; + } + } + } + + return false; + + } + + /** + * Echoes required plugin notice. + * + * Outputs a message telling users that a specific plugin is required for + * their theme. If appropriate, it includes a link to the form page where + * users can install and activate the plugin. + * + * @since 1.0.0 + * + * @global object $current_screen + * @return null Returns early if we're on the Install page. + */ + public function notices() { + + global $current_screen; + + // Remove nag on the install page. + if ( $this->is_tgmpa_page() ) { + return; + } + + // Return early if the nag message has been dismissed. + if ( get_user_meta( get_current_user_id(), 'tgmpa_dismissed_notice_' . $this->id, true ) ) { + return; + } + + $installed_plugins = get_plugins(); // Retrieve a list of all the plugins + $this->populate_file_path(); + + $message = array(); // Store the messages in an array to be outputted after plugins have looped through. + $install_link = false; // Set to false, change to true in loop if conditions exist, used for action link 'install'. + $install_link_count = 0; // Used to determine plurality of install action link text. + $activate_link = false; // Set to false, change to true in loop if conditions exist, used for action link 'activate'. + $activate_link_count = 0; // Used to determine plurality of activate action link text. + + foreach ( $this->plugins as $plugin ) { + // If the plugin is installed and active, check for minimum version argument before moving forward. + if ( is_plugin_active( $plugin['file_path'] ) ) { + // A minimum version has been specified. + if ( isset( $plugin['version'] ) ) { + if ( isset( $installed_plugins[$plugin['file_path']]['Version'] ) ) { + // If the current version is less than the minimum required version, we display a message. + if ( version_compare( $installed_plugins[$plugin['file_path']]['Version'], $plugin['version'], '<' ) ) { + if ( current_user_can( 'install_plugins' ) ) { + $message['notice_ask_to_update'][] = $plugin['name']; + } else { + $message['notice_cannot_update'][] = $plugin['name']; + } + } + } + // Can't find the plugin, so iterate to the next condition. + else { + continue; + } + } + // No minimum version specified, so iterate over the plugin. + else { + continue; + } + } + + // Not installed. + if ( ! isset( $installed_plugins[$plugin['file_path']] ) ) { + $install_link = true; // We need to display the 'install' action link. + $install_link_count++; // Increment the install link count. + if ( current_user_can( 'install_plugins' ) ) { + if ( $plugin['required'] ) { + $message['notice_can_install_required'][] = $plugin['name']; + } + // This plugin is only recommended. + else { + $message['notice_can_install_recommended'][] = $plugin['name']; + } + } + // Need higher privileges to install the plugin. + else { + $message['notice_cannot_install'][] = $plugin['name']; + } + } + // Installed but not active. + elseif ( is_plugin_inactive( $plugin['file_path'] ) ) { + $activate_link = true; // We need to display the 'activate' action link. + $activate_link_count++; // Increment the activate link count. + if ( current_user_can( 'activate_plugins' ) ) { + if ( isset( $plugin['required'] ) && $plugin['required'] ) { + $message['notice_can_activate_required'][] = $plugin['name']; + } + // This plugin is only recommended. + else { + $message['notice_can_activate_recommended'][] = $plugin['name']; + } + } + // Need higher privileges to activate the plugin. + else { + $message['notice_cannot_activate'][] = $plugin['name']; + } + } + } + + // If we have notices to display, we move forward. + if ( ! empty( $message ) ) { + krsort( $message ); // Sort messages. + $rendered = ''; // Display all nag messages as strings. + + // If dismissable is false and a message is set, output it now. + if ( ! $this->dismissable && ! empty( $this->dismiss_msg ) ) { + $rendered .= '

' . wp_kses_post( $this->dismiss_msg ) . '

'; + } + + // Grab all plugin names. + foreach ( $message as $type => $plugin_groups ) { + $linked_plugin_groups = array(); + + // Count number of plugins in each message group to calculate singular/plural message. + $count = count( $plugin_groups ); + + // Loop through the plugin names to make the ones pulled from the .org repo linked. + foreach ( $plugin_groups as $plugin_group_single_name ) { + $external_url = $this->_get_plugin_data_from_name( $plugin_group_single_name, 'external_url' ); + $source = $this->_get_plugin_data_from_name( $plugin_group_single_name, 'source' ); + + if ( $external_url && preg_match( '|^http(s)?://|', $external_url ) ) { + $linked_plugin_groups[] = '' . $plugin_group_single_name . ''; + } + elseif ( ! $source || preg_match( '|^http://wordpress.org/extend/plugins/|', $source ) ) { + $url = add_query_arg( + array( + 'tab' => 'plugin-information', + 'plugin' => $this->_get_plugin_data_from_name( $plugin_group_single_name ), + 'TB_iframe' => 'true', + 'width' => '640', + 'height' => '500', + ), + admin_url( 'plugin-install.php' ) + ); + + $linked_plugin_groups[] = '' . $plugin_group_single_name . ''; + } + else { + $linked_plugin_groups[] = $plugin_group_single_name; // No hyperlink. + } + + if ( isset( $linked_plugin_groups ) && (array) $linked_plugin_groups ) { + $plugin_groups = $linked_plugin_groups; + } + } + + $last_plugin = array_pop( $plugin_groups ); // Pop off last name to prep for readability. + $imploded = empty( $plugin_groups ) ? '' . $last_plugin . '' : '' . ( implode( ', ', $plugin_groups ) . ' and ' . $last_plugin . '' ); + + $rendered .= '

' . sprintf( translate_nooped_plural( $this->strings[$type], $count, 'tgmpa' ), $imploded, $count ) . '

'; + } + + // Setup variables to determine if action links are needed. + $show_install_link = $install_link ? '' . translate_nooped_plural( $this->strings['install_link'], $install_link_count, 'tgmpa' ) . '' : ''; + $show_activate_link = $activate_link ? '' . translate_nooped_plural( $this->strings['activate_link'], $activate_link_count, 'tgmpa' ) . '' : ''; + + // Define all of the action links. + $action_links = apply_filters( + 'tgmpa_notice_action_links', + array( + 'install' => ( current_user_can( 'install_plugins' ) ) ? $show_install_link : '', + 'activate' => ( current_user_can( 'activate_plugins' ) ) ? $show_activate_link : '', + 'dismiss' => $this->dismissable ? '' . $this->strings['dismiss'] . '' : '', + ) + ); + + $action_links = array_filter( $action_links ); // Remove any empty array items. + if ( $action_links ) { + $rendered .= '

' . implode( ' | ', $action_links ) . '

'; + } + + // Register the nag messages and prepare them to be processed. + $nag_class = version_compare( $this->wp_version, '3.8', '<' ) ? 'updated' : 'update-nag'; + if ( ! empty( $this->strings['nag_type'] ) ) { + add_settings_error( 'tgmpa', 'tgmpa', $rendered, sanitize_html_class( strtolower( $this->strings['nag_type'] ) ) ); + } else { + add_settings_error( 'tgmpa', 'tgmpa', $rendered, $nag_class ); + } + } + + // Admin options pages already output settings_errors, so this is to avoid duplication. + if ( 'options-general' !== $current_screen->parent_base ) { + settings_errors( 'tgmpa' ); + } + + } + + /** + * Add dismissable admin notices. + * + * Appends a link to the admin nag messages. If clicked, the admin notice disappears and no longer is visible to users. + * + * @since 2.1.0 + */ + public function dismiss() { + + if ( isset( $_GET['tgmpa-dismiss'] ) ) { + update_user_meta( get_current_user_id(), 'tgmpa_dismissed_notice_' . $this->id, 1 ); + } + + } + + /** + * Add individual plugin to our collection of plugins. + * + * If the required keys are not set or the plugin has already + * been registered, the plugin is not added. + * + * @since 2.0.0 + * + * @param array $plugin Array of plugin arguments. + */ + public function register( $plugin ) { + + if ( ! isset( $plugin['slug'] ) || ! isset( $plugin['name'] ) ) { + return; + } + + foreach ( $this->plugins as $registered_plugin ) { + if ( $plugin['slug'] == $registered_plugin['slug'] ) { + return; + } + } + + $this->plugins[] = $plugin; + + } + + /** + * Amend default configuration settings. + * + * @since 2.0.0 + * + * @param array $config Array of config options to pass as class properties. + */ + public function config( $config ) { + + $keys = array( 'id', 'default_path', 'has_notices', 'dismissable', 'dismiss_msg', 'menu', 'is_automatic', 'message', 'strings' ); + + foreach ( $keys as $key ) { + if ( isset( $config[$key] ) ) { + if ( is_array( $config[$key] ) ) { + foreach ( $config[$key] as $subkey => $value ) { + $this->{$key}[$subkey] = $value; + } + } else { + $this->$key = $config[$key]; + } + } + } + + } + + /** + * Amend action link after plugin installation. + * + * @since 2.0.0 + * + * @param array $install_actions Existing array of actions. + * @return array Amended array of actions. + */ + public function actions( $install_actions ) { + + // Remove action links on the TGMPA install page. + if ( $this->is_tgmpa_page() ) { + return false; + } + + return $install_actions; + + } + + /** + * Flushes the plugins cache on theme switch to prevent stale entries + * from remaining in the plugin table. + * + * @since 2.4.0 + */ + public function flush_plugins_cache() { + + wp_cache_flush(); + + } + + /** + * Set file_path key for each installed plugin. + * + * @since 2.1.0 + */ + public function populate_file_path() { + + // Add file_path key for all plugins. + foreach ( $this->plugins as $plugin => $values ) { + $this->plugins[$plugin]['file_path'] = $this->_get_plugin_basename_from_slug( $values['slug'] ); + } + + } + + /** + * Helper function to extract the file path of the plugin file from the + * plugin slug, if the plugin is installed. + * + * @since 2.0.0 + * + * @param string $slug Plugin slug (typically folder name) as provided by the developer. + * @return string Either file path for plugin if installed, or just the plugin slug. + */ + protected function _get_plugin_basename_from_slug( $slug ) { + + $keys = array_keys( get_plugins() ); + + foreach ( $keys as $key ) { + if ( preg_match( '|^' . $slug .'/|', $key ) ) { + return $key; + } + } + + return $slug; + + } + + /** + * Retrieve plugin data, given the plugin name. + * + * Loops through the registered plugins looking for $name. If it finds it, + * it returns the $data from that plugin. Otherwise, returns false. + * + * @since 2.1.0 + * + * @param string $name Name of the plugin, as it was registered. + * @param string $data Optional. Array key of plugin data to return. Default is slug. + * @return string|boolean Plugin slug if found, false otherwise. + */ + protected function _get_plugin_data_from_name( $name, $data = 'slug' ) { + + foreach ( $this->plugins as $plugin => $values ) { + if ( $name == $values['name'] && isset( $values[$data] ) ) { + return $values[$data]; + } + } + + return false; + + } + + /** + * Determine if we're on the TGMPA Install page. + * + * @since 2.1.0 + * + * @return boolean True when on the TGMPA page, false otherwise. + */ + protected function is_tgmpa_page() { + + if ( isset( $_GET['page'] ) && $this->menu === $_GET['page'] ) { + return true; + } + + return false; + + } + + /** + * Delete dismissable nag option when theme is switched. + * + * This ensures that the user is again reminded via nag of required + * and/or recommended plugins if they re-activate the theme. + * + * @since 2.1.1 + */ + public function update_dismiss() { + + delete_user_meta( get_current_user_id(), 'tgmpa_dismissed_notice_' . $this->id ); + + } + + /** + * Forces plugin activation if the parameter 'force_activation' is + * set to true. + * + * This allows theme authors to specify certain plugins that must be + * active at all times while using the current theme. + * + * Please take special care when using this parameter as it has the + * potential to be harmful if not used correctly. Setting this parameter + * to true will not allow the specified plugin to be deactivated unless + * the user switches themes. + * + * @since 2.2.0 + */ + public function force_activation() { + + // Set file_path parameter for any installed plugins. + $this->populate_file_path(); + + $installed_plugins = get_plugins(); + + foreach ( $this->plugins as $plugin ) { + // Oops, plugin isn't there so iterate to next condition. + if ( isset( $plugin['force_activation'] ) && $plugin['force_activation'] && ! isset( $installed_plugins[$plugin['file_path']] ) ) { + continue; + } + // There we go, activate the plugin. + elseif ( isset( $plugin['force_activation'] ) && $plugin['force_activation'] && is_plugin_inactive( $plugin['file_path'] ) ) { + activate_plugin( $plugin['file_path'] ); + } + } + + } + + /** + * Forces plugin deactivation if the parameter 'force_deactivation' + * is set to true. + * + * This allows theme authors to specify certain plugins that must be + * deactivated upon switching from the current theme to another. + * + * Please take special care when using this parameter as it has the + * potential to be harmful if not used correctly. + * + * @since 2.2.0 + */ + public function force_deactivation() { + + // Set file_path parameter for any installed plugins. + $this->populate_file_path(); + + foreach ( $this->plugins as $plugin ) { + // Only proceed forward if the parameter is set to true and plugin is active. + if ( isset( $plugin['force_deactivation'] ) && $plugin['force_deactivation'] && is_plugin_active( $plugin['file_path'] ) ) { + deactivate_plugins( $plugin['file_path'] ); + } + } + + } + + /** + * Returns the singleton instance of the class. + * + * @since 2.4.0 + * + * @return object The TGM_Plugin_Activation object. + */ + public static function get_instance() { + + if ( ! isset( self::$instance ) && ! ( self::$instance instanceof TGM_Plugin_Activation ) ) { + self::$instance = new TGM_Plugin_Activation(); + } + + return self::$instance; + + } + + } + + // Ensure only one instance of the class is ever invoked. + $tgmpa = TGM_Plugin_Activation::get_instance(); + +} + +if ( ! function_exists( 'tgmpa' ) ) { + /** + * Helper function to register a collection of required plugins. + * + * @since 2.0.0 + * @api + * + * @param array $plugins An array of plugin arrays. + * @param array $config Optional. An array of configuration values. + */ + function tgmpa( $plugins, $config = array() ) { + + foreach ( $plugins as $plugin ) { + TGM_Plugin_Activation::$instance->register( $plugin ); + } + + if ( $config ) { + TGM_Plugin_Activation::$instance->config( $config ); + } + + } +} + +/** + * WP_List_Table isn't always available. If it isn't available, + * we load it here. + * + * @since 2.2.0 + */ +if ( ! class_exists( 'WP_List_Table' ) ) { + require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' ); +} + +if ( ! class_exists( 'TGMPA_List_Table' ) ) { + /** + * List table class for handling plugins. + * + * Extends the WP_List_Table class to provide a future-compatible + * way of listing out all required/recommended plugins. + * + * Gives users an interface similar to the Plugin Administration + * area with similar (albeit stripped down) capabilities. + * + * This class also allows for the bulk install of plugins. + * + * @since 2.2.0 + * + * @package TGM-Plugin-Activation + * @author Thomas Griffin + * @author Gary Jones + */ + class TGMPA_List_Table extends WP_List_Table { + + /** + * References parent constructor and sets defaults for class. + * + * The constructor also grabs a copy of $instance from the TGMPA class + * and stores it in the global object TGM_Plugin_Activation::$instance. + * + * @since 2.2.0 + */ + public function __construct() { + + parent::__construct( + array( + 'singular' => 'plugin', + 'plural' => 'plugins', + 'ajax' => false, + ) + ); + + } + + /** + * Gathers and renames all of our plugin information to be used by + * WP_List_Table to create our table. + * + * @since 2.2.0 + * + * @return array $table_data Information for use in table. + */ + protected function _gather_plugin_data() { + + // Load thickbox for plugin links. + TGM_Plugin_Activation::$instance->admin_init(); + TGM_Plugin_Activation::$instance->thickbox(); + + // Prep variables for use and grab list of all installed plugins. + $table_data = array(); + $i = 0; + $installed_plugins = get_plugins(); + + foreach ( TGM_Plugin_Activation::$instance->plugins as $plugin ) { + if ( is_plugin_active( $plugin['file_path'] ) ) { + continue; // No need to display plugins if they are installed and activated. + } + + $table_data[$i]['sanitized_plugin'] = $plugin['name']; + $table_data[$i]['slug'] = $this->_get_plugin_data_from_name( $plugin['name'] ); + + $external_url = $this->_get_plugin_data_from_name( $plugin['name'], 'external_url' ); + $source = $this->_get_plugin_data_from_name( $plugin['name'], 'source' ); + + if ( $external_url && preg_match( '|^http(s)?://|', $external_url ) ) { + $table_data[$i]['plugin'] = '' . $plugin['name'] . ''; + } + elseif ( ! $source || preg_match( '|^http://wordpress.org/extend/plugins/|', $source ) ) { + $url = add_query_arg( + array( + 'tab' => 'plugin-information', + 'plugin' => $this->_get_plugin_data_from_name( $plugin['name'] ), + 'TB_iframe' => 'true', + 'width' => '640', + 'height' => '500', + ), + admin_url( 'plugin-install.php' ) + ); + + $table_data[$i]['plugin'] = '' . $plugin['name'] . ''; + } + else { + $table_data[$i]['plugin'] = '' . $plugin['name'] . ''; // No hyperlink. + } + + if ( isset( $table_data[$i]['plugin'] ) && (array) $table_data[$i]['plugin'] ) { + $plugin['name'] = $table_data[$i]['plugin']; + } + + if ( ! empty( $plugin['source'] ) ) { + // The plugin must be from a private repository. + if ( preg_match( '|^http(s)?://|', $plugin['source'] ) ) { + $table_data[$i]['source'] = __( 'Private Repository', 'tgmpa' ); + // The plugin is pre-packaged with the theme. + } else { + $table_data[$i]['source'] = __( 'Pre-Packaged', 'tgmpa' ); + } + } + // The plugin is from the WordPress repository. + else { + $table_data[$i]['source'] = __( 'WordPress Repository', 'tgmpa' ); + } + + $table_data[$i]['type'] = isset( $plugin['required'] ) && $plugin['required'] ? __( 'Required', 'tgmpa' ) : __( 'Recommended', 'tgmpa' ); + + if ( ! isset( $installed_plugins[$plugin['file_path']] ) ) { + $table_data[$i]['status'] = sprintf( '%1$s', __( 'Not Installed', 'tgmpa' ) ); + } elseif ( is_plugin_inactive( $plugin['file_path'] ) ) { + $table_data[$i]['status'] = sprintf( '%1$s', __( 'Installed But Not Activated', 'tgmpa' ) ); + } + + $table_data[$i]['file_path'] = $plugin['file_path']; + $table_data[$i]['url'] = isset( $plugin['source'] ) ? $plugin['source'] : 'repo'; + + $i++; + } + + // Sort plugins by Required/Recommended type and by alphabetical listing within each type. + $resort = array(); + $req = array(); + $rec = array(); + + // Grab all the plugin types. + foreach ( $table_data as $plugin ) { + $resort[] = $plugin['type']; + } + + // Sort each plugin by type. + foreach ( $resort as $type ) { + if ( 'Required' == $type ) { + $req[] = $type; + } else { + $rec[] = $type; + } + } + + // Sort alphabetically each plugin type array, merge them and then sort in reverse (lists Required plugins first). + sort( $req ); + sort( $rec ); + array_merge( $resort, $req, $rec ); + array_multisort( $resort, SORT_DESC, $table_data ); + + return $table_data; + + } + + /** + * Retrieve plugin data, given the plugin name. Taken from the + * TGM_Plugin_Activation class. + * + * Loops through the registered plugins looking for $name. If it finds it, + * it returns the $data from that plugin. Otherwise, returns false. + * + * @since 2.2.0 + * + * @param string $name Name of the plugin, as it was registered. + * @param string $data Optional. Array key of plugin data to return. Default is slug. + * @return string|boolean Plugin slug if found, false otherwise. + */ + protected function _get_plugin_data_from_name( $name, $data = 'slug' ) { + + foreach ( TGM_Plugin_Activation::$instance->plugins as $plugin => $values ) { + if ( $name == $values['name'] && isset( $values[$data] ) ) { + return $values[$data]; + } + } + + return false; + + } + + /** + * Create default columns to display important plugin information + * like type, action and status. + * + * @since 2.2.0 + * + * @param array $item Array of item data. + * @param string $column_name The name of the column. + */ + public function column_default( $item, $column_name ) { + + return $item[$column_name]; + + } + + /** + * Create default title column along with action links of 'Install' + * and 'Activate'. + * + * @since 2.2.0 + * + * @param array $item Array of item data. + * @return string The action hover links. + */ + public function column_plugin( $item ) { + + $installed_plugins = get_plugins(); + + // No need to display any hover links. + if ( is_plugin_active( $item['file_path'] ) ) { + $actions = array(); + } + + // We need to display the 'Install' hover link. + if ( ! isset( $installed_plugins[$item['file_path']] ) ) { + $actions = array( + 'install' => sprintf( + '' . __( 'Install', 'tgmpa' ) . '', + wp_nonce_url( + add_query_arg( + array( + 'page' => TGM_Plugin_Activation::$instance->menu, + 'plugin' => $item['slug'], + 'plugin_name' => $item['sanitized_plugin'], + 'plugin_source' => $item['url'], + 'tgmpa-install' => 'install-plugin', + ), + admin_url( 'themes.php' ) + ), + 'tgmpa-install' + ), + $item['sanitized_plugin'] + ), + ); + } + // We need to display the 'Activate' hover link. + elseif ( is_plugin_inactive( $item['file_path'] ) ) { + $actions = array( + 'activate' => sprintf( + '' . __( 'Activate', 'tgmpa' ) . '', + add_query_arg( + array( + 'page' => TGM_Plugin_Activation::$instance->menu, + 'plugin' => $item['slug'], + 'plugin_name' => $item['sanitized_plugin'], + 'plugin_source' => $item['url'], + 'tgmpa-activate' => 'activate-plugin', + 'tgmpa-activate-nonce' => wp_create_nonce( 'tgmpa-activate' ), + ), + admin_url( 'themes.php' ) + ), + $item['sanitized_plugin'] + ), + ); + } + + return sprintf( '%1$s %2$s', $item['plugin'], $this->row_actions( $actions ) ); + + } + + /** + * Required for bulk installing. + * + * Adds a checkbox for each plugin. + * + * @since 2.2.0 + * + * @param array $item Array of item data. + * @return string The input checkbox with all necessary info. + */ + public function column_cb( $item ) { + + $value = $item['file_path'] . ',' . $item['url'] . ',' . $item['sanitized_plugin']; + return sprintf( '', $this->_args['singular'], $value, $item['sanitized_plugin'] ); + + } + + /** + * Sets default message within the plugins table if no plugins + * are left for interaction. + * + * Hides the menu item to prevent the user from clicking and + * getting a permissions error. + * + * @since 2.2.0 + */ + public function no_items() { + + printf( __( 'No plugins to install or activate. Return to the Dashboard', 'tgmpa' ), admin_url() ); + echo ''; + + } + + /** + * Output all the column information within the table. + * + * @since 2.2.0 + * + * @return array $columns The column names. + */ + public function get_columns() { + + $columns = array( + 'cb' => '', + 'plugin' => __( 'Plugin', 'tgmpa' ), + 'source' => __( 'Source', 'tgmpa' ), + 'type' => __( 'Type', 'tgmpa' ), + 'status' => __( 'Status', 'tgmpa' ) + ); + + return $columns; + + } + + /** + * Defines all types of bulk actions for handling + * registered plugins. + * + * @since 2.2.0 + * + * @return array $actions The bulk actions for the plugin install table. + */ + public function get_bulk_actions() { + + $actions = array( + 'tgmpa-bulk-install' => __( 'Install', 'tgmpa' ), + 'tgmpa-bulk-activate' => __( 'Activate', 'tgmpa' ), + ); + + return $actions; + + } + + /** + * Processes bulk installation and activation actions. + * + * The bulk installation process looks either for the $_POST + * information or for the plugin info within the $_GET variable if + * a user has to use WP_Filesystem to enter their credentials. + * + * @since 2.2.0 + */ + public function process_bulk_actions() { + + // Bulk installation process. + if ( 'tgmpa-bulk-install' === $this->current_action() ) { + check_admin_referer( 'bulk-' . $this->_args['plural'] ); + + // Prep variables to be populated. + $plugins_to_install = array(); + $plugin_installs = array(); + $plugin_path = array(); + $plugin_name = array(); + + // Look first to see if information has been passed via WP_Filesystem. + if ( isset( $_GET['plugins'] ) ) { + $plugins = explode( ',', stripslashes( $_GET['plugins'] ) ); + } + // Looks like the user can use the direct method, take from $_POST. + elseif ( isset( $_POST['plugin'] ) ) { + $plugins = (array) $_POST['plugin']; + } + // Nothing has been submitted. + else { + $plugins = array(); + } + + // Grab information from $_POST if available. + if ( isset( $_POST['plugin'] ) ) { + foreach ( $plugins as $plugin_data ) { + $plugins_to_install[] = explode( ',', $plugin_data ); + } + + foreach ( $plugins_to_install as $plugin_data ) { + $plugin_installs[] = $plugin_data[0]; + $plugin_path[] = $plugin_data[1]; + $plugin_name[] = $plugin_data[2]; + } + } + // Information has been passed via $_GET. + else { + foreach ( $plugins as $key => $value ) { + // Grab plugin slug for each plugin. + if ( 0 == $key % 3 || 0 == $key ) { + $plugins_to_install[] = $value; + $plugin_installs[] = $value; + } + } + } + + // Look first to see if information has been passed via WP_Filesystem. + if ( isset( $_GET['plugin_paths'] ) ) { + $plugin_paths = explode( ',', stripslashes( $_GET['plugin_paths'] ) ); + } + // Looks like the user doesn't need to enter his FTP creds. + elseif ( isset( $_POST['plugin'] ) ) { + $plugin_paths = (array) $plugin_path; + } + // Nothing has been submitted. + else { + $plugin_paths = array(); + } + + // Look first to see if information has been passed via WP_Filesystem. + if ( isset( $_GET['plugin_names'] ) ) { + $plugin_names = explode( ',', stripslashes( $_GET['plugin_names'] ) ); + } + // Looks like the user doesn't need to enter his FTP creds. + elseif ( isset( $_POST['plugin'] ) ) { + $plugin_names = (array) $plugin_name; + } + // Nothing has been submitted. + else { + $plugin_names = array(); + } + + // Loop through plugin slugs and remove already installed plugins from the list. + $i = 0; + foreach ( $plugin_installs as $key => $plugin ) { + if ( preg_match( '|.php$|', $plugin ) ) { + unset( $plugin_installs[$key] ); + + // If the plugin path isn't in the $_GET variable, we can unset the corresponding path. + if ( ! isset( $_GET['plugin_paths'] ) ) + unset( $plugin_paths[$i] ); + + // If the plugin name isn't in the $_GET variable, we can unset the corresponding name. + if ( ! isset( $_GET['plugin_names'] ) ) + unset( $plugin_names[$i] ); + } + $i++; + } + + // No need to proceed further if we have no plugins to install. + if ( empty( $plugin_installs ) ) { + echo '

' . __( 'No plugins are available to be installed at this time.', 'tgmpa' ) . '

'; + return false; + } + + // Reset array indexes in case we removed already installed plugins. + $plugin_installs = array_values( $plugin_installs ); + $plugin_paths = array_values( $plugin_paths ); + $plugin_names = array_values( $plugin_names ); + + // If we grabbed our plugin info from $_GET, we need to decode it for use. + $plugin_installs = array_map( 'urldecode', $plugin_installs ); + $plugin_paths = array_map( 'urldecode', $plugin_paths ); + $plugin_names = array_map( 'urldecode', $plugin_names ); + + // Pass all necessary information via URL if WP_Filesystem is needed. + $url = wp_nonce_url( + add_query_arg( + array( + 'page' => TGM_Plugin_Activation::$instance->menu, + 'tgmpa-action' => 'install-selected', + 'plugins' => urlencode( implode( ',', $plugins ) ), + 'plugin_paths' => urlencode( implode( ',', $plugin_paths ) ), + 'plugin_names' => urlencode( implode( ',', $plugin_names ) ), + ), + admin_url( 'themes.php' ) + ), + 'bulk-plugins' + ); + $method = ''; // Leave blank so WP_Filesystem can populate it as necessary. + $fields = array( 'action', '_wp_http_referer', '_wpnonce' ); // Extra fields to pass to WP_Filesystem. + + if ( false === ( $creds = request_filesystem_credentials( $url, $method, false, false, $fields ) ) ) { + return true; + } + + if ( ! WP_Filesystem( $creds ) ) { + request_filesystem_credentials( $url, $method, true, false, $fields ); // Setup WP_Filesystem. + return true; + } + + require_once ABSPATH . 'wp-admin/includes/plugin-install.php'; // Need for plugins_api + require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; // Need for upgrade classes + + // Store all information in arrays since we are processing a bulk installation. + $api = array(); + $sources = array(); + $install_path = array(); + + // Loop through each plugin to install and try to grab information from WordPress API, if not create 'tgmpa-empty' scalar. + $i = 0; + foreach ( $plugin_installs as $plugin ) { + $api[$i] = plugins_api( 'plugin_information', array( 'slug' => $plugin, 'fields' => array( 'sections' => false ) ) ) ? plugins_api( 'plugin_information', array( 'slug' => $plugin, 'fields' => array( 'sections' => false ) ) ) : (object) $api[$i] = 'tgmpa-empty'; + $i++; + } + + if ( is_wp_error( $api ) ) { + wp_die( TGM_Plugin_Activation::$instance->strings['oops'] . var_dump( $api ) ); + } + + // Capture download links from $api or set install link to pre-packaged/private repo. + $i = 0; + foreach ( $api as $object ) { + $sources[$i] = isset( $object->download_link ) && 'repo' == $plugin_paths[$i] ? $object->download_link : $plugin_paths[$i]; + $i++; + } + + // Finally, all the data is prepared to be sent to the installer. + $url = add_query_arg( array( 'page' => TGM_Plugin_Activation::$instance->menu ), admin_url( 'themes.php' ) ); + $nonce = 'bulk-plugins'; + $names = $plugin_names; + + // Create a new instance of TGM_Bulk_Installer. + $installer = new TGM_Bulk_Installer( $skin = new TGM_Bulk_Installer_Skin( compact( 'url', 'nonce', 'names' ) ) ); + + // Wrap the install process with the appropriate HTML. + echo '
'; + + echo '

' . esc_html( get_admin_page_title() ) . '

'; + // Process the bulk installation submissions. + $installer->bulk_install( $sources ); + echo '
'; + + return true; + } + + // Bulk activation process. + if ( 'tgmpa-bulk-activate' === $this->current_action() ) { + check_admin_referer( 'bulk-' . $this->_args['plural'] ); + + // Grab plugin data from $_POST. + $plugins = isset( $_POST['plugin'] ) ? (array) $_POST['plugin'] : array(); + $plugins_to_activate = array(); + + // Split plugin value into array with plugin file path, plugin source and plugin name. + foreach ( $plugins as $i => $plugin ) { + $plugins_to_activate[] = explode( ',', $plugin ); + } + + foreach ( $plugins_to_activate as $i => $array ) { + if ( ! preg_match( '|.php$|', $array[0] ) ) { + unset( $plugins_to_activate[$i] ); + } + } + + // Return early if there are no plugins to activate. + if ( empty( $plugins_to_activate ) ) { + echo '

' . __( 'No plugins are available to be activated at this time.', 'tgmpa' ) . '

'; + return false; + } + + $plugins = array(); + $plugin_names = array(); + + foreach ( $plugins_to_activate as $plugin_string ) { + $plugins[] = $plugin_string[0]; + $plugin_names[] = $plugin_string[2]; + } + + $count = count( $plugin_names ); // Count so we can use _n function. + $last_plugin = array_pop( $plugin_names ); // Pop off last name to prep for readability. + $imploded = empty( $plugin_names ) ? '' . $last_plugin . '' : '' . ( implode( ', ', $plugin_names ) . ' and ' . $last_plugin . '.' ); + + // Now we are good to go - let's start activating plugins. + $activate = activate_plugins( $plugins ); + + if ( is_wp_error( $activate ) ) { + echo '

' . $activate->get_error_message() . '

'; + } else { + printf( '

%1$s %2$s.

', _n( 'The following plugin was activated successfully:', 'The following plugins were activated successfully:', $count, 'tgmpa' ), $imploded ); + } + + // Update recently activated plugins option. + $recent = (array) get_option( 'recently_activated' ); + + foreach ( $plugins as $plugin => $time ) { + if ( isset( $recent[$plugin] ) ) { + unset( $recent[$plugin] ); + } + } + + update_option( 'recently_activated', $recent ); + + unset( $_POST ); // Reset the $_POST variable in case user wants to perform one action after another. + + return true; + } + } + + /** + * Prepares all of our information to be outputted into a usable table. + * + * @since 2.2.0 + */ + public function prepare_items() { + + $columns = $this->get_columns(); // Get all necessary column information. + $hidden = array(); // No columns to hide, but we must set as an array. + $sortable = array(); // No reason to make sortable columns. + $this->_column_headers = array( $columns, $hidden, $sortable ); // Get all necessary column headers. + + // Process our bulk actions here. + $this->process_bulk_actions(); + + // Store all of our plugin data into $items array so WP_List_Table can use it. + $this->items = $this->_gather_plugin_data(); + + } + + } +} + +/** + * The WP_Upgrader file isn't always available. If it isn't available, + * we load it here. + * + * We check to make sure no action or activation keys are set so that WordPress + * doesn't try to re-include the class when processing upgrades or installs outside + * of the class. + * + * @since 2.2.0 + */ +add_action( 'admin_init', 'tgmpa_load_bulk_installer' ); +function tgmpa_load_bulk_installer() { + + if ( ! class_exists( 'WP_Upgrader' ) && ( isset( $_GET['page'] ) && TGM_Plugin_Activation::$instance->menu === $_GET['page'] ) ) { + require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php'; + + if ( ! class_exists( 'TGM_Bulk_Installer' ) ) { + /** + * Installer class to handle bulk plugin installations. + * + * Extends WP_Upgrader and customizes to suit the installation of multiple + * plugins. + * + * @since 2.2.0 + * + * @package TGM-Plugin-Activation + * @author Thomas Griffin + * @author Gary Jones + */ + class TGM_Bulk_Installer extends WP_Upgrader { + + /** + * Holds result of bulk plugin installation. + * + * @since 2.2.0 + * + * @var string + */ + public $result; + + /** + * Flag to check if bulk installation is occurring or not. + * + * @since 2.2.0 + * + * @var boolean + */ + public $bulk = false; + + /** + * Processes the bulk installation of plugins. + * + * @since 2.2.0 + * + * @param array $packages The plugin sources needed for installation. + * @return string|boolean Install confirmation messages on success, false on failure. + */ + public function bulk_install( $packages ) { + + // Pass installer skin object and set bulk property to true. + $this->init(); + $this->bulk = true; + + // Set install strings and automatic activation strings (if config option is set to true). + $this->install_strings(); + if ( TGM_Plugin_Activation::$instance->is_automatic ) { + $this->activate_strings(); + } + + // Run the header string to notify user that the process has begun. + $this->skin->header(); + + // Connect to the Filesystem. + $res = $this->fs_connect( array( WP_CONTENT_DIR, WP_PLUGIN_DIR ) ); + if ( ! $res ) { + $this->skin->footer(); + return false; + } + + // Set the bulk header and prepare results array. + $this->skin->bulk_header(); + $results = array(); + + // Get the total number of packages being processed and iterate as each package is successfully installed. + $this->update_count = count( $packages ); + $this->update_current = 0; + + // Loop through each plugin and process the installation. + foreach ( $packages as $plugin ) { + $this->update_current++; // Increment counter. + + // Do the plugin install. + $result = $this->run( + array( + 'package' => $plugin, // The plugin source. + 'destination' => WP_PLUGIN_DIR, // The destination dir. + 'clear_destination' => false, // Do we want to clear the destination or not? + 'clear_working' => true, // Remove original install file. + 'is_multi' => true, // Are we processing multiple installs? + 'hook_extra' => array( 'plugin' => $plugin, ), // Pass plugin source as extra data. + ) + ); + + // Store installation results in result property. + $results[$plugin] = $this->result; + + // Prevent credentials auth screen from displaying multiple times. + if ( false === $result ) { + break; + } + } + + // Pass footer skin strings. + $this->skin->bulk_footer(); + $this->skin->footer(); + + // Return our results. + return $results; + + } + + /** + * Performs the actual installation of each plugin. + * + * This method also activates the plugin in the automatic flag has been + * set to true for the TGMPA class. + * + * @since 2.2.0 + * + * @param array $options The installation config options + * @return null/array Return early if error, array of installation data on success + */ + public function run( $options ) { + + // Default config options. + $defaults = array( + 'package' => '', + 'destination' => '', + 'clear_destination' => false, + 'clear_working' => true, + 'is_multi' => false, + 'hook_extra' => array(), + ); + + // Parse default options with config options from $this->bulk_upgrade and extract them. + $options = wp_parse_args( $options, $defaults ); + extract( $options ); + + // Connect to the Filesystem. + $res = $this->fs_connect( array( WP_CONTENT_DIR, $destination ) ); + if ( ! $res ) { + return false; + } + + // Return early if there is an error connecting to the Filesystem. + if ( is_wp_error( $res ) ) { + $this->skin->error( $res ); + return $res; + } + + // Call $this->header separately if running multiple times. + if ( ! $is_multi ) + $this->skin->header(); + + // Set strings before the package is installed. + $this->skin->before(); + + // Download the package (this just returns the filename of the file if the package is a local file). + $download = $this->download_package( $package ); + if ( is_wp_error( $download ) ) { + $this->skin->error( $download ); + $this->skin->after(); + return $download; + } + + // Don't accidentally delete a local file. + $delete_package = ( $download != $package ); + + // Unzip file into a temporary working directory. + $working_dir = $this->unpack_package( $download, $delete_package ); + if ( is_wp_error( $working_dir ) ) { + $this->skin->error( $working_dir ); + $this->skin->after(); + return $working_dir; + } + + // Install the package into the working directory with all passed config options. + $result = $this->install_package( + array( + 'source' => $working_dir, + 'destination' => $destination, + 'clear_destination' => $clear_destination, + 'clear_working' => $clear_working, + 'hook_extra' => $hook_extra, + ) + ); + + // Pass the result of the installation. + $this->skin->set_result( $result ); + + // Set correct strings based on results. + if ( is_wp_error( $result ) ) { + $this->skin->error( $result ); + $this->skin->feedback( 'process_failed' ); + } + // The plugin install is successful. + else { + $this->skin->feedback( 'process_success' ); + } + + // Only process the activation of installed plugins if the automatic flag is set to true. + if ( TGM_Plugin_Activation::$instance->is_automatic ) { + // Flush plugins cache so we can make sure that the installed plugins list is always up to date. + wp_cache_flush(); + + // Get the installed plugin file and activate it. + $plugin_info = $this->plugin_info( $package ); + $activate = activate_plugin( $plugin_info ); + + // Re-populate the file path now that the plugin has been installed and activated. + TGM_Plugin_Activation::$instance->populate_file_path(); + + // Set correct strings based on results. + if ( is_wp_error( $activate ) ) { + $this->skin->error( $activate ); + $this->skin->feedback( 'activation_failed' ); + } + // The plugin activation is successful. + else { + $this->skin->feedback( 'activation_success' ); + } + } + + // Flush plugins cache so we can make sure that the installed plugins list is always up to date. + wp_cache_flush(); + + // Set install footer strings. + $this->skin->after(); + if ( ! $is_multi ) { + $this->skin->footer(); + } + + return $result; + + } + + /** + * Sets the correct install strings for the installer skin to use. + * + * @since 2.2.0 + */ + public function install_strings() { + + $this->strings['no_package'] = __( 'Install package not available.', 'tgmpa' ); + $this->strings['downloading_package'] = __( 'Downloading install package from %s…', 'tgmpa' ); + $this->strings['unpack_package'] = __( 'Unpacking the package…', 'tgmpa' ); + $this->strings['installing_package'] = __( 'Installing the plugin…', 'tgmpa' ); + $this->strings['process_failed'] = __( 'Plugin install failed.', 'tgmpa' ); + $this->strings['process_success'] = __( 'Plugin installed successfully.', 'tgmpa' ); + + } + + /** + * Sets the correct activation strings for the installer skin to use. + * + * @since 2.2.0 + */ + public function activate_strings() { + + $this->strings['activation_failed'] = __( 'Plugin activation failed.', 'tgmpa' ); + $this->strings['activation_success'] = __( 'Plugin activated successfully.', 'tgmpa' ); + + } + + /** + * Grabs the plugin file from an installed plugin. + * + * @since 2.2.0 + * + * @return string|boolean Return plugin file on success, false on failure + */ + public function plugin_info() { + + // Return false if installation result isn't an array or the destination name isn't set. + if ( ! is_array( $this->result ) ) { + return false; + } + + if ( empty( $this->result['destination_name'] ) ) { + return false; + } + + /// Get the installed plugin file or return false if it isn't set. + $plugin = get_plugins( '/' . $this->result['destination_name'] ); + if ( empty( $plugin ) ) { + return false; + } + + // Assume the requested plugin is the first in the list. + $pluginfiles = array_keys( $plugin ); + + return $this->result['destination_name'] . '/' . $pluginfiles[0]; + + } + + } + } + + if ( ! class_exists( 'TGM_Bulk_Installer_Skin' ) ) { + /** + * Installer skin to set strings for the bulk plugin installations.. + * + * Extends Bulk_Upgrader_Skin and customizes to suit the installation of multiple + * plugins. + * + * @since 2.2.0 + * + * @package TGM-Plugin-Activation + * @author Thomas Griffin + * @author Gary Jones + */ + class TGM_Bulk_Installer_Skin extends Bulk_Upgrader_Skin { + + /** + * Holds plugin info for each individual plugin installation. + * + * @since 2.2.0 + * + * @var array + */ + public $plugin_info = array(); + + /** + * Holds names of plugins that are undergoing bulk installations. + * + * @since 2.2.0 + * + * @var array + */ + public $plugin_names = array(); + + /** + * Integer to use for iteration through each plugin installation. + * + * @since 2.2.0 + * + * @var integer + */ + public $i = 0; + + /** + * Constructor. Parses default args with new ones and extracts them for use. + * + * @since 2.2.0 + * + * @param array $args Arguments to pass for use within the class. + */ + public function __construct( $args = array() ) { + + // Parse default and new args. + $defaults = array( 'url' => '', 'nonce' => '', 'names' => array() ); + $args = wp_parse_args( $args, $defaults ); + + // Set plugin names to $this->plugin_names property. + $this->plugin_names = $args['names']; + + // Extract the new args. + parent::__construct( $args ); + + } + + /** + * Sets install skin strings for each individual plugin. + * + * Checks to see if the automatic activation flag is set and uses the + * the proper strings accordingly. + * + * @since 2.2.0 + */ + public function add_strings() { + + // Automatic activation strings. + if ( TGM_Plugin_Activation::$instance->is_automatic ) { + $this->upgrader->strings['skin_upgrade_start'] = __( 'The installation and activation process is starting. This process may take a while on some hosts, so please be patient.', 'tgmpa' ); + $this->upgrader->strings['skin_update_successful'] = __( '%1$s installed and activated successfully.', 'tgmpa' ) . ' ' . __( 'Show Details', 'tgmpa' ) . '.'; + $this->upgrader->strings['skin_upgrade_end'] = __( 'All installations and activations have been completed.', 'tgmpa' ); + $this->upgrader->strings['skin_before_update_header'] = __( 'Installing and Activating Plugin %1$s (%2$d/%3$d)', 'tgmpa' ); + } + // Default installation strings. + else { + $this->upgrader->strings['skin_upgrade_start'] = __( 'The installation process is starting. This process may take a while on some hosts, so please be patient.', 'tgmpa' ); + $this->upgrader->strings['skin_update_failed_error'] = __( 'An error occurred while installing %1$s: %2$s.', 'tgmpa' ); + $this->upgrader->strings['skin_update_failed'] = __( 'The installation of %1$s failed.', 'tgmpa' ); + $this->upgrader->strings['skin_update_successful'] = __( '%1$s installed successfully.', 'tgmpa' ) . ' ' . __( 'Show Details', 'tgmpa' ) . '.'; + $this->upgrader->strings['skin_upgrade_end'] = __( 'All installations have been completed.', 'tgmpa' ); + $this->upgrader->strings['skin_before_update_header'] = __( 'Installing Plugin %1$s (%2$d/%3$d)', 'tgmpa' ); + } + + } + + /** + * Outputs the header strings and necessary JS before each plugin installation. + * + * @since 2.2.0 + */ + public function before( $title = '' ) { + + // We are currently in the plugin installation loop, so set to true. + $this->in_loop = true; + + printf( '

' . $this->upgrader->strings['skin_before_update_header'] . '

', $this->plugin_names[$this->i], $this->upgrader->update_current, $this->upgrader->update_count ); + echo ''; + echo '

'; + + // Flush header output buffer. + $this->before_flush_output(); + + } + + /** + * Outputs the footer strings and necessary JS after each plugin installation. + * + * Checks for any errors and outputs them if they exist, else output + * success strings. + * + * @since 2.2.0 + */ + public function after( $title = '' ) { + + // Close install strings. + echo '

'; + + // Output error strings if an error has occurred. + if ( $this->error || ! $this->result ) { + if ( $this->error ) { + echo '

' . sprintf( $this->upgrader->strings['skin_update_failed_error'], $this->plugin_names[$this->i], $this->error ) . '

'; + } else { + echo '

' . sprintf( $this->upgrader->strings['skin_update_failed'], $this->plugin_names[$this->i] ) . '

'; + } + + echo ''; + } + + // If the result is set and there are no errors, success! + if ( ! empty( $this->result ) && ! is_wp_error( $this->result ) ) { + echo '

' . sprintf( $this->upgrader->strings['skin_update_successful'], $this->plugin_names[$this->i], 'jQuery(\'#progress-' . esc_js( $this->upgrader->update_current ) . '\').toggle();jQuery(\'span\', this).toggle(); return false;' ) . '

'; + echo ''; + } + + // Set in_loop and error to false and flush footer output buffer. + $this->reset(); + $this->after_flush_output(); + + } + + /** + * Outputs links after bulk plugin installation is complete. + * + * @since 2.2.0 + */ + public function bulk_footer() { + + // Serve up the string to say installations (and possibly activations) are complete. + parent::bulk_footer(); + + // Flush plugins cache so we can make sure that the installed plugins list is always up to date. + wp_cache_flush(); + + // Display message based on if all plugins are now active or not. + $complete = array(); + foreach ( TGM_Plugin_Activation::$instance->plugins as $plugin ) { + if ( ! is_plugin_active( $plugin['file_path'] ) ) { + echo '

' . TGM_Plugin_Activation::$instance->strings['return'] . '

'; + $complete[] = $plugin; + break; + } + // Nothing to store. + else { + $complete[] = ''; + } + } + + // Filter out any empty entries. + $complete = array_filter( $complete ); + + // All plugins are active, so we display the complete string and hide the menu to protect users. + if ( empty( $complete ) ) { + echo '

' . sprintf( TGM_Plugin_Activation::$instance->strings['complete'], '' . __( 'Return to the Dashboard', 'tgmpa' ) . '' ) . '

'; + echo ''; + } + + } + + /** + * Flush header output buffer. + * + * @since 2.2.0 + */ + public function before_flush_output() { + + wp_ob_end_flush_all(); + flush(); + + } + + /** + * Flush footer output buffer and iterate $this->i to make sure the + * installation strings reference the correct plugin. + * + * @since 2.2.0 + */ + public function after_flush_output() { + + wp_ob_end_flush_all(); + flush(); + $this->i++; + + } + + } + } + } + +} diff --git a/comments.php b/comments.php new file mode 100644 index 0000000..63a751e --- /dev/null +++ b/comments.php @@ -0,0 +1,70 @@ + + +
+ + + + +

+ ' . get_the_title() . '' ); + ?> +

+ + 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> + + + +
    + 'ul', + 'short_ping' => true, + ) ); + ?> +
+ + 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?> + + + + + + +

+ + + '')); ?> + + +
diff --git a/content-none.php b/content-none.php new file mode 100644 index 0000000..ec538b5 --- /dev/null +++ b/content-none.php @@ -0,0 +1,33 @@ + + +
+ + +
+ + +

Get started here.', 'zerif-lite' ), esc_url( admin_url( 'post-new.php' ) ) ); ?>

+ + + +

+ + + + +

+ + + +
+
\ No newline at end of file diff --git a/content-page.php b/content-page.php new file mode 100644 index 0000000..e188b82 --- /dev/null +++ b/content-page.php @@ -0,0 +1,24 @@ + + +
> +
+

+
+ +
+ + '', + ) ); + ?> +
+ ', '' ); ?> +
diff --git a/content-single.php b/content-single.php new file mode 100644 index 0000000..9864f1a --- /dev/null +++ b/content-single.php @@ -0,0 +1 @@ +
>

'', ) ); ?>
permalink.', 'zerif-lite' ); } else { $meta_text = __( 'Bookmark the permalink.', 'zerif-lite' ); } } else { // But this blog has loads of categories so we should probably display them here if ( '' != $tag_list ) { $meta_text = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the permalink.', 'zerif-lite' ); } else { $meta_text = __( 'This entry was posted in %1$s. Bookmark the permalink.', 'zerif-lite' ); } } // end check for categories on this blog printf( $meta_text, $category_list, $tag_list, get_permalink() ); ?> ', '' ); ?>
\ No newline at end of file diff --git a/content.php b/content.php new file mode 100644 index 0000000..21ac102 --- /dev/null +++ b/content.php @@ -0,0 +1,170 @@ + + + + +
> + + + + + +
+ + + + + + + +
+ +
+ + + +
+ + + + + +
+ + + +
+ +
+ +

+ + + + + + + + + +
+ + + + + +
+ + + +
+ + + +
+ + →', 'zerif-lite' ) ); + + ?> + + '', + + ) ); + + ?> + +
+ + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ', '' ); ?> + +
+ +
+ +
+ + + + + + + diff --git a/css/bootstrap-theme.min.css b/css/bootstrap-theme.min.css new file mode 100644 index 0000000..e505d30 --- /dev/null +++ b/css/bootstrap-theme.min.css @@ -0,0 +1,7 @@ +/*! + * Bootstrap v3.1.1 (http://getbootstrap.com) + * Copyright 2011-2014 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + */ + +.btn-default,.btn-primary,.btn-success,.btn-info,.btn-warning,.btn-danger{text-shadow:0 -1px 0 rgba(0,0,0,.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075)}.btn-default:active,.btn-primary:active,.btn-success:active,.btn-info:active,.btn-warning:active,.btn-danger:active,.btn-default.active,.btn-primary.active,.btn-success.active,.btn-info.active,.btn-warning.active,.btn-danger.active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn:active,.btn.active{background-image:none}.btn-default{background-image:-webkit-linear-gradient(top,#fff 0,#e0e0e0 100%);background-image:linear-gradient(to bottom,#fff 0,#e0e0e0 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe0e0e0', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#dbdbdb;text-shadow:0 1px 0 #fff;border-color:#ccc}.btn-default:hover,.btn-default:focus{background-color:#e0e0e0;background-position:0 -15px}.btn-default:active,.btn-default.active{background-color:#e0e0e0;border-color:#dbdbdb}.btn-primary{background-image:-webkit-linear-gradient(top,#428bca 0,#2d6ca2 100%);background-image:linear-gradient(to bottom,#428bca 0,#2d6ca2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff2d6ca2', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#2b669a}.btn-primary:hover,.btn-primary:focus{background-color:#2d6ca2;background-position:0 -15px}.btn-primary:active,.btn-primary.active{background-color:#2d6ca2;border-color:#2b669a}.btn-success{background-image:-webkit-linear-gradient(top,#5cb85c 0,#419641 100%);background-image:linear-gradient(to bottom,#5cb85c 0,#419641 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff419641', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#3e8f3e}.btn-success:hover,.btn-success:focus{background-color:#419641;background-position:0 -15px}.btn-success:active,.btn-success.active{background-color:#419641;border-color:#3e8f3e}.btn-info{background-image:-webkit-linear-gradient(top,#5bc0de 0,#2aabd2 100%);background-image:linear-gradient(to bottom,#5bc0de 0,#2aabd2 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2aabd2', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#28a4c9}.btn-info:hover,.btn-info:focus{background-color:#2aabd2;background-position:0 -15px}.btn-info:active,.btn-info.active{background-color:#2aabd2;border-color:#28a4c9}.btn-warning{background-image:-webkit-linear-gradient(top,#f0ad4e 0,#eb9316 100%);background-image:linear-gradient(to bottom,#f0ad4e 0,#eb9316 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffeb9316', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#e38d13}.btn-warning:hover,.btn-warning:focus{background-color:#eb9316;background-position:0 -15px}.btn-warning:active,.btn-warning.active{background-color:#eb9316;border-color:#e38d13}.btn-danger{background-image:-webkit-linear-gradient(top,#d9534f 0,#c12e2a 100%);background-image:linear-gradient(to bottom,#d9534f 0,#c12e2a 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc12e2a', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);background-repeat:repeat-x;border-color:#b92c28}.btn-danger:hover,.btn-danger:focus{background-color:#c12e2a;background-position:0 -15px}.btn-danger:active,.btn-danger.active{background-color:#c12e2a;border-color:#b92c28}.thumbnail,.img-thumbnail{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.075);box-shadow:0 1px 2px rgba(0,0,0,.075)}.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus{background-image:-webkit-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0);background-color:#e8e8e8}.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus{background-image:-webkit-linear-gradient(top,#428bca 0,#357ebd 100%);background-image:linear-gradient(to bottom,#428bca 0,#357ebd 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff357ebd', GradientType=0);background-color:#357ebd}.navbar-default{background-image:-webkit-linear-gradient(top,#fff 0,#f8f8f8 100%);background-image:linear-gradient(to bottom,#fff 0,#f8f8f8 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);border-radius:4px;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 5px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 5px rgba(0,0,0,.075)}.navbar-default .navbar-nav>.active>a{background-image:-webkit-linear-gradient(top,#ebebeb 0,#f3f3f3 100%);background-image:linear-gradient(to bottom,#ebebeb 0,#f3f3f3 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff3f3f3', GradientType=0);-webkit-box-shadow:inset 0 3px 9px rgba(0,0,0,.075);box-shadow:inset 0 3px 9px rgba(0,0,0,.075)}.navbar-brand,.navbar-nav>li>a{text-shadow:0 1px 0 rgba(255,255,255,.25)}.navbar-inverse{background-image:-webkit-linear-gradient(top,#3c3c3c 0,#222 100%);background-image:linear-gradient(to bottom,#3c3c3c 0,#222 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.navbar-inverse .navbar-nav>.active>a{background-image:-webkit-linear-gradient(top,#222 0,#282828 100%);background-image:linear-gradient(to bottom,#222 0,#282828 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff222222', endColorstr='#ff282828', GradientType=0);-webkit-box-shadow:inset 0 3px 9px rgba(0,0,0,.25);box-shadow:inset 0 3px 9px rgba(0,0,0,.25)}.navbar-inverse .navbar-brand,.navbar-inverse .navbar-nav>li>a{text-shadow:0 -1px 0 rgba(0,0,0,.25)}.navbar-static-top,.navbar-fixed-top,.navbar-fixed-bottom{border-radius:0}.alert{text-shadow:0 1px 0 rgba(255,255,255,.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 2px rgba(0,0,0,.05)}.alert-success{background-image:-webkit-linear-gradient(top,#dff0d8 0,#c8e5bc 100%);background-image:linear-gradient(to bottom,#dff0d8 0,#c8e5bc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0);border-color:#b2dba1}.alert-info{background-image:-webkit-linear-gradient(top,#d9edf7 0,#b9def0 100%);background-image:linear-gradient(to bottom,#d9edf7 0,#b9def0 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);border-color:#9acfea}.alert-warning{background-image:-webkit-linear-gradient(top,#fcf8e3 0,#f8efc0 100%);background-image:linear-gradient(to bottom,#fcf8e3 0,#f8efc0 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0);border-color:#f5e79e}.alert-danger{background-image:-webkit-linear-gradient(top,#f2dede 0,#e7c3c3 100%);background-image:linear-gradient(to bottom,#f2dede 0,#e7c3c3 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0);border-color:#dca7a7}.progress{background-image:-webkit-linear-gradient(top,#ebebeb 0,#f5f5f5 100%);background-image:linear-gradient(to bottom,#ebebeb 0,#f5f5f5 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0)}.progress-bar{background-image:-webkit-linear-gradient(top,#428bca 0,#3071a9 100%);background-image:linear-gradient(to bottom,#428bca 0,#3071a9 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff3071a9', GradientType=0)}.progress-bar-success{background-image:-webkit-linear-gradient(top,#5cb85c 0,#449d44 100%);background-image:linear-gradient(to bottom,#5cb85c 0,#449d44 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0)}.progress-bar-info{background-image:-webkit-linear-gradient(top,#5bc0de 0,#31b0d5 100%);background-image:linear-gradient(to bottom,#5bc0de 0,#31b0d5 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0)}.progress-bar-warning{background-image:-webkit-linear-gradient(top,#f0ad4e 0,#ec971f 100%);background-image:linear-gradient(to bottom,#f0ad4e 0,#ec971f 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0)}.progress-bar-danger{background-image:-webkit-linear-gradient(top,#d9534f 0,#c9302c 100%);background-image:linear-gradient(to bottom,#d9534f 0,#c9302c 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0)}.list-group{border-radius:4px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.075);box-shadow:0 1px 2px rgba(0,0,0,.075)}.list-group-item.active,.list-group-item.active:hover,.list-group-item.active:focus{text-shadow:0 -1px 0 #3071a9;background-image:-webkit-linear-gradient(top,#428bca 0,#3278b3 100%);background-image:linear-gradient(to bottom,#428bca 0,#3278b3 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff3278b3', GradientType=0);border-color:#3278b3}.panel{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.05);box-shadow:0 1px 2px rgba(0,0,0,.05)}.panel-default>.panel-heading{background-image:-webkit-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0)}.panel-primary>.panel-heading{background-image:-webkit-linear-gradient(top,#428bca 0,#357ebd 100%);background-image:linear-gradient(to bottom,#428bca 0,#357ebd 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff357ebd', GradientType=0)}.panel-success>.panel-heading{background-image:-webkit-linear-gradient(top,#dff0d8 0,#d0e9c6 100%);background-image:linear-gradient(to bottom,#dff0d8 0,#d0e9c6 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0)}.panel-info>.panel-heading{background-image:-webkit-linear-gradient(top,#d9edf7 0,#c4e3f3 100%);background-image:linear-gradient(to bottom,#d9edf7 0,#c4e3f3 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0)}.panel-warning>.panel-heading{background-image:-webkit-linear-gradient(top,#fcf8e3 0,#faf2cc 100%);background-image:linear-gradient(to bottom,#fcf8e3 0,#faf2cc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0)}.panel-danger>.panel-heading{background-image:-webkit-linear-gradient(top,#f2dede 0,#ebcccc 100%);background-image:linear-gradient(to bottom,#f2dede 0,#ebcccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0)}.well{background-image:-webkit-linear-gradient(top,#e8e8e8 0,#f5f5f5 100%);background-image:linear-gradient(to bottom,#e8e8e8 0,#f5f5f5 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0);border-color:#dcdcdc;-webkit-box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 rgba(255,255,255,.1)} \ No newline at end of file diff --git a/css/bootstrap.min.css b/css/bootstrap.min.css new file mode 100644 index 0000000..05cde6e --- /dev/null +++ b/css/bootstrap.min.css @@ -0,0 +1,7 @@ +/*! + * Bootstrap v3.1.1 (http://getbootstrap.com) + * Copyright 2011-2014 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + */ + +/*! normalize.css v3.0.0 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:0 0}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}@media print{*{text-shadow:none!important;color:#000!important;background:transparent!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100%!important}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}select{background:#fff!important}.navbar{display:none}.table td,.table th{background-color:#fff!important}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table-bordered th,.table-bordered td{border:1px solid #ddd!important}}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:before,:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:62.5%;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}input,button,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#428bca;text-decoration:none}a:hover,a:focus{color:#2a6496;text-decoration:underline}a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.img-responsive,.thumbnail>img,.thumbnail a>img,.carousel-inner>.item>img,.carousel-inner>.item>a>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;display:inline-block;max-width:100%;height:auto}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small,.h1 small,.h2 small,.h3 small,.h4 small,.h5 small,.h6 small,h1 .small,h2 .small,h3 .small,h4 .small,h5 .small,h6 .small,.h1 .small,.h2 .small,.h3 .small,.h4 .small,.h5 .small,.h6 .small{font-weight:400;line-height:1;color:#999}h1,.h1,h2,.h2,h3,.h3{margin-top:20px;margin-bottom:10px}h1 small,.h1 small,h2 small,.h2 small,h3 small,.h3 small,h1 .small,.h1 .small,h2 .small,.h2 .small,h3 .small,.h3 .small{font-size:65%}h4,.h4,h5,.h5,h6,.h6{margin-top:10px;margin-bottom:10px}h4 small,.h4 small,h5 small,.h5 small,h6 small,.h6 small,h4 .small,.h4 .small,h5 .small,.h5 .small,h6 .small,.h6 .small{font-size:75%}h1,.h1{font-size:36px}h2,.h2{font-size:30px}h3,.h3{font-size:24px}h4,.h4{font-size:18px}h5,.h5{font-size:14px}h6,.h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:200;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}small,.small{font-size:85%}cite{font-style:normal}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-muted{color:#999}.text-primary{color:#428bca}a.text-primary:hover{color:#3071a9}.text-success{color:#3c763d}a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#428bca}a.bg-primary:hover{background-color:#3071a9}.bg-success{background-color:#dff0d8}a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ul,ol{margin-top:0;margin-bottom:10px}ul ul,ol ul,ul ol,ol ol{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none;margin-left:-5px}.list-inline>li{display:inline-block;padding-left:5px;padding-right:5px}dl{margin-top:0;margin-bottom:20px}dt,dd{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;clear:left;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[title],abbr[data-original-title]{cursor:help;border-bottom:1px dotted #999}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote p:last-child,blockquote ul:last-child,blockquote ol:last-child{margin-bottom:0}blockquote footer,blockquote small,blockquote .small{display:block;font-size:80%;line-height:1.42857143;color:#999}blockquote footer:before,blockquote small:before,blockquote .small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0;text-align:right}.blockquote-reverse footer:before,blockquote.pull-right footer:before,.blockquote-reverse small:before,blockquote.pull-right small:before,.blockquote-reverse .small:before,blockquote.pull-right .small:before{content:''}.blockquote-reverse footer:after,blockquote.pull-right footer:after,.blockquote-reverse small:after,blockquote.pull-right small:after,.blockquote-reverse .small:after,blockquote.pull-right .small:after{content:'\00A0 \2014'}blockquote:before,blockquote:after{content:""}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;white-space:nowrap;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;word-break:break-all;word-wrap:break-word;color:#333;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}.row{margin-left:-15px;margin-right:-15px}.col-xs-1,.col-sm-1,.col-md-1,.col-lg-1,.col-xs-2,.col-sm-2,.col-md-2,.col-lg-2,.col-xs-3,.col-sm-3,.col-md-3,.col-lg-3,.col-xs-4,.col-sm-4,.col-md-4,.col-lg-4,.col-xs-5,.col-sm-5,.col-md-5,.col-lg-5,.col-xs-6,.col-sm-6,.col-md-6,.col-lg-6,.col-xs-7,.col-sm-7,.col-md-7,.col-lg-7,.col-xs-8,.col-sm-8,.col-md-8,.col-lg-8,.col-xs-9,.col-sm-9,.col-md-9,.col-lg-9,.col-xs-10,.col-sm-10,.col-md-10,.col-lg-10,.col-xs-11,.col-sm-11,.col-md-11,.col-lg-11,.col-xs-12,.col-sm-12,.col-md-12,.col-lg-12{position:relative;min-height:1px;padding-left:15px;padding-right:15px}.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:0}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:0}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:0}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:0}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:0}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:0}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:0}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:0}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{max-width:100%;background-color:transparent}th{text-align:left}.table{width:100%;margin-bottom:20px}.table>thead>tr>th,.table>tbody>tr>th,.table>tfoot>tr>th,.table>thead>tr>td,.table>tbody>tr>td,.table>tfoot>tr>td{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>th,.table>caption+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>td,.table>thead:first-child>tr:first-child>td{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>thead>tr>th,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>tbody>tr>td,.table-condensed>tfoot>tr>td{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>thead>tr>th,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>tbody>tr>td,.table-bordered>tfoot>tr>td{border:1px solid #ddd}.table-bordered>thead>tr>th,.table-bordered>thead>tr>td{border-bottom-width:2px}.table-striped>tbody>tr:nth-child(odd)>td,.table-striped>tbody>tr:nth-child(odd)>th{background-color:#f9f9f9}.table-hover>tbody>tr:hover>td,.table-hover>tbody>tr:hover>th{background-color:#f5f5f5}table col[class*=col-]{position:static;float:none;display:table-column}table td[class*=col-],table th[class*=col-]{position:static;float:none;display:table-cell}.table>thead>tr>td.active,.table>tbody>tr>td.active,.table>tfoot>tr>td.active,.table>thead>tr>th.active,.table>tbody>tr>th.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>tbody>tr.active>td,.table>tfoot>tr.active>td,.table>thead>tr.active>th,.table>tbody>tr.active>th,.table>tfoot>tr.active>th{background-color:#f5f5f5}.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover,.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th{background-color:#e8e8e8}.table>thead>tr>td.success,.table>tbody>tr>td.success,.table>tfoot>tr>td.success,.table>thead>tr>th.success,.table>tbody>tr>th.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>tbody>tr.success>td,.table>tfoot>tr.success>td,.table>thead>tr.success>th,.table>tbody>tr.success>th,.table>tfoot>tr.success>th{background-color:#dff0d8}.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover,.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th{background-color:#d0e9c6}.table>thead>tr>td.info,.table>tbody>tr>td.info,.table>tfoot>tr>td.info,.table>thead>tr>th.info,.table>tbody>tr>th.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>tbody>tr.info>td,.table>tfoot>tr.info>td,.table>thead>tr.info>th,.table>tbody>tr.info>th,.table>tfoot>tr.info>th{background-color:#d9edf7}.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover,.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th{background-color:#c4e3f3}.table>thead>tr>td.warning,.table>tbody>tr>td.warning,.table>tfoot>tr>td.warning,.table>thead>tr>th.warning,.table>tbody>tr>th.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>tbody>tr.warning>td,.table>tfoot>tr.warning>td,.table>thead>tr.warning>th,.table>tbody>tr.warning>th,.table>tfoot>tr.warning>th{background-color:#fcf8e3}.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover,.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th{background-color:#faf2cc}.table>thead>tr>td.danger,.table>tbody>tr>td.danger,.table>tfoot>tr>td.danger,.table>thead>tr>th.danger,.table>tbody>tr>th.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>tbody>tr.danger>td,.table>tfoot>tr.danger>td,.table>thead>tr.danger>th,.table>tbody>tr.danger>th,.table>tfoot>tr.danger>th{background-color:#f2dede}.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover,.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th{background-color:#ebcccc}@media (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd;-webkit-overflow-scrolling:touch}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>thead>tr>th,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tfoot>tr>td{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>thead>tr>th:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0}.table-responsive>.table-bordered>thead>tr>th:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>th,.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>td{border-bottom:0}}fieldset{padding:0;margin:0;border:0;min-width:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=radio],input[type=checkbox]{margin:4px 0 0;margin-top:1px \9;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=file]:focus,input[type=radio]:focus,input[type=checkbox]:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{cursor:not-allowed;background-color:#eee;opacity:1}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}input[type=date]{line-height:34px}.form-group{margin-bottom:15px}.radio,.checkbox{display:block;min-height:20px;margin-top:10px;margin-bottom:10px;padding-left:20px}.radio label,.checkbox label{display:inline;font-weight:400;cursor:pointer}.radio input[type=radio],.radio-inline input[type=radio],.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox]{float:left;margin-left:-20px}.radio+.radio,.checkbox+.checkbox{margin-top:-5px}.radio-inline,.checkbox-inline{display:inline-block;padding-left:20px;margin-bottom:0;vertical-align:middle;font-weight:400;cursor:pointer}.radio-inline+.radio-inline,.checkbox-inline+.checkbox-inline{margin-top:0;margin-left:10px}input[type=radio][disabled],input[type=checkbox][disabled],.radio[disabled],.radio-inline[disabled],.checkbox[disabled],.checkbox-inline[disabled],fieldset[disabled] input[type=radio],fieldset[disabled] input[type=checkbox],fieldset[disabled] .radio,fieldset[disabled] .radio-inline,fieldset[disabled] .checkbox,fieldset[disabled] .checkbox-inline{cursor:not-allowed}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}textarea.input-sm,select[multiple].input-sm{height:auto}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.input-lg{height:46px;line-height:46px}textarea.input-lg,select[multiple].input-lg{height:auto}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.has-feedback .form-control-feedback{position:absolute;top:25px;right:0;display:block;width:34px;height:34px;line-height:34px;text-align:center}.has-success .help-block,.has-success .control-label,.has-success .radio,.has-success .checkbox,.has-success .radio-inline,.has-success .checkbox-inline{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;border-color:#3c763d;background-color:#dff0d8}.has-success .form-control-feedback{color:#3c763d}.has-warning .help-block,.has-warning .control-label,.has-warning .radio,.has-warning .checkbox,.has-warning .radio-inline,.has-warning .checkbox-inline{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;border-color:#8a6d3b;background-color:#fcf8e3}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .help-block,.has-error .control-label,.has-error .radio,.has-error .checkbox,.has-error .radio-inline,.has-error .checkbox-inline{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;border-color:#a94442;background-color:#f2dede}.has-error .form-control-feedback{color:#a94442}.form-control-static{margin-bottom:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .radio,.form-inline .checkbox{display:inline-block;margin-top:0;margin-bottom:0;padding-left:0;vertical-align:middle}.form-inline .radio input[type=radio],.form-inline .checkbox input[type=checkbox]{float:none;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .control-label,.form-horizontal .radio,.form-horizontal .checkbox,.form-horizontal .radio-inline,.form-horizontal .checkbox-inline{margin-top:0;margin-bottom:0;padding-top:7px}.form-horizontal .radio,.form-horizontal .checkbox{min-height:27px}.form-horizontal .form-group{margin-left:-15px;margin-right:-15px}.form-horizontal .form-control-static{padding-top:7px}@media (min-width:768px){.form-horizontal .control-label{text-align:right}}.form-horizontal .has-feedback .form-control-feedback{top:0;right:15px}.btn{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.btn:focus,.btn:active:focus,.btn.active:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn:hover,.btn:focus{color:#333;text-decoration:none}.btn:active,.btn.active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;pointer-events:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default:hover,.btn-default:focus,.btn-default:active,.btn-default.active,.open .dropdown-toggle.btn-default{color:#333;background-color:#ebebeb;border-color:#adadad}.btn-default:active,.btn-default.active,.open .dropdown-toggle.btn-default{background-image:none}.btn-default.disabled,.btn-default[disabled],fieldset[disabled] .btn-default,.btn-default.disabled:hover,.btn-default[disabled]:hover,fieldset[disabled] .btn-default:hover,.btn-default.disabled:focus,.btn-default[disabled]:focus,fieldset[disabled] .btn-default:focus,.btn-default.disabled:active,.btn-default[disabled]:active,fieldset[disabled] .btn-default:active,.btn-default.disabled.active,.btn-default[disabled].active,fieldset[disabled] .btn-default.active{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#428bca;border-color:#357ebd}.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.btn-primary.active,.open .dropdown-toggle.btn-primary{color:#fff;background-color:#3276b1;border-color:#285e8e}.btn-primary:active,.btn-primary.active,.open .dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled,.btn-primary[disabled],fieldset[disabled] .btn-primary,.btn-primary.disabled:hover,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary:hover,.btn-primary.disabled:focus,.btn-primary[disabled]:focus,fieldset[disabled] .btn-primary:focus,.btn-primary.disabled:active,.btn-primary[disabled]:active,fieldset[disabled] .btn-primary:active,.btn-primary.disabled.active,.btn-primary[disabled].active,fieldset[disabled] .btn-primary.active{background-color:#428bca;border-color:#357ebd}.btn-primary .badge{color:#428bca;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success:hover,.btn-success:focus,.btn-success:active,.btn-success.active,.open .dropdown-toggle.btn-success{color:#fff;background-color:#47a447;border-color:#398439}.btn-success:active,.btn-success.active,.open .dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success[disabled],fieldset[disabled] .btn-success,.btn-success.disabled:hover,.btn-success[disabled]:hover,fieldset[disabled] .btn-success:hover,.btn-success.disabled:focus,.btn-success[disabled]:focus,fieldset[disabled] .btn-success:focus,.btn-success.disabled:active,.btn-success[disabled]:active,fieldset[disabled] .btn-success:active,.btn-success.disabled.active,.btn-success[disabled].active,fieldset[disabled] .btn-success.active{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info:hover,.btn-info:focus,.btn-info:active,.btn-info.active,.open .dropdown-toggle.btn-info{color:#fff;background-color:#39b3d7;border-color:#269abc}.btn-info:active,.btn-info.active,.open .dropdown-toggle.btn-info{background-image:none}.btn-info.disabled,.btn-info[disabled],fieldset[disabled] .btn-info,.btn-info.disabled:hover,.btn-info[disabled]:hover,fieldset[disabled] .btn-info:hover,.btn-info.disabled:focus,.btn-info[disabled]:focus,fieldset[disabled] .btn-info:focus,.btn-info.disabled:active,.btn-info[disabled]:active,fieldset[disabled] .btn-info:active,.btn-info.disabled.active,.btn-info[disabled].active,fieldset[disabled] .btn-info.active{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning:hover,.btn-warning:focus,.btn-warning:active,.btn-warning.active,.open .dropdown-toggle.btn-warning{color:#fff;background-color:#ed9c28;border-color:#d58512}.btn-warning:active,.btn-warning.active,.open .dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled,.btn-warning[disabled],fieldset[disabled] .btn-warning,.btn-warning.disabled:hover,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning:hover,.btn-warning.disabled:focus,.btn-warning[disabled]:focus,fieldset[disabled] .btn-warning:focus,.btn-warning.disabled:active,.btn-warning[disabled]:active,fieldset[disabled] .btn-warning:active,.btn-warning.disabled.active,.btn-warning[disabled].active,fieldset[disabled] .btn-warning.active{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger:hover,.btn-danger:focus,.btn-danger:active,.btn-danger.active,.open .dropdown-toggle.btn-danger{color:#fff;background-color:#d2322d;border-color:#ac2925}.btn-danger:active,.btn-danger.active,.open .dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled,.btn-danger[disabled],fieldset[disabled] .btn-danger,.btn-danger.disabled:hover,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger:hover,.btn-danger.disabled:focus,.btn-danger[disabled]:focus,fieldset[disabled] .btn-danger:focus,.btn-danger.disabled:active,.btn-danger[disabled]:active,fieldset[disabled] .btn-danger:active,.btn-danger.disabled.active,.btn-danger[disabled].active,fieldset[disabled] .btn-danger.active{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{color:#428bca;font-weight:400;cursor:pointer;border-radius:0}.btn-link,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:hover,.btn-link:focus,.btn-link:active{border-color:transparent}.btn-link:hover,.btn-link:focus{color:#2a6496;text-decoration:underline;background-color:transparent}.btn-link[disabled]:hover,fieldset[disabled] .btn-link:hover,.btn-link[disabled]:focus,fieldset[disabled] .btn-link:focus{color:#999;text-decoration:none}.btn-lg,.btn-group-lg>.btn{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.btn-sm,.btn-group-sm>.btn{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-xs,.btn-group-xs>.btn{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%;padding-left:0;padding-right:0}.btn-block+.btn-block{margin-top:5px}input[type=submit].btn-block,input[type=reset].btn-block,input[type=button].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition:height .35s ease;transition:height .35s ease}@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/glyphicons-halflings-regular.woff) format('woff'),url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\2a"}.glyphicon-plus:before{content:"\2b"}.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px solid;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;font-size:14px;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175);background-clip:padding-box}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus{text-decoration:none;color:#262626;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus{color:#fff;text-decoration:none;outline:0;background-color:#428bca}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{color:#999}.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{text-decoration:none;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);cursor:not-allowed}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{left:auto;right:0}.dropdown-menu-left{left:0;right:auto}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#999}.dropdown-backdrop{position:fixed;left:0;right:0;bottom:0;top:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px solid;content:""}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}@media (min-width:768px){.navbar-right .dropdown-menu{left:auto;right:0}.navbar-right .dropdown-menu-left{left:0;right:auto}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group>.btn,.btn-group-vertical>.btn{position:relative;float:left}.btn-group>.btn:hover,.btn-group-vertical>.btn:hover,.btn-group>.btn:focus,.btn-group-vertical>.btn:focus,.btn-group>.btn:active,.btn-group-vertical>.btn:active,.btn-group>.btn.active,.btn-group-vertical>.btn.active{z-index:2}.btn-group>.btn:focus,.btn-group-vertical>.btn:focus{outline:0}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-top-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child>.btn:last-child,.btn-group>.btn-group:first-child>.dropdown-toggle{border-bottom-right-radius:0;border-top-right-radius:0}.btn-group>.btn-group:last-child>.btn:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-left:8px;padding-right:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-left:12px;padding-right:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-bottom-left-radius:4px;border-top-right-radius:0;border-top-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-right-radius:0;border-top-left-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{float:none;display:table-cell;width:1%}.btn-group-justified>.btn-group .btn{width:100%}[data-toggle=buttons]>.btn>input[type=radio],[data-toggle=buttons]>.btn>input[type=checkbox]{display:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-left:0;padding-right:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn,select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn,select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn{height:auto}.input-group-addon,.input-group-btn,.input-group .form-control{display:table-cell}.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child),.input-group .form-control:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=radio],.input-group-addon input[type=checkbox]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group-btn:last-child>.btn-group:not(:last-child)>.btn{border-bottom-right-radius:0;border-top-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:first-child>.btn-group:not(:first-child)>.btn{border-bottom-left-radius:0;border-top-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:hover,.input-group-btn>.btn:focus,.input-group-btn>.btn:active{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{margin-left:-1px}.nav{margin-bottom:0;padding-left:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:hover,.nav>li>a:focus{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#999}.nav>li.disabled>a:hover,.nav>li.disabled>a:focus{color:#999;text-decoration:none;background-color:transparent;cursor:not-allowed}.nav .open>a,.nav .open>a:hover,.nav .open>a:focus{background-color:#eee;border-color:#428bca}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:hover,.nav-tabs>li.active>a:focus{color:#555;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent;cursor:default}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{text-align:center;margin-bottom:5px}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a:focus{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a:focus{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:hover,.nav-pills>li.active>a:focus{color:#fff;background-color:#428bca}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{text-align:center;margin-bottom:5px}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:hover,.nav-tabs-justified>.active>a:focus{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:hover,.nav-tabs-justified>.active>a:focus{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-right-radius:0;border-top-left-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:4px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{max-height:340px;overflow-x:visible;padding-right:15px;padding-left:15px;border-top:1px solid transparent;box-shadow:inset 0 1px 0 rgba(255,255,255,.1);-webkit-overflow-scrolling:touch}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse,.navbar-fixed-bottom .navbar-collapse{padding-left:0;padding-right:0}}.container>.navbar-header,.container-fluid>.navbar-header,.container>.navbar-collapse,.container-fluid>.navbar-collapse{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container>.navbar-header,.container-fluid>.navbar-header,.container>.navbar-collapse,.container-fluid>.navbar-collapse{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-top,.navbar-fixed-bottom{position:fixed;right:0;left:0;z-index:1030}@media (min-width:768px){.navbar-fixed-top,.navbar-fixed-bottom{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;padding:15px;font-size:18px;line-height:20px;height:50px}.navbar-brand:hover,.navbar-brand:focus{text-decoration:none}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;margin-right:15px;padding:9px 10px;margin-top:8px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;box-shadow:none}.navbar-nav .open .dropdown-menu>li>a,.navbar-nav .open .dropdown-menu .dropdown-header{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:hover,.navbar-nav .open .dropdown-menu>li>a:focus{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}.navbar-nav.navbar-right:last-child{margin-right:-15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important}}.navbar-form{margin-left:-15px;margin-right:-15px;padding:10px 15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);margin-top:8px;margin-bottom:8px}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .radio,.navbar-form .checkbox{display:inline-block;margin-top:0;margin-bottom:0;padding-left:0;vertical-align:middle}.navbar-form .radio input[type=radio],.navbar-form .checkbox input[type=checkbox]{float:none;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}}@media (min-width:768px){.navbar-form{width:auto;border:0;margin-left:0;margin-right:0;padding-top:0;padding-bottom:0;-webkit-box-shadow:none;box-shadow:none}.navbar-form.navbar-right:last-child{margin-right:-15px}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-right-radius:0;border-top-left-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-text{float:left;margin-left:15px;margin-right:15px}.navbar-text.navbar-right:last-child{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:hover,.navbar-default .navbar-brand:focus{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:hover,.navbar-default .navbar-nav>li>a:focus{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:hover,.navbar-default .navbar-nav>.active>a:focus{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:hover,.navbar-default .navbar-nav>.disabled>a:focus{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:hover,.navbar-default .navbar-toggle:focus{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:hover,.navbar-default .navbar-nav>.open>a:focus{background-color:#e7e7e7;color:#555}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#999}.navbar-inverse .navbar-brand:hover,.navbar-inverse .navbar-brand:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#999}.navbar-inverse .navbar-nav>li>a{color:#999}.navbar-inverse .navbar-nav>li>a:hover,.navbar-inverse .navbar-nav>li>a:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:hover,.navbar-inverse .navbar-nav>.active>a:focus{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:hover,.navbar-inverse .navbar-nav>.disabled>a:focus{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:hover,.navbar-inverse .navbar-toggle:focus{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:hover,.navbar-inverse .navbar-nav>.open>a:focus{background-color:#080808;color:#fff}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#999}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#999}.navbar-inverse .navbar-link:hover{color:#fff}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{content:"/\00a0";padding:0 5px;color:#ccc}.breadcrumb>.active{color:#999}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;line-height:1.42857143;text-decoration:none;color:#428bca;background-color:#fff;border:1px solid #ddd;margin-left:-1px}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-bottom-left-radius:4px;border-top-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-bottom-right-radius:4px;border-top-right-radius:4px}.pagination>li>a:hover,.pagination>li>span:hover,.pagination>li>a:focus,.pagination>li>span:focus{color:#2a6496;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>span,.pagination>.active>a:hover,.pagination>.active>span:hover,.pagination>.active>a:focus,.pagination>.active>span:focus{z-index:2;color:#fff;background-color:#428bca;border-color:#428bca;cursor:default}.pagination>.disabled>span,.pagination>.disabled>span:hover,.pagination>.disabled>span:focus,.pagination>.disabled>a,.pagination>.disabled>a:hover,.pagination>.disabled>a:focus{color:#999;background-color:#fff;border-color:#ddd;cursor:not-allowed}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-bottom-left-radius:6px;border-top-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-bottom-right-radius:6px;border-top-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-bottom-left-radius:3px;border-top-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-bottom-right-radius:3px;border-top-right-radius:3px}.pager{padding-left:0;margin:20px 0;list-style:none;text-align:center}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:hover,.pager li>a:focus{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:hover,.pager .disabled>a:focus,.pager .disabled>span{color:#999;background-color:#fff;cursor:not-allowed}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}.label[href]:hover,.label[href]:focus{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#999}.label-default[href]:hover,.label-default[href]:focus{background-color:gray}.label-primary{background-color:#428bca}.label-primary[href]:hover,.label-primary[href]:focus{background-color:#3071a9}.label-success{background-color:#5cb85c}.label-success[href]:hover,.label-success[href]:focus{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:hover,.label-info[href]:focus{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:hover,.label-warning[href]:focus{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:hover,.label-danger[href]:focus{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;color:#fff;line-height:1;vertical-align:baseline;white-space:nowrap;text-align:center;background-color:#999;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-xs .badge{top:0;padding:1px 5px}a.badge:hover,a.badge:focus{color:#fff;text-decoration:none;cursor:pointer}a.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#428bca;background-color:#fff}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding:30px;margin-bottom:30px;color:inherit;background-color:#eee}.jumbotron h1,.jumbotron .h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.container .jumbotron{border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron{padding-left:60px;padding-right:60px}.jumbotron h1,.jumbotron .h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.thumbnail>img,.thumbnail a>img{margin-left:auto;margin-right:auto}a.thumbnail:hover,a.thumbnail:focus,a.thumbnail.active{border-color:#428bca}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable{padding-right:35px}.alert-dismissable .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{background-color:#dff0d8;border-color:#d6e9c6;color:#3c763d}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{background-color:#d9edf7;border-color:#bce8f1;color:#31708f}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{background-color:#f2dede;border-color:#ebccd1;color:#a94442}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{overflow:hidden;height:20px;margin-bottom:20px;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#428bca;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;transition:width .6s ease}.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:40px 40px}.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media,.media-body{overflow:hidden;zoom:1}.media,.media .media{margin-top:15px}.media:first-child{margin-top:0}.media-object{display:block}.media-heading{margin:0 0 5px}.media>.pull-left{margin-right:10px}.media>.pull-right{margin-left:10px}.media-list{padding-left:0;list-style:none}.list-group{margin-bottom:20px;padding-left:0}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}a.list-group-item{color:#555}a.list-group-item .list-group-item-heading{color:#333}a.list-group-item:hover,a.list-group-item:focus{text-decoration:none;background-color:#f5f5f5}a.list-group-item.active,a.list-group-item.active:hover,a.list-group-item.active:focus{z-index:2;color:#fff;background-color:#428bca;border-color:#428bca}a.list-group-item.active .list-group-item-heading,a.list-group-item.active:hover .list-group-item-heading,a.list-group-item.active:focus .list-group-item-heading{color:inherit}a.list-group-item.active .list-group-item-text,a.list-group-item.active:hover .list-group-item-text,a.list-group-item.active:focus .list-group-item-text{color:#e1edf7}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:hover,a.list-group-item-success:focus{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:hover,a.list-group-item-success.active:focus{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:hover,a.list-group-item-info:focus{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:hover,a.list-group-item-info.active:focus{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:hover,a.list-group-item-warning:focus{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:hover,a.list-group-item-warning.active:focus{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:hover,a.list-group-item-danger:focus{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:hover,a.list-group-item-danger.active:focus{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-right-radius:3px;border-top-left-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group{margin-bottom:0}.panel>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-right-radius:3px;border-top-left-radius:3px}.panel>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.table:first-child,.panel>.table-responsive:first-child>.table:first-child{border-top-right-radius:3px;border-top-left-radius:3px}.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table:last-child,.panel>.table-responsive:last-child>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child th,.panel>.table>tbody:first-child>tr:first-child td{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0}.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0}.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{border:0;margin-bottom:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:4px;overflow:hidden}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse .panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse .panel-body{border-top-color:#ddd}.panel-default>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#428bca}.panel-primary>.panel-heading{color:#fff;background-color:#428bca;border-color:#428bca}.panel-primary>.panel-heading+.panel-collapse .panel-body{border-top-color:#428bca}.panel-primary>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#428bca}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse .panel-body{border-top-color:#d6e9c6}.panel-success>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse .panel-body{border-top-color:#bce8f1}.panel-info>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse .panel-body{border-top-color:#faebcc}.panel-warning>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse .panel-body{border-top-color:#ebccd1}.panel-danger>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#ebccd1}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.close:hover,.close:focus{color:#000;text-decoration:none;cursor:pointer;opacity:.5;filter:alpha(opacity=50)}button.close{padding:0;cursor:pointer;background:0 0;border:0;-webkit-appearance:none}.modal-open{overflow:hidden}.modal{display:none;overflow:auto;overflow-y:scroll;position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);transform:translate(0,-25%);-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);transform:translate(0,0)}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5);background-clip:padding-box;outline:0}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{opacity:0;filter:alpha(opacity=0)}.modal-backdrop.in{opacity:.5;filter:alpha(opacity=50)}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5;min-height:16.42857143px}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:20px}.modal-footer{margin-top:15px;padding:19px 20px 20px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-left:5px;margin-bottom:0}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1030;display:block;visibility:visible;font-size:12px;line-height:1.4;opacity:0;filter:alpha(opacity=0)}.tooltip.in{opacity:.9;filter:alpha(opacity=90)}.tooltip.top{margin-top:-3px;padding:5px 0}.tooltip.right{margin-left:3px;padding:0 5px}.tooltip.bottom{margin-top:3px;padding:5px 0}.tooltip.left{margin-left:-3px;padding:0 5px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{bottom:0;left:5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;right:5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;left:5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;right:5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1010;display:none;max-width:276px;padding:1px;text-align:left;background-color:#fff;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);white-space:normal}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{margin:0;padding:8px 14px;font-size:14px;font-weight:400;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{border-width:10px;content:""}.popover.top>.arrow{left:50%;margin-left:-11px;border-bottom-width:0;border-top-color:#999;border-top-color:rgba(0,0,0,.25);bottom:-11px}.popover.top>.arrow:after{content:" ";bottom:1px;margin-left:-10px;border-bottom-width:0;border-top-color:#fff}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-left-width:0;border-right-color:#999;border-right-color:rgba(0,0,0,.25)}.popover.right>.arrow:after{content:" ";left:1px;bottom:-10px;border-left-width:0;border-right-color:#fff}.popover.bottom>.arrow{left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25);top:-11px}.popover.bottom>.arrow:after{content:" ";top:1px;margin-left:-10px;border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{content:" ";right:1px;border-right-width:0;border-left-color:#fff;bottom:-10px}.carousel{position:relative}.carousel-inner{position:relative;overflow:hidden;width:100%}.carousel-inner>.item{display:none;position:relative;-webkit-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>img,.carousel-inner>.item>a>img{line-height:1}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;left:0;bottom:0;width:15%;opacity:.5;filter:alpha(opacity=50);font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-control.left{background-image:-webkit-linear-gradient(left,color-stop(rgba(0,0,0,.5) 0),color-stop(rgba(0,0,0,.0001) 100%));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1)}.carousel-control.right{left:auto;right:0;background-image:-webkit-linear-gradient(left,color-stop(rgba(0,0,0,.0001) 0),color-stop(rgba(0,0,0,.5) 100%));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1)}.carousel-control:hover,.carousel-control:focus{outline:0;color:#fff;text-decoration:none;opacity:.9;filter:alpha(opacity=90)}.carousel-control .icon-prev,.carousel-control .icon-next,.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right{position:absolute;top:50%;z-index:5;display:inline-block}.carousel-control .icon-prev,.carousel-control .glyphicon-chevron-left{left:50%}.carousel-control .icon-next,.carousel-control .glyphicon-chevron-right{right:50%}.carousel-control .icon-prev,.carousel-control .icon-next{width:20px;height:20px;margin-top:-10px;margin-left:-10px;font-family:serif}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;margin-left:-30%;padding-left:0;list-style:none;text-align:center}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;border:1px solid #fff;border-radius:10px;cursor:pointer;background-color:#000 \9;background-color:rgba(0,0,0,0)}.carousel-indicators .active{margin:0;width:12px;height:12px;background-color:#fff}.carousel-caption{position:absolute;left:15%;right:15%;bottom:20px;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-prev,.carousel-control .icon-next{width:30px;height:30px;margin-top:-15px;margin-left:-15px;font-size:30px}.carousel-caption{left:20%;right:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.clearfix:before,.clearfix:after,.container:before,.container:after,.container-fluid:before,.container-fluid:after,.row:before,.row:after,.form-horizontal .form-group:before,.form-horizontal .form-group:after,.btn-toolbar:before,.btn-toolbar:after,.btn-group-vertical>.btn-group:before,.btn-group-vertical>.btn-group:after,.nav:before,.nav:after,.navbar:before,.navbar:after,.navbar-header:before,.navbar-header:after,.navbar-collapse:before,.navbar-collapse:after,.pager:before,.pager:after,.panel-body:before,.panel-body:after,.modal-footer:before,.modal-footer:after{content:" ";display:table}.clearfix:after,.container:after,.container-fluid:after,.row:after,.form-horizontal .form-group:after,.btn-toolbar:after,.btn-group-vertical>.btn-group:after,.nav:after,.navbar:after,.navbar-header:after,.navbar-collapse:after,.pager:after,.panel-body:after,.modal-footer:after{clear:both}.center-block{display:block;margin-left:auto;margin-right:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important;visibility:hidden!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-xs,.visible-sm,.visible-md,.visible-lg{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table}tr.visible-xs{display:table-row!important}th.visible-xs,td.visible-xs{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table}tr.visible-sm{display:table-row!important}th.visible-sm,td.visible-sm{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table}tr.visible-md{display:table-row!important}th.visible-md,td.visible-md{display:table-cell!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table}tr.visible-lg{display:table-row!important}th.visible-lg,td.visible-lg{display:table-cell!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table}tr.visible-print{display:table-row!important}th.visible-print,td.visible-print{display:table-cell!important}}@media print{.hidden-print{display:none!important}} \ No newline at end of file diff --git a/css/custom-editor-style.css b/css/custom-editor-style.css new file mode 100644 index 0000000..4d20274 --- /dev/null +++ b/css/custom-editor-style.css @@ -0,0 +1,8 @@ +body#tinymce.wp-editor { + font-family: Arial, Helvetica, sans-serif; + margin: 10px; +} + +body#tinymce.wp-editor a { + color: #4CA6CF; +} \ No newline at end of file diff --git a/css/jquery.vegas.min.css b/css/jquery.vegas.min.css new file mode 100644 index 0000000..c2e436c --- /dev/null +++ b/css/jquery.vegas.min.css @@ -0,0 +1 @@ +.vegas-loading{border-radius:10px;background:#000;background:rgba(0,0,0,.7);background:url(../images/loading.gif) no-repeat center center;height:32px;left:20px;position:fixed;top:20px;width:32px;z-index:0}.vegas-overlay{background:transparent url(../images/overlays/06.png);opacity:.5;z-index:-1}.vegas-background{-ms-interpolation-mode:bicubic;image-rendering:optimizeQuality;max-width:none!important;z-index:-2}.vegas-overlay,.vegas-background{-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none} \ No newline at end of file diff --git a/css/owl.carousel.css b/css/owl.carousel.css new file mode 100644 index 0000000..2e441ac --- /dev/null +++ b/css/owl.carousel.css @@ -0,0 +1,70 @@ +/* + * Core Owl Carousel CSS File + * v1.3.2 + */ + +/* clearfix */ +.owl-carousel .owl-wrapper:after { + content: "."; + display: block; + clear: both; + visibility: hidden; + line-height: 0; + height: 0; +} +/* display none until init */ +.owl-carousel{ + position: relative; + width: 100%; + -ms-touch-action: pan-y; +} +.owl-carousel .owl-wrapper{ + display: none; + position: relative; + -webkit-transform: translate3d(0px, 0px, 0px); +} +.owl-carousel .owl-wrapper-outer{ + overflow: hidden; + position: relative; + width: 100%; +} +.owl-carousel .owl-wrapper-outer.autoHeight{ + -webkit-transition: height 500ms ease-in-out; + -moz-transition: height 500ms ease-in-out; + -ms-transition: height 500ms ease-in-out; + -o-transition: height 500ms ease-in-out; + transition: height 500ms ease-in-out; +} + +.owl-carousel .owl-item{ + float: left; +} +.owl-controls .owl-page, +.owl-controls .owl-buttons div{ + cursor: pointer; +} +.owl-controls { + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); +} + +/* mouse grab icon */ +.grabbing { + cursor:url(grabbing.png) 8 8, move; +} + +/* fix */ +.owl-carousel .owl-wrapper, +.owl-carousel .owl-item{ + -webkit-backface-visibility: hidden; + -moz-backface-visibility: hidden; + -ms-backface-visibility: hidden; + -webkit-transform: translate3d(0,0,0); + -moz-transform: translate3d(0,0,0); + -ms-transform: translate3d(0,0,0); +} + diff --git a/css/owl.theme.css b/css/owl.theme.css new file mode 100644 index 0000000..0314a5c --- /dev/null +++ b/css/owl.theme.css @@ -0,0 +1,79 @@ +/* +* Owl Carousel Owl Demo Theme +* v1.3.2 +*/ + +.owl-theme .owl-controls{ + margin-top: 10px; + text-align: center; +} + +/* Styling Next and Prev buttons */ + +.owl-theme .owl-controls .owl-buttons div{ + color: #FFF; + display: inline-block; + zoom: 1; + *display: inline;/*IE7 life-saver */ + margin: 5px; + padding: 3px 10px; + font-size: 12px; + -webkit-border-radius: 30px; + -moz-border-radius: 30px; + border-radius: 30px; + background: #869791; + filter: Alpha(Opacity=50);/*IE7 fix*/ + opacity: 0.5; +} +/* Clickable class fix problem with hover on touch devices */ +/* Use it for non-touch hover action */ +.owl-theme .owl-controls.clickable .owl-buttons div:hover{ + filter: Alpha(Opacity=100);/*IE7 fix*/ + opacity: 1; + text-decoration: none; +} + +/* Styling Pagination*/ + +.owl-theme .owl-controls .owl-page{ + display: inline-block; + zoom: 1; + *display: inline;/*IE7 life-saver */ +} +.owl-theme .owl-controls .owl-page span{ + display: block; + width: 12px; + height: 12px; + margin: 5px 7px; + filter: Alpha(Opacity=50);/*IE7 fix*/ + opacity: 0.5; + -webkit-border-radius: 20px; + -moz-border-radius: 20px; + border-radius: 20px; + background: #869791; +} + +.owl-theme .owl-controls .owl-page.active span, +.owl-theme .owl-controls.clickable .owl-page:hover span{ + filter: Alpha(Opacity=100);/*IE7 fix*/ + opacity: 1; +} + +/* If PaginationNumbers is true */ + +.owl-theme .owl-controls .owl-page span.owl-numbers{ + height: auto; + width: auto; + color: #FFF; + padding: 2px 10px; + font-size: 12px; + -webkit-border-radius: 30px; + -moz-border-radius: 30px; + border-radius: 30px; +} + +/* preloading images */ +.owl-item.loading{ + min-height: 150px; + background: url(AjaxLoader.gif) no-repeat center center +} \ No newline at end of file diff --git a/css/pixeden-icons.css b/css/pixeden-icons.css new file mode 100644 index 0000000..5efb2ae --- /dev/null +++ b/css/pixeden-icons.css @@ -0,0 +1,250 @@ +.pixeden { + height: 63px; + margin: auto; + position: absolute; + top: 0; left: 0; bottom: 0; right: 0; + display: block; + +} +.pd-icon-monitor { + background: url(../assets/pd-icons/icon-monitor.png) no-repeat; + width: 68px; +} +.pd-icon-camera { + background: url(../assets/pd-icons/icon-camera.png) no-repeat; + width: 66px; +} +.pd-icon-check { + background: url(../assets/pd-icons/icon-check.png) no-repeat; + width: 62px; +} + +.pd-icon-email-marketing { + background: url(../assets/pd-icons/icon-openmail.png) no-repeat; + width: 61px; +} + +.pd-icon-worldmap { + background: url(../assets/pd-icons/icon-worldmap.png) no-repeat; + width: 61px; +} + +.pd-icon-voicemail { + background: url(../assets/pd-icons/icon-voicemail.png) no-repeat; + width: 57px; +} + +.pd-icon-wallet { + background: url(../assets/pd-icons/icon-wallet.png) no-repeat; + width: 67px; +} + +.pd-icon-view { + background: url(../assets/pd-icons/icon-view.png) no-repeat; + width: 62px; +} + +.pd-icon-user { + background: url(../assets/pd-icons/icon-user.png) no-repeat; + width: 62px; +} + +.pd-icon-upload2 { + background: url(../assets/pd-icons/icon-upload2.png) no-repeat; + width: 57px; +} + +.pd-icon-upload { + background: url(../assets/pd-icons/icon-upload.png) no-repeat; + width: 57px; +} + +.pd-icon-truck { + background: url(../assets/pd-icons/icon-truck.png) no-repeat; + width: 63px; +} + +.pd-icon-ticket { + background: url(../assets/pd-icons/icon-ticket.png) no-repeat; + width: 54px; +} + +.pd-icon-tablet { + background: url(../assets/pd-icons/icon-tablet.png) no-repeat; + width: 61px; +} + +.pd-icon-statistics { + background: url(../assets/pd-icons/icon-statistics.png) no-repeat; + width: 62px; +} + +.pd-icon-shop { + background: url(../assets/pd-icons/icon-shop.png) no-repeat; + width: 68px; +} + +.pd-icon-search { + background: url(../assets/pd-icons/icon-search.png) no-repeat; + width: 62px; +} + +.pd-icon-ribbon { + background: url(../assets/pd-icons/icon-ribbon.png) no-repeat; + width: 48px; +} + +.pd-icon-responsive { + background: url(../assets/pd-icons/icon-responsive.png) no-repeat; + width: 66px; +} + +.pd-icon-print { + background: url(../assets/pd-icons/icon-print.png) no-repeat; + width: 62px; +} + +.pd-icon-portfolio { + background: url(../assets/pd-icons/icon-portfolio.png) no-repeat; + width: 67px; +} + +.pd-icon-photo { + background: url(../assets/pd-icons/icon-photo.png) no-repeat; + width: 69px; +} + +.pd-icon-phone { + background: url(../assets/pd-icons/icon-phone.png) no-repeat; + width: 44px; +} + +.pd-icon-notes { + background: url(../assets/pd-icons/icon-notes.png) no-repeat; + width: 63px; +} + +.pd-icon-money { + background: url(../assets/pd-icons/icon-money.png) no-repeat; + width: 62px; +} + +.pd-icon-media { + background: url(../assets/pd-icons/icon-media.png) no-repeat; + width: 62px; +} + +.pd-icon-map { + background: url(../assets/pd-icons/icon-map.png) no-repeat; + width: 69px; +} + +.pd-icon-lock { + background: url(../assets/pd-icons/icon-lock.png) no-repeat; + width: 53px; +} + +.pd-icon-help { + background: url(../assets/pd-icons/icon-help.png) no-repeat; + width: 62px; +} + +.pd-icon-heart { + background: url(../assets/pd-icons/icon-heart.png) no-repeat; + width: 66px; +} + +.pd-icon-graph { + background: url(../assets/pd-icons/icon-graph.png) no-repeat; + width: 66px; +} + +.pd-icon-folder { + background: url(../assets/pd-icons/icon-folder.png) no-repeat; + width: 70px; +} + +.pd-icon-flag { + background: url(../assets/pd-icons/icon-flag.png) no-repeat; + width: 62px; +} + +.pd-icon-film { + background: url(../assets/pd-icons/icon-film.png) no-repeat; + width: 52px; +} + +.pd-icon-file { + background: url(../assets/pd-icons/icon-file.png) no-repeat; + width: 50px; +} + +.pd-icon-drop { + background: url(../assets/pd-icons/icon-drop.png) no-repeat; + width: 48px; +} + +.pd-icon-download { + background: url(../assets/pd-icons/icon-download.png) no-repeat; + width: 58px; +} + +.pd-icon-disk { + background: url(../assets/pd-icons/icon-disk.png) no-repeat; + width: 62px; +} + +.pd-icon-culture { + background: url(../assets/pd-icons/icon-culture.png) no-repeat; + width: 62px; +} + +.pd-icon-console { + background: url(../assets/pd-icons/icon-console.png) no-repeat; + width: 57px; +} + +.pd-icon-config { + background: url(../assets/pd-icons/icon-config.png) no-repeat; + width: 62px; +} + +.pd-icon-compas { + background: url(../assets/pd-icons/icon-compas.png) no-repeat; + width: 57px; +} + +.pd-icon-comments { + background: url(../assets/pd-icons/icon-comments.png) no-repeat; + width: 67px; +} + +.pd-icon-clock { + background: url(../assets/pd-icons/icon-clock.png) no-repeat; + width: 61px; +} + +.pd-icon-calendar { + background: url(../assets/pd-icons/icon-calendar.png) no-repeat; + width: 69px; +} + +.pd-icon-book { + background: url(../assets/pd-icons/icon-book.png) no-repeat; + width: 55px; +} + +.pd-icon-bag2 { + background: url(../assets/pd-icons/icon-bag2.png) no-repeat; + width: 67px; +} + +.pd-icon-bag { + background: url(../assets/pd-icons/icon-bag.png) no-repeat; + width: 58px; +} + +.pd-icon-arrows { + background: url(../assets/pd-icons/icon-arrows.png) no-repeat; + width: 61px; +} diff --git a/css/responsive.css b/css/responsive.css new file mode 100644 index 0000000..2d04348 --- /dev/null +++ b/css/responsive.css @@ -0,0 +1 @@ +@media (min-width: 768px) and (max-width: 1024px) { /* TOP BAR ELEMENTS */ .responsive-logo { width: 100%; position: relative; text-align: center; margin-top: 10px; padding-top: 15px; } .responsive-logo a { float: none !important; } .responsive-nav { text-align: center; width: 100%; padding-top: 0; } .responsive-nav li { margin-bottom: 15px; margin-top: 0 !important; } /* HOME */ .intro { margin-top: 40%; line-height: 55px; font-size: 45px; } /* ABOUT US */ .big-intro { text-align: center !important; } .about-us .column { margin-bottom: 40px; } .skills { margin-bottom: 78px !important; } /* TEAM */ .team-member .profile-pic { width: 128px; height: 128px; } .team-member .details { display: none; } /* PURCHASE NOW */ .purchase-now { margin: auto; text-align: center !important; } .purchase-now h3 { text-align: center; margin-bottom: 20px; } .purchase-now .button { float: none; } /* FOOTER */ footer { padding-top: 40px; } .company-details { padding-top: 0; padding-bottom: 33px; } .copyright { width: 100%; padding-top: 33px; padding-bottom: 33px; } } @media (max-width: 767px) { .bs-navbar-collapse { border: 0; } .navbar-inverse .navbar-nav { padding-left: 10px; line-height: normal; text-align: center; } .navbar-inverse .navbar-nav>li { display: inline-block; margin-bottom: 0; } /* HOME */ .header { min-height: inherit; padding-bottom: 75px; } .intro { line-height: 55px; font-size: 40px; } /* ABOUT US */ .big-intro { text-align: center !important; font-size: 8vw !important; } .about-us .column { margin-bottom: 40px; } .skills { margin-bottom: 78px !important; } /* PURCHASE NOW */ .purchase-now { margin: auto; text-align: center !important; } .purchase-now h3 { text-align: center; margin-bottom: 20px; } .purchase-now .button { float: none; } /* FOOTER */ footer { padding-top: 40px; } .company-details { padding-top: 0; padding-bottom: 33px; } .copyright { width: 100%; padding-top: 33px; padding-bottom: 33px; } } @media (max-width: 480px) { /* HOME */ .intro { margin-top: 60%; line-height: 6vh; font-size: 6.5vw; } h2 { font-size: 6.5vw !important; } .other-focus-list ul li { display: block; text-align: left; margin-right: 0; } } @media only screen (max-width: 320px) { .intro { line-height: 25px; font-size: 7vw; } .client-list ul li { display: block; } } \ No newline at end of file diff --git a/css/styles.css b/css/styles.css new file mode 100644 index 0000000..10ca16e --- /dev/null +++ b/css/styles.css @@ -0,0 +1,1478 @@ +/* ======================================================================= +Zerif -One Page Respossive HTML5 Template +======================================================================= */ + +/* -------------------------------------- +========================================= +GLOBAL STYLES +========================================= +-----------------------------------------*/ + +body { + font-family: 'Lato', sans-serif !important; + font-size: 14px; + color: #808080; + font-weight: normal; + overflow-x: hidden; + line-height: 25px; + text-align: center; +} + +/* Internet Explorer 10 in Windows 8 and Windows Phone 8 Bug fix */ +@-webkit-viewport { + width: device-width; +} +@-moz-viewport { + width: device-width; +} +@-ms-viewport { + width: device-width; +} +@-o-viewport { + width: device-width; +} +@viewport { + width: device-width; +} + +/* Other fixes*/ +*,*:before,*:after { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +i { + vertical-align: middle; +} +ul, ol { +padding-left: 0 !important; +} +li { + list-style: none; +} +/* Selection colours (easy to forget) */ +::selection { + background: #FC6D6D; + color: #FFF; +} +::-moz-selection { + background: #FC6D6D; + color: #FFF; +} + +a { + color: #e96656; + -webkit-transition: all 700ms; + transition: all 700ms; +} + +a,a:hover { + text-decoration: none; +} +a:hover { + color: #cb4332; +} +p { + margin: 0; +} +.full-width { + width: 100%; + margin: auto; +} + +/*--------------------------------------- + ** TYPOGRAPHY ----- +-----------------------------------------*/ +h1,h2,h3,h4,h5,h6 { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; +} + +h1,h2 { + font-family: 'Montserrat', 'sans-serif'; + font-weight: 700; + text-transform: uppercase; + line-height: 55px; +} +h1 { + font-size: 55px; +} +h2 { + font-size: 45px !important; +} +h3 { + font-size: 24px; +} +h4 { + font-size: 18px; +} +h5 { + font-size: 17px; +} +h6 { + font-size: 16px; +} + +/*--------------------------------------- + ** BUTTONS ----- +-----------------------------------------*/ + +.buttons { + text-align: center; + margin-bottom: 100px; + margin-top: 45px; +} +.button { + display: inline-block !important; + text-align: center; + text-transform: uppercase; + padding: 10px 35px 10px 35px; + border-radius: 4px; + margin: 10px; +} +.custom-button { + display: inline-block !important; + text-align: center; + text-transform: uppercase; + padding: 13px 35px 13px 35px; + border-radius: 4px; + margin: 10px; + border: none; +} +.red-btn { + background: #e96656; +} +.green-btn { + background: #20AA73; +} +.blue-btn { + background: #3ab0e2; +} +.yellow-btn { + background: #E7AC44; +} +.red-btn,.green-btn,.blue-btn,.yellow-btn { + color: #FFF; + -webkit-transition: all 0.3s ease-in-out; + transition: all 0.3s ease-in-out; +} +.blue-btn:hover { + color: #FFF; + background: #1288b9; +} +.red-btn:hover { + color: #FFF; + background: #cb4332; +} +.green-btn:hover { + color: #FFF; + background: #069059; +} +.yellow-btn:hover { + color: #FFF; + background: #d8951e; +} + +/*--------------------------------------- + ** COLORS ----- +-----------------------------------------*/ + +/** BACKGROUNDS **/ +.red-bg { + background: #e96656; +} +.green-bg { + background: #34d293; +} +.blue-bg { + background: #3ab0e2; +} +.yellow-bg { + background: #E7AC44; +} +.dark-bg { + background: #404040; +} +.white-bg { + background: #FFFFFF; +} + +/** FOR TEXTS AND ICON FONTS **/ +.red-text { + color: #e96656; +} +.green-text { + color: #34d293; +} +.blue-text { + color: #3ab0e2; +} +.yellow-text { + color: #f7d861; +} +.dark-text { + color: #404040; +} +.white-text { + color: #FFFFFF; +} + +/*--------------------------------------- + ** BORDER BOTTOMS ----- +-----------------------------------------*/ + +.white-border-bottom:before { + position: absolute; + margin: auto; + z-index: 1; + content: ""; + width: 50%; + height: 2px; + background: #F5F5F5; + bottom: -9px; + left: 25%; +} +.dark-border-bottom:before { + position: absolute; + margin: auto; + z-index: 1; + content: ""; + width: 50%; + height: 2px; + background: #404040; + bottom: -9px; + left: 25%; +} +.red-border-bottom:before { + position: absolute; + margin: auto; + z-index: 1; + content: ""; + width: 75%; + height: 2px; + background: #e96656; + bottom: -9px; + left: 12.5%; +} +.green-border-bottom:before { + position: absolute; + margin: auto; + z-index: 1; + content: ""; + width: 75%; + height: 2px; + background: #34d293; + bottom: -9px; + left: 12.5%; +} +.blue-border-bottom:before { + position: absolute; + margin: auto; + z-index: 1; + content: ""; + width: 75%; + height: 2px; + background: #3ab0e2; + bottom: -9px; + left: 12.5%; +} +.yellow-border-bottom:before { + position: absolute; + margin: auto; + z-index: 1; + content: ""; + width: 75%; + height: 2px; + background: #f7d861; + bottom: -9px; + left: 12.5%; +} + +/*--------------------------------------- + ** FORM ----- +-----------------------------------------*/ + +.input-box { + border: 0; + width: 274px; + text-align: left; + text-transform: none; + padding: 9px; + min-height: 46px; + padding-left: 15px; + display: inline-block; + border-radius: 4px; + background: rgba(255,255,255, 0.95); +} +.textarea-box { + border: 0; + text-align: left; + text-transform: none; + padding: 9px; + min-height: 250px; + padding-left: 15px; + display: inline-block; + border-radius: 4px; + background: rgba(255,255,255, 0.95); +} + textarea:hover, +input:hover, +textarea:active, +input:active, +textarea:focus, +input:focus { + outline: 1 !important; + outline-color: #e96656 !important; + -webkit-appearance:none; + border:none !important; + -webkit-box-shadow:none !important; + box-shadow:none !important; + } + +/*--------------------------------------- + ** SECTION HEADERS ----- +-----------------------------------------*/ + +/*** SECTION HEADERS ***/ +.focus,.works,.about-us,.features,.packages,.products,.testimonial,.contact-us { + padding-top: 100px; +} +.section-header { + text-align: center; + padding-bottom: 75px; +} +.section-header h2 { + padding-bottom: 10px; + line-height: 40px; + position: relative; + display: inline-block; +} +.section-header h6 { + font-size: 16px; +} + +/* PRE LOADER */ +.preloader { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: #fefefe; + z-index: 99999; + height: 100%; + width: 100%; + overflow: hidden !important; +} +.status { + width: 200px; + height: 200px; + position: absolute; + left: 50%; + top: 50%; + background-image: url(../images/loading.gif); + background-repeat: no-repeat; + background-position: center; + margin: -100px 0 0 -100px; +} + +/*--------------------------------------- +========================================= + ** SECTION STYLES ----- +========================================= +-----------------------------------------*/ + +/*--------------------------------------- + ** SECTION: HOME ----- +-----------------------------------------*/ + +.header { + background: rgba(0, 0, 0, 0.5); + min-height: 775px; + position: relative; + overflow: hidden; +} + +/*---- SECTION: HOME > TOP BAR ----*/ +.navbar { + background: #FFF; + overflow: hidden; + border: 0; + border-radius: 0 !important; + text-align: left; + -webkit-box-shadow: 0px 5px 11px 0px rgba(50, 50, 50, 0.08); + box-shadow: 0px 5px 11px 0px rgba(50, 50, 50, 0.08); +} +#main-nav { + position: absolute; + width: 100%; + z-index: 1000; + min-height: 75px; +} +#main-nav.fixed { + position: fixed !important; + top: 0; +} +.navbar-inverse .navbar-nav>li { + display: inline; + margin-right: 20px; + margin-top: 20px; +} +.navbar-inverse .navbar-nav>li:last-child { + margin-right: 0 !important; +} +.navbar-inverse .navbar-nav>li>a { + color: #404040; + padding: 0; + line-height: 35px; +} +.navbar-brand { + height: 76px; + position: relative; + line-height: 45px; +} +.current a { + color: #e96656 !important; + position: relative; + outline: none; +} +.current:before { + position: absolute; + margin: auto; + z-index: 1; + content: ""; + width: 75%; + height: 2px; + background: #e96656; + bottom: 0px; + left: 12.5%; +} +.navbar-inverse .navbar-nav>li>a:hover { + color: #e96656; + outline: none; +} +.navbar-toggle { + border: 0; + background-color: #808080; + margin-top: 23px; +} +.navbar-inverse .navbar-toggle:hover,.navbar-inverse .navbar-toggle:focus { + background-color: #e96656; + filter: alpha(opacity=100); + opacity: 1; +} + +/*---- SECTION: HOME > INTRO AND SHORT MSGS ----*/ +.intro { + text-align: center; + color: #FFF; + margin-top: 25%; + line-height: 65px; + z-index: 0; +} + +/* Short Messages */ +.bottom-message-section { + margin-top: 14%; + position: relative; +} +.short-text { + margin: auto; + text-align: center; + color: rgba(255,255,255,0.7); + text-transform: uppercase; +} + +/*--------------------------------------- + ** SECTION: OUR FOCUS ----- +-----------------------------------------*/ + +.focus { + padding-bottom: 100px; + overflow: hidden; + background: #FFFFFF; +} +/* FOCUS BOX */ +.focus-box { + margin-bottom: 75px; +} +.focus-box .service-icon { + margin-bottom: 30px; + width: 145px; + height: 145px; + margin: auto; + border-radius: 50%; + border: 10px solid #ececec; + margin-bottom: 20px; + position: relative; + -webkit-transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; +} + +/* ON HOVER COLORED ROUNDED CIRCLE AROUND ICONS */ +.red,.green,.blue,.yellow { + -webkit-transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; +} +.red:hover .service-icon { + border: 10px solid #e96656; +} +.green:hover .service-icon { + border: 10px solid #34d293; +} +.blue:hover .service-icon { + border: 10px solid #3ab0e2; +} +.yellow:hover .service-icon { + border: 10px solid #f7d861; +} + +.focus-box h5 { + margin-bottom: 15px; + color: #404040; + position: relative; + display: inline-block; + text-transform: uppercase; + margin-bottom: 30px; + font-weight: bold; + font-size: 17px; +} +.focus-box p { + font-size: 14px; +} + +/*----OTHER FOCUSES ----*/ +.other-focuses { + background: url(../images/lines.png) repeat-x center; + margin-bottom: 25px; +} +.other-focuses .section-footer-title { + background: #FFF; + padding: 0 15px; + color: #404040; + font-weight: bold; +} +.other-focus-list { + padding-top: 5px; + margin-bottom: -17px; +} +.other-focus-list ul li { + display: inline-block; + margin-right: 50px; + padding-bottom: 15px; + text-transform: uppercase; +} +.other-focus-list ul li:last-child { + margin-right: 0; +} +.other-focus-list ul li i { + margin-right: 8px; +} + +/*--------------------------------------- + ** SECTION: SEPARATOR ONE ----- +-----------------------------------------*/ + +.separator-one { + background: rgba(52, 210, 147, 0.8); + padding: 100px 0 100px 0; +} +.separator-one .green-btn { + background: #14a168; +} +.separator-one .green-btn:hover { + background: #007345; +} +.separator-one .text { + color: #FFF; + line-height: 34px; + padding: 0; + max-width: 800px; + margin-bottom: 20px; +} + +/*--------------------------------------- + ** SECTION: PORTFOLIO ----- +-----------------------------------------*/ + +.works { + padding-bottom: 100px; + background: #FFFFFF; + min-height: 800px; +} + +/* IMAGE GRID */ +.cbp-rfgrid { + margin: auto; + padding: 0; + list-style: none; + position: relative; + width: 100%; +} +.cbp-rfgrid li { + position: relative; + float: left; + overflow: hidden; + width: 25%; /* Fallback */ +width: -webkit-calc(100% / 4); + width: calc(100% / 4); + -webkit-transition: 0.4s all linear; + transition: 0.4s all linear; +} +.cbp-rfgrid li a,.cbp-rfgrid li a img { + display: block; + max-width: 100%; + -webkit-transform: scale(1,1); + -ms-transform: scale(1,1); + transform: scale(1,1); + -webkit-transition-timing-function: ease-in; + transition-timing-function: ease-in; + -webkit-transition-duration: 250ms; + transition-duration: 250ms; + cursor: pointer; + -webkit-transition: 0.4s all linear; + transition: 0.4s all linear; +} +.cbp-rfgrid li a:hover img { + -webkit-transform: scale(1.05,1.07); + -ms-transform: scale(1.05,1.07); + transform: scale(1.05,1.07); + -webkit-transition-timing-function: ease-out; + transition-timing-function: ease-out; + -webkit-transition-duration: 250ms; + transition-duration: 250ms; +} + +/* Flexbox is used for centering the heading */ +.cbp-rfgrid li a .project-info { + position: absolute; + left: 10px; + top: 10px; + right: 10px; + bottom: 10px; + background: rgba(0,0,0,0.5); + padding-top: 25%; + text-align: center; + filter: alpha(opacity=0); + opacity: 0; + -webkit-transition: all ease .25s; + transition: all ease .25s; +} +.cbp-rfgrid li a .project-info .project-details { + position: relative; + top: -29px; + filter: alpha(opacity=0); + opacity: 0; + -webkit-transition: all ease .25s; + transition: all ease .25s; + width: 100%; +} +.cbp-rfgrid li a .project-info h5 { + position: relative; + display: inline-block; + margin-bottom: 15px; + font-weight: bold; + text-transform: uppercase; +} +.cbp-rfgrid li a:hover .project-info { + filter: alpha(opacity=100); + opacity: 1; +} +.cbp-rfgrid li a:hover .project-details { + filter: alpha(opacity=100); + opacity: 1; + top: 0; +} +.cbp-rfgrid li a:hover .button { + filter: alpha(opacity=100); + opacity: 1; + bottom: -50px; +} + +/* media queries: change number of items per row */ +@media screen and (max-width: 1190px) { + .cbp-rfgrid li { + width: 25%; /* Fallback */ +width: -webkit-calc(100% / 4); + width: calc(100% / 4); +} +} +@media screen and (max-width: 1024px) { + .cbp-rfgrid li { + width: 33.33333333333333%; /* Fallback */ +width: -webkit-calc(100% / 3); + width: calc(100% / 3); +} +} +@media screen and (max-width: 768px) { + .cbp-rfgrid li { + width: 50%; /* Fallback */ +width: -webkit-calc(100% / 2); + width: calc(100% / 2); +} +} +@media screen and (max-width: 480px) { + .cbp-rfgrid li { + width: 100%; +} +} +@media screen and (max-width: 300px) { + .cbp-rfgrid li { + width: 100%; +} +} + +/* PROJECT DETAILS LOADER */ +#back-button { + display: none; + text-align: center; + text-transform: uppercase; + padding: 13px 35px 13px 35px; + border-radius: 4px; + margin: 10px; +} +#back-button i { + margin-right: 10px; +} +#loader { + min-height: 930px; + position: relative; + display: none; +} +#loader .loader-icon { + background: url(../images/loading.gif) no-repeat center center; + background-color: #FFF; + margin: -22px -22px; + top: 50%; + left: 50%; + z-index: 10000; + position: fixed; + width: 44px; + height: 44px; + -webkit-background-size: 30px 30px; + background-size: 30px 30px; + border-radius: 5px; +} + +/*--------------------------------------- + ** SECTION: ABOUT US ----- +-----------------------------------------*/ + +.about-us { + background: #272727; + color: #FFF; + padding-bottom: 100px; +} +.about-us .big-intro { + text-align: right; + font-weight: 300; + font-size: 60px; + line-height: normal; + margin-top: -15px; +} +.about-us p { + text-align: left; + color: #939393; +} +.about-us .column { + margin-bottom: 78px; +} +/*--SKILLS --*/ +.skills { + text-align: left; +} +.skills .skill { + display: block; + clear: both; + margin-top: 0; + margin-bottom: 25px; +} +.skills .skill .skill-count { + display: inline-block; + height: 64px; + margin-top: 3px; + float: left; + margin-right: 15px; + margin-bottom: 25px; +} +.skills li:last-child { + margin-bottom: 0; +} +.skills .skill .skill1,.skill2,.skill3,.skill4 { + font-size: 16px !important; +} +.skills .skill h6 { + text-transform: uppercase; + font-weight: 700; +} +.skills .skill p { + line-height: 20px; + color: #8f8f8f; +} + +/*--OUR CLIENTS --*/ +.our-clients { + background: url(../images/lines-dark.png) repeat-x center; + margin-bottom: 40px; +} +.our-clients .section-footer-title { + background: #272727; + padding: 0 15px; + color: #FFF; +} +.our-clients h5 { + font-weight: 700; +} +.client-list { + padding-top: 5px; + margin-bottom: -17px; +} +.client-list ul li { + vertical-align: middle; + display: inline-block; + margin-right: 24px; + padding-bottom: 15px; + text-transform: uppercase; +} +.client-list ul li img { + max-width: 130px; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"; + filter: alpha(opacity=80); + opacity: 0.8; + -webkit-transition: all ease .55s; + transition: all ease .55s; +} +.client-list ul li img:hover { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; + filter: alpha(opacity=100); + opacity: 1; +} +.client-list ul li:last-child { + margin-right: 0; +} +.client-list ul li i { + margin-right: 8px; +} + +/*--------------------------------------- + ** SECTION: STATS ----- +-----------------------------------------*/ + +.stats { + background: rgba(0, 0, 0, 0.5); + padding: 100px 0 60px 0 !important; + clear: both; +} +.stat { + margin-bottom: 40px; +} +.stat .icon-top { + font-size: 40px; + height: 50px; + line-height: 50px; +} +.stat .stat-text { + display: inline-block; + position: relative; +} +.stat h3 { + margin-top: 20px; + padding-bottom: 5px; + position: relative; + display: inline-block; +} +.stat h6 { + color: #d1d1d1; + margin-top: 15px; +} + +/*--------------------------------------- + ** SECTION: OUR TEAM ----- +-----------------------------------------*/ + +.our-team { + padding-bottom: 66px; + padding-top: 100px; + background: #FFFFFF; +} +.team-member { + border-radius: 4px; + overflow: hidden; + position: relative; + margin-bottom: 35px; +} +.team-member .details { + text-align: left; + font-size: 13px; + line-height: 20px; + position: absolute; + padding: 15px; + top: -200px; + left: 0; + width: 100%; + height: 190px; + -webkit-transition: all 1500ms; + transition: all 1500ms; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + filter: alpha(opacity=0); + opacity: 0; +} +.team-member .member-details { + position: relative; + display: inline-block; + padding-bottom: 5px; +} +.team-member:hover .details { + top: 0; + background: #333; + color: white; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; + filter: alpha(opacity=100); + opacity: 1; +} +.team-member .profile-pic { + border-radius: 50%; + width: 174px; + height: 174px; + margin: auto; + overflow: hidden; + margin-bottom: 25px; +} +.team-member .profile-pic img { + width: 100%; + height: 100%; +} +.team-member h5 { + text-transform: uppercase; + color: #404040; + font-weight: 700; + position: relative; +} +.team-member .position { + font-size: 13px; + margin-top: 15px; +} +.team-member .social-icons { + margin-bottom: 25px; +} +.team-member .social-icons ul li { + display: inline-block; + line-height: 32px; + margin: 6px; +} +.team-member .social-icons ul li a { + background: #FFF; + font-size: 18px; + border-radius: 50%; + color: #808080; +} +.team-member .social-icons ul li a:hover { + color: #e96656; +} + +/*--------------------------------------- + ** SECTION: FEATURES ----- +-----------------------------------------*/ + +.features { + background: #FFFFFF; + text-align: left; + padding-bottom: 51px; +} +.features .feature { + margin-bottom: 55px; +} +.features .feature-icon { + font-size: 55px; + float: left; + margin-top: 10px; + margin-right: 25px; +} +.features .feature h5 { + font-weight: bold; + line-height: 28px; + color: #404040; +} +.features .feature p { + font-size: 14px; +} + +/*--------------------------------------- + ** SECTION: Pacages ----- +-----------------------------------------*/ + +.packages { + padding-bottom: 50px; + background: rgba(0, 0, 0, 0.5); +} +.package { + border-radius: 4px; + background: #FFFFFF; + margin-top: 25px; + margin-bottom: 50px; + padding-bottom: 15px; +} +.package-header { + height: 57px; + color: #FFF; + line-height: 57px; + border-top-left-radius: 4px; + border-top-right-radius: 4px; +} +.package-header h5 { + text-transform: uppercase; + font-weight: bold; +} +.price { + line-height: 120px; + height: 100px; + color: #FFF; + font-weight: 400; +} +.price h4 { + display: inline; + font-size: 40px; + line-height: normal; + margin-bottom: 0; +} +.price h4 .dollar-sign { + font-size: 17px; + vertical-align: super; +} +.price .price-meta { + line-height: normal; + text-transform: uppercase; + color: #9f9f9f; +} +.package ul li { + padding-top: 10px; + padding-bottom: 10px; + width: 80%; + margin: auto; + border-bottom: 1px dotted #dadada; +} +.package ul li:last-child { + border-bottom: 0; +} +.best-value .package { + margin-top: 0; +} +.best-value .package-header { + padding-top: 17px; + height: 82px !important; +} +.best-value .package-header h4 { + font-weight: bold; + line-height: 29px; + text-transform: uppercase; +} +.best-value .package-header .meta-text { + font-size: 13px; + line-height: normal; +} +.best-value .package-header { + height: 72px; +} +.package ul li i { + font-size: 13px; + margin-right: 5px; +} +.order { + background: #d8ccba; + color: #404040; +} +.package .order-now { + line-height: 45px; + max-width: 100%; + display: block; + background: #404040; + color: #FFF; + -webkit-transition: all 700ms; + transition: all 700ms; + border-bottom-right-radius: 4px; + border-bottom-left-radius: 4px; +} +.package .order-now:hover { + background: #e96656; +} + +/*--------------------------------------- +** SECTION: PRODUCTS ----- +-----------------------------------------*/ + +.products { + background: url(../images/product-bg.png) 50% 0 repeat; +} +.products .color-overlay { + background: rgba(39,144,176, 0.96); + margin-top: -100px; + padding-top: 100px; + padding-bottom: 70px; +} + +/*--ITEMS IMAGES--*/ +/*--ITEMS IMAGES--*/ +.item-1 { + background-image: url(../images/products/1.jpg); +} +.item-2 { + background-image: url(../images/products/2.jpg); +} +.item-3 { + background-image: url(../images/products/3.jpg); +} +.item-4 { + background-image: url(../images/products/4.jpg); +} +.item-5 { + background-image: url(../images/products/5.jpg); +} +.item-6 { + background-image: url(../images/products/6.jpg); +} +.item-7 { + background-image: url(../images/products/7.jpg); +} +.item-8 { + background-image: url(../images/products/8.jpg); +} + +/*---ITEM STYLE ---*/ +.item { + width: 100%; + height: 260px; + display: block; + -webkit-background-size: 100%; + background-size: 100%; + position: relative; + margin: auto; + margin-bottom: 30px; + z-index: 5; + -webkit-backface-visibility: hidden; + overflow: hidden; + border-radius: 4px; +} +.item-overlay { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + overflow: hidden; + -webkit-transition: background-color 0.3s ease-in-out; + transition: background-color 0.3s ease-in-out; +} +.item-content { + position: absolute; + width: 100%; + bottom: 0; + -webkit-transform: translate(0,100%); + -ms-transform: translate(0,100%); + transform: translate(0,100%); + -webkit-transition: all 0.3s ease-in-out; + transition: all 0.3s ease-in-out; +} +.item:hover .item-content { + -webkit-transform: translate(0,0); + -ms-transform: translate(0,0); + transform: translate(0,0); + -webkit-transition: all 0.3s ease-in-out; + transition: all 0.3s ease-in-out; +} +.item-top-content { + position: relative; +} +.item-top-content-inner { + position: absolute; + bottom: 0; + padding: 10px 15px 10px 15px; + background: rgba(255,255,255,.95); + width: 100%; +} +.item-add-content { + padding: 0 15px 15px 15px; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + filter: alpha(opacity=0); + opacity: 0; + -webkit-transition: all 0.3s ease-in-out; + transition: all 0.3s ease-in-out; +} +.item:hover .item-add-content { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; + filter: alpha(opacity=100); + opacity: 1; +} +.item-add-content-inner { + border: 0px solid #dadada; + border-top-width: 1px; + padding-top: 10px; +} +.item-top-title { + text-align: left; +} +.item-top-title h5 { + color: #404040; + font-weight: 700; +} +/* ITEM DETAILS */ +.item-product { + width: 70%; + float: left; +} +.item-product-price { + width: 30%; + float: right; + text-align: right; +} +.subdescription { + font-size: 14px; + font-weight: 400; + color: #7d7d7d; +} + +/*---PRODUCT PRICE---*/ +.item-product-price { + font-size: 1em; + font-weight: 700; + position: relative; +} +.item-product-price .subdescription { + color: #808080; +} +.old-price { + border: 0 solid #808080; + border-bottom-width: 1px; + margin-top: -11px; + width: 30px; + position: absolute; + right: -2px; + bottom: 10px; + -webkit-transform: rotate(-30deg); + -ms-transform: rotate(-30deg); + transform: rotate(-30deg); +} + +/*---ITEM DESCRIPTION ---*/ +.item-content { + background: rgba(255,255,255,.85); +} +.item-add-content { + font-weight: 400; + color: #808080; +} +.item-add-content .section { + margin-bottom: 10px; +} +.item-add-content .section:last-of-type { + margin-bottom: 0; +} +.item-add-content p { + font-size: 14PX; +} + +/*--------------------------------------- + ** SECTION: NEWSLETTER ----- +-----------------------------------------*/ +.newsletter { + padding-top: 62px; + padding-bottom: 62px; + background: rgba(0, 0, 0, 0.5); +} +.newsletter h3 { + font-size: 28px; + text-transform: uppercase; + font-family: 'Montserrat', sans-serif; + font-weight: 700; + margin-bottom: 8px; +} +.newsletter .subscription { + margin-top: 15px; +} +.newsletter .custom-button { + margin-top: 7px; +} + +/*---------------------------------------- + ** SECTION: TESTIMONIAL ----- +-----------------------------------------*/ +.testimonial { + background: #dbbf56; + padding-bottom: 90px; +} +#client-feedbacks .feedback-box { + background: #FFFFFF; + padding: 25px; + margin: 13px; + text-align: left; + border-radius: 4px; + -webkit-box-shadow: none; + box-shadow: none; + display: block; + z-index: 5; +} +.feedback-box .message { + font-size: 15px; + color: #909090; +} +.feedback-box .client { + margin-top: 30px; + height: 73px; + position: relative; +} +.feedback-box .quote { + float: left; + font-size: 45px; + line-height: 80px; +} +.feedback-box .client-info { + float: left; + margin-left: 18px; + padding-top: 15px; +} +.feedback-box .client-info .client-name { + font-family: 'Homemade Apple', serif; + color: #404040; +} +.feedback-box .client-info .client-company { + font-size: 13px; + margin-top: -3px; +} +.feedback-box .client-image { + float: right; + width: 73px; + height: 73px; + border-radius: 50%; + overflow: hidden; + border: 3px solid #f6f6f6; +} +.customNavigation { + text-align: center; +} +.owl-theme .owl-controls .owl-page span { + background: #886e0e; + border-radius: 50%; +} +.customNavigation a { + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); +} + +/*---------------------------------------- + ** SECTION: PURCHASE NOW ----- +-----------------------------------------*/ + +.purchase-now { + background: #e96656; + padding-top: 70px; + padding-bottom: 70px; +} +.purchase-now h3 { + text-align: left; + line-height: 40px; + margin-top: 14px; +} +.purchase-now .red-btn { + float: right; + background: #db5a4a; +} +.purchase-now .red-btn:hover { + background: #bf3928; +} + +/*---------------------------------------- + ** SECTION: CONTACT US ----- +-----------------------------------------*/ + +.contact-us { + background: rgba(0, 0, 0, 0.5); + padding-bottom: 95px; +} +.contact-us .input-box,textarea { + width: 100%; + margin: auto; + margin-bottom: 20px; +} +.contact-us .custom-button { + float: right; +} + +/* ----------------------------------------*/ +/* SECTION: FOOTER */ +/* ----------------------------------------*/ + +footer { + background: #272727; +} +.company-details { + color: #939393; + padding-top: 67px; + padding-bottom: 67px; +} +.company-details .icon-top { + font-size: 30px; + margin-bottom: 10px; +} +.copyright { + padding-top: 68px; + padding-bottom: 68px; + background: #171717; +} +.social li { + display: inline-block; + margin: 5px; +} +.social li a { + color: #939393; + font-size: 18px; +} +.social li a:hover { + color: #e96656; +} + +/* ========================================= */ +/* -----------------------------------------*/ +/* SINGLE PROJECT PAGE */ +/* -----------------------------------------*/ +/* ========================================= */ + +.single-project { + text-align: left; + margin-bottom: 25px; +} +.single-project .project-image { + width: 100%; + float: left; + text-align: left; + margin-bottom: 25px; +} +.single-project h3 { + margin-bottom: 10px; + padding-bottom: 7px; + line-height: 40px; + border-bottom: 1px dotted #dadada; +} +.single-project .project-description { + margin-bottom: 25px; +} +.single-project .button { + margin-left: 0; +} +.single-project .project-information { + margin-bottom: 10px; +} +.single-project .project-information ul li { + border-bottom: 1px dotted #dadada; + padding-bottom: 5px; + margin-top: 10px; +} +.single-project .project-information ul li span { + font-weight: 700; + margin-right: 5px; +} diff --git a/css/zerif_customizer_custom_css.css b/css/zerif_customizer_custom_css.css new file mode 100644 index 0000000..5543b5a --- /dev/null +++ b/css/zerif_customizer_custom_css.css @@ -0,0 +1,3 @@ +.customize-control-widget_form .widget-control-save { + display:block !important; +} \ No newline at end of file diff --git a/footer.php b/footer.php new file mode 100644 index 0000000..b9e6826 --- /dev/null +++ b/footer.php @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/front-page.php b/front-page.php new file mode 100644 index 0000000..ce1b212 --- /dev/null +++ b/front-page.php @@ -0,0 +1 @@ + ' . "\r\n" . 'Reply-To: ' . $email; wp_mail($emailTo, $subject, $body, $headers); $emailSent = true; else: $emailSent = false; endif; endif; endif; $zerif_bigtitle_show = get_theme_mod('zerif_bigtitle_show'); if( isset($zerif_bigtitle_show) && $zerif_bigtitle_show != 1 ): include get_template_directory() . "/sections/big_title.php"; endif; ?>

'.$zerif_contactus_subtitle.''; endif; ?>
'.__('Thanks, your email was sent successfully!','zerif-lite').'

'; elseif(isset($_POST['submitted'])): echo '

'.__('Sorry, an error occured.','zerif-lite').'

'; endif; if(isset($nameError) && $nameError != '') : echo '

'.$nameError.'

'; endif; if(isset($emailError) && $emailError != '') : echo '

'.$emailError.'

'; endif; if(isset($subjectError) && $subjectError != '') : echo '

'.$subjectError.'

'; endif; if(isset($messageError) && $messageError != '') : echo '

'.$messageError.'

'; endif; ?>
\ No newline at end of file diff --git a/functions.php b/functions.php new file mode 100644 index 0000000..c703153 --- /dev/null +++ b/functions.php @@ -0,0 +1,1531 @@ + __('Primary Menu', 'zerif-lite'), + + )); + + + // Enable support for Post Formats. + + add_theme_support('post-formats', array('aside', 'image', 'video', 'quote', 'link')); + + + // Setup the WordPress core custom background feature. + + add_theme_support('custom-background', apply_filters('zerif_custom_background_args', array( + + 'default-color' => 'ffffff', + + 'default-image' => get_stylesheet_directory_uri() . "/images/bg.jpg", + + ))); + + + // Enable support for HTML5 markup. + + add_theme_support('html5', array( + + 'comment-list', + + 'search-form', + + 'comment-form', + + 'gallery', + + )); + + + /** + * Implement the Custom Header feature. + + */ + + //require get_template_directory() . '/inc/custom-header.php'; + + + /** + * Custom template tags for this theme. + + */ + + require get_template_directory() . '/inc/template-tags.php'; + + + /** + * Custom functions that act independently of the theme templates. + + */ + + require get_template_directory() . '/inc/extras.php'; + + + /** + * Customizer additions. + + */ + + require get_template_directory() . '/inc/customizer.php'; + + require get_template_directory() . '/inc/category-dropdown-custom-control.php'; + + + /* tgm-plugin-activation */ + + + require_once get_template_directory() . '/class-tgm-plugin-activation.php'; + + + if (function_exists('add_image_size')): + + add_image_size('zerif_project_photo', 285, 214, true); + + add_image_size('zerif_our_team_photo', 174, 174, true); + + endif; + +} + + +add_action('after_setup_theme', 'zerif_setup'); + + +/** + * Register widgetized area and update sidebar with default widgets. + + */ + +function zerif_widgets_init() +{ + + register_sidebar(array( + + 'name' => __('Sidebar', 'zerif-lite'), + + 'id' => 'sidebar-1', + + 'before_widget' => '', + + 'before_title' => '

', + + 'after_title' => '

', + + )); + + register_sidebar(array( + + 'name' => __('Our focus section', 'zerif-lite'), + + 'id' => 'sidebar-ourfocus', + + 'before_widget' => '', + + 'before_title' => '

', + + 'after_title' => '

', + + )); + + register_sidebar(array( + + 'name' => __('Testimonials section', 'zerif-lite'), + + 'id' => 'sidebar-testimonials', + + 'before_widget' => '', + + 'before_title' => '

', + + 'after_title' => '

', + + )); + + register_sidebar(array( + + 'name' => __('About us section', 'zerif-lite'), + + 'id' => 'sidebar-aboutus', + + 'before_widget' => '', + + 'after_widget' => '', + + 'before_title' => '

', + + 'after_title' => '

', + + )); + + register_sidebar(array( + + 'name' => __('Our team section', 'zerif-lite'), + + 'id' => 'sidebar-ourteam', + + 'before_widget' => '', + + 'after_widget' => '', + + 'before_title' => '

', + + 'after_title' => '

', + + )); + +} + +add_action('widgets_init', 'zerif_widgets_init'); + + +/** + * Enqueue scripts and styles. + + */ + +function zerif_scripts() +{ + + + wp_register_style('zerif_font', 'http://fonts.googleapis.com/css?family=Lato:300,400,700,400italic|Montserrat:700|Homemade+Apple'); + + wp_enqueue_style('zerif_font'); + + + wp_register_style('zerif_bootstrap_style', get_template_directory_uri() . '/css/bootstrap.min.css'); + + wp_enqueue_style('zerif_bootstrap_style'); + + + wp_register_style('zerif_owl_theme_style', get_template_directory_uri() . '/css/owl.theme.css', array('zerif_bootstrap_style'), 'v1'); + + wp_enqueue_style('zerif_owl_theme_style'); + + + wp_register_style('zerif_owl_carousel_style', get_template_directory_uri() . '/css/owl.carousel.css', array('zerif_owl_theme_style'), 'v1'); + + wp_enqueue_style('zerif_owl_carousel_style'); + + + wp_register_style('zerif_vegas_style', get_template_directory_uri() . '/css/jquery.vegas.min.css', array('zerif_owl_carousel_style'), 'v1'); + + wp_enqueue_style('zerif_vegas_style'); + + + wp_register_style('zerif_icon_fonts_style', get_template_directory_uri() . '/assets/icon-fonts/styles.css', array('zerif_vegas_style'), 'v1'); + + wp_enqueue_style('zerif_icon_fonts_style'); + + + wp_register_style('zerif_pixeden_style', get_template_directory_uri() . '/css/pixeden-icons.css', array('zerif_icon_fonts_style'), 'v1'); + + wp_enqueue_style('zerif_pixeden_style'); + + + wp_enqueue_style('zerif_style', get_stylesheet_uri(), array('zerif_pixeden_style'), 'v1'); + + + wp_register_style('zerif_responsive_style', get_template_directory_uri() . '/css/responsive.css', array('zerif_style'), 'v1'); + + wp_enqueue_style('zerif_responsive_style'); + + + //wp_enqueue_style( 'justifyblog-bootstrap-responsive', get_template_directory_uri() . '/css/bootstrap-theme.min.css', array(), 'v3.1.1' ); + + + wp_enqueue_script('jquery'); + + + /* Bootstrap script */ + + wp_register_script('zerif_bootstrap_script', get_template_directory_uri() . '/js/bootstrap.min.js', array(), '20120206', true); + + wp_enqueue_script('zerif_bootstrap_script'); + + + /* ScrollTo script */ + + wp_register_script('zerif_scrollTo', get_template_directory_uri() . '/js/jquery.scrollTo.min.js', array("jquery"), '20120206', true); + + wp_enqueue_script('zerif_scrollTo'); + + + /* jQuery.nav script */ + + wp_register_script('zerif_jquery_nav', get_template_directory_uri() . '/js/jquery.nav.js', array("jquery"), '20120206', true); + + wp_enqueue_script('zerif_jquery_nav'); + + + /* Knob script */ + + wp_register_script('zerif_knob_nav', get_template_directory_uri() . '/js/jquery.knob.js', array("jquery"), '20120206', true); + + wp_enqueue_script('zerif_knob_nav'); + + + /* Owl carousel script */ + + wp_register_script('zerif_owl_carousel', get_template_directory_uri() . '/js/owl.carousel.min.js', array("jquery"), '20120206', true); + + wp_enqueue_script('zerif_owl_carousel'); + + + /* Smootscroll script */ + + wp_register_script('zerif_smoothscroll', get_template_directory_uri() . '/js/smoothscroll.js', array("jquery"), '20120206', true); + + wp_enqueue_script('zerif_smoothscroll'); + + + /* Vegas script */ + + wp_register_script('zerif_vegas_script', get_template_directory_uri() . '/js/jquery.vegas.min.js', array("jquery"), '20120206', true); + + wp_enqueue_script('zerif_vegas_script'); + + + /* scrollReveal script */ + if ( !wp_is_mobile() ){ + wp_register_script( 'zerif_scrollReveal_script', get_template_directory_uri() . '/js/scrollReveal.js', array("jquery"), '20120206', true ); + + wp_enqueue_script( 'zerif_scrollReveal_script' ); + } + + + /* zerif script */ + + wp_register_script('zerif_script', get_template_directory_uri() . '/js/zerif.js', array("jquery", "zerif_knob_nav"), '20120206', true); + + wp_enqueue_script('zerif_script'); + + + wp_enqueue_script('justifyblog-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true); + + + wp_enqueue_script('justifyblog-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true); + + + wp_enqueue_script('zerif-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true); + + + if (is_singular() && comments_open() && get_option('thread_comments')) { + + wp_enqueue_script('comment-reply'); + + } + +} + +add_action('wp_enqueue_scripts', 'zerif_scripts'); + + +add_action('tgmpa_register', 'zerif_register_required_plugins'); + + +function zerif_register_required_plugins() +{ + + + $plugins = array( + + + array( + + 'name' => 'Widget customizer', + + 'slug' => 'widget-customizer', + + 'required' => true + + ), + + array( + + 'name' => 'WP Product Review', + + 'slug' => 'wp-product-review', + + 'required' => false, + + ), + + array( + + 'name' => 'Revive Old Post (Former Tweet Old Post)', + + 'slug' => 'tweet-old-post', + + 'required' => false, + + ) + + ); + + + + + $config = array( + + 'default_path' => '', + + 'menu' => 'tgmpa-install-plugins', + + 'has_notices' => true, + + 'dismissable' => true, + + 'dismiss_msg' => '', + + 'is_automatic' => false, + + 'message' => '', + + 'strings' => array( + + 'page_title' => __('Install Required Plugins', 'zerif-lite'), + + 'menu_title' => __('Install Plugins', 'zerif-lite'), + + 'installing' => __('Installing Plugin: %s', 'zerif-lite'), + + 'oops' => __('Something went wrong with the plugin API.', 'zerif-lite'), + + 'notice_can_install_required' => _n_noop('This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.'), + + 'notice_can_install_recommended' => _n_noop('This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.'), + + 'notice_cannot_install' => _n_noop('Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.'), + + 'notice_can_activate_required' => _n_noop('The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.'), + + 'notice_can_activate_recommended' => _n_noop('The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.'), + + 'notice_cannot_activate' => _n_noop('Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.'), + + 'notice_ask_to_update' => _n_noop('The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.'), + + 'notice_cannot_update' => _n_noop('Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.'), + + 'install_link' => _n_noop('Begin installing plugin', 'Begin installing plugins'), + + 'activate_link' => _n_noop('Begin activating plugin', 'Begin activating plugins'), + + 'return' => __('Return to Required Plugins Installer', 'zerif-lite'), + + 'plugin_activated' => __('Plugin activated successfully.', 'zerif-lite'), + + 'complete' => __('All plugins installed and activated successfully. %s', 'zerif-lite'), + + 'nag_type' => 'updated' + + ) + + ); + + + tgmpa($plugins, $config); + + +} + + +/** + * Load Jetpack compatibility file. + + */ + +require get_template_directory() . '/inc/jetpack.php'; + + +/* metaboxes */ + +add_action('admin_menu', 'zerif_post_options_box'); + + +function zerif_post_options_box() +{ + + add_meta_box('post_info', 'Post details', 'zerif_custom_post_info', 'post', 'side', 'high'); + +} + + +function zerif_custom_post_info() +{ + + global $post; + + ?> + +
+ +
+ +

+ +
+ + + +

+ +

+ +
+ + + +

+ +

+ +
+ + + +

+ +

+ +
+ + + +

+ +

+ +
+ + + +

+ +

+ +
+ + + +

+ +
+ +
+ +'; + + wp_list_pages(array('title_li' => '', 'depth' => 1)); + + echo ''; + +} + + +function cwp_add_editor_styles() +{ + + add_editor_style('/css/custom-editor-style.css'); + +} + +add_action('init', 'cwp_add_editor_styles'); + + +add_filter('the_title', 'cwp_default_title'); + + +function cwp_default_title($title) +{ + + + if ($title == '') + + $title = "Default title"; + + + return $title; + +} + + +/*****************************************/ + +/****** WIDGETS *************/ + +/*****************************************/ + + +add_action('widgets_init', 'zerif_register_widgets'); + +function zerif_register_widgets() +{ + + register_widget('zerif_ourfocus'); + + register_widget('zerif_testimonial_widget'); + + register_widget('zerif_clients_widget'); + + register_widget('zerif_team_widget'); + +} + + +/**************************/ + +/****** our focus widget */ + +/************************/ + + +add_action('admin_enqueue_scripts', 'zerif_ourfocus_widget_scripts'); + +function zerif_ourfocus_widget_scripts() +{ + + wp_enqueue_media(); + + wp_enqueue_script('zerif_our_focus_widget_script', get_template_directory_uri() . '/js/widget.js', false, '1.0', true); + +} + + +class zerif_ourfocus extends WP_Widget +{ + + + function zerif_ourfocus() + { + + $widget_ops = array('classname' => 'ctUp-ads'); + + $this->WP_Widget('ctUp-ads-widget', 'Zerif - Our focus widget', $widget_ops); + + } + + + function widget($args, $instance) + { + + extract($args); + + + echo $before_widget; + + ?> + + + +
+ + +
+ + + + + + +
+ + +
+ + + +

+ + + +

+ + +
+ + + + + + + +

+ +
+ + + +

+ +

+ +
+ + + +

+ +

+ +
+ + + +
'; + + endif; + + ?> + + + + + + + + +

+ + + + 'zerif_testim'); + + $this->WP_Widget('zerif_testim-widget', 'Zerif - Testimonial widget', $widget_ops); + + } + + + function widget($args, $instance) + { + + extract($args); + + + echo $before_widget; + + ?> + + + +
+ + + +
+ + + +
+ + + +
+ +
+ + + +
+ +
+ + + +
+ + + +
+ +
+ + '; + + echo ''; + + echo '
'; + + ?> + +
+ + +
+ + + + + + + + + +

+ +
+ + + +

+ +

+ +
+ + + +

+ +

+ +
+ + + +

+ +

+ +
+ + + +
'; + + endif; + + ?> + + + + + + + + +

+ + + + 'zerif_clients'); + + $this->WP_Widget('zerif_clients-widget', 'Zerif - Clients widget', $widget_ops); + + } + + + function widget($args, $instance) + { + + extract($args); + + + echo $before_widget; + + ?> + + Client + + + + + + + + + +

+ +
+ + + +

+ + + +

+ +
+ + + +
'; + + endif; + + ?> + + + + + + + + +

+ + + + 'zerif_team'); + + $this->WP_Widget('zerif_team-widget', 'Zerif - Team member widget', $widget_ops); + + } + + + function widget($args, $instance) + { + + extract($args); + + + echo $before_widget; + + ?> + + + +
+ + +
+ + +
+ + + + + +
+ + +
+ + +
+ + +
+ + +
+ + + + + +
+ + + + + +
+ + +
+ + +
+ + + + + + + +

+ +
+ + + +

+ + + +

+ +
+ + + +

+ + + +

+ +
+ + + +

+ + + +

+ +
+ + + +

+ + + +

+ +
+ + + +

+ + + +

+ +
+ + + +

+ + + +

+ +
+ + + +

+ + + +

+ +
+ + + +
'; + + endif; + + ?> + + + + + + + + +

+ + + + section and everything up till
* * @package zerif */ ?> > <?php wp_title( '|', true, 'right' ); ?> onLoad="window.scrollTo(0,)"> >
 
\ No newline at end of file diff --git a/images/bg.jpg b/images/bg.jpg new file mode 100644 index 0000000..e2038e8 Binary files /dev/null and b/images/bg.jpg differ diff --git a/images/focus.png b/images/focus.png new file mode 100644 index 0000000..c990967 Binary files /dev/null and b/images/focus.png differ diff --git a/images/lines-dark.png b/images/lines-dark.png new file mode 100644 index 0000000..d4627e3 Binary files /dev/null and b/images/lines-dark.png differ diff --git a/images/lines.png b/images/lines.png new file mode 100644 index 0000000..c7f4c9d Binary files /dev/null and b/images/lines.png differ diff --git a/images/loading.gif b/images/loading.gif new file mode 100644 index 0000000..5b4670e Binary files /dev/null and b/images/loading.gif differ diff --git a/images/logo.png b/images/logo.png new file mode 100644 index 0000000..cad34ac Binary files /dev/null and b/images/logo.png differ diff --git a/images/overlays/01.png b/images/overlays/01.png new file mode 100644 index 0000000..acce7a6 Binary files /dev/null and b/images/overlays/01.png differ diff --git a/images/overlays/02.png b/images/overlays/02.png new file mode 100644 index 0000000..f9b60ee Binary files /dev/null and b/images/overlays/02.png differ diff --git a/images/overlays/03.png b/images/overlays/03.png new file mode 100644 index 0000000..c11a355 Binary files /dev/null and b/images/overlays/03.png differ diff --git a/images/overlays/04.png b/images/overlays/04.png new file mode 100644 index 0000000..89b8533 Binary files /dev/null and b/images/overlays/04.png differ diff --git a/images/overlays/05.png b/images/overlays/05.png new file mode 100644 index 0000000..082bda8 Binary files /dev/null and b/images/overlays/05.png differ diff --git a/images/overlays/06.png b/images/overlays/06.png new file mode 100644 index 0000000..9c9006a Binary files /dev/null and b/images/overlays/06.png differ diff --git a/images/overlays/07.png b/images/overlays/07.png new file mode 100644 index 0000000..218be60 Binary files /dev/null and b/images/overlays/07.png differ diff --git a/images/overlays/08.png b/images/overlays/08.png new file mode 100644 index 0000000..1b9dffc Binary files /dev/null and b/images/overlays/08.png differ diff --git a/images/overlays/09.png b/images/overlays/09.png new file mode 100644 index 0000000..b11c09e Binary files /dev/null and b/images/overlays/09.png differ diff --git a/images/overlays/10.png b/images/overlays/10.png new file mode 100644 index 0000000..5f1443c Binary files /dev/null and b/images/overlays/10.png differ diff --git a/images/overlays/11.png b/images/overlays/11.png new file mode 100644 index 0000000..39a75c6 Binary files /dev/null and b/images/overlays/11.png differ diff --git a/images/overlays/12.png b/images/overlays/12.png new file mode 100644 index 0000000..c9fd71d Binary files /dev/null and b/images/overlays/12.png differ diff --git a/images/overlays/13.png b/images/overlays/13.png new file mode 100644 index 0000000..66bf79c Binary files /dev/null and b/images/overlays/13.png differ diff --git a/images/overlays/14.png b/images/overlays/14.png new file mode 100644 index 0000000..2d4fcbf Binary files /dev/null and b/images/overlays/14.png differ diff --git a/images/overlays/15.png b/images/overlays/15.png new file mode 100644 index 0000000..b9ed2ff Binary files /dev/null and b/images/overlays/15.png differ diff --git a/images/product-bg.png b/images/product-bg.png new file mode 100644 index 0000000..2366571 Binary files /dev/null and b/images/product-bg.png differ diff --git a/images/products/1.jpg b/images/products/1.jpg new file mode 100644 index 0000000..710613c Binary files /dev/null and b/images/products/1.jpg differ diff --git a/images/products/2.jpg b/images/products/2.jpg new file mode 100644 index 0000000..710613c Binary files /dev/null and b/images/products/2.jpg differ diff --git a/images/products/3.jpg b/images/products/3.jpg new file mode 100644 index 0000000..710613c Binary files /dev/null and b/images/products/3.jpg differ diff --git a/images/products/4.jpg b/images/products/4.jpg new file mode 100644 index 0000000..710613c Binary files /dev/null and b/images/products/4.jpg differ diff --git a/images/products/5.jpg b/images/products/5.jpg new file mode 100644 index 0000000..710613c Binary files /dev/null and b/images/products/5.jpg differ diff --git a/images/products/6.jpg b/images/products/6.jpg new file mode 100644 index 0000000..710613c Binary files /dev/null and b/images/products/6.jpg differ diff --git a/images/products/7.jpg b/images/products/7.jpg new file mode 100644 index 0000000..710613c Binary files /dev/null and b/images/products/7.jpg differ diff --git a/images/products/8.jpg b/images/products/8.jpg new file mode 100644 index 0000000..710613c Binary files /dev/null and b/images/products/8.jpg differ diff --git a/images/search_icon.png b/images/search_icon.png new file mode 100644 index 0000000..05ebeab Binary files /dev/null and b/images/search_icon.png differ diff --git a/inc/category-dropdown-custom-control.php b/inc/category-dropdown-custom-control.php new file mode 100644 index 0000000..810101b --- /dev/null +++ b/inc/category-dropdown-custom-control.php @@ -0,0 +1,45 @@ +cats = get_categories($options); + + parent::__construct( $manager, $id, $args ); + } + + /** + * Render the content of the category dropdown + * + * @return HTML + */ + public function render_content() + { + if(!empty($this->cats)) + { + ?> + + \ No newline at end of file diff --git a/inc/custom-header.php b/inc/custom-header.php new file mode 100644 index 0000000..1961524 --- /dev/null +++ b/inc/custom-header.php @@ -0,0 +1 @@ + * * @package zerif */ /** * Setup the WordPress core custom header feature. * * @uses zerif_header_style() * @uses zerif_admin_header_style() * @uses zerif_admin_header_image() */ function zerif_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'zerif_custom_header_args', array( 'default-image' => '', 'default-text-color' => '000000', 'width' => 1000, 'height' => 250, 'flex-height' => true, 'wp-head-callback' => 'zerif_header_style', 'admin-head-callback' => 'zerif_admin_header_style', 'admin-preview-callback' => 'zerif_admin_header_image', ) ) ); } add_action( 'after_setup_theme', 'zerif_custom_header_setup' ); if ( ! function_exists( 'zerif_header_style' ) ) : /** * Styles the header image and text displayed on the blog * * @see zerif_custom_header_setup(). */ function zerif_header_style() { $header_text_color = get_header_textcolor(); // If no custom options for text are set, let's bail // get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value if ( HEADER_TEXTCOLOR == $header_text_color ) { return; } // If we get this far, we have custom styles. Let's do this. ?> Header admin panel. * * @see zerif_custom_header_setup(). */ function zerif_admin_header_style() { ?> Header admin panel. * * @see zerif_custom_header_setup(). */ function zerif_admin_header_image() { $style = sprintf( ' style="color:#%s;"', get_header_textcolor() ); ?> get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; $wp_customize->remove_section('colors'); /***********************************************/ /************** GENERAL OPTIONS ***************/ /***********************************************/ $wp_customize->add_section( 'zerif_general_section' , array( 'title' => __( 'General options', 'zerif-lite' ), 'priority' => 30, 'description' => __('Zerif theme general options','zerif-lite'), )); /* LOGO */ $wp_customize->add_setting( 'zerif_logo', array('sanitize_callback' => 'esc_url_raw')); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'themeslug_logo', array( 'label' => __( 'Logo', 'zerif-lite' ), 'section' => 'zerif_general_section', 'settings' => 'zerif_logo', 'priority' => 1, ))); /* COPYRIGHT */ $wp_customize->add_setting( 'zerif_copyright', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_copyright', array( 'label' => __( 'Copyright', 'zerif-lite' ), 'section' => 'zerif_general_section', 'settings' => 'zerif_copyright', 'priority' => 2, )); /* facebook */ $wp_customize->add_setting( 'zerif_socials_facebook', array('sanitize_callback' => 'esc_url_raw')); $wp_customize->add_control( 'zerif_socials_facebook', array( 'label' => __( 'Facebook link', 'zerif-lite' ), 'section' => 'zerif_general_section', 'settings' => 'zerif_socials_facebook', 'priority' => 3, )); /* twitter */ $wp_customize->add_setting( 'zerif_socials_twitter', array('sanitize_callback' => 'esc_url_raw')); $wp_customize->add_control( 'zerif_socials_twitter', array( 'label' => __( 'Twitter link', 'zerif-lite' ), 'section' => 'zerif_general_section', 'settings' => 'zerif_socials_twitter', 'priority' => 4, )); /* linkedin */ $wp_customize->add_setting( 'zerif_socials_linkedin', array('sanitize_callback' => 'esc_url_raw')); $wp_customize->add_control( 'zerif_socials_linkedin', array( 'label' => __( 'Linkedin link', 'zerif-lite' ), 'section' => 'zerif_general_section', 'settings' => 'zerif_socials_linkedin', 'priority' => 5, )); /* behance */ $wp_customize->add_setting( 'zerif_socials_behance', array('sanitize_callback' => 'esc_url_raw')); $wp_customize->add_control( 'zerif_socials_behance', array( 'label' => __( 'Behance link', 'zerif-lite' ), 'section' => 'zerif_general_section', 'settings' => 'zerif_socials_behance', 'priority' => 6, )); /* dribbble */ $wp_customize->add_setting( 'zerif_socials_dribbble', array('sanitize_callback' => 'esc_url_raw')); $wp_customize->add_control( 'zerif_socials_dribbble', array( 'label' => __( 'Dribbble link', 'zerif-lite' ), 'section' => 'zerif_general_section', 'settings' => 'zerif_socials_dribbble', 'priority' => 7, )); /* email */ $wp_customize->add_setting( 'zerif_email', array('sanitize_callback' => 'is_email')); $wp_customize->add_control( 'zerif_email', array( 'label' => __( 'Email', 'zerif-lite' ), 'section' => 'zerif_general_section', 'settings' => 'zerif_email', 'priority' => 8, )); /* phone number */ $wp_customize->add_setting( 'zerif_phone', array('sanitize_callback' => 'zerif_sanitize_number')); $wp_customize->add_control( 'zerif_phone', array( 'label' => __( 'Phone number', 'zerif-lite' ), 'section' => 'zerif_general_section', 'settings' => 'zerif_phone', 'priority' => 9, )); /* address */ $wp_customize->add_setting( 'zerif_address', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_address', array( 'label' => __( 'Address', 'zerif-lite' ), 'section' => 'zerif_general_section', 'settings' => 'zerif_address', 'priority' => 10, )); /*****************************************************/ /************** BIG TITLE SECTION *******************/ /****************************************************/ $wp_customize->add_section( 'zerif_bigtitle_section' , array( 'title' => __( 'Big title section', 'zerif-lite' ), 'priority' => 31 )); /* show/hide */ $wp_customize->add_setting( 'zerif_bigtitle_show', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_bigtitle_show', array( 'type' => 'checkbox', 'label' => 'Hide big title section?', 'section' => 'zerif_bigtitle_section', 'priority' => 1, ) ); /* title */ $wp_customize->add_setting( 'zerif_bigtitle_title', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_bigtitle_title', array( 'label' => __( 'Title', 'zerif-lite' ), 'section' => 'zerif_bigtitle_section', 'settings' => 'zerif_bigtitle_title', 'priority' => 2, )); /* red button */ $wp_customize->add_setting( 'zerif_bigtitle_redbutton_label', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_bigtitle_redbutton_label', array( 'label' => __( 'Red button label', 'zerif-lite' ), 'section' => 'zerif_bigtitle_section', 'settings' => 'zerif_bigtitle_redbutton_label', 'priority' => 3, )); $wp_customize->add_setting( 'zerif_bigtitle_redbutton_url', array('sanitize_callback' => 'esc_url_raw')); $wp_customize->add_control( 'zerif_bigtitle_redbutton_url', array( 'label' => __( 'Red button link', 'zerif-lite' ), 'section' => 'zerif_bigtitle_section', 'settings' => 'zerif_bigtitle_redbutton_url', 'priority' => 4, )); /* green button */ $wp_customize->add_setting( 'zerif_bigtitle_greenbutton_label', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_bigtitle_greenbutton_label', array( 'label' => __( 'Red button label', 'zerif-lite' ), 'section' => 'zerif_bigtitle_section', 'settings' => 'zerif_bigtitle_greenbutton_label', 'priority' => 5, )); $wp_customize->add_setting( 'zerif_bigtitle_greenbutton_url', array('sanitize_callback' => 'esc_url_raw')); $wp_customize->add_control( 'zerif_bigtitle_greenbutton_url', array( 'label' => __( 'Green button link', 'zerif-lite' ), 'section' => 'zerif_bigtitle_section', 'settings' => 'zerif_bigtitle_greenbutton_url', 'priority' => 6, )); /********************************************************************/ /************* OUR FOCUS SECTION **********************************/ /********************************************************************/ $wp_customize->add_section( 'zerif_ourfocus_section' , array( 'title' => __( 'Our focus section', 'zerif-lite' ), 'priority' => 32 )); /* show/hide */ $wp_customize->add_setting( 'zerif_ourfocus_show', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_ourfocus_show', array( 'type' => 'checkbox', 'label' => 'Hide our focus section?', 'section' => 'zerif_ourfocus_section', 'priority' => 1, ) ); /* our focus subtitle */ $wp_customize->add_setting( 'zerif_ourfocus_subtitle', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_ourfocus_subtitle', array( 'label' => __( 'Our focus subtitle', 'zerif-lite' ), 'section' => 'zerif_ourfocus_section', 'settings' => 'zerif_ourfocus_subtitle', 'priority' => 2, )); /************************************/ /******* ABOUT US SECTION ***********/ /************************************/ $wp_customize->add_section( 'zerif_aboutus_section' , array( 'title' => __( 'About us section', 'zerif-lite' ), 'priority' => 34 )); /* about us show/hide */ $wp_customize->add_setting( 'zerif_aboutus_show', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_aboutus_show', array( 'type' => 'checkbox', 'label' => 'Hide about us section?', 'section' => 'zerif_aboutus_section', 'priority' => 1, ) ); /* subtitle */ $wp_customize->add_setting( 'zerif_aboutus_subtitle', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_aboutus_subtitle', array( 'label' => __( 'Subtitle', 'zerif-lite' ), 'section' => 'zerif_aboutus_section', 'settings' => 'zerif_aboutus_subtitle', 'priority' => 2, )); /* big left title */ $wp_customize->add_setting( 'zerif_aboutus_biglefttitle', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_aboutus_biglefttitle', array( 'label' => __( 'Big left side title', 'zerif-lite' ), 'section' => 'zerif_aboutus_section', 'settings' => 'zerif_aboutus_biglefttitle', 'priority' => 3, )); /* text */ $wp_customize->add_setting( 'zerif_aboutus_text', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_aboutus_text', array( 'label' => __( 'Text', 'zerif-lite' ), 'section' => 'zerif_aboutus_section', 'settings' => 'zerif_aboutus_text', 'priority' => 4, )); /* feature no#1 */ $wp_customize->add_setting( 'zerif_aboutus_feature1_title', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_aboutus_feature1_title', array( 'label' => __( 'Feature no1 title', 'zerif-lite' ), 'section' => 'zerif_aboutus_section', 'settings' => 'zerif_aboutus_feature1_title', 'priority' => 5, )); $wp_customize->add_setting( 'zerif_aboutus_feature1_text', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_aboutus_feature1_text', array( 'label' => __( 'Feature no1 text', 'zerif-lite' ), 'section' => 'zerif_aboutus_section', 'settings' => 'zerif_aboutus_feature1_text', 'priority' => 6, )); $wp_customize->add_setting( 'zerif_aboutus_feature1_nr', array('sanitize_callback' => 'zerif_sanitize_number')); $wp_customize->add_control( new Zerif_Customizer_Number_Control( $wp_customize, 'zerif_aboutus_feature1_nr', array( 'type' => 'number', 'label' => __( 'Feature no1 percentage', 'zerif-lite' ), 'section' => 'zerif_aboutus_section', 'settings' => 'zerif_aboutus_feature1_nr', 'priority' => 7 ) ) ); /* feature no#2 */ $wp_customize->add_setting( 'zerif_aboutus_feature2_title', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_aboutus_feature2_title', array( 'label' => __( 'Feature no2 title', 'zerif-lite' ), 'section' => 'zerif_aboutus_section', 'settings' => 'zerif_aboutus_feature2_title', 'priority' => 8, )); $wp_customize->add_setting( 'zerif_aboutus_feature2_text', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_aboutus_feature2_text', array( 'label' => __( 'Feature no2 text', 'zerif-lite' ), 'section' => 'zerif_aboutus_section', 'settings' => 'zerif_aboutus_feature2_text', 'priority' => 9, )); $wp_customize->add_setting( 'zerif_aboutus_feature2_nr', array('sanitize_callback' => 'zerif_sanitize_number')); $wp_customize->add_control( new Zerif_Customizer_Number_Control( $wp_customize, 'zerif_aboutus_feature2_nr', array( 'type' => 'number', 'label' => __( 'Feature no2 percentage', 'zerif-lite' ), 'section' => 'zerif_aboutus_section', 'settings' => 'zerif_aboutus_feature2_nr', 'priority' => 10 ) ) ); /* feature no#3 */ $wp_customize->add_setting( 'zerif_aboutus_feature3_title', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_aboutus_feature3_title', array( 'label' => __( 'Feature no3 title', 'zerif-lite' ), 'section' => 'zerif_aboutus_section', 'settings' => 'zerif_aboutus_feature3_title', 'priority' => 11, )); $wp_customize->add_setting( 'zerif_aboutus_feature3_text', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_aboutus_feature3_text', array( 'label' => __( 'Feature no3 text', 'zerif-lite' ), 'section' => 'zerif_aboutus_section', 'settings' => 'zerif_aboutus_feature3_text', 'priority' => 12, )); $wp_customize->add_setting( 'zerif_aboutus_feature3_nr', array('sanitize_callback' => 'zerif_sanitize_number')); $wp_customize->add_control( new Zerif_Customizer_Number_Control( $wp_customize, 'zerif_aboutus_feature3_nr', array( 'type' => 'number', 'label' => __( 'Feature no3 percentage', 'zerif-lite' ), 'section' => 'zerif_aboutus_section', 'settings' => 'zerif_aboutus_feature3_nr', 'priority' => 13 ) ) ); /* feature no#4 */ $wp_customize->add_setting( 'zerif_aboutus_feature4_title', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_aboutus_feature4_title', array( 'label' => __( 'Feature no4 title', 'zerif-lite' ), 'section' => 'zerif_aboutus_section', 'settings' => 'zerif_aboutus_feature4_title', 'priority' => 14, )); $wp_customize->add_setting( 'zerif_aboutus_feature4_text', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_aboutus_feature4_text', array( 'label' => __( 'Feature no4 text', 'zerif-lite' ), 'section' => 'zerif_aboutus_section', 'settings' => 'zerif_aboutus_feature4_text', 'priority' => 15, )); $wp_customize->add_setting( 'zerif_aboutus_feature4_nr', array('sanitize_callback' => 'zerif_sanitize_number')); $wp_customize->add_control( new Zerif_Customizer_Number_Control( $wp_customize, 'zerif_aboutus_feature4_nr', array( 'type' => 'number', 'label' => __( 'Feature no4 percentage', 'zerif-lite' ), 'section' => 'zerif_aboutus_section', 'settings' => 'zerif_aboutus_feature4_nr', 'priority' => 16 ) ) ); /******************************************/ /********** OUR TEAM SECTION **************/ /******************************************/ $wp_customize->add_section( 'zerif_ourteam_section' , array( 'title' => __( 'Our team section', 'zerif-lite' ), 'priority' => 35 )); /* our team show/hide */ $wp_customize->add_setting( 'zerif_ourteam_show', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_ourteam_show', array( 'type' => 'checkbox', 'label' => 'Hide our team section?', 'section' => 'zerif_ourteam_section', 'priority' => 1, ) ); /* our team subtitle */ $wp_customize->add_setting( 'zerif_ourteam_subtitle', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_ourteam_subtitle', array( 'label' => __( 'Our team subtitle', 'zerif-lite' ), 'section' => 'zerif_ourteam_section', 'settings' => 'zerif_ourteam_subtitle', 'priority' => 2, )); /**********************************************/ /********** TESTIMONIALS SECTION **************/ /**********************************************/ $wp_customize->add_section( 'zerif_testimonials_section' , array( 'title' => __( 'Testimonials section', 'zerif-lite' ), 'priority' => 36 )); /* testimonials show/hide */ $wp_customize->add_setting( 'zerif_testimonials_show', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_testimonials_show', array( 'type' => 'checkbox', 'label' => 'Hide testimonials section?', 'section' => 'zerif_testimonials_section', 'priority' => 1, ) ); /* testimonials subtitle */ $wp_customize->add_setting( 'zerif_testimonials_subtitle', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_testimonials_subtitle', array( 'label' => __( 'Testimonials subtitle', 'zerif-lite' ), 'section' => 'zerif_testimonials_section', 'settings' => 'zerif_testimonials_subtitle', 'priority' => 2, )); /***********************************************************/ /********* RIBBONS ****************************************/ /**********************************************************/ $wp_customize->add_section( 'zerif_ribbon_section' , array( 'title' => __( 'Ribbon sections', 'zerif-lite' ), 'priority' => 37 )); /* RIBBON SECTION WITH BOTTOM BUTTON */ /* text */ $wp_customize->add_setting( 'zerif_bottomribbon_text', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_bottomribbon_text', array( 'label' => __( 'Ribbon section with bottom button - Text', 'zerif-lite' ), 'section' => 'zerif_ribbon_section', 'settings' => 'zerif_bottomribbon_text', 'priority' => 1, )); /* button label */ $wp_customize->add_setting( 'zerif_bottomribbon_buttonlabel', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_bottomribbon_buttonlabel', array( 'label' => __( 'Ribbon section with bottom button - Button label', 'zerif-lite' ), 'section' => 'zerif_ribbon_section', 'settings' => 'zerif_bottomribbon_buttonlabel', 'priority' => 2, )); /* button link */ $wp_customize->add_setting( 'zerif_bottomribbon_buttonlink', array('sanitize_callback' => 'esc_url_raw')); $wp_customize->add_control( 'zerif_bottomribbon_buttonlink', array( 'label' => __( 'Ribbon section with bottom button - Button link', 'zerif-lite' ), 'section' => 'zerif_ribbon_section', 'settings' => 'zerif_bottomribbon_buttonlink', 'priority' => 3, )); /* RIBBON SECTION WITH BUTTON IN THE RIGHT SIDE */ /* text */ $wp_customize->add_setting( 'zerif_ribbonright_text', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_ribbonright_text', array( 'label' => __( 'Ribbon section with button in the right side - Text', 'zerif-lite' ), 'section' => 'zerif_ribbon_section', 'settings' => 'zerif_ribbonright_text', 'priority' => 4, )); /* button label */ $wp_customize->add_setting( 'zerif_ribbonright_buttonlabel', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_ribbonright_buttonlabel', array( 'label' => __( 'Ribbon section with button in the right side - Button label', 'zerif-lite' ), 'section' => 'zerif_ribbon_section', 'settings' => 'zerif_ribbonright_buttonlabel', 'priority' => 5, )); /* button link */ $wp_customize->add_setting( 'zerif_ribbonright_buttonlink', array('sanitize_callback' => 'esc_url_raw')); $wp_customize->add_control( 'zerif_ribbonright_buttonlink', array( 'label' => __( 'Ribbon section with button in the right side - Button link', 'zerif-lite' ), 'section' => 'zerif_ribbon_section', 'settings' => 'zerif_ribbonright_buttonlink', 'priority' => 6, )); /*******************************************************/ /************ CONTACT US SECTION *********************/ /*******************************************************/ $wp_customize->add_section( 'zerif_contactus_section' , array( 'title' => __( 'Contact us section', 'zerif-lite' ), 'priority' => 38 )); /* contact us show/hide */ $wp_customize->add_setting( 'zerif_contactus_show', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_contactus_show', array( 'type' => 'checkbox', 'label' => 'Hide contact us section?', 'section' => 'zerif_contactus_section', 'priority' => 1, ) ); /* contactus subtitle */ $wp_customize->add_setting( 'zerif_contactus_subtitle', array('sanitize_callback' => 'zerif_sanitize_text')); $wp_customize->add_control( 'zerif_contactus_subtitle', array( 'label' => __( 'Contact us section subtitle', 'zerif-lite' ), 'section' => 'zerif_contactus_section', 'settings' => 'zerif_contactus_subtitle', 'priority' => 2, )); } add_action( 'customize_register', 'zerif_customize_register' ); /** * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. */ function zerif_customize_preview_js() { wp_enqueue_script( 'zerif_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20130508', true ); } add_action( 'customize_preview_init', 'zerif_customize_preview_js' ); function zerif_sanitize_text( $input ) { return wp_kses_post( force_balance_tags( $input ) ); } function zerif_sanitize_number( $input ) { return force_balance_tags( $input ); } function zerif_registers() { wp_register_script( 'zerif_jquery_ui', '//code.jquery.com/ui/1.10.4/jquery-ui.js', array("jquery"), '20120206', true ); wp_enqueue_script( 'zerif_jquery_ui' ); wp_register_style( 'zerif_jquery_ui_css', '//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css'); wp_enqueue_style( 'zerif_jquery_ui_css' ); wp_register_script( 'zerif_customizer_script', get_template_directory_uri() . '/js/zerif_customizer.js', array("jquery","zerif_jquery_ui"), '20120206', true ); wp_enqueue_script( 'zerif_customizer_script' ); } add_action( 'customize_controls_enqueue_scripts', 'zerif_registers' ); \ No newline at end of file diff --git a/inc/extras.php b/inc/extras.php new file mode 100644 index 0000000..bd413e1 --- /dev/null +++ b/inc/extras.php @@ -0,0 +1 @@ + tag based on what is being viewed. * * @param string $title Default title text for current view. * @param string $sep Optional separator. * @return string The filtered title. */ function zerif_wp_title( $title, $sep ) { if ( is_feed() ) { return $title; } global $page, $paged; // Add the blog name $title .= get_bloginfo( 'name', 'display' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) { $title .= " $sep $site_description"; } // Add a page number if necessary: if ( $paged >= 2 || $page >= 2 ) { $title .= " $sep " . sprintf( __( 'Page %s', 'zerif-lite' ), max( $paged, $page ) ); } return $title; } add_filter( 'wp_title', 'zerif_wp_title', 10, 2 ); /** * Sets the authordata global when viewing an author archive. * * This provides backwards compatibility with * http://core.trac.wordpress.org/changeset/25574 * * It removes the need to call the_post() and rewind_posts() in an author * template to print information about the author. * * @global WP_Query $wp_query WordPress Query object. * @return void */ function zerif_setup_author() { global $wp_query; if ( $wp_query->is_author() && isset( $wp_query->post ) ) { $GLOBALS['authordata'] = get_userdata( $wp_query->post->post_author ); } } add_action( 'wp', 'zerif_setup_author' ); \ No newline at end of file diff --git a/inc/jetpack.php b/inc/jetpack.php new file mode 100644 index 0000000..89905fb --- /dev/null +++ b/inc/jetpack.php @@ -0,0 +1 @@ + 'main', 'footer' => 'page', ) ); } add_action( 'after_setup_theme', 'zerif_jetpack_setup' ); \ No newline at end of file diff --git a/inc/template-tags.php b/inc/template-tags.php new file mode 100644 index 0000000..6cfbdb4 --- /dev/null +++ b/inc/template-tags.php @@ -0,0 +1,260 @@ +
'; + + ?> + + + + post_parent ) : get_adjacent_post( false, '', true ); + + $next = get_adjacent_post( false, '', false ); + + + + if ( ! $next && ! $previous ) { + + return; + + } + + ?> + + + + %2$s'; + + if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { + + $time_string .= ''; + + } + + + + $time_string = sprintf( $time_string, + + esc_attr( get_the_date( 'c' ) ), + + esc_html( get_the_date() ), + + esc_attr( get_the_modified_date( 'c' ) ), + + esc_html( get_the_modified_date() ) + + ); + + + + printf( __( 'Posted on %1$s by %2$s', 'zerif-lite' ), + + sprintf( '%2$s', + + esc_url( get_permalink() ), + + $time_string + + ), + + sprintf( '%2$s', + + esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), + + esc_html( get_the_author() ) + + ) + + ); + +} + +endif; + + + +/** + + * Returns true if a blog has more than 1 category. + + * + + * @return bool + + */ + +function zerif_categorized_blog() { + + if ( false === ( $all_the_cool_cats = get_transient( 'zerif_categories' ) ) ) { + + // Create an array of all the categories that are attached to posts. + + $all_the_cool_cats = get_categories( array( + + 'fields' => 'ids', + + 'hide_empty' => 1, + + + + // We only need to know if there is more than one category. + + 'number' => 2, + + ) ); + + + + // Count the number of categories that are attached to the posts. + + $all_the_cool_cats = count( $all_the_cool_cats ); + + + + set_transient( 'zerif_categories', $all_the_cool_cats ); + + } + + + + if ( $all_the_cool_cats > 1 ) { + + // This blog has more than 1 category so zerif_categorized_blog should return true. + + return true; + + } else { + + // This blog has only 1 category so zerif_categorized_blog should return false. + + return false; + + } + +} + + + +/** + + * Flush out the transients used in zerif_categorized_blog. + + */ + +function zerif_category_transient_flusher() { + + // Like, beat it. Dig? + + delete_transient( 'zerif_categories' ); + +} + +add_action( 'edit_category', 'zerif_category_transient_flusher' ); + +add_action( 'save_post', 'zerif_category_transient_flusher' ); + diff --git a/index.php b/index.php new file mode 100644 index 0000000..85c8b28 --- /dev/null +++ b/index.php @@ -0,0 +1,60 @@ + +
+ + +
+
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + +
+
+ +
+ + + +
+ + \ No newline at end of file diff --git a/js/bootstrap.min.js b/js/bootstrap.min.js new file mode 100644 index 0000000..e84649d --- /dev/null +++ b/js/bootstrap.min.js @@ -0,0 +1,6 @@ +/*! + * Bootstrap v3.1.1 (http://getbootstrap.com) + * Copyright 2011-2014 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + */ +if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one(a.support.transition.end,function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b()})}(jQuery),+function(a){"use strict";var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.prototype.close=function(b){function c(){f.trigger("closed.bs.alert").remove()}var d=a(this),e=d.attr("data-target");e||(e=d.attr("href"),e=e&&e.replace(/.*(?=#[^\s]*$)/,""));var f=a(e);b&&b.preventDefault(),f.length||(f=d.hasClass("alert")?d:d.parent()),f.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one(a.support.transition.end,c).emulateTransitionEnd(150):c())};var d=a.fn.alert;a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("bs.alert");e||d.data("bs.alert",e=new c(this)),"string"==typeof b&&e[b].call(d)})},a.fn.alert.Constructor=c,a.fn.alert.noConflict=function(){return a.fn.alert=d,this},a(document).on("click.bs.alert.data-api",b,c.prototype.close)}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.isLoading=!1};b.DEFAULTS={loadingText:"loading..."},b.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",f.resetText||d.data("resetText",d[e]()),d[e](f[b]||this.options[b]),setTimeout(a.proxy(function(){"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},b.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")&&(c.prop("checked")&&this.$element.hasClass("active")?a=!1:b.find(".active").removeClass("active")),a&&c.prop("checked",!this.$element.hasClass("active")).trigger("change")}a&&this.$element.toggleClass("active")};var c=a.fn.button;a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof c&&c;e||d.data("bs.button",e=new b(this,f)),"toggle"==c?e.toggle():c&&e.setState(c)})},a.fn.button.Constructor=b,a.fn.button.noConflict=function(){return a.fn.button=c,this},a(document).on("click.bs.button.data-api","[data-toggle^=button]",function(b){var c=a(b.target);c.hasClass("btn")||(c=c.closest(".btn")),c.button("toggle"),b.preventDefault()})}(jQuery),+function(a){"use strict";var b=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",a.proxy(this.pause,this)).on("mouseleave",a.proxy(this.cycle,this))};b.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},b.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},b.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},b.prototype.to=function(b){var c=this,d=this.getActiveIndex();return b>this.$items.length-1||0>b?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){c.to(b)}):d==b?this.pause().cycle():this.slide(b>d?"next":"prev",a(this.$items[b]))},b.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},b.prototype.next=function(){return this.sliding?void 0:this.slide("next")},b.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},b.prototype.slide=function(b,c){var d=this.$element.find(".item.active"),e=c||d[b](),f=this.interval,g="next"==b?"left":"right",h="next"==b?"first":"last",i=this;if(!e.length){if(!this.options.wrap)return;e=this.$element.find(".item")[h]()}if(e.hasClass("active"))return this.sliding=!1;var j=a.Event("slide.bs.carousel",{relatedTarget:e[0],direction:g});return this.$element.trigger(j),j.isDefaultPrevented()?void 0:(this.sliding=!0,f&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid.bs.carousel",function(){var b=a(i.$indicators.children()[i.getActiveIndex()]);b&&b.addClass("active")})),a.support.transition&&this.$element.hasClass("slide")?(e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),d.one(a.support.transition.end,function(){e.removeClass([b,g].join(" ")).addClass("active"),d.removeClass(["active",g].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(1e3*d.css("transition-duration").slice(0,-1))):(d.removeClass("active"),e.addClass("active"),this.sliding=!1,this.$element.trigger("slid.bs.carousel")),f&&this.cycle(),this)};var c=a.fn.carousel;a.fn.carousel=function(c){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c),g="string"==typeof c?c:f.slide;e||d.data("bs.carousel",e=new b(this,f)),"number"==typeof c?e.to(c):g?e[g]():f.interval&&e.pause().cycle()})},a.fn.carousel.Constructor=b,a.fn.carousel.noConflict=function(){return a.fn.carousel=c,this},a(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(b){var c,d=a(this),e=a(d.attr("data-target")||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"")),f=a.extend({},e.data(),d.data()),g=d.attr("data-slide-to");g&&(f.interval=!1),e.carousel(f),(g=d.attr("data-slide-to"))&&e.data("bs.carousel").to(g),b.preventDefault()}),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var b=a(this);b.carousel(b.data())})})}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.DEFAULTS={toggle:!0},b.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},b.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b=a.Event("show.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.$parent&&this.$parent.find("> .panel > .in");if(c&&c.length){var d=c.data("bs.collapse");if(d&&d.transitioning)return;c.collapse("hide"),d||c.data("bs.collapse",null)}var e=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[e](0),this.transitioning=1;var f=function(){this.$element.removeClass("collapsing").addClass("collapse in")[e]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return f.call(this);var g=a.camelCase(["scroll",e].join("-"));this.$element.one(a.support.transition.end,a.proxy(f,this)).emulateTransitionEnd(350)[e](this.$element[0][g])}}},b.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return a.support.transition?void this.$element[c](0).one(a.support.transition.end,a.proxy(d,this)).emulateTransitionEnd(350):d.call(this)}}},b.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var c=a.fn.collapse;a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("bs.collapse"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c);!e&&f.toggle&&"show"==c&&(c=!c),e||d.data("bs.collapse",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.collapse.Constructor=b,a.fn.collapse.noConflict=function(){return a.fn.collapse=c,this},a(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(b){var c,d=a(this),e=d.attr("data-target")||b.preventDefault()||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,""),f=a(e),g=f.data("bs.collapse"),h=g?"toggle":d.data(),i=d.attr("data-parent"),j=i&&a(i);g&&g.transitioning||(j&&j.find('[data-toggle=collapse][data-parent="'+i+'"]').not(d).addClass("collapsed"),d[f.hasClass("in")?"addClass":"removeClass"]("collapsed")),f.collapse(h)})}(jQuery),+function(a){"use strict";function b(b){a(d).remove(),a(e).each(function(){var d=c(a(this)),e={relatedTarget:this};d.hasClass("open")&&(d.trigger(b=a.Event("hide.bs.dropdown",e)),b.isDefaultPrevented()||d.removeClass("open").trigger("hidden.bs.dropdown",e))})}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}var d=".dropdown-backdrop",e="[data-toggle=dropdown]",f=function(b){a(b).on("click.bs.dropdown",this.toggle)};f.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(''}),b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),b.prototype.constructor=b,b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content")[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},b.prototype.hasContent=function(){return this.getTitle()||this.getContent()},b.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},b.prototype.tip=function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip};var c=a.fn.popover;a.fn.popover=function(c){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof c&&c;(e||"destroy"!=c)&&(e||d.data("bs.popover",e=new b(this,f)),"string"==typeof c&&e[c]())})},a.fn.popover.Constructor=b,a.fn.popover.noConflict=function(){return a.fn.popover=c,this}}(jQuery),+function(a){"use strict";function b(c,d){var e,f=a.proxy(this.process,this);this.$element=a(a(c).is("body")?window:c),this.$body=a("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",f),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||(e=a(c).attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=a([]),this.targets=a([]),this.activeTarget=null,this.refresh(),this.process()}b.DEFAULTS={offset:10},b.prototype.refresh=function(){var b=this.$element[0]==window?"offset":"position";this.offsets=a([]),this.targets=a([]);{var c=this;this.$body.find(this.selector).map(function(){var d=a(this),e=d.data("target")||d.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[b]().top+(!a.isWindow(c.$scrollElement.get(0))&&c.$scrollElement.scrollTop()),e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){c.offsets.push(this[0]),c.targets.push(this[1])})}},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,d=c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(b>=d)return g!=(a=f.last()[0])&&this.activate(a);if(g&&b<=e[0])return g!=(a=f[0])&&this.activate(a);for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(!e[a+1]||b<=e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,a(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")};var c=a.fn.scrollspy;a.fn.scrollspy=function(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=c,this},a(window).on("load",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);b.scrollspy(b.data())})})}(jQuery),+function(a){"use strict";var b=function(b){this.element=a(b)};b.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a")[0],f=a.Event("show.bs.tab",{relatedTarget:e});if(b.trigger(f),!f.isDefaultPrevented()){var g=a(d);this.activate(b.parent("li"),c),this.activate(g,g.parent(),function(){b.trigger({type:"shown.bs.tab",relatedTarget:e})})}}},b.prototype.activate=function(b,c,d){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),b.addClass("active"),g?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active"),d&&d()}var f=c.find("> .active"),g=d&&a.support.transition&&f.hasClass("fade");g?f.one(a.support.transition.end,e).emulateTransitionEnd(150):e(),f.removeClass("in")};var c=a.fn.tab;a.fn.tab=function(c){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new b(this)),"string"==typeof c&&e[c]()})},a.fn.tab.Constructor=b,a.fn.tab.noConflict=function(){return a.fn.tab=c,this},a(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(b){b.preventDefault(),a(this).tab("show")})}(jQuery),+function(a){"use strict";var b=function(c,d){this.options=a.extend({},b.DEFAULTS,d),this.$window=a(window).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(c),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};b.RESET="affix affix-top affix-bottom",b.DEFAULTS={offset:0},b.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(b.RESET).addClass("affix");var a=this.$window.scrollTop(),c=this.$element.offset();return this.pinnedOffset=c.top-a},b.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},b.prototype.checkPosition=function(){if(this.$element.is(":visible")){var c=a(document).height(),d=this.$window.scrollTop(),e=this.$element.offset(),f=this.options.offset,g=f.top,h=f.bottom;"top"==this.affixed&&(e.top+=d),"object"!=typeof f&&(h=g=f),"function"==typeof g&&(g=f.top(this.$element)),"function"==typeof h&&(h=f.bottom(this.$element));var i=null!=this.unpin&&d+this.unpin<=e.top?!1:null!=h&&e.top+this.$element.height()>=c-h?"bottom":null!=g&&g>=d?"top":!1;if(this.affixed!==i){this.unpin&&this.$element.css("top","");var j="affix"+(i?"-"+i:""),k=a.Event(j+".bs.affix");this.$element.trigger(k),k.isDefaultPrevented()||(this.affixed=i,this.unpin="bottom"==i?this.getPinnedOffset():null,this.$element.removeClass(b.RESET).addClass(j).trigger(a.Event(j.replace("affix","affixed"))),"bottom"==i&&this.$element.offset({top:c-h-this.$element.height()}))}}};var c=a.fn.affix;a.fn.affix=function(c){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof c&&c;e||d.data("bs.affix",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.affix.Constructor=b,a.fn.affix.noConflict=function(){return a.fn.affix=c,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var b=a(this),c=b.data();c.offset=c.offset||{},c.offsetBottom&&(c.offset.bottom=c.offsetBottom),c.offsetTop&&(c.offset.top=c.offsetTop),b.affix(c)})})}(jQuery); \ No newline at end of file diff --git a/js/customizer.js b/js/customizer.js new file mode 100644 index 0000000..a18cdc1 --- /dev/null +++ b/js/customizer.js @@ -0,0 +1,41 @@ +/** + * Theme Customizer enhancements for a better user experience. + * + * Contains handlers to make Theme Customizer preview reload changes asynchronously. + */ + +( function( $ ) { + // Site title and description. + wp.customize( 'blogname', function( value ) { + value.bind( function( to ) { + $( '.site-title a' ).text( to ); + } ); + } ); + wp.customize( 'blogdescription', function( value ) { + value.bind( function( to ) { + $( '.site-description' ).text( to ); + } ); + } ); + // Header text color. + wp.customize( 'header_textcolor', function( value ) { + value.bind( function( to ) { + if ( 'blank' === to ) { + $( '.site-title, .site-description' ).css( { + 'clip': 'rect(1px, 1px, 1px, 1px)', + 'position': 'absolute' + } ); + } else { + $( '.site-title, .site-description' ).css( { + 'clip': 'auto', + 'color': to, + 'position': 'relative' + } ); + } + } ); + } ); + + + + + +} )( jQuery ); diff --git a/js/customizer_button.js b/js/customizer_button.js new file mode 100644 index 0000000..e69de29 diff --git a/js/jquery.knob.js b/js/jquery.knob.js new file mode 100644 index 0000000..a5d2d8d --- /dev/null +++ b/js/jquery.knob.js @@ -0,0 +1,764 @@ +/*!jQuery Knob*/ +/** + * Downward compatible, touchable dial + * + * Version: 1.2.0 (15/07/2012) + * Requires: jQuery v1.7+ + * + * Copyright (c) 2012 Anthony Terrien + * Under MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + * + * Thanks to vor, eskimoblood, spiffistan, FabrizioC + */ +(function($) { + + /** + * Kontrol library + */ + "use strict"; + + /** + * Definition of globals and core + */ + var k = {}, // kontrol + max = Math.max, + min = Math.min; + + k.c = {}; + k.c.d = $(document); + k.c.t = function (e) { + return e.originalEvent.touches.length - 1; + }; + + /** + * Kontrol Object + * + * Definition of an abstract UI control + * + * Each concrete component must call this one. + * + * k.o.call(this); + * + */ + k.o = function () { + var s = this; + + this.o = null; // array of options + this.$ = null; // jQuery wrapped element + this.i = null; // mixed HTMLInputElement or array of HTMLInputElement + this.g = null; // deprecated 2D graphics context for 'pre-rendering' + this.v = null; // value ; mixed array or integer + this.cv = null; // change value ; not commited value + this.x = 0; // canvas x position + this.y = 0; // canvas y position + this.w = 0; // canvas width + this.h = 0; // canvas height + this.$c = null; // jQuery canvas element + this.c = null; // rendered canvas context + this.t = 0; // touches index + this.isInit = false; + this.fgColor = null; // main color + this.pColor = null; // previous color + this.dH = null; // draw hook + this.cH = null; // change hook + this.eH = null; // cancel hook + this.rH = null; // release hook + this.scale = 1; // scale factor + this.relative = false; + this.relativeWidth = false; + this.relativeHeight = false; + this.$div = null; // component div + + this.run = function () { + var cf = function (e, conf) { + var k; + for (k in conf) { + s.o[k] = conf[k]; + } + s.init(); + s._configure() + ._draw(); + }; + + if(this.$.data('kontroled')) return; + this.$.data('kontroled', true); + + this.extend(); + this.o = $.extend( + { + // Config + min : this.$.data('min') || 0, + max : this.$.data('max') || 100, + stopper : true, + readOnly : this.$.data('readonly') || (this.$.attr('readonly') == 'readonly'), + + // UI + cursor : (this.$.data('cursor') === true && 30) + || this.$.data('cursor') + || 0, + thickness : ( + this.$.data('thickness') + && Math.max(Math.min(this.$.data('thickness'), 1), 0.01) + ) + || 0.35, + lineCap : this.$.data('linecap') || 'butt', + width : this.$.data('width') || 200, + height : this.$.data('height') || 200, + displayInput : this.$.data('displayinput') == null || this.$.data('displayinput'), + displayPrevious : this.$.data('displayprevious'), + fgColor : this.$.data('fgcolor') || '#87CEEB', + inputColor: this.$.data('inputcolor'), + font: this.$.data('font') || 'Arial', + fontWeight: this.$.data('font-weight') || 'bold', + inline : false, + step : this.$.data('step') || 1, + + // Hooks + draw : null, // function () {} + change : null, // function (value) {} + cancel : null, // function () {} + release : null, // function (value) {} + error : null // function () {} + }, this.o + ); + + // finalize options + if(!this.o.inputColor) { + this.o.inputColor = this.o.fgColor; + } + + // routing value + if(this.$.is('fieldset')) { + + // fieldset = array of integer + this.v = {}; + this.i = this.$.find('input') + this.i.each(function(k) { + var $this = $(this); + s.i[k] = $this; + s.v[k] = $this.val(); + + $this.bind( + 'change keyup' + , function () { + var val = {}; + val[k] = $this.val(); + s.val(val); + } + ); + }); + this.$.find('legend').remove(); + + } else { + + // input = integer + this.i = this.$; + this.v = this.$.val(); + (this.v == '') && (this.v = this.o.min); + + this.$.bind( + 'change keyup' + , function () { + s.val(s._validate(s.$.val())); + } + ); + + } + + (!this.o.displayInput) && this.$.hide(); + + // adds needed DOM elements (canvas, div) + this.$c = $(document.createElement('canvas')); + if (typeof G_vmlCanvasManager !== 'undefined') { + G_vmlCanvasManager.initElement(this.$c[0]); + } + this.c = this.$c[0].getContext ? this.$c[0].getContext('2d') : null; + if (!this.c) { + this.o.error && this.o.error(); + return; + } + + // hdpi support + this.scale = (window.devicePixelRatio || 1) / + ( + this.c.webkitBackingStorePixelRatio || + this.c.mozBackingStorePixelRatio || + this.c.msBackingStorePixelRatio || + this.c.oBackingStorePixelRatio || + this.c.backingStorePixelRatio || 1 + ); + + // detects relative width / height + this.relativeWidth = ((this.o.width % 1 !== 0) + && this.o.width.indexOf('%')); + this.relativeHeight = ((this.o.height % 1 !== 0) + && this.o.height.indexOf('%')); + + this.relative = (this.relativeWidth || this.relativeHeight); + + // wraps all elements in a div + this.$div = $('
'); + + this.$.wrap(this.$div).before(this.$c); + this.$div = this.$.parent(); + + // computes size and carves the component + this._carve(); + + // prepares props for transaction + if (this.v instanceof Object) { + this.cv = {}; + this.copy(this.v, this.cv); + } else { + this.cv = this.v; + } + + // binds configure event + this.$ + .bind("configure", cf) + .parent() + .bind("configure", cf); + + // finalize init + this._listen() + ._configure() + ._xy() + .init(); + + this.isInit = true; + + // the most important ! + this._draw(); + + return this; + }; + + this._carve = function() { + if(this.relative) { + var w = this.relativeWidth + ? this.$div.parent().width() + * parseInt(this.o.width) / 100 + : this.$div.parent().width(), + h = this.relativeHeight + ? this.$div.parent().height() + * parseInt(this.o.height) / 100 + : this.$div.parent().height(); + + // apply relative + this.w = this.h = Math.min(w, h); + } else { + this.w = this.o.width; + this.h = this.o.height; + } + + // finalize div + this.$div.css({ + 'width': this.w + 'px', + 'height': this.h + 'px' + }); + + // finalize canvas with computed width + this.$c.attr({ + width: this.w, + height: this.h + }); + + // scaling + if (this.scale !== 1) { + this.$c[0].width = this.$c[0].width * this.scale; + this.$c[0].height = this.$c[0].height * this.scale; + this.$c.width(this.w); + this.$c.height(this.h); + } + + return this; + } + + this._draw = function () { + + // canvas pre-rendering + var d = true; + + s.g = s.c; + + s.clear(); + + s.dH + && (d = s.dH()); + + (d !== false) && s.draw(); + + }; + + this._touch = function (e) { + + var touchMove = function (e) { + + var v = s.xy2val( + e.originalEvent.touches[s.t].pageX, + e.originalEvent.touches[s.t].pageY + ); + s.change(s._validate(v)); + s._draw(); + }; + + // get touches index + this.t = k.c.t(e); + + // First touch + touchMove(e); + + // Touch events listeners + k.c.d + .bind("touchmove.k", touchMove) + .bind( + "touchend.k" + , function () { + k.c.d.unbind('touchmove.k touchend.k'); + + if ( + s.rH + && (s.rH(s.cv) === false) + ) return; + + s.val(s.cv); + } + ); + + return this; + }; + + this._mouse = function (e) { + + var mouseMove = function (e) { + var v = s.xy2val(e.pageX, e.pageY); + s.change(s._validate(v)); + s._draw(); + }; + + // First click + mouseMove(e); + + // Mouse events listeners + k.c.d + .bind("mousemove.k", mouseMove) + .bind( + // Escape key cancel current change + "keyup.k" + , function (e) { + if (e.keyCode === 27) { + k.c.d.unbind("mouseup.k mousemove.k keyup.k"); + + if ( + s.eH + && (s.eH() === false) + ) return; + + s.cancel(); + } + } + ) + .bind( + "mouseup.k" + , function (e) { + k.c.d.unbind('mousemove.k mouseup.k keyup.k'); + + if ( + s.rH + && (s.rH(s.cv) === false) + ) return; + + s.val(s.cv); + } + ); + + return this; + }; + + this._xy = function () { + var o = this.$c.offset(); + this.x = o.left; + this.y = o.top; + return this; + }; + + this._listen = function () { + + if (!this.o.readOnly) { + this.$c + .bind( + "mousedown" + , function (e) { + e.preventDefault(); + s._xy()._mouse(e); + } + ) + .bind( + "touchstart" + , function (e) { + e.preventDefault(); + s._xy()._touch(e); + } + ); + + this.listen(); + } else { + this.$.attr('readonly', 'readonly'); + } + + if(this.relative) { + $(window).resize(function() { + s._carve() + .init(); + s._draw(); + }); + } + + return this; + }; + + this._configure = function () { + + // Hooks + if (this.o.draw) this.dH = this.o.draw; + if (this.o.change) this.cH = this.o.change; + if (this.o.cancel) this.eH = this.o.cancel; + if (this.o.release) this.rH = this.o.release; + + if (this.o.displayPrevious) { + this.pColor = this.h2rgba(this.o.fgColor, "0.4"); + this.fgColor = this.h2rgba(this.o.fgColor, "0.6"); + } else { + this.fgColor = this.o.fgColor; + } + + return this; + }; + + this._clear = function () { + this.$c[0].width = this.$c[0].width; + }; + + this._validate = function(v) { + return (~~ (((v < 0) ? -0.5 : 0.5) + (v/this.o.step))) * this.o.step; + }; + + // Abstract methods + this.listen = function () {}; // on start, one time + this.extend = function () {}; // each time configure triggered + this.init = function () {}; // each time configure triggered + this.change = function (v) {}; // on change + this.val = function (v) {}; // on release + this.xy2val = function (x, y) {}; // + this.draw = function () {}; // on change / on release + this.clear = function () { this._clear(); }; + + // Utils + this.h2rgba = function (h, a) { + var rgb; + h = h.substring(1,7) + rgb = [parseInt(h.substring(0,2),16) + ,parseInt(h.substring(2,4),16) + ,parseInt(h.substring(4,6),16)]; + return "rgba(" + rgb[0] + "," + rgb[1] + "," + rgb[2] + "," + a + ")"; + }; + + this.copy = function (f, t) { + for (var i in f) { t[i] = f[i]; } + }; + }; + + + /** + * k.Dial + */ + k.Dial = function () { + k.o.call(this); + + this.startAngle = null; + this.xy = null; + this.radius = null; + this.lineWidth = null; + this.cursorExt = null; + this.w2 = null; + this.PI2 = 2*Math.PI; + + this.extend = function () { + this.o = $.extend( + { + bgColor : this.$.data('bgcolor') || '#EEEEEE', + angleOffset : this.$.data('angleoffset') || 0, + angleArc : this.$.data('anglearc') || 360, + inline : true + }, this.o + ); + }; + + this.val = function (v) { + if (null != v) { + this.cv = this.o.stopper ? max(min(v, this.o.max), this.o.min) : v; + this.v = this.cv; + this.$.val(this.v); + this._draw(); + } else { + return this.v; + } + }; + + this.xy2val = function (x, y) { + var a, ret; + + a = Math.atan2( + x - (this.x + this.w2) + , - (y - this.y - this.w2) + ) - this.angleOffset; + + if(this.angleArc != this.PI2 && (a < 0) && (a > -0.5)) { + // if isset angleArc option, set to min if .5 under min + a = 0; + } else if (a < 0) { + a += this.PI2; + } + + ret = ~~ (0.5 + (a * (this.o.max - this.o.min) / this.angleArc)) + + this.o.min; + + this.o.stopper + && (ret = max(min(ret, this.o.max), this.o.min)); + + return ret; + }; + + this.listen = function () { + // bind MouseWheel + var s = this, mwTimerStop, mwTimerRelease, + mw = function (e) { + e.preventDefault(); + + var ori = e.originalEvent + ,deltaX = ori.detail || ori.wheelDeltaX + ,deltaY = ori.detail || ori.wheelDeltaY + ,v = s._validate(s.$.val()) + + (deltaX>0 || deltaY>0 ? s.o.step : deltaX<0 || deltaY<0 ? -s.o.step : 0); + + v = max(min(v, s.o.max), s.o.min); + + s.val(v); + + if(s.rH) { + // Handle mousewheel stop + clearTimeout(mwTimerStop); + mwTimerStop = setTimeout(function() { + s.rH(v); + mwTimerStop = null; + }, 100); + + // Handle mousewheel releases + if(!mwTimerRelease) { + mwTimerRelease = setTimeout(function() { + if(mwTimerStop) s.rH(v); + mwTimerRelease = null; + }, 200); + } + } + } + , kval, to, m = 1, kv = {37:-s.o.step, 38:s.o.step, 39:s.o.step, 40:-s.o.step}; + + this.$ + .bind( + "keydown" + ,function (e) { + var kc = e.keyCode; + + // numpad support + if(kc >= 96 && kc <= 105) { + kc = e.keyCode = kc - 48; + } + + kval = parseInt(String.fromCharCode(kc)); + + if (isNaN(kval)) { + + (kc !== 13) // enter + && (kc !== 8) // bs + && (kc !== 9) // tab + && (kc !== 189) // - + && e.preventDefault(); + + // arrows + if ($.inArray(kc,[37,38,39,40]) > -1) { + e.preventDefault(); + + var v = parseInt(s.$.val()) + kv[kc] * m; + + s.o.stopper + && (v = max(min(v, s.o.max), s.o.min)); + + s.change(v); + s._draw(); + + // long time keydown speed-up + to = window.setTimeout( + function () { m*=2; } + ,30 + ); + } + } + } + ) + .bind( + "keyup" + ,function (e) { + if (isNaN(kval)) { + if (to) { + window.clearTimeout(to); + to = null; + m = 1; + s.val(s.$.val()); + } + } else { + // kval postcond + (s.$.val() > s.o.max && s.$.val(s.o.max)) + || (s.$.val() < s.o.min && s.$.val(s.o.min)); + } + + } + ); + + this.$c.bind("mousewheel DOMMouseScroll", mw); + this.$.bind("mousewheel DOMMouseScroll", mw) + }; + + this.init = function () { + + if ( + this.v < this.o.min + || this.v > this.o.max + ) this.v = this.o.min; + + this.$.val(this.v); + this.w2 = this.w / 2; + this.cursorExt = this.o.cursor / 100; + this.xy = this.w2 * this.scale; + this.lineWidth = this.xy * this.o.thickness; + this.lineCap = this.o.lineCap; + this.radius = this.xy - this.lineWidth / 2; + + this.o.angleOffset + && (this.o.angleOffset = isNaN(this.o.angleOffset) ? 0 : this.o.angleOffset); + + this.o.angleArc + && (this.o.angleArc = isNaN(this.o.angleArc) ? this.PI2 : this.o.angleArc); + + // deg to rad + this.angleOffset = this.o.angleOffset * Math.PI / 180; + this.angleArc = this.o.angleArc * Math.PI / 180; + + // compute start and end angles + this.startAngle = 1.5 * Math.PI + this.angleOffset; + this.endAngle = 1.5 * Math.PI + this.angleOffset + this.angleArc; + + var s = max( + String(Math.abs(this.o.max)).length + , String(Math.abs(this.o.min)).length + , 2 + ) + 2; + + this.o.displayInput + && this.i.css({ + 'width' : ((this.w / 2 + 4) >> 0) + 'px' + ,'height' : ((this.w / 3) >> 0) + 'px' + ,'position' : 'absolute' + ,'vertical-align' : 'middle' + ,'margin-top' : ((this.w / 3) >> 0) + 'px' + ,'margin-left' : '-' + ((this.w * 3 / 4 + 2) >> 0) + 'px' + ,'border' : 0 + ,'background' : 'none' + ,'font' : this.o.fontWeight + ' ' + ((this.w / s) >> 0) + 'px ' + this.o.font + ,'text-align' : 'center' + ,'color' : this.o.inputColor || this.o.fgColor + ,'padding' : '0px' + ,'-webkit-appearance': 'none' + }) + || this.i.css({ + 'width' : '0px' + ,'visibility' : 'hidden' + }); + }; + + this.change = function (v) { + if (v == this.cv) return; + this.cv = v; + if ( + this.cH + && (this.cH(v) === false) + ) return; + }; + + this.angle = function (v) { + return (v - this.o.min) * this.angleArc / (this.o.max - this.o.min); + }; + + this.draw = function () { + + var c = this.g, // context + a = this.angle(this.cv) // Angle + , sat = this.startAngle // Start angle + , eat = sat + a // End angle + , sa, ea // Previous angles + , r = 1; + + c.lineWidth = this.lineWidth; + + c.lineCap = this.lineCap; + + this.o.cursor + && (sat = eat - this.cursorExt) + && (eat = eat + this.cursorExt); + + c.beginPath(); + c.strokeStyle = this.o.bgColor; + c.arc(this.xy, this.xy, this.radius, this.endAngle - 0.00001, this.startAngle + 0.00001, true); + c.stroke(); + + if (this.o.displayPrevious) { + ea = this.startAngle + this.angle(this.v); + sa = this.startAngle; + this.o.cursor + && (sa = ea - this.cursorExt) + && (ea = ea + this.cursorExt); + + c.beginPath(); + c.strokeStyle = this.pColor; + c.arc(this.xy, this.xy, this.radius, sa - 0.00001, ea + 0.00001, false); + c.stroke(); + r = (this.cv == this.v); + } + + c.beginPath(); + c.strokeStyle = r ? this.o.fgColor : this.fgColor ; + c.arc(this.xy, this.xy, this.radius, sat - 0.00001, eat + 0.00001, false); + c.stroke(); + }; + + this.cancel = function () { + this.val(this.v); + }; + }; + + $.fn.dial = $.fn.knob = function (o) { + return this.each( + function () { + var d = new k.Dial(); + d.o = o; + d.$ = $(this); + d.run(); + } + ).parent(); + }; + +})(jQuery); diff --git a/js/jquery.nav.js b/js/jquery.nav.js new file mode 100644 index 0000000..2cdf659 --- /dev/null +++ b/js/jquery.nav.js @@ -0,0 +1,223 @@ +/* + * jQuery One Page Nav Plugin + * http://github.com/davist11/jQuery-One-Page-Nav + * + * Copyright (c) 2010 Trevor Davis (http://trevordavis.net) + * Dual licensed under the MIT and GPL licenses. + * Uses the same license as jQuery, see: + * http://jquery.org/license + * + * @version 2.2 + * + * Example usage: + * $('#nav').onePageNav({ + * currentClass: 'current', + * changeHash: false, + * scrollSpeed: 750 + * }); + */ + +;(function($, window, document, undefined){ + + // our plugin constructor + var OnePageNav = function(elem, options){ + this.elem = elem; + this.$elem = $(elem); + this.options = options; + this.metadata = this.$elem.data('plugin-options'); + this.$nav = this.$elem.find('a'); + this.$win = $(window); + this.sections = {}; + this.didScroll = false; + this.$doc = $(document); + this.docHeight = this.$doc.height(); + }; + + // the plugin prototype + OnePageNav.prototype = { + defaults: { + currentClass: 'current', + changeHash: false, + easing: 'swing', + filter: '', + scrollSpeed: 750, + scrollOffset: 0, + scrollThreshold: 0.5, + begin: false, + end: false, + scrollChange: false + }, + + init: function() { + var self = this; + + // Introduce defaults that can be extended either + // globally or using an object literal. + self.config = $.extend({}, self.defaults, self.options, self.metadata); + + //Filter any links out of the nav + if(self.config.filter !== '') { + self.$nav = self.$nav.filter(self.config.filter); + } + + //Handle clicks on the nav + self.$nav.on('click.onePageNav', $.proxy(self.handleClick, self)); + + //Get the section positions + self.getPositions(); + + //Handle scroll changes + self.bindInterval(); + + //Update the positions on resize too + self.$win.on('resize.onePageNav', $.proxy(self.getPositions, self)); + + return this; + }, + + adjustNav: function(self, $parent) { + self.$elem.find('.' + self.config.currentClass).removeClass(self.config.currentClass); + $parent.addClass(self.config.currentClass); + }, + + bindInterval: function() { + var self = this; + var docHeight; + + self.$win.on('scroll.onePageNav', function() { + self.didScroll = true; + }); + + self.t = setInterval(function() { + docHeight = self.$doc.height(); + + //If it was scrolled + if(self.didScroll) { + self.didScroll = false; + self.scrollChange(); + } + + //If the document height changes + if(docHeight !== self.docHeight) { + self.docHeight = docHeight; + self.getPositions(); + } + }, 250); + }, + + getHash: function($link) { + return $link.attr('href').split('#')[1]; + }, + + getPositions: function() { + var self = this; + var linkHref; + var topPos; + var $target; + + self.$nav.each(function() { + linkHref = self.getHash($(this)); + $target = $('#' + linkHref); + + if($target.length) { + topPos = $target.offset().top; + self.sections[linkHref] = Math.round(topPos) - self.config.scrollOffset; + } + }); + }, + + getSection: function(windowPos) { + var returnValue = null; + var windowHeight = Math.round(this.$win.height() * this.config.scrollThreshold); + + for(var section in this.sections) { + if((this.sections[section] - windowHeight) < windowPos) { + returnValue = section; + } + } + + return returnValue; + }, + + handleClick: function(e) { + var self = this; + var $link = $(e.currentTarget); + var $parent = $link.parent(); + var newLoc = '#' + self.getHash($link); + + if(!$parent.hasClass(self.config.currentClass)) { + //Start callback + if(self.config.begin) { + self.config.begin(); + } + + //Change the highlighted nav item + self.adjustNav(self, $parent); + + //Removing the auto-adjust on scroll + self.unbindInterval(); + + //Scroll to the correct position + $.scrollTo(newLoc, self.config.scrollSpeed, { + axis: 'y', + easing: self.config.easing, + offset: { + top: -self.config.scrollOffset + }, + onAfter: function() { + //Do we need to change the hash? + if(self.config.changeHash) { + window.location.hash = newLoc; + } + + //Add the auto-adjust on scroll back in + self.bindInterval(); + + //End callback + if(self.config.end) { + self.config.end(); + } + } + }); + } + + e.preventDefault(); + }, + + scrollChange: function() { + var windowTop = this.$win.scrollTop(); + var position = this.getSection(windowTop); + var $parent; + + //If the position is set + if(position !== null) { + $parent = this.$elem.find('a[href$="#' + position + '"]').parent(); + + //If it's not already the current section + if(!$parent.hasClass(this.config.currentClass)) { + //Change the highlighted nav item + this.adjustNav(this, $parent); + + //If there is a scrollChange callback + if(this.config.scrollChange) { + this.config.scrollChange($parent); + } + } + } + }, + + unbindInterval: function() { + clearInterval(this.t); + this.$win.unbind('scroll.onePageNav'); + } + }; + + OnePageNav.defaults = OnePageNav.prototype.defaults; + + $.fn.onePageNav = function(options) { + return this.each(function() { + new OnePageNav(this, options).init(); + }); + }; + +})( jQuery, window , document ); \ No newline at end of file diff --git a/js/jquery.scrollTo.min.js b/js/jquery.scrollTo.min.js new file mode 100644 index 0000000..87b5890 --- /dev/null +++ b/js/jquery.scrollTo.min.js @@ -0,0 +1,7 @@ +/** + * Copyright (c) 2007-2013 Ariel Flesler - afleslergmailcom | http://flesler.blogspot.com + * Dual licensed under MIT and GPL. + * @author Ariel Flesler + * @version 1.4.6 + */ +;(function($){var h=$.scrollTo=function(a,b,c){$(window).scrollTo(a,b,c)};h.defaults={axis:'xy',duration:parseFloat($.fn.jquery)>=1.3?0:1,limit:true};h.window=function(a){return $(window)._scrollable()};$.fn._scrollable=function(){return this.map(function(){var a=this,isWin=!a.nodeName||$.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!isWin)return a;var b=(a.contentWindow||a).document||a.ownerDocument||a;return/webkit/i.test(navigator.userAgent)||b.compatMode=='BackCompat'?b.body:b.documentElement})};$.fn.scrollTo=function(e,f,g){if(typeof f=='object'){g=f;f=0}if(typeof g=='function')g={onAfter:g};if(e=='max')e=9e9;g=$.extend({},h.defaults,g);f=f||g.duration;g.queue=g.queue&&g.axis.length>1;if(g.queue)f/=2;g.offset=both(g.offset);g.over=both(g.over);return this._scrollable().each(function(){if(e==null)return;var d=this,$elem=$(d),targ=e,toff,attr={},win=$elem.is('html,body');switch(typeof targ){case'number':case'string':if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(targ)){targ=both(targ);break}targ=$(targ,this);if(!targ.length)return;case'object':if(targ.is||targ.style)toff=(targ=$(targ)).offset()}$.each(g.axis.split(''),function(i,a){var b=a=='x'?'Left':'Top',pos=b.toLowerCase(),key='scroll'+b,old=d[key],max=h.max(d,a);if(toff){attr[key]=toff[pos]+(win?0:old-$elem.offset()[pos]);if(g.margin){attr[key]-=parseInt(targ.css('margin'+b))||0;attr[key]-=parseInt(targ.css('border'+b+'Width'))||0}attr[key]+=g.offset[pos]||0;if(g.over[pos])attr[key]+=targ[a=='x'?'width':'height']()*g.over[pos]}else{var c=targ[pos];attr[key]=c.slice&&c.slice(-1)=='%'?parseFloat(c)/100*max:c}if(g.limit&&/^\d+$/.test(attr[key]))attr[key]=attr[key]<=0?0:Math.min(attr[key],max);if(!i&&g.queue){if(old!=attr[key])animate(g.onAfterFirst);delete attr[key]}});animate(g.onAfter);function animate(a){$elem.animate(attr,f,g.easing,a&&function(){a.call(this,targ,g)})}}).end()};h.max=function(a,b){var c=b=='x'?'Width':'Height',scroll='scroll'+c;if(!$(a).is('html,body'))return a[scroll]-$(a)[c.toLowerCase()]();var d='client'+c,html=a.ownerDocument.documentElement,body=a.ownerDocument.body;return Math.max(html[scroll],body[scroll])-Math.min(html[d],body[d])};function both(a){return typeof a=='object'?a:{top:a,left:a}}})(jQuery); diff --git a/js/jquery.vegas.min.js b/js/jquery.vegas.min.js new file mode 100644 index 0000000..ce78fb4 --- /dev/null +++ b/js/jquery.vegas.min.js @@ -0,0 +1,11 @@ + // ---------------------------------------------------------------------------- + // Vegas - Fullscreen Backgrounds and Slideshows with jQuery. + // v1.3.4 - released 2013-12-16 13:28 + // Licensed under the MIT license. + // http://vegas.jaysalvat.com/ + // ---------------------------------------------------------------------------- + // Copyright (C) 2010-2013 Jay Salvat + // http://jaysalvat.com/ + // ---------------------------------------------------------------------------- + +(function(e){function t(a,n){var o={align:"center",valign:"center"};if(e.extend(o,n),0===a.height())return a.load(function(){t(e(this),n)}),void 0;var i,s,g,d=r(),l=d.width,u=d.height,c=a.width(),v=a.height(),p=u/l,f=v/c;p>f?(i=u/f,s=u):(i=l,s=l*f),g={width:i+"px",height:s+"px",top:"auto",bottom:"auto",left:"auto",right:"auto"},isNaN(parseInt(o.valign,10))?"top"==o.valign?g.top=0:"bottom"==o.valign?g.bottom=0:g.top=(u-s)/2:g.top=0-(s-u)/100*parseInt(o.valign,10)+"px",isNaN(parseInt(o.align,10))?"left"==o.align?g.left=0:"right"==o.align?g.right=0:g.left=(l-i)/2:g.left=0-(i-l)/100*parseInt(o.align,10)+"px",a.css(g)}function a(){d.prependTo("body").fadeIn()}function n(){d.fadeOut("fast",function(){e(this).remove()})}function o(){return e("body").css("backgroundImage")?e("body").css("backgroundImage").replace(/url\("?(.*?)"?\)/i,"$1"):void 0}function r(){var e=window,t="inner";return"innerWidth"in window||(e=document.documentElement||document.body,t="client"),{width:e[t+"Width"],height:e[t+"Height"]}}var i,s=e("").addClass("vegas-background"),g=e("
").addClass("vegas-overlay"),d=e("
").addClass("vegas-loading"),l=e(),u=null,c=[],v=0,p=5e3,f=function(){},h={init:function(r){var i={src:o(),align:"center",valign:"center",fade:0,loading:!0,load:function(){},complete:function(){}};e.extend(i,e.vegas.defaults.background,r),i.loading&&a();var g=s.clone();return g.css({position:"fixed",left:"0px",top:"0px"}).bind("load",function(){g!=l&&(e(window).bind("load resize.vegas",function(){t(g,i)}),l.is("img")?(l.stop(),g.hide().insertAfter(l).fadeIn(i.fade,function(){e(".vegas-background").not(this).remove(),e("body").trigger("vegascomplete",[this,v-1]),i.complete.apply(g,[v-1])})):g.hide().prependTo("body").fadeIn(i.fade,function(){e("body").trigger("vegascomplete",[this,v-1]),i.complete.apply(this,[v-1])}),l=g,t(l,i),i.loading&&n(),e("body").trigger("vegasload",[l.get(0),v-1]),i.load.apply(l.get(0),[v-1]),v&&(e("body").trigger("vegaswalk",[l.get(0),v-1]),i.walk.apply(l.get(0),[v-1])))}).attr("src",i.src),e.vegas},destroy:function(t){return t&&"background"!=t||(e(".vegas-background, .vegas-loading").remove(),e(window).unbind("*.vegas"),l=e()),t&&"overlay"!=t||e(".vegas-overlay").remove(),clearInterval(i),e.vegas},overlay:function(t){var a={src:null,opacity:null};return e.extend(a,e.vegas.defaults.overlay,t),g.remove(),g.css({margin:"0",padding:"0",position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),a.src===!1&&g.css("backgroundImage","none"),a.src&&g.css("backgroundImage","url("+a.src+")"),a.opacity&&g.css("opacity",a.opacity),g.prependTo("body"),e.vegas},slideshow:function(t,a){var n={step:v,delay:p,preload:!1,loading:!0,backgrounds:c,walk:f};if(e.extend(n,e.vegas.defaults.slideshow,t),n.backgrounds!=c&&(t.step||(n.step=0),t.walk||(n.walk=function(){}),n.preload&&e.vegas("preload",n.backgrounds)),c=n.backgrounds,p=n.delay,v=n.step,f=n.walk,clearInterval(i),!c.length)return e.vegas;var o=function(){0>v&&(v=c.length-1),(v>=c.length||!c[v-1])&&(v=0);var t=c[v++];t.walk=n.walk,t.loading=n.loading,t.fade===void 0&&(t.fade=n.fade),t.fade>n.delay&&(t.fade=n.delay),e.vegas(t)};return o(),a||(u=!1,e("body").trigger("vegasstart",[l.get(0),v-1])),u||(i=setInterval(o,n.delay)),e.vegas},next:function(){var t=v;return v&&(e.vegas("slideshow",{step:v},!0),e("body").trigger("vegasnext",[l.get(0),v-1,t-1])),e.vegas},previous:function(){var t=v;return v&&(e.vegas("slideshow",{step:v-2},!0),e("body").trigger("vegasprevious",[l.get(0),v-1,t-1])),e.vegas},jump:function(t){var a=v;return v&&(e.vegas("slideshow",{step:t},!0),e("body").trigger("vegasjump",[l.get(0),v-1,a-1])),e.vegas},stop:function(){var t=v;return v=0,u=null,clearInterval(i),e("body").trigger("vegasstop",[l.get(0),t-1]),e.vegas},pause:function(){return u=!0,clearInterval(i),e("body").trigger("vegaspause",[l.get(0),v-1]),e.vegas},get:function(e){return null===e||"background"==e?l.get(0):"overlay"==e?g.get(0):"step"==e?v-1:"paused"==e?u:void 0},preload:function(t){var a=[];for(var n in t)if(t[n].src){var o=document.createElement("img");o.src=t[n].src,a.push(o)}return e.vegas}};e.vegas=function(t){return h[t]?h[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?(e.error("Method "+t+" does not exist"),void 0):h.init.apply(this,arguments)},e.vegas.defaults={background:{},slideshow:{},overlay:{}}})(jQuery); \ No newline at end of file diff --git a/js/navigation.js b/js/navigation.js new file mode 100644 index 0000000..6395d66 --- /dev/null +++ b/js/navigation.js @@ -0,0 +1,34 @@ +/** + * navigation.js + * + * Handles toggling the navigation menu for small screens. + */ +( function() { + var container, button, menu; + + container = document.getElementById( 'site-navigation' ); + if ( ! container ) + return; + + button = container.getElementsByTagName( 'h1' )[0]; + if ( 'undefined' === typeof button ) + return; + + menu = container.getElementsByTagName( 'ul' )[0]; + + // Hide menu toggle button if menu is empty and return early. + if ( 'undefined' === typeof menu ) { + button.style.display = 'none'; + return; + } + + if ( -1 === menu.className.indexOf( 'nav-menu' ) ) + menu.className += ' nav-menu'; + + button.onclick = function() { + if ( -1 !== container.className.indexOf( 'toggled' ) ) + container.className = container.className.replace( ' toggled', '' ); + else + container.className += ' toggled'; + }; +} )(); diff --git a/js/owl.carousel.min.js b/js/owl.carousel.min.js new file mode 100644 index 0000000..98ae16e --- /dev/null +++ b/js/owl.carousel.min.js @@ -0,0 +1 @@ +eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('7(A 3c.3q!=="9"){3c.3q=9(e){9 t(){}t.5S=e;p 5R t}}(9(e,t,n){h r={1N:9(t,n){h r=c;r.$k=e(n);r.6=e.4M({},e.37.2B.6,r.$k.v(),t);r.2A=t;r.4L()},4L:9(){9 r(e){h n,r="";7(A t.6.33==="9"){t.6.33.R(c,[e])}l{1A(n 38 e.d){7(e.d.5M(n)){r+=e.d[n].1K}}t.$k.2y(r)}t.3t()}h t=c,n;7(A t.6.2H==="9"){t.6.2H.R(c,[t.$k])}7(A t.6.2O==="2Y"){n=t.6.2O;e.5K(n,r)}l{t.3t()}},3t:9(){h e=c;e.$k.v("d-4I",e.$k.2x("2w")).v("d-4F",e.$k.2x("H"));e.$k.z({2u:0});e.2t=e.6.q;e.4E();e.5v=0;e.1X=14;e.23()},23:9(){h e=c;7(e.$k.25().N===0){p b}e.1M();e.4C();e.$S=e.$k.25();e.E=e.$S.N;e.4B();e.$G=e.$k.17(".d-1K");e.$K=e.$k.17(".d-1p");e.3u="U";e.13=0;e.26=[0];e.m=0;e.4A();e.4z()},4z:9(){h e=c;e.2V();e.2W();e.4t();e.30();e.4r();e.4q();e.2p();e.4o();7(e.6.2o!==b){e.4n(e.6.2o)}7(e.6.O===j){e.6.O=4Q}e.19();e.$k.17(".d-1p").z("4i","4h");7(!e.$k.2m(":3n")){e.3o()}l{e.$k.z("2u",1)}e.5O=b;e.2l();7(A e.6.3s==="9"){e.6.3s.R(c,[e.$k])}},2l:9(){h e=c;7(e.6.1Z===j){e.1Z()}7(e.6.1B===j){e.1B()}e.4g();7(A e.6.3w==="9"){e.6.3w.R(c,[e.$k])}},3x:9(){h e=c;7(A e.6.3B==="9"){e.6.3B.R(c,[e.$k])}e.3o();e.2V();e.2W();e.4f();e.30();e.2l();7(A e.6.3D==="9"){e.6.3D.R(c,[e.$k])}},3F:9(){h e=c;t.1c(9(){e.3x()},0)},3o:9(){h e=c;7(e.$k.2m(":3n")===b){e.$k.z({2u:0});t.18(e.1C);t.18(e.1X)}l{p b}e.1X=t.4d(9(){7(e.$k.2m(":3n")){e.3F();e.$k.4b({2u:1},2M);t.18(e.1X)}},5x)},4B:9(){h e=c;e.$S.5n(\'\').4a(\'\');e.$k.17(".d-1p").4a(\'\');e.1H=e.$k.17(".d-1p-49");e.$k.z("4i","4h")},1M:9(){h e=c,t=e.$k.1I(e.6.1M),n=e.$k.1I(e.6.2i);7(!t){e.$k.I(e.6.1M)}7(!n){e.$k.I(e.6.2i)}},2V:9(){h t=c,n,r;7(t.6.2Z===b){p b}7(t.6.48===j){t.6.q=t.2t=1;t.6.1h=b;t.6.1s=b;t.6.1O=b;t.6.22=b;t.6.1Q=b;t.6.1R=b;p b}n=e(t.6.47).1f();7(n>(t.6.1s[0]||t.2t)){t.6.q=t.2t}7(t.6.1h!==b){t.6.1h.5g(9(e,t){p e[0]-t[0]});1A(r=0;rt.E&&t.6.46===j){t.6.q=t.E}},4r:9(){h n=c,r,i;7(n.6.2Z!==j){p b}i=e(t).1f();n.3d=9(){7(e(t).1f()!==i){7(n.6.O!==b){t.18(n.1C)}t.5d(r);r=t.1c(9(){i=e(t).1f();n.3x()},n.6.45)}};e(t).44(n.3d)},4f:9(){h e=c;e.2g(e.m);7(e.6.O!==b){e.3j()}},43:9(){h t=c,n=0,r=t.E-t.6.q;t.$G.2f(9(i){h s=e(c);s.z({1f:t.M}).v("d-1K",3p(i));7(i%t.6.q===0||i===r){7(!(i>r)){n+=1}}s.v("d-24",n)})},42:9(){h e=c,t=e.$G.N*e.M;e.$K.z({1f:t*2,T:0});e.43()},2W:9(){h e=c;e.40();e.42();e.3Z();e.3v()},40:9(){h e=c;e.M=1F.4O(e.$k.1f()/e.6.q)},3v:9(){h e=c,t=(e.E*e.M-e.6.q*e.M)*-1;7(e.6.q>e.E){e.D=0;t=0;e.3z=0}l{e.D=e.E-e.6.q;e.3z=t}p t},3Y:9(){p 0},3Z:9(){h t=c,n=0,r=0,i,s,o;t.J=[0];t.3E=[];1A(i=0;i\').5m("5l",!t.F.15).5c(t.$k)}7(t.6.1v===j){t.3T()}7(t.6.2a===j){t.3S()}},3S:9(){h t=c,n=e(\'\');t.B.1o(n);t.1u=e("",{"H":"d-1n",2y:t.6.2U[0]||""});t.1q=e("",{"H":"d-U",2y:t.6.2U[1]||""});n.1o(t.1u).1o(t.1q);n.w("2X.B 21.B",\'L[H^="d"]\',9(e){e.1l()});n.w("2n.B 28.B",\'L[H^="d"]\',9(n){n.1l();7(e(c).1I("d-U")){t.U()}l{t.1n()}})},3T:9(){h t=c;t.1k=e(\'\');t.B.1o(t.1k);t.1k.w("2n.B 28.B",".d-1j",9(n){n.1l();7(3p(e(c).v("d-1j"))!==t.m){t.1g(3p(e(c).v("d-1j")),j)}})},3P:9(){h t=c,n,r,i,s,o,u;7(t.6.1v===b){p b}t.1k.2y("");n=0;r=t.E-t.E%t.6.q;1A(s=0;s",{"H":"d-1j"});u=e("<3N>",{4R:t.6.39===j?n:"","H":t.6.39===j?"d-59":""});o.1o(u);o.v("d-1j",r===s?i:s);o.v("d-24",n);t.1k.1o(o)}}t.35()},35:9(){h t=c;7(t.6.1v===b){p b}t.1k.17(".d-1j").2f(9(){7(e(c).v("d-24")===e(t.$G[t.m]).v("d-24")){t.1k.17(".d-1j").Z("2d");e(c).I("2d")}})},3e:9(){h e=c;7(e.6.2a===b){p b}7(e.6.2e===b){7(e.m===0&&e.D===0){e.1u.I("1b");e.1q.I("1b")}l 7(e.m===0&&e.D!==0){e.1u.I("1b");e.1q.Z("1b")}l 7(e.m===e.D){e.1u.Z("1b");e.1q.I("1b")}l 7(e.m!==0&&e.m!==e.D){e.1u.Z("1b");e.1q.Z("1b")}}},30:9(){h e=c;e.3P();e.3e();7(e.B){7(e.6.q>=e.E){e.B.3K()}l{e.B.3J()}}},55:9(){h e=c;7(e.B){e.B.3k()}},U:9(e){h t=c;7(t.1E){p b}t.m+=t.6.12===j?t.6.q:1;7(t.m>t.D+(t.6.12===j?t.6.q-1:0)){7(t.6.2e===j){t.m=0;e="2k"}l{t.m=t.D;p b}}t.1g(t.m,e)},1n:9(e){h t=c;7(t.1E){p b}7(t.6.12===j&&t.m>0&&t.m=i.D){e=i.D}l 7(e<=0){e=0}i.m=i.d.m=e;7(i.6.2o!==b&&r!=="4e"&&i.6.q===1&&i.F.1x===j){i.1t(0);7(i.F.1x===j){i.1L(i.J[e])}l{i.1r(i.J[e],1)}i.2r();i.4l();p b}s=i.J[e];7(i.F.1x===j){i.1T=b;7(n===j){i.1t("1w");t.1c(9(){i.1T=j},i.6.1w)}l 7(n==="2k"){i.1t(i.6.2v);t.1c(9(){i.1T=j},i.6.2v)}l{i.1t("1m");t.1c(9(){i.1T=j},i.6.1m)}i.1L(s)}l{7(n===j){i.1r(s,i.6.1w)}l 7(n==="2k"){i.1r(s,i.6.2v)}l{i.1r(s,i.6.1m)}}i.2r()},2g:9(e){h t=c;7(A t.6.1Y==="9"){t.6.1Y.R(c,[t.$k])}7(e>=t.D||e===-1){e=t.D}l 7(e<=0){e=0}t.1t(0);7(t.F.1x===j){t.1L(t.J[e])}l{t.1r(t.J[e],1)}t.m=t.d.m=e;t.2r()},2r:9(){h e=c;e.26.2D(e.m);e.13=e.d.13=e.26[e.26.N-2];e.26.5f(0);7(e.13!==e.m){e.35();e.3e();e.2l();7(e.6.O!==b){e.3j()}}7(A e.6.3y==="9"&&e.13!==e.m){e.6.3y.R(c,[e.$k])}},X:9(){h e=c;e.3A="X";t.18(e.1C)},3j:9(){h e=c;7(e.3A!=="X"){e.19()}},19:9(){h e=c;e.3A="19";7(e.6.O===b){p b}t.18(e.1C);e.1C=t.4d(9(){e.U(j)},e.6.O)},1t:9(e){h t=c;7(e==="1m"){t.$K.z(t.2z(t.6.1m))}l 7(e==="1w"){t.$K.z(t.2z(t.6.1w))}l 7(A e!=="2Y"){t.$K.z(t.2z(e))}},2z:9(e){p{"-1G-1a":"2C "+e+"1z 2s","-1W-1a":"2C "+e+"1z 2s","-o-1a":"2C "+e+"1z 2s",1a:"2C "+e+"1z 2s"}},3H:9(){p{"-1G-1a":"","-1W-1a":"","-o-1a":"",1a:""}},3I:9(e){p{"-1G-P":"1i("+e+"V, C, C)","-1W-P":"1i("+e+"V, C, C)","-o-P":"1i("+e+"V, C, C)","-1z-P":"1i("+e+"V, C, C)",P:"1i("+e+"V, C,C)"}},1L:9(e){h t=c;t.$K.z(t.3I(e))},3L:9(e){h t=c;t.$K.z({T:e})},1r:9(e,t){h n=c;n.29=b;n.$K.X(j,j).4b({T:e},{54:t||n.6.1m,3M:9(){n.29=j}})},4E:9(){h e=c,r="1i(C, C, C)",i=n.56("L"),s,o,u,a;i.2w.3O=" -1W-P:"+r+"; -1z-P:"+r+"; -o-P:"+r+"; -1G-P:"+r+"; P:"+r;s=/1i\\(C, C, C\\)/g;o=i.2w.3O.5i(s);u=o!==14&&o.N===1;a="5z"38 t||t.5Q.4P;e.F={1x:u,15:a}},4q:9(){h e=c;7(e.6.27!==b||e.6.1U!==b){e.3Q();e.3R()}},4C:9(){h e=c,t=["s","e","x"];e.16={};7(e.6.27===j&&e.6.1U===j){t=["2X.d 21.d","2N.d 3U.d","2n.d 3V.d 28.d"]}l 7(e.6.27===b&&e.6.1U===j){t=["2X.d","2N.d","2n.d 3V.d"]}l 7(e.6.27===j&&e.6.1U===b){t=["21.d","3U.d","28.d"]}e.16.3W=t[0];e.16.2K=t[1];e.16.2J=t[2]},3R:9(){h t=c;t.$k.w("5y.d",9(e){e.1l()});t.$k.w("21.3X",9(t){p e(t.1d).2m("5C, 5E, 5F, 5N")})},3Q:9(){9 s(e){7(e.2b!==W){p{x:e.2b[0].2c,y:e.2b[0].41}}7(e.2b===W){7(e.2c!==W){p{x:e.2c,y:e.41}}7(e.2c===W){p{x:e.52,y:e.53}}}}9 o(t){7(t==="w"){e(n).w(r.16.2K,a);e(n).w(r.16.2J,f)}l 7(t==="Q"){e(n).Q(r.16.2K);e(n).Q(r.16.2J)}}9 u(n){h u=n.3h||n||t.3g,a;7(u.5a===3){p b}7(r.E<=r.6.q){p}7(r.29===b&&!r.6.3f){p b}7(r.1T===b&&!r.6.3f){p b}7(r.6.O!==b){t.18(r.1C)}7(r.F.15!==j&&!r.$K.1I("3b")){r.$K.I("3b")}r.11=0;r.Y=0;e(c).z(r.3H());a=e(c).2h();i.2S=a.T;i.2R=s(u).x-a.T;i.2P=s(u).y-a.5o;o("w");i.2j=b;i.2L=u.1d||u.4c}9 a(o){h u=o.3h||o||t.3g,a,f;r.11=s(u).x-i.2R;r.2I=s(u).y-i.2P;r.Y=r.11-i.2S;7(A r.6.2E==="9"&&i.3C!==j&&r.Y!==0){i.3C=j;r.6.2E.R(r,[r.$k])}7((r.Y>8||r.Y<-8)&&r.F.15===j){7(u.1l!==W){u.1l()}l{u.5L=b}i.2j=j}7((r.2I>10||r.2I<-10)&&i.2j===b){e(n).Q("2N.d")}a=9(){p r.Y/5};f=9(){p r.3z+r.Y/5};r.11=1F.3v(1F.3Y(r.11,a()),f());7(r.F.1x===j){r.1L(r.11)}l{r.3L(r.11)}}9 f(n){h s=n.3h||n||t.3g,u,a,f;s.1d=s.1d||s.4c;i.3C=b;7(r.F.15!==j){r.$K.Z("3b")}7(r.Y<0){r.1y=r.d.1y="T"}l{r.1y=r.d.1y="3i"}7(r.Y!==0){u=r.4j();r.1g(u,b,"4e");7(i.2L===s.1d&&r.F.15!==j){e(s.1d).w("3a.4k",9(t){t.4S();t.4T();t.1l();e(t.1d).Q("3a.4k")});a=e.4N(s.1d,"4V").3a;f=a.4W();a.4X(0,0,f)}}o("Q")}h r=c,i={2R:0,2P:0,4Y:0,2S:0,2h:14,4Z:14,50:14,2j:14,51:14,2L:14};r.29=j;r.$k.w(r.16.3W,".d-1p",u)},4j:9(){h e=c,t=e.4m();7(t>e.D){e.m=e.D;t=e.D}l 7(e.11>=0){t=0;e.m=0}p t},4m:9(){h t=c,n=t.6.12===j?t.3E:t.J,r=t.11,i=14;e.2f(n,9(s,o){7(r-t.M/20>n[s+1]&&r-t.M/20(n[s+1]||n[s]-t.M)&&t.34()==="3i"){7(t.6.12===j){i=n[s+1]||n[n.N-1];t.m=e.4p(i,t.J)}l{i=n[s+1];t.m=s+1}}});p t.m},34:9(){h e=c,t;7(e.Y<0){t="3i";e.3u="U"}l{t="T";e.3u="1n"}p t},4A:9(){h e=c;e.$k.w("d.U",9(){e.U()});e.$k.w("d.1n",9(){e.1n()});e.$k.w("d.19",9(t,n){e.6.O=n;e.19();e.32="19"});e.$k.w("d.X",9(){e.X();e.32="X"});e.$k.w("d.1g",9(t,n){e.1g(n)});e.$k.w("d.2g",9(t,n){e.2g(n)})},2p:9(){h e=c;7(e.6.2p===j&&e.F.15!==j&&e.6.O!==b){e.$k.w("57",9(){e.X()});e.$k.w("58",9(){7(e.32!=="X"){e.19()}})}},1Z:9(){h t=c,n,r,i,s,o;7(t.6.1Z===b){p b}1A(n=0;n=t.m}l{o=j}7(o&&i=n.$S.N||r===-1){n.$S.1S(-1).5X(e)}l{n.$S.1S(r).5Y(e)}n.23()},5Z:9(e){h t=c,n;7(t.$k.25().N===0){p b}7(e===W||e===-1){n=-1}l{n=e}t.1V();t.$S.1S(n).3k();t.23()}};e.37.2B=9(t){p c.2f(9(){7(e(c).v("d-1N")===j){p b}e(c).v("d-1N",j);h n=3c.3q(r);n.1N(t,c);e.v(c,"2B",n)})};e.37.2B.6={q:5,1h:b,1s:[60,4],1O:[61,3],22:[62,2],1Q:b,1R:[63,1],48:b,46:b,1m:2M,1w:64,2v:65,O:b,2p:b,2a:b,2U:["1n","U"],2e:j,12:b,1v:j,39:b,2Z:j,45:2M,47:t,1M:"d-66",2i:"d-2i",1Z:b,4v:j,4x:"4y",1B:b,2O:b,33:b,3f:j,27:j,1U:j,2F:b,2o:b,3B:b,3D:b,2H:b,3s:b,1Y:b,3y:b,3w:b,2E:b,2T:b}})(67,68,69)',62,382,'||||||options|if||function||false|this|owl||||var||true|elem|else|currentItem|||return|items|||||data|on|||css|typeof|owlControls|0px|maximumItem|itemsAmount|browser|owlItems|class|addClass|positionsInArray|owlWrapper|div|itemWidth|length|autoPlay|transform|off|apply|userItems|left|next|px|undefined|stop|newRelativeX|removeClass||newPosX|scrollPerPage|prevItem|null|isTouch|ev_types|find|clearInterval|play|transition|disabled|setTimeout|target|loaded|width|goTo|itemsCustom|translate3d|page|paginationWrapper|preventDefault|slideSpeed|prev|append|wrapper|buttonNext|css2slide|itemsDesktop|swapSpeed|buttonPrev|pagination|paginationSpeed|support3d|dragDirection|ms|for|autoHeight|autoPlayInterval|visibleItems|isTransition|Math|webkit|wrapperOuter|hasClass|src|item|transition3d|baseClass|init|itemsDesktopSmall|origin|itemsTabletSmall|itemsMobile|eq|isCss3Finish|touchDrag|unWrap|moz|checkVisible|beforeMove|lazyLoad||mousedown|itemsTablet|setVars|roundPages|children|prevArr|mouseDrag|mouseup|isCssFinish|navigation|touches|pageX|active|rewindNav|each|jumpTo|position|theme|sliding|rewind|eachMoveUpdate|is|touchend|transitionStyle|stopOnHover|100|afterGo|ease|orignalItems|opacity|rewindSpeed|style|attr|html|addCssSpeed|userOptions|owlCarousel|all|push|startDragging|addClassActive|height|beforeInit|newPosY|end|move|targetElement|200|touchmove|jsonPath|offsetY|completeImg|offsetX|relativePos|afterLazyLoad|navigationText|updateItems|calculateAll|touchstart|string|responsive|updateControls|clearTransStyle|hoverStatus|jsonSuccess|moveDirection|checkPagination|endCurrent|fn|in|paginationNumbers|click|grabbing|Object|resizer|checkNavigation|dragBeforeAnimFinish|event|originalEvent|right|checkAp|remove|get|endPrev|visible|watchVisibility|Number|create|unwrap|afterInit|logIn|playDirection|max|afterAction|updateVars|afterMove|maximumPixels|apStatus|beforeUpdate|dragging|afterUpdate|pagesInArray|reload|clearEvents|removeTransition|doTranslate|show|hide|css2move|complete|span|cssText|updatePagination|gestures|disabledEvents|buildButtons|buildPagination|mousemove|touchcancel|start|disableTextSelect|min|loops|calculateWidth|pageY|appendWrapperSizes|appendItemsSizes|resize|responsiveRefreshRate|itemsScaleUp|responsiveBaseWidth|singleItem|outer|wrap|animate|srcElement|setInterval|drag|updatePosition|onVisibleItems|block|display|getNewPosition|disable|singleItemTransition|closestItem|transitionTypes|owlStatus|inArray|moveEvents|response|continue|buildControls|loading|lazyFollow|lazyPreload|lazyEffect|fade|onStartup|customEvents|wrapItems|eventTypes|naturalWidth|checkBrowser|originalClasses|outClass|inClass|originalStyles|abs|perspective|loadContent|extend|_data|round|msMaxTouchPoints|5e3|text|stopImmediatePropagation|stopPropagation|buttons|events|pop|splice|baseElWidth|minSwipe|maxSwipe|dargging|clientX|clientY|duration|destroyControls|createElement|mouseover|mouseout|numbers|which|lazyOwl|appendTo|clearTimeout|checked|shift|sort|removeAttr|match|fadeIn|400|clickable|toggleClass|wrapAll|top|prop|tagName|DIV|background|image|url|wrapperWidth|img|500|dragstart|ontouchstart|controls|out|input|relative|textarea|select|webkitAnimationEnd|oAnimationEnd|MSAnimationEnd|animationend|getJSON|returnValue|hasOwnProperty|option|onstartup|baseElement|navigator|new|prototype|destroy|removeData|reinit|addItem|after|before|removeItem|1199|979|768|479|800|1e3|carousel|jQuery|window|document'.split('|'),0,{})) \ No newline at end of file diff --git a/js/respond.min.js b/js/respond.min.js new file mode 100644 index 0000000..d603ef5 --- /dev/null +++ b/js/respond.min.js @@ -0,0 +1 @@ +window.matchMedia=window.matchMedia||function(a){"use strict";var c,d=a.documentElement,e=d.firstElementChild||d.firstChild,f=a.createElement("body"),g=a.createElement("div");return g.id="mq-test-1",g.style.cssText="position:absolute;top:-100em",f.style.background="none",f.appendChild(g),function(a){return g.innerHTML='­',d.insertBefore(f,e),c=42===g.offsetWidth,d.removeChild(f),{matches:c,media:a}}}(document);(function(a){"use strict";function x(){u(!0)}var b={};if(a.respond=b,b.update=function(){},b.mediaQueriesSupported=a.matchMedia&&a.matchMedia("only all").matches,!b.mediaQueriesSupported){var q,r,t,c=a.document,d=c.documentElement,e=[],f=[],g=[],h={},i=30,j=c.getElementsByTagName("head")[0]||d,k=c.getElementsByTagName("base")[0],l=j.getElementsByTagName("link"),m=[],n=function(){for(var b=0;l.length>b;b++){var c=l[b],d=c.href,e=c.media,f=c.rel&&"stylesheet"===c.rel.toLowerCase();d&&f&&!h[d]&&(c.styleSheet&&c.styleSheet.rawCssText?(p(c.styleSheet.rawCssText,d,e),h[d]=!0):(!/^([a-zA-Z:]*\/\/)/.test(d)&&!k||d.replace(RegExp.$1,"").split("/")[0]===a.location.host)&&m.push({href:d,media:e}))}o()},o=function(){if(m.length){var b=m.shift();v(b.href,function(c){p(c,b.href,b.media),h[b.href]=!0,a.setTimeout(function(){o()},0)})}},p=function(a,b,c){var d=a.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),g=d&&d.length||0;b=b.substring(0,b.lastIndexOf("/"));var h=function(a){return a.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+b+"$2$3")},i=!g&&c;b.length&&(b+="/"),i&&(g=1);for(var j=0;g>j;j++){var k,l,m,n;i?(k=c,f.push(h(a))):(k=d[j].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1,f.push(RegExp.$2&&h(RegExp.$2))),m=k.split(","),n=m.length;for(var o=0;n>o;o++)l=m[o],e.push({media:l.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:f.length-1,hasquery:l.indexOf("(")>-1,minw:l.match(/\(\s*min\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:l.match(/\(\s*max\-width\s*:\s*(\s*[0-9\.]+)(px|em)\s*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}u()},s=function(){var a,b=c.createElement("div"),e=c.body,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",e||(e=f=c.createElement("body"),e.style.background="none"),e.appendChild(b),d.insertBefore(e,d.firstChild),a=b.offsetWidth,f?d.removeChild(e):e.removeChild(b),a=t=parseFloat(a)},u=function(b){var h="clientWidth",k=d[h],m="CSS1Compat"===c.compatMode&&k||c.body[h]||k,n={},o=l[l.length-1],p=(new Date).getTime();if(b&&q&&i>p-q)return a.clearTimeout(r),r=a.setTimeout(u,i),void 0;q=p;for(var v in e)if(e.hasOwnProperty(v)){var w=e[v],x=w.minw,y=w.maxw,z=null===x,A=null===y,B="em";x&&(x=parseFloat(x)*(x.indexOf(B)>-1?t||s():1)),y&&(y=parseFloat(y)*(y.indexOf(B)>-1?t||s():1)),w.hasquery&&(z&&A||!(z||m>=x)||!(A||y>=m))||(n[w.media]||(n[w.media]=[]),n[w.media].push(f[w.rules]))}for(var C in g)g.hasOwnProperty(C)&&g[C]&&g[C].parentNode===j&&j.removeChild(g[C]);for(var D in n)if(n.hasOwnProperty(D)){var E=c.createElement("style"),F=n[D].join("\n");E.type="text/css",E.media=D,j.insertBefore(E,o.nextSibling),E.styleSheet?E.styleSheet.cssText=F:E.appendChild(c.createTextNode(F)),g.push(E)}},v=function(a,b){var c=w();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))},w=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}();n(),b.update=n,a.addEventListener?a.addEventListener("resize",x,!1):a.attachEvent&&a.attachEvent("onresize",x)}})(this); \ No newline at end of file diff --git a/js/scrollReveal.js b/js/scrollReveal.js new file mode 100644 index 0000000..9c3661c --- /dev/null +++ b/js/scrollReveal.js @@ -0,0 +1,307 @@ +/* + _ _ _____ _ _ + | | | __ \ | | (_) + ___ ___ _ __ ___ | | | |__) |_____ _____ __ _| | _ ___ + / __|/ __| '__/ _ \| | | _ // _ \ \ / / _ \/ _` | | | / __| + \__ \ (__| | | (_) | | | | \ \ __/\ V / __/ (_| | |_| \__ \ + |___/\___|_| \___/|_|_|_| \_\___| \_/ \___|\__,_|_(_) |___/ + _/ | + |__/ + + "Declarative on-scroll reveal animations." + +/*============================================================================= + + scrollReveal.js is inspired by cbpScroller.js, © 2014, Codrops. + + Licensed under the MIT license. + http://www.opensource.org/licenses/mit-license.php + + scrollReveal.js, © 2014 https://twitter.com/julianlloyd + +=============================================================================*/ + +;(function (window) { + + 'use strict'; + + var docElem = window.document.documentElement; + + function getViewportH () { + var client = docElem['clientHeight'], + inner = window['innerHeight']; + + return (client < inner) ? inner : client; + } + + function getOffset (el) { + var offsetTop = 0, + offsetLeft = 0; + + do { + if (!isNaN(el.offsetTop)) { + offsetTop += el.offsetTop; + } + if (!isNaN(el.offsetLeft)) { + offsetLeft += el.offsetLeft; + } + } while (el = el.offsetParent) + + return { + top: offsetTop, + left: offsetLeft + } + } + + function isElementInViewport (el, h) { + var scrolled = window.pageYOffset, + viewed = scrolled + getViewportH(), + elH = el.offsetHeight, + elTop = getOffset(el).top, + elBottom = elTop + elH, + h = h || 0; + + return (elTop + elH * h) <= viewed && (elBottom) >= scrolled; + } + + function extend (a, b) { + for (var key in b) { + if (b.hasOwnProperty(key)) { + a[key] = b[key]; + } + } + return a; + } + + + function scrollReveal(options) { + this.options = extend(this.defaults, options); + this._init(); + } + + + + scrollReveal.prototype = { + defaults: { + axis: 'y', + distance: '60px', + duration: '0.55s', + delay: '0.15s', + + // if 0, the element is considered in the viewport as soon as it enters + // if 1, the element is considered in the viewport when it's fully visible + viewportFactor: 0.33 + }, + + /*=============================================================================*/ + + _init: function () { + + var self = this; + + this.elems = Array.prototype.slice.call(docElem.querySelectorAll('[data-scrollReveal]')); + this.scrolled = false; + + // Initialize all scrollreveals, triggering all + // reveals on visible elements. + this.elems.forEach(function (el, i) { + self.animate(el); + }); + + var scrollHandler = function () { + if (!self.scrolled) { + self.scrolled = true; + setTimeout(function () { + self._scrollPage(); + }, 60); + } + }; + + var resizeHandler = function () { + function delayed() { + self._scrollPage(); + self.resizeTimeout = null; + } + if (self.resizeTimeout) { + clearTimeout(self.resizeTimeout); + } + self.resizeTimeout = setTimeout(delayed, 200); + }; + + window.addEventListener('scroll', scrollHandler, false); + window.addEventListener('resize', resizeHandler, false); + }, + + /*=============================================================================*/ + + _scrollPage: function () { + var self = this; + + this.elems.forEach(function (el, i) { + if (isElementInViewport(el, self.options.viewportFactor)) { + self.animate(el); + } + }); + this.scrolled = false; + }, + + /*=============================================================================*/ + + parseLanguage: function (el) { + + // Splits on a sequence of one or more commas or spaces. + var words = el.getAttribute('data-scrollreveal').split(/[, ]+/), + enterFrom, + parsed = {}; + + function filter (words) { + var ret = [], + + blacklist = [ + "from", + "the", + "and", + "then", + "but" + ]; + + words.forEach(function (word, i) { + if (blacklist.indexOf(word) > -1) { + return; + } + ret.push(word); + }); + + return ret; + } + + words = filter(words); + + words.forEach(function (word, i) { + + switch (word) { + case "enter": + enterFrom = words[i + 1]; + + if (enterFrom == "top" || enterFrom == "bottom") { + parsed.axis = "y"; + } + + if (enterFrom == "left" || enterFrom == "right") { + parsed.axis = "x"; + } + + return; + + case "after": + parsed.delay = words[i + 1]; + return; + + case "wait": + parsed.delay = words[i + 1]; + return; + + case "move": + parsed.distance = words[i + 1]; + return; + + case "over": + parsed.duration = words[i + 1]; + return; + + case "trigger": + parsed.eventName = words[i + 1]; + return; + + default: + // Unrecognizable words; do nothing. + return; + } + }); + + // After all values are parsed, let’s make sure our our + // pixel distance is negative for top and left entrances. + // + // ie. "move 25px from top" starts at 'top: -25px' in CSS. + + if (enterFrom == "top" || enterFrom == "left") { + + if (!typeof parsed.distance == "undefined") { + parsed.distance = "-" + parsed.distance; + } + + else { + parsed.distance = "-" + this.options.distance; + } + + } + + return parsed; + }, + + /*=============================================================================*/ + + genCSS: function (el) { + var parsed = this.parseLanguage(el); + + var dist = parsed.distance || this.options.distance, + dur = parsed.duration || this.options.duration, + delay = parsed.delay || this.options.delay, + axis = parsed.axis || this.options.axis; + + var transition = "-webkit-transition: all " + dur + " ease " + delay + ";" + + "-moz-transition: all " + dur + " ease " + delay + ";" + + "-o-transition: all " + dur + " ease " + delay + ";" + + "-ms-transition: all " + dur + " ease " + delay + ";" + + "transition: all " + dur + " ease " + delay + ";"; + + var initial = "-webkit-transform: translate" + axis + "(" + dist + ");" + + "-moz-transform: translate" + axis + "(" + dist + ");" + + "-ms-transform: translate" + axis + "(" + dist + ");" + + "transform: translate" + axis + "(" + dist + ");" + + "opacity: 0;"; + + var target = "-webkit-transform: translate" + axis + "(0);" + + "-moz-transform: translate" + axis + "(0);" + + "-ms-transform: translate" + axis + "(0);" + + "transform: translate" + axis + "(0);" + + "opacity: 1;"; + return { + transition: transition, + initial: initial, + target: target, + totalDuration: ((parseFloat(dur) + parseFloat(delay)) * 1000) + }; + }, + + /*=============================================================================*/ + + animate: function (el) { + var css = this.genCSS(el); + + if (!el.getAttribute('data-sr-init')) { + el.setAttribute('style', css.initial); + el.setAttribute('data-sr-init', true); + } + + if (el.getAttribute('data-sr-complete')) { + return; + } + + if (isElementInViewport(el, this.options.viewportFactor)) { + el.setAttribute('style', css.target + css.transition); + + setTimeout(function () { + el.removeAttribute('style'); + el.setAttribute('data-sr-complete', true); + }, css.totalDuration); + } + + } + }; // end scrollReveal.prototype + + document.addEventListener("DOMContentLoaded", function (evt) { + window.scrollReveal = new scrollReveal(); + }); + +})(window); \ No newline at end of file diff --git a/js/skip-link-focus-fix.js b/js/skip-link-focus-fix.js new file mode 100644 index 0000000..ffad091 --- /dev/null +++ b/js/skip-link-focus-fix.js @@ -0,0 +1,19 @@ +( function() { + var is_webkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1, + is_opera = navigator.userAgent.toLowerCase().indexOf( 'opera' ) > -1, + is_ie = navigator.userAgent.toLowerCase().indexOf( 'msie' ) > -1; + + if ( ( is_webkit || is_opera || is_ie ) && 'undefined' !== typeof( document.getElementById ) ) { + var eventMethod = ( window.addEventListener ) ? 'addEventListener' : 'attachEvent'; + window[ eventMethod ]( 'hashchange', function() { + var element = document.getElementById( location.hash.substring( 1 ) ); + + if ( element ) { + if ( ! /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) + element.tabIndex = -1; + + element.focus(); + } + }, false ); + } +})(); diff --git a/js/smoothscroll.js b/js/smoothscroll.js new file mode 100644 index 0000000..662de24 --- /dev/null +++ b/js/smoothscroll.js @@ -0,0 +1,304 @@ +// SmoothScroll v0.9.9 +// Licensed under the terms of the MIT license. + +// People involved +// - Balazs Galambosi: maintainer (CHANGELOG.txt) +// - Patrick Brunner (patrickb1991@gmail.com) +// - Michael Herf: ssc_pulse Algorithm + +function ssc_init() { + if (!document.body) return; + var e = document.body; + var t = document.documentElement; + var n = window.innerHeight; + var r = e.scrollHeight; + ssc_root = document.compatMode.indexOf("CSS") >= 0 ? t : e; + ssc_activeElement = e; + ssc_initdone = true; + if (top != self) { + ssc_frame = true + } else if (r > n && (e.offsetHeight <= n || t.offsetHeight <= n)) { + ssc_root.style.height = "auto"; + if (ssc_root.offsetHeight <= n) { + var i = document.createElement("div"); + i.style.clear = "both"; + e.appendChild(i) + } + } + if (!ssc_fixedback) { + e.style.backgroundAttachment = "scroll"; + t.style.backgroundAttachment = "scroll" + } + if (ssc_keyboardsupport) { + ssc_addEvent("keydown", ssc_keydown) + } +} + +function ssc_scrollArray(e, t, n, r) { + r || (r = 1e3); + ssc_directionCheck(t, n); + ssc_que.push({ + x: t, + y: n, + lastX: t < 0 ? .99 : -.99, + lastY: n < 0 ? .99 : -.99, + start: +(new Date) + }); + if (ssc_pending) { + return + } + var i = function () { + var s = +(new Date); + var o = 0; + var u = 0; + for (var a = 0; a < ssc_que.length; a++) { + var f = ssc_que[a]; + var l = s - f.start; + var c = l >= ssc_animtime; + var h = c ? 1 : l / ssc_animtime; + if (ssc_pulseAlgorithm) { + h = ssc_pulse(h) + } + var p = f.x * h - f.lastX >> 0; + var d = f.y * h - f.lastY >> 0; + o += p; + u += d; + f.lastX += p; + f.lastY += d; + if (c) { + ssc_que.splice(a, 1); + a-- + } + } + if (t) { + var v = e.scrollLeft; + e.scrollLeft += o; + if (o && e.scrollLeft === v) { + t = 0 + } + } + if (n) { + var m = e.scrollTop; + e.scrollTop += u; + if (u && e.scrollTop === m) { + n = 0 + } + } + if (!t && !n) { + ssc_que = [] + } + if (ssc_que.length) { + setTimeout(i, r / ssc_framerate + 1) + } else { + ssc_pending = false + } + }; + setTimeout(i, 0); + ssc_pending = true +} + +function ssc_wheel(e) { + if (!ssc_initdone) { + ssc_init() + } + var t = e.target; + var n = ssc_overflowingAncestor(t); + if (!n || e.defaultPrevented || ssc_isNodeName(ssc_activeElement, "embed") || ssc_isNodeName(t, "embed") && /\.pdf/i.test(t.src)) { + return true + } + var r = e.wheelDeltaX || 0; + var i = e.wheelDeltaY || 0; + if (!r && !i) { + i = e.wheelDelta || 0 + } + if (Math.abs(r) > 1.2) { + r *= ssc_stepsize / 120 + } + if (Math.abs(i) > 1.2) { + i *= ssc_stepsize / 120 + } + ssc_scrollArray(n, -r, -i); + e.preventDefault() +} + +function ssc_keydown(e) { + var t = e.target; + var n = e.ctrlKey || e.altKey || e.metaKey; + if (/input|textarea|embed/i.test(t.nodeName) || t.isContentEditable || e.defaultPrevented || n) { + return true + } + if (ssc_isNodeName(t, "button") && e.keyCode === ssc_key.spacebar) { + return true + } + var r, i = 0, + s = 0; + var o = ssc_overflowingAncestor(ssc_activeElement); + var u = o.clientHeight; + if (o == document.body) { + u = window.innerHeight + } + switch (e.keyCode) { + case ssc_key.up: + s = -ssc_arrowscroll; + break; + case ssc_key.down: + s = ssc_arrowscroll; + break; + case ssc_key.spacebar: + r = e.shiftKey ? 1 : -1; + s = -r * u * .9; + break; + case ssc_key.pageup: + s = -u * .9; + break; + case ssc_key.pagedown: + s = u * .9; + break; + case ssc_key.home: + s = -o.scrollTop; + break; + case ssc_key.end: + var a = o.scrollHeight - o.scrollTop - u; + s = a > 0 ? a + 10 : 0; + break; + case ssc_key.left: + i = -ssc_arrowscroll; + break; + case ssc_key.right: + i = ssc_arrowscroll; + break; + default: + return true + } + ssc_scrollArray(o, i, s); + e.preventDefault() +} + +function ssc_mousedown(e) { + ssc_activeElement = e.target +} + +function ssc_setCache(e, t) { + for (var n = e.length; n--;) ssc_cache[ssc_uniqueID(e[n])] = t; + return t +} + +function ssc_overflowingAncestor(e) { + var t = []; + var n = ssc_root.scrollHeight; + do { + var r = ssc_cache[ssc_uniqueID(e)]; + if (r) { + return ssc_setCache(t, r) + } + t.push(e); + if (n === e.scrollHeight) { + if (!ssc_frame || ssc_root.clientHeight + 10 < n) { + return ssc_setCache(t, document.body) + } + } else if (e.clientHeight + 10 < e.scrollHeight) { + overflow = getComputedStyle(e, "").getPropertyValue("overflow"); + if (overflow === "scroll" || overflow === "auto") { + return ssc_setCache(t, e) + } + } + } while (e = e.parentNode) +} + +function ssc_addEvent(e, t, n) { + window.addEventListener(e, t, n || false) +} + +function ssc_removeEvent(e, t, n) { + window.removeEventListener(e, t, n || false) +} + +function ssc_isNodeName(e, t) { + return e.nodeName.toLowerCase() === t.toLowerCase() +} + +function ssc_directionCheck(e, t) { + e = e > 0 ? 1 : -1; + t = t > 0 ? 1 : -1; + if (ssc_direction.x !== e || ssc_direction.y !== t) { + ssc_direction.x = e; + ssc_direction.y = t; + ssc_que = [] + } +} + +function ssc_pulse_(e) { + var t, n, r; + e = e * ssc_pulseScale; + if (e < 1) { + t = e - (1 - Math.exp(-e)) + } else { + n = Math.exp(-1); + e -= 1; + r = 1 - Math.exp(-e); + t = n + r * (1 - n) + } + return t * ssc_pulseNormalize +} + +function ssc_pulse(e) { + if (e >= 1) return 1; + if (e <= 0) return 0; + if (ssc_pulseNormalize == 1) { + ssc_pulseNormalize /= ssc_pulse_(1) + } + return ssc_pulse_(e) +} + +var ssc_framerate = 150; +var ssc_animtime = 500; +var ssc_stepsize = 150; +var ssc_pulseAlgorithm = true; +var ssc_pulseScale = 6; +var ssc_pulseNormalize = 1; +var ssc_keyboardsupport = true; +var ssc_arrowscroll = 50; +var ssc_frame = false; +var ssc_direction = { + x: 0, + y: 0 +}; + +var ssc_initdone = false; +var ssc_fixedback = true; +var ssc_root = document.documentElement; +var ssc_activeElement; +var ssc_key = { + left: 37, + up: 38, + right: 39, + down: 40, + spacebar: 32, + pageup: 33, + pagedown: 34, + end: 35, + home: 36 +}; + +var ssc_que = []; +var ssc_pending = false; +var ssc_cache = {}; + +setInterval(function () { + ssc_cache = {} +}, 10 * 1e3); + +var ssc_uniqueID = function () { + var e = 0; + return function (t) { + return t.ssc_uniqueID || (t.ssc_uniqueID = e++) + } +}(); + +var ischrome = /chrome/.test(navigator.userAgent.toLowerCase()); + +if (ischrome) { + ssc_addEvent("mousedown", ssc_mousedown); + ssc_addEvent("mousewheel", ssc_wheel); + ssc_addEvent("load", ssc_init) +} \ No newline at end of file diff --git a/js/widget-clients.js b/js/widget-clients.js new file mode 100644 index 0000000..ff90ab6 --- /dev/null +++ b/js/widget-clients.js @@ -0,0 +1,27 @@ +jQuery(document).ready( function($) { + function media_upload(button_class) { + var _custom_media = true, + _orig_send_attachment = wp.media.editor.send.attachment; + + $('body').on('click', button_class, function(e) { + var button_id ='#'+$(this).attr('id'); + var self = $(button_id); + var send_attachment_bkp = wp.media.editor.send.attachment; + var button = $(button_id); + var id = button.attr('id').replace('_button', ''); + _custom_media = true; + wp.media.editor.send.attachment = function(props, attachment){ + if ( _custom_media ) { + $('.custom_media_id').val(attachment.id); + $('.custom_media_url_clients').val(attachment.url); + $('.custom_media_image_clients').attr('src',attachment.url).css('display','block'); + } else { + return _orig_send_attachment.apply( button_id, [props, attachment] ); + } + } + wp.media.editor.open(button); + return false; + }); + } + media_upload('.custom_media_button_clients.button'); +}); \ No newline at end of file diff --git a/js/widget-team.js b/js/widget-team.js new file mode 100644 index 0000000..5d961c5 --- /dev/null +++ b/js/widget-team.js @@ -0,0 +1,27 @@ +jQuery(document).ready( function($) { + function media_upload(button_class) { + var _custom_media = true, + _orig_send_attachment = wp.media.editor.send.attachment; + + $('body').on('click', button_class, function(e) { + var button_id ='#'+$(this).attr('id'); + var self = $(button_id); + var send_attachment_bkp = wp.media.editor.send.attachment; + var button = $(button_id); + var id = button.attr('id').replace('_button', ''); + _custom_media = true; + wp.media.editor.send.attachment = function(props, attachment){ + if ( _custom_media ) { + $('.custom_media_id').val(attachment.id); + $('.custom_media_url_team').val(attachment.url); + $('.custom_media_image_team').attr('src',attachment.url).css('display','block'); + } else { + return _orig_send_attachment.apply( button_id, [props, attachment] ); + } + } + wp.media.editor.open(button); + return false; + }); + } + media_upload('.custom_media_button_team.button'); +}); \ No newline at end of file diff --git a/js/widget-testimonials.js b/js/widget-testimonials.js new file mode 100644 index 0000000..13036e0 --- /dev/null +++ b/js/widget-testimonials.js @@ -0,0 +1,27 @@ +jQuery(document).ready( function($) { + function media_upload(button_class) { + var _custom_media = true, + _orig_send_attachment = wp.media.editor.send.attachment; + + $('body').on('click', button_class, function(e) { + var button_id ='#'+$(this).attr('id'); + var self = $(button_id); + var send_attachment_bkp = wp.media.editor.send.attachment; + var button = $(button_id); + var id = button.attr('id').replace('_button', ''); + _custom_media = true; + wp.media.editor.send.attachment = function(props, attachment){ + if ( _custom_media ) { + $('.custom_media_id').val(attachment.id); + $('.custom_media_url_testimonial').val(attachment.url); + $('.custom_media_image_testimonial').attr('src',attachment.url).css('display','block'); + } else { + return _orig_send_attachment.apply( button_id, [props, attachment] ); + } + } + wp.media.editor.open(button); + return false; + }); + } + media_upload('.custom_media_button_testimonial.button'); +}); \ No newline at end of file diff --git a/js/widget.js b/js/widget.js new file mode 100644 index 0000000..05ee4ad --- /dev/null +++ b/js/widget.js @@ -0,0 +1,27 @@ +jQuery(document).ready( function($) { + function media_upload(button_class) { + var _custom_media = true, + _orig_send_attachment = wp.media.editor.send.attachment; + + $('body').on('click', button_class, function(e) { + var button_id ='#'+$(this).attr('id'); + var self = $(button_id); + var send_attachment_bkp = wp.media.editor.send.attachment; + var button = $(button_id); + var id = button.attr('id').replace('_button', ''); + _custom_media = true; + wp.media.editor.send.attachment = function(props, attachment){ + if ( _custom_media ) { + $('.custom_media_id').val(attachment.id); + $('.custom_media_url').val(attachment.url); + $('.custom_media_image').attr('src',attachment.url).css('display','block'); + } else { + return _orig_send_attachment.apply( button_id, [props, attachment] ); + } + } + wp.media.editor.open(button); + return false; + }); + } + media_upload('.custom_media_button.button'); +}); \ No newline at end of file diff --git a/js/zerif.js b/js/zerif.js new file mode 100644 index 0000000..2c95b26 --- /dev/null +++ b/js/zerif.js @@ -0,0 +1,131 @@ +/* ================================= + LOADER +=================================== */ +// makes sure the whole site is loaded +jQuery(window).load(function() { + // will first fade out the loading animation + jQuery(".status").fadeOut(); + // will fade out the whole DIV that covers the website. + jQuery(".preloader").delay(1000).fadeOut("slow"); +}) + + +/* ================================= +=== Bootstrap Fix ==== +=================================== */ +if (navigator.userAgent.match(/IEMobile\/10\.0/)) { + var msViewportStyle = document.createElement('style') + msViewportStyle.appendChild( + document.createTextNode( + '@-ms-viewport{width:auto!important}' + ) + ) + document.querySelector('head').appendChild(msViewportStyle) +} + +/* ================================= +=== STICKY NAV ==== +=================================== */ + +jQuery(document).ready(function() { + + // Sticky Header - http://jqueryfordesigners.com/fixed-floating-elements/ + var top = jQuery('#main-nav').offset().top - parseFloat(jQuery('#main-nav').css('margin-top').replace(/auto/, 0)); + + jQuery(window).scroll(function (event) { + // what the y position of the scroll is + var y = jQuery(this).scrollTop(); + + // whether that's below the form + if (y >= top) { + // if so, ad the fixed class + jQuery('#main-nav').addClass('fixed'); + } else { + // otherwise remove it + jQuery('#main-nav').removeClass('fixed'); + } + }); + + + jQuery('body:not(.home)').removeClass('custom-background'); + +}); + + +/*================================= +=== SMOOTH SCROLL ==== +=================================== */ +var scrollAnimationTime = 1200, + scrollAnimation = 'easeInOutExpo'; + jQuery('a.scrollto').bind('click.smoothscroll',function (event) { + + event.preventDefault(); + var target = this.hash; + jQuery('html, body').stop().animate({ + 'scrollTop': jQuery(target).offset().top + }, scrollAnimationTime, scrollAnimation, function () { + window.location.hash = target; + }); + }); + +/* ================================ +=== PARALLAX ==== +================================= */ +jQuery(document).ready(function(){ + var jQuerywindow = jQuery(window); + jQuery('div[data-type="background"], header[data-type="background"], section[data-type="background"]').each(function(){ + var jQuerybgobj = jQuery(this); + jQuery(window).scroll(function() { + var yPos = -(jQuerywindow.scrollTop() / jQuerybgobj.data('speed')); + var coords = '50% '+ yPos + 'px'; + jQuerybgobj.css({ + backgroundPosition: coords + }); + }); + }); +}); + +/* ================================ +=== KNOB ==== +================================= */ +jQuery(function() { +jQuery(".skill1").knob({ + 'max':100, + 'width': 64, + 'readOnly':true, + 'inputColor':' #FFFFFF ', + 'bgColor':' #222222 ', + 'fgColor':' #e96656 ' + }); +jQuery(".skill2").knob({ + 'max':100, + 'width': 64, + 'readOnly':true, + 'inputColor':' #FFFFFF ', + 'bgColor':' #222222 ', + 'fgColor':' #34d293 ' + }); + jQuery(".skill3").knob({ + 'max': 100, + 'width': 64, + 'readOnly': true, + 'inputColor':' #FFFFFF ', + 'bgColor':' #222222 ', + 'fgColor':' #3ab0e2 ' + }); + jQuery(".skill4").knob({ + 'max': 100, + 'width': 64, + 'readOnly': true, + 'inputColor':' #FFFFFF ', + 'bgColor':' #222222 ', + 'fgColor':' #E7AC44 ' + }); +}); + +/* ====================================== +============ MOBILE NAV =============== */ +jQuery('.navbar-toggle').on('click', function () { + jQuery(this).toggleClass('active'); +}); + diff --git a/js/zerif_customizer.js b/js/zerif_customizer.js new file mode 100644 index 0000000..a1d8c60 --- /dev/null +++ b/js/zerif_customizer.js @@ -0,0 +1 @@ +jQuery(document).ready(function() { jQuery( "#sortable" ).sortable(); jQuery( "#sortable" ).disableSelection(); jQuery('.wp-full-overlay-sidebar-content').prepend('View PRO version'); jQuery( '.ui-state-default' ).on( 'mousedown', function() { jQuery( '#customize-header-actions #save' ).trigger( 'click' ); }); }); \ No newline at end of file diff --git a/languages/readme.txt b/languages/readme.txt new file mode 100644 index 0000000..6961135 --- /dev/null +++ b/languages/readme.txt @@ -0,0 +1,6 @@ +Place your theme language files in this directory. + +Please visit the following links to learn more about translating WordPress themes: + +http://codex.wordpress.org/Translating_WordPress +http://codex.wordpress.org/Function_Reference/load_theme_textdomain diff --git a/languages/zerif.pot b/languages/zerif.pot new file mode 100644 index 0000000..4f6173b --- /dev/null +++ b/languages/zerif.pot @@ -0,0 +1,297 @@ +# Copyright (C) 2014 Automattic +# This file is distributed under the GNU General Public License v2 or later. +msgid "" +msgstr "" +"Project-Id-Version: _s 1.0-wpcom\n" +"Report-Msgid-Bugs-To: http://wordpress.org/tags/_s\n" +"POT-Creation-Date: 2014-03-30 17:37:52+00:00\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" + +#: 404.php:15 +msgid "Oops! That page can’t be found." +msgstr "" + +#: 404.php:19 +msgid "" +"It looks like nothing was found at this location. Maybe try one of the links " +"below or a search?" +msgstr "" + +#: 404.php:27 +msgid "Most Used Categories" +msgstr "" + +#. translators: %1$s: smiley +#: 404.php:44 +msgid "Try looking in the monthly archives. %1$s" +msgstr "" + +#: archive.php:27 +msgid "Author: %s" +msgstr "" + +#: archive.php:30 +msgid "Day: %s" +msgstr "" + +#: archive.php:33 +msgid "Month: %s" +msgstr "" + +#: archive.php:33 +msgctxt "monthly archives date format" +msgid "F Y" +msgstr "" + +#: archive.php:36 +msgid "Year: %s" +msgstr "" + +#: archive.php:36 +msgctxt "yearly archives date format" +msgid "Y" +msgstr "" + +#: archive.php:39 +msgid "Asides" +msgstr "" + +#: archive.php:42 +msgid "Galleries" +msgstr "" + +#: archive.php:45 +msgid "Images" +msgstr "" + +#: archive.php:48 +msgid "Videos" +msgstr "" + +#: archive.php:51 +msgid "Quotes" +msgstr "" + +#: archive.php:54 +msgid "Links" +msgstr "" + +#: archive.php:57 +msgid "Statuses" +msgstr "" + +#: archive.php:60 +msgid "Audios" +msgstr "" + +#: archive.php:63 +msgid "Chats" +msgstr "" + +#: archive.php:66 sidebar.php:16 +msgid "Archives" +msgstr "" + +#: comments.php:28 +msgctxt "comments title" +msgid "One thought on “%2$s”" +msgid_plural "%1$s thoughts on “%2$s”" +msgstr[0] "" +msgstr[1] "" + +#: comments.php:35 comments.php:52 +msgid "Comment navigation" +msgstr "" + +#: comments.php:36 comments.php:53 +msgid "← Older Comments" +msgstr "" + +#: comments.php:37 comments.php:54 +msgid "Newer Comments →" +msgstr "" + +#: comments.php:64 +msgid "Comments are closed." +msgstr "" + +#: content-none.php:13 +msgid "Nothing Found" +msgstr "" + +#: content-none.php:19 +msgid "" +"Ready to publish your first post? Get started here." +msgstr "" + +#: content-none.php:23 +msgid "" +"Sorry, but nothing matched your search terms. Please try again with some " +"different keywords." +msgstr "" + +#: content-none.php:28 +msgid "" +"It seems we can’t find what you’re looking for. Perhaps " +"searching can help." +msgstr "" + +#: content-page.php:18 content-single.php:20 content.php:27 +msgid "Pages:" +msgstr "" + +#: content-page.php:23 content-single.php:60 content.php:61 +msgid "Edit" +msgstr "" + +#. translators: used between list items, there is a space after the comma +#: content-single.php:29 content-single.php:32 content.php:38 content.php:48 +msgid ", " +msgstr "" + +#: content-single.php:37 +msgid "" +"This entry was tagged %2$s. Bookmark the permalink." +msgstr "" + +#: content-single.php:39 +msgid "Bookmark the permalink." +msgstr "" + +#: content-single.php:45 +msgid "" +"This entry was posted in %1$s and tagged %2$s. Bookmark the permalink." +msgstr "" + +#: content-single.php:47 +msgid "" +"This entry was posted in %1$s. Bookmark the permalink." +msgstr "" + +#: content.php:24 +msgid "Continue reading " +msgstr "" + +#: content.php:42 +msgid "Posted in %1$s" +msgstr "" + +#: content.php:52 +msgid "Tagged %1$s" +msgstr "" + +#: content.php:58 +msgid "Leave a comment" +msgstr "" + +#: content.php:58 +msgid "1 Comment" +msgstr "" + +#: content.php:58 +msgid "% Comments" +msgstr "" + +#: footer.php:15 +msgid "http://wordpress.org/" +msgstr "" + +#: footer.php:15 +msgid "Proudly powered by %s" +msgstr "" + +#: footer.php:17 +msgid "Theme: %1$s by %2$s." +msgstr "" + +#: functions.php:45 +msgid "Primary Menu" +msgstr "" + +#: functions.php:73 +msgid "Sidebar" +msgstr "" + +#: header.php:31 +msgid "Menu" +msgstr "" + +#: header.php:32 +msgid "Skip to content" +msgstr "" + +#: inc/extras.php:63 +msgid "Page %s" +msgstr "" + +#: inc/template-tags.php:23 +msgid "Posts navigation" +msgstr "" + +#: inc/template-tags.php:27 +msgid " Older posts" +msgstr "" + +#: inc/template-tags.php:31 +msgid "Newer posts " +msgstr "" + +#: inc/template-tags.php:56 +msgid "Post navigation" +msgstr "" + +#: inc/template-tags.php:59 +msgctxt "Previous post link" +msgid " %title" +msgstr "" + +#: inc/template-tags.php:60 +msgctxt "Next post link" +msgid "%title " +msgstr "" + +#: inc/template-tags.php:85 +msgid "" +"Posted on %1$s by " +"%2$s" +msgstr "" + +#: search.php:16 +msgid "Search Results for: %s" +msgstr "" + +#: sidebar.php:23 +msgid "Meta" +msgstr "" + +#. Theme Name of the plugin/theme +msgid "_s" +msgstr "" + +#. Theme URI of the plugin/theme +msgid "http://underscores.me/" +msgstr "" + +#. Description of the plugin/theme +msgid "" +"Hi. I'm a starter theme called _s, or underscores, if " +"you like. I'm a theme meant for hacking so don't use me as a Parent " +"Theme. Instead try turning me into the next, most awesome, WordPress " +"theme out there. That's what I'm here for." +msgstr "" + +#. Author of the plugin/theme +msgid "Automattic" +msgstr "" + +#. Author URI of the plugin/theme +msgid "http://automattic.com/" +msgstr "" diff --git a/layouts/content-sidebar.css b/layouts/content-sidebar.css new file mode 100644 index 0000000..c3deea8 --- /dev/null +++ b/layouts/content-sidebar.css @@ -0,0 +1 @@ +/* Theme Name: zerif Layout: Content-Sidebar */ .content-area { float: left; margin: 0 -25% 0 0; width: 100%; } .site-main { margin: 0 25% 0 0; } .site-content .widget-area { float: right; overflow: hidden; width: 25%; } .site-footer { clear: both; width: 100%; } \ No newline at end of file diff --git a/layouts/sidebar-content.css b/layouts/sidebar-content.css new file mode 100644 index 0000000..fe6c6f3 --- /dev/null +++ b/layouts/sidebar-content.css @@ -0,0 +1 @@ +/* Theme Name: zerif Layout: Sidebar-Content */ .content-area { float: right; margin: 0 0 0 -25%; width: 100%; } .site-main { margin: 0 0 0 25%; } .site-content .widget-area { float: left; overflow: hidden; width: 25%; } .site-footer { clear: both; width: 100%; } \ No newline at end of file diff --git a/license.txt b/license.txt new file mode 100644 index 0000000..8692fa3 --- /dev/null +++ b/license.txt @@ -0,0 +1 @@ +GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright © 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. “This License” refers to version 3 of the GNU General Public License. “Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. “The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations. To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work. A “covered work” means either the unmodified Program or a work based on the Program. To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work. A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”. c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. “Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. “Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”. A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”. You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . \ No newline at end of file diff --git a/page.php b/page.php new file mode 100644 index 0000000..ec96c29 --- /dev/null +++ b/page.php @@ -0,0 +1,46 @@ + +
+ + +
+
+ +
+
+
+ + + + + + + + + +
+
+
+ + + +
+ \ No newline at end of file diff --git a/readme.txt b/readme.txt index 0a3c996..b677949 100644 --- a/readme.txt +++ b/readme.txt @@ -41,3 +41,6 @@ The exceptions to this license are as follows: * images/bg.jpg Copyright (C) 2014 http://jaymantri.com/ + + * images/focus.png + Copyright (C) 2014 https://www.iconfinder.com/icons/283043/album_cloud_frame_gallery_image_mountain_painting_photo_photos_pictures_sky_icon diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..fe9cd20 Binary files /dev/null and b/screenshot.png differ diff --git a/search.php b/search.php new file mode 100644 index 0000000..78e5c42 --- /dev/null +++ b/search.php @@ -0,0 +1,53 @@ + + +
+ + +
+
+ +
+ +
+
+ + + + + + + + + + + + + + + + + + + + +
+
+ +
+ + + +
+ + \ No newline at end of file diff --git a/sections/about_us.php b/sections/about_us.php new file mode 100644 index 0000000..c94b857 --- /dev/null +++ b/sections/about_us.php @@ -0,0 +1 @@ +

'; echo $zerif_aboutus_subtitle; echo ''; endif; ?>
'; echo '
'; echo $zerif_aboutus_biglefttitle; echo '
'; echo '
'; endif; $zerif_aboutus_text = get_theme_mod('zerif_aboutus_text','You can add here a large piece of text. For that, please go in the Admin Area, Customizer, "About us section"

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dapibus, eros at accumsan auctor, felis eros condimentum quam, non porttitor est urna vel neque.

Maecenas non tellus vitae augue tempor venenatis. Mauris ac tincidunt dolor, id feugiat odio. Mauris egestas ligula sit amet lorem condimentum ultrices'); if(isset($zerif_aboutus_text) && $zerif_aboutus_text != ""): echo '
'; echo '

'; echo $zerif_aboutus_text; echo '

'; echo '
'; endif; ?>
  • '; echo ''; echo '
'; endif; $zerif_aboutus_feature1_title = get_theme_mod('zerif_aboutus_feature1_title','Feature 1'); $zerif_aboutus_feature1_text = get_theme_mod('zerif_aboutus_feature1_text'); $zerif_aboutus_feature1_text = get_theme_mod('zerif_aboutus_feature1_text'); if(isset($zerif_aboutus_feature1_title) && $zerif_aboutus_feature1_title != ''): echo '
'.$zerif_aboutus_feature1_title.'
'; endif; if(isset($zerif_aboutus_feature1_text) && $zerif_aboutus_feature1_text != ""): echo '

'.$zerif_aboutus_feature1_text.'

'; endif; ?>
  • '; echo ''; echo '
  • '; endif; $zerif_aboutus_feature2_title = get_theme_mod('zerif_aboutus_feature2_title','Feature 2'); $zerif_aboutus_feature2_text = get_theme_mod('zerif_aboutus_feature2_text'); if(isset($zerif_aboutus_feature2_title) && $zerif_aboutus_feature2_title != ''): echo '
    '.$zerif_aboutus_feature2_title.'
    '; endif; if(isset($zerif_aboutus_feature2_text) && $zerif_aboutus_feature2_text != ""): echo '

    '.$zerif_aboutus_feature2_text.'

    '; endif; ?>
  • '; echo ''; echo '
  • '; endif; $zerif_aboutus_feature3_title = get_theme_mod('zerif_aboutus_feature3_title','Feature 3'); $zerif_aboutus_feature3_text = get_theme_mod('zerif_aboutus_feature3_text'); if(isset($zerif_aboutus_feature3_title) && $zerif_aboutus_feature3_title != ''): echo '
    '.$zerif_aboutus_feature3_title.'
    '; endif; if(isset($zerif_aboutus_feature3_text) && $zerif_aboutus_feature3_text != ""): echo '

    '.$zerif_aboutus_feature3_text.'

    '; endif; ?>
  • '; echo ''; echo '
  • '; endif; $zerif_aboutus_feature4_title = get_theme_mod('zerif_aboutus_feature4_title','Feature 4'); $zerif_aboutus_feature4_text = get_theme_mod('zerif_aboutus_feature4_text'); if(isset($zerif_aboutus_feature4_title) && $zerif_aboutus_feature4_title != ''): echo '
    '.$zerif_aboutus_feature4_title.'
    '; endif; if(isset($zerif_aboutus_feature4_text) && $zerif_aboutus_feature4_text != ""): echo '

    '.$zerif_aboutus_feature4_text.'

    '; endif; ?>
    '; echo '
    '; echo '
    '; echo '
    '; echo '
    '; dynamic_sidebar( 'sidebar-aboutus' ); echo '
    '; echo '
    '; endif; ?> \ No newline at end of file diff --git a/sections/big_title.php b/sections/big_title.php new file mode 100644 index 0000000..48f04fd --- /dev/null +++ b/sections/big_title.php @@ -0,0 +1 @@ +'; $zerif_bigtitle_title = get_theme_mod('zerif_bigtitle_title','To add a title here please go to Customizer'); if(isset($zerif_bigtitle_title) && $zerif_bigtitle_title != ""): echo '

    '.$zerif_bigtitle_title.'

    '; endif; $zerif_bigtitle_redbutton_label = get_theme_mod('zerif_bigtitle_redbutton_label','One button'); $zerif_bigtitle_redbutton_url = get_theme_mod('zerif_bigtitle_redbutton_url','#'); $zerif_bigtitle_greenbutton_label = get_theme_mod('zerif_bigtitle_greenbutton_label','Another button'); $zerif_bigtitle_greenbutton_url = get_theme_mod('zerif_bigtitle_greenbutton_url','#'); if( (isset($zerif_bigtitle_redbutton_label) && $zerif_bigtitle_redbutton_label != "" && isset($zerif_bigtitle_redbutton_url) && $zerif_bigtitle_redbutton_url != "") || (isset($zerif_bigtitle_greenbutton_label) && $zerif_bigtitle_greenbutton_label != "" && isset($zerif_bigtitle_greenbutton_url) && $zerif_bigtitle_greenbutton_url != "")): echo '
    '; if (isset($zerif_bigtitle_redbutton_label) && $zerif_bigtitle_redbutton_label != "" && isset($zerif_bigtitle_redbutton_url) && $zerif_bigtitle_redbutton_url != ""): echo ''.$zerif_bigtitle_redbutton_label.''; endif; if (isset($zerif_bigtitle_greenbutton_label) && $zerif_bigtitle_greenbutton_label != "" && isset($zerif_bigtitle_greenbutton_url) && $zerif_bigtitle_greenbutton_url != ""): echo ''.$zerif_bigtitle_greenbutton_label.''; endif; echo '
    '; endif; echo ''; echo '
    '; ?> \ No newline at end of file diff --git a/sections/our_focus.php b/sections/our_focus.php new file mode 100644 index 0000000..5bd7741 --- /dev/null +++ b/sections/our_focus.php @@ -0,0 +1 @@ +

    '.$zerif_ourfocus_subtitle.''; endif; ?>
    \ No newline at end of file diff --git a/sections/our_team.php b/sections/our_team.php new file mode 100644 index 0000000..810cee7 --- /dev/null +++ b/sections/our_team.php @@ -0,0 +1 @@ +'; echo '
    '; echo '
    '; echo '

    '.__('Our Team','zerif-lite').'

    '; $zerif_ourteam_subtitle = get_theme_mod('zerif_ourteam_subtitle','Add a subtitle in Customizer, "Our team section"'); if(isset($zerif_ourteam_subtitle) && $zerif_ourteam_subtitle != ""): echo '
    '.$zerif_ourteam_subtitle.'
    '; endif; echo '
    '; if(is_active_sidebar( 'sidebar-ourteam' )): echo '
    '; dynamic_sidebar( 'sidebar-ourteam' ); echo '
    '; else: echo '
    '; the_widget( 'zerif_team_widget','name=Member 1&position=CEO&description=Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dapibus, eros at accumsan auctor, felis eros condimentum quam, non porttitor est urna vel neque&fb_link=#&tw_link=#&bh_link=#&db_link=#&image_uri='.get_template_directory_uri().'/images/product-bg.png' ); the_widget( 'zerif_team_widget','name=Member 2&position=CTO&description=Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dapibus, eros at accumsan auctor, felis eros condimentum quam, non porttitor est urna vel neque&fb_link=#&tw_link=#&bh_link=#&db_link=#&image_uri='.get_template_directory_uri().'/images/product-bg.png' ); the_widget( 'zerif_team_widget','name=Member 3&position=VP&description=Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dapibus, eros at accumsan auctor, felis eros condimentum quam, non porttitor est urna vel neque&fb_link=#&tw_link=#&bh_link=#&db_link=#&image_uri='.get_template_directory_uri().'/images/product-bg.png' ); the_widget( 'zerif_team_widget','name=Member 4&position=CFO&description=Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dapibus, eros at accumsan auctor, felis eros condimentum quam, non porttitor est urna vel neque&fb_link=#&tw_link=#&bh_link=#&db_link=#&image_uri='.get_template_directory_uri().'/images/product-bg.png' ); echo '
    '; endif; echo '
    '; echo ''; ?> \ No newline at end of file diff --git a/sections/ribbon_with_bottom_button.php b/sections/ribbon_with_bottom_button.php new file mode 100644 index 0000000..91aba84 --- /dev/null +++ b/sections/ribbon_with_bottom_button.php @@ -0,0 +1,21 @@ +'; + echo '
    '; + echo '

    '; + echo $zerif_bottomribbon_text; + echo '

    '; + + $zerif_bottomribbon_buttonlabel = get_theme_mod('zerif_bottomribbon_buttonlabel'); + $zerif_bottomribbon_buttonlink = get_theme_mod('zerif_bottomribbon_buttonlink'); + + if(isset($zerif_bottomribbon_buttonlabel) && $zerif_bottomribbon_buttonlabel != "" && isset($zerif_bottomribbon_buttonlink) && $zerif_bottomribbon_buttonlink != ""): + echo '
    '; + echo ''.$zerif_bottomribbon_buttonlabel.''; + echo '
    '; + endif; + echo '
    '; + echo ''; + endif; +?> \ No newline at end of file diff --git a/sections/ribbon_with_right_button.php b/sections/ribbon_with_right_button.php new file mode 100644 index 0000000..b53daa5 --- /dev/null +++ b/sections/ribbon_with_right_button.php @@ -0,0 +1,25 @@ +'; + echo '
    '; + echo '
    '; + echo '
    '; + echo '

    '; + echo $zerif_ribbonright_text; + echo '

    '; + echo '
    '; + + $zerif_ribbonright_buttonlabel = get_theme_mod('zerif_ribbonright_buttonlabel'); + $zerif_ribbonright_buttonlink = get_theme_mod('zerif_ribbonright_buttonlink'); + + if(isset($zerif_ribbonright_buttonlabel) && $zerif_ribbonright_buttonlabel != "" && isset($zerif_ribbonright_buttonlink) && $zerif_ribbonright_buttonlink != ""): + echo ''; + endif; + echo '
    '; + echo '
    '; + echo ''; + endif; +?> \ No newline at end of file diff --git a/sections/testimonials.php b/sections/testimonials.php new file mode 100644 index 0000000..bd76442 --- /dev/null +++ b/sections/testimonials.php @@ -0,0 +1 @@ +'; echo '
    '; echo '
    '; echo '

    '.__('Testimonials','zerif-lite').'

    '; $zerif_testimonials_subtitle = get_theme_mod('zerif_testimonials_subtitle'); if(isset($zerif_testimonials_subtitle) && $zerif_testimonials_subtitle != ""): echo '
    '.$zerif_testimonials_subtitle.'
    '; endif; echo '
    '; echo '
    '; echo '
    '; echo ''; echo '
    '; echo '
    '; echo '
    '; echo ''; ?> \ No newline at end of file diff --git a/sidebar.php b/sidebar.php new file mode 100644 index 0000000..b41afb5 --- /dev/null +++ b/sidebar.php @@ -0,0 +1,32 @@ + + \ No newline at end of file diff --git a/single.php b/single.php new file mode 100644 index 0000000..5a8765b --- /dev/null +++ b/single.php @@ -0,0 +1,33 @@ + +
    + +
    +
    +
    +
    +
    + +
    +
    +
    + +
    + \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..97b0b5f --- /dev/null +++ b/style.css @@ -0,0 +1,2981 @@ +/* +Theme Name: Zerif Lite +Theme URI: https://themeisle.com/themes/zerif-lite/ +Author: ThemeIsle +Author URI: https://themeisle.com +Description: Zerif LITE is free a one page Wordpress theme. It's perfect for web agencies, digital studios, corporate, product showcase, personal and business portfolio. +Version: 1.0.5 +License: GNU General Public License version 3 +License URI: license.txt +Text Domain: zerif-lite +Domain Path: /languages/ +Tags: black, gray, red, white, one-column, two-columns, right-sidebar, responsive-layout, custom-background, custom-menu, editor-style, featured-images, threaded-comments, translation-ready +*/ +/*-------------------------------------------------------------- +1.0 - Reset +--------------------------------------------------------------*/ +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, font, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td { + border: 0; + font-family: inherit; + font-size: 100%; + font-style: inherit; + font-weight: inherit; + margin: 0; + outline: 0; + padding: 0; + vertical-align: baseline; +} +html { + font-size: 62.5%; /* Corrects text resizing oddly in IE6/7 when body font-size is set using em units http://clagnut.com/blog/348/#c790 */ + overflow-y: scroll; /* Keeps page centered in all browsers regardless of content height */ + -webkit-text-size-adjust: 100%; /* Prevents iOS text size adjust after orientation change, without disabling user zoom */ + -ms-text-size-adjust: 100%; /* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/ */ +} +*, +*:before, +*:after { /* apply a natural box layout model to all elements; see http://www.paulirish.com/2012/box-sizing-border-box-ftw/ */ + -webkit-box-sizing: border-box; /* Not needed for modern webkit but still used by Blackberry Browser 7.0; see http://caniuse.com/#search=box-sizing */ + -moz-box-sizing: border-box; /* Still needed for Firefox 28; see http://caniuse.com/#search=box-sizing */ + box-sizing: border-box; +} +body { + background: #fff; +} +article, +aside, +details, +figcaption, +figure, +footer, +header, +main, +nav, +section { + display: block; +} +ol, ul { + list-style: none; +} +table { /* tables still need 'cellspacing="0"' in the markup */ + border-collapse: separate; + border-spacing: 0; +} +caption, th, td { + font-weight: normal; + text-align: left; +} +blockquote:before, blockquote:after, +q:before, q:after { + content: ""; +} +blockquote, q { + quotes: "" ""; +} +a:focus { + outline: thin dotted; +} +a:hover, +a:active { + outline: 0; +} +a img { + border: 0; +} +body { + font-family: 'Lato', sans-serif !important; + font-size: 14px; + color: #808080; + font-weight: normal; + overflow-x: hidden; + line-height: 25px; + text-align: center; +} +/* Internet Explorer 10 in Windows 8 and Windows Phone 8 Bug fix */ +@-webkit-viewport { + width: device-width; +} +@-moz-viewport { + width: device-width; +} +@-ms-viewport { + width: device-width; +} +@-o-viewport { + width: device-width; +} +@viewport { + width: device-width; +} +/* Other fixes*/ +*,*:before,*:after { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +i { + vertical-align: middle; +} +ul, ol { +padding-left: 0 !important; +} +/* Selection colours (easy to forget) */ +::selection { + background: #FC6D6D; + color: #FFF; +} +::-moz-selection { + background: #FC6D6D; + color: #FFF; +} +a { + color: #e96656; + -webkit-transition: all 700ms; + transition: all 700ms; +} +a,a:hover { + text-decoration: none; +} +a:hover { + color: #cb4332; +} +p { + margin: 0; +} +.full-width { + width: 100%; + margin: auto; +} +/*-------------------------------------------------------------- +2.0 Typography +--------------------------------------------------------------*/ +body, +button, +input, +select, +textarea { + color: #404040; + font-family: sans-serif; + font-size: 16px; + font-size: 1.6rem; + line-height: 1.5; +} +h1, h2, h3, h4, h5, h6 { + clear: both; +} +p { + margin-bottom: 1.5em; +} +b, strong { + font-weight: bold; +} +dfn, cite, em, i { + font-style: italic; +} +blockquote { + margin: 0 1.5em; +} +blockquote { + font-size: 18px; + font-style: italic; + font-weight: 300; + margin: 24px 40px; + line-height: 26px; +} +address { + margin: 0 0 1.5em; +} +pre { + background: #eee; + font-family: "Courier 10 Pitch", Courier, monospace; + font-size: 15px; + font-size: 1.5rem; + line-height: 1.6; + margin-bottom: 1.6em; + max-width: 100%; + overflow: auto; + padding: 1.6em; +} +code, kbd, tt, var { + font: 15px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; +} +abbr, acronym { + border-bottom: 1px dotted #666; + cursor: help; +} +mark, ins { + background: #fff9c0; + text-decoration: none; +} +sup, +sub { + font-size: 75%; + height: 0; + line-height: 0; + position: relative; + vertical-align: baseline; +} +sup { + bottom: 1ex; +} +sub { + top: .5ex; +} +small { + font-size: 75%; +} +big { + font-size: 125%; +} +dl { + margin: 0 20px; +} +h1, h2, h3, h4, h5, h6 { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; + margin-top: 15px; + margin-bottom: 10px; + display: block; + clear: both; + float: left; + width: 100%; +} +h1,h2 { + font-family: 'Montserrat', 'sans-serif'; + font-weight: 700; + line-height: 35px; +} +h1 { + font-size: 30px; +} +h2 { + font-size: 26px; +} +h3 { + font-size: 24px; +} +h4 { + font-size: 18px; +} +h5 { + font-size: 17px; +} +h6 { + font-size: 16px; +} +/*-------------------------------------------------------------- +3.0 Buttons +--------------------------------------------------------------*/ +.buttons { + text-align: center; + margin-bottom: 150px; + margin-top: 45px; +} +.button { + display: inline-block !important; + text-align: center; + text-transform: uppercase; + padding: 10px 35px 10px 35px; + border-radius: 4px; + margin: 10px; +} +.custom-button { + display: inline-block !important; + text-align: center; + text-transform: uppercase; + padding: 13px 35px 13px 35px; + border-radius: 4px; + margin: 10px; + border: none; +} +.red-btn { + background: #e96656; +} +.green-btn { + background: #20AA73; +} +.blue-btn { + background: #3ab0e2; +} +.yellow-btn { + background: #E7AC44; +} +.red-btn,.green-btn,.blue-btn,.yellow-btn { + color: #FFF !important; + -webkit-transition: all 0.3s ease-in-out; + transition: all 0.3s ease-in-out; +} +.blue-btn:hover { + color: #FFF; + background: #1288b9; +} +.red-btn:hover { + color: #FFF; + background: #cb4332; +} +.green-btn:hover { + color: #FFF; + background: #069059; +} +.yellow-btn:hover { + color: #FFF; + background: #d8951e; +} +.btn:hover{ + box-shadow: none; +} +/*-------------------------------------------------------------- +3.0 Elements +--------------------------------------------------------------*/ +hr { + background-color: #ccc; + border: 0; + height: 1px; + margin-bottom: 1.5em; +} +ul, ol { + margin: 0 0 1.5em 3em; +} +ul { + list-style: disc; +} +ol { + list-style: decimal; +} +li > ul, +li > ol { + margin-bottom: 0; + margin-left: 1.5em; +} +dt { + font-weight: bold; +} +dd { + margin: 0 1.5em 1.5em 0; +} +img { + height: auto; /* Make sure images are scaled correctly. */ + max-width: 100%; /* Adhere to container width. */ +} +figure { + margin: 0; +} +.site-main p { + margin: 0 0 24px; +} +table { + border-bottom: 1px solid #ededed; + border-collapse: collapse; + border-spacing: 0; + font-size: 14px; + line-height: 2; + margin: 0 0 20px; + width: 100%; +} +caption, +th, +td { + font-weight: normal; + text-align: left; +} +caption { + font-size: 16px; + margin: 20px 0; +} +th { + font-weight: bold; + text-transform: uppercase; + border-top: 1px solid #ededed; + padding: 6px 10px 6px 0; +} +td { + border-top: 1px solid #ededed; + padding: 6px 10px 6px 0; +} +thead th{ + border: none; +} +/*--------------------------------------- + ** COLORS ----- +-----------------------------------------*/ +/** BACKGROUNDS **/ +.red-bg { + background: #e96656; +} +.green-bg { + background: #34d293; +} +.blue-bg { + background: #3ab0e2; +} +.yellow-bg { + background: #E7AC44; +} +.dark-bg { + background: #404040; +} +.white-bg { + background: #FFFFFF; +} +/** FOR TEXTS AND ICON FONTS **/ +.red-text { + color: #e96656; +} +.green-text { + color: #34d293; +} +.blue-text { + color: #3ab0e2; +} +.yellow-text { + color: #f7d861; +} +.dark-text { + color: #404040; +} +.white-text { + color: #FFFFFF; +} +/*--------------------------------------- + ** BORDER BOTTOMS ----- +-----------------------------------------*/ +.white-border-bottom:before { + position: absolute; + margin: auto; + z-index: 1; + content: ""; + width: 50%; + height: 2px; + background: #F5F5F5; + bottom: -9px; + left: 25%; +} +.dark-border-bottom:before { + position: absolute; + margin: auto; + z-index: 1; + content: ""; + width: 50%; + height: 2px; + background: #404040; + bottom: -9px; + left: 25%; +} +.red-border-bottom:before { + position: absolute; + margin: auto; + z-index: 1; + content: ""; + width: 75%; + height: 2px; + background: #e96656; + bottom: -9px; + left: 12.5%; +} +.green-border-bottom:before { + position: absolute; + margin: auto; + z-index: 1; + content: ""; + width: 75%; + height: 2px; + background: #34d293; + bottom: -9px; + left: 12.5%; +} +.blue-border-bottom:before { + position: absolute; + margin: auto; + z-index: 1; + content: ""; + width: 75%; + height: 2px; + background: #3ab0e2; + bottom: -9px; + left: 12.5%; +} +.yellow-border-bottom:before { + position: absolute; + margin: auto; + z-index: 1; + content: ""; + width: 75%; + height: 2px; + background: #f7d861; + bottom: -9px; + left: 12.5%; +} +/*--------------------------------------- + ** 4.0 Forms ----- +-----------------------------------------*/ +button, +input, +select, +textarea { + font-size: 100%; /* Corrects font size not being inherited in all browsers */ + margin: 0; /* Addresses margins set differently in IE6/7, F3/4, S5, Chrome */ + vertical-align: baseline; /* Improves appearance and consistency in all browsers */ + *vertical-align: middle; /* Improves appearance and consistency in IE6/IE7 */ +} +button, +input[type="button"], +input[type="reset"], +input[type="submit"] { + text-align: center; + text-transform: uppercase; + padding: 13px 35px 13px 35px; + border-radius: 4px; + margin: 10px; + border: none; + background-color: #e96656; + box-shadow: none; + text-shadow: none; + font-weight: 400; + vertical-align: middle; + cursor: pointer; + white-space: nowrap; + font-size: 14px; + color: #FFF; +} +button:hover, +input[type="button"]:hover, +input[type="reset"]:hover, +input[type="submit"]:hover { + border-color: #ccc #bbb #aaa #bbb; + box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 15px 17px rgba(255, 255, 255, 0.8), inset 0 -5px 12px rgba(0, 0, 0, 0.02); +} +button:focus, +input[type="button"]:focus, +input[type="reset"]:focus, +input[type="submit"]:focus, +button:active, +input[type="button"]:active, +input[type="reset"]:active, +input[type="submit"]:active { + border-color: #aaa #bbb #bbb #bbb; + box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.15); +} +input[type="checkbox"], +input[type="radio"] { + padding: 0; /* Addresses excess padding in IE8/9 */ +} +input[type="search"] { + -webkit-appearance: textfield; /* Addresses appearance set to searchfield in S5, Chrome */ + -webkit-box-sizing: content-box; /* Addresses box sizing set to border-box in S5, Chrome (include -moz to future-proof) */ + -moz-box-sizing: content-box; + box-sizing: content-box; +} +input[type="search"]::-webkit-search-decoration { /* Corrects inner padding displayed oddly in S5, Chrome on OSX */ + -webkit-appearance: none; +} +button::-moz-focus-inner, +input::-moz-focus-inner { /* Corrects inner padding and border displayed oddly in FF3/4 www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ */ + border: 0; + padding: 0; +} +input[type="text"], +input[type="email"], +input[type="url"], +input[type="password"], +input[type="search"], +textarea { + color: #A0A0A0; + border: 1px solid rgba(0, 0, 0, 0.1); + border-radius: 0; +} +input[type="text"]:focus, +input[type="email"]:focus, +input[type="url"]:focus, +input[type="password"]:focus, +input[type="search"]:focus, +textarea:focus { + color: #111; +} +input[type="text"], +input[type="email"], +input[type="url"], +input[type="password"], +input[type="search"] { + padding: 3px; +} +textarea { + overflow: auto; /* Removes default vertical scrollbar in IE6/7/8/9 */ + padding-left: 3px; + vertical-align: top; /* Improves readability and alignment in all browsers */ + width: 98%; +} +.entry-content button, +.entry-content input[type="button"], +.entry-content input[type="reset"], +.entry-content input[type="submit"] { + padding: 5px 20px 5px 20px; +} +.entry-content button:hover, +.entry-content input[type="button"]:hover, +.entry-content input[type="reset"]:hover, +.entry-content input[type="submit"]:hover { + background: #cb4332; +} +.input-box { + border: 0 !important; + width: 274px; + text-align: left; + text-transform: none; + padding: 9px; + min-height: 46px; + padding-left: 15px !important; + display: inline-block; + border-radius: 4px; + background: rgba(255,255,255, 0.95); +} +.textarea-box { + border: 0; + text-align: left; + text-transform: none; + padding: 9px; + min-height: 250px; + padding-left: 15px; + display: inline-block; + border-radius: 4px; + background: rgba(255,255,255, 0.95); +} + textarea:hover, +input:hover, +textarea:active, +input:active, +textarea:focus, +input:focus { + outline: 1 !important; + outline-color: #e96656 !important; + -webkit-appearance:none; + + -webkit-box-shadow:none !important; + box-shadow:none !important; +} + /*--------------------------------------- + ** 5.0 Navigation ----- +-----------------------------------------*/ + /*--------------------------------------- + ** 5.1 Links ----- +-----------------------------------------*/ +a { + color: royalblue; +} +a:visited { + color: purple; +} +a:hover, +a:focus, +a:active { + color: midnightblue; +} +/*--------------------------------------- + ** 5.2 Menus ----- +-----------------------------------------*/ +.main-navigation { + clear: both; + display: block; + float: left; + width: 100%; +} +.main-navigation ul { + list-style: none; + margin: 0; + padding-left: 0; +} +.main-navigation li { + float: left; + position: relative; +} +.main-navigation a { + display: block; + text-decoration: none; +} +.main-navigation ul ul { + box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2); + display: none; + float: left; + left: 0; + position: absolute; + top: 1.5em; + z-index: 99999; +} +.main-navigation ul ul ul { + left: 100%; + top: 0; +} +.main-navigation ul ul a { + width: 200px; +} +.main-navigation ul ul li { +} +.main-navigation li:hover > a { +} +.main-navigation ul ul :hover > a { +} +.main-navigation ul ul a:hover { +} +.main-navigation ul li:hover > ul { + display: block; +} +.main-navigation .current_page_item a, +.main-navigation .current-menu-item a { +} +.navbar-collapse{ + overflow: visible !important; +} +/* Small menu */ +/* +.menu-toggle { + cursor: pointer; + display: none; +} +@media screen and (max-width: 600px) { + .menu-toggle, + .main-navigation.toggled .nav-menu { + display: block; + } + .main-navigation ul { + display: none; + } +} +*/ +.site-main .comment-navigation, +.site-main .paging-navigation, +.site-main .post-navigation { + margin: 0 0 1.5em; + overflow: hidden; +} +.comment-navigation .nav-previous, +.paging-navigation .nav-previous, +.post-navigation .nav-previous { + float: left; +} +.comment-navigation .nav-next, +.paging-navigation .nav-next, +.post-navigation .nav-next { + float: right; + text-align: right; + width: 50%; +} +.nav-links a { + color:#e96656; +} + /*--------------------------------------- + ** 6.0 Accessibility ----- +-----------------------------------------*/ +/* Text meant only for screen readers */ +.screen-reader-text { + clip: rect(1px, 1px, 1px, 1px); + position: absolute !important; +} +.screen-reader-text:hover, +.screen-reader-text:active, +.screen-reader-text:focus { + background-color: #f1f1f1; + border-radius: 3px; + box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); + clip: auto !important; + color: #21759b; + display: block; + font-size: 14px; + font-weight: bold; + height: auto; + left: 5px; + line-height: normal; + padding: 15px 23px 14px; + text-decoration: none; + top: 5px; + width: auto; + z-index: 100000; /* Above WP toolbar */ +} + /*--------------------------------------- + ** 7.0 Alignments ----- +-----------------------------------------*/ +.alignleft { + display: inline; + float: left; + margin-right: 1.5em; +} +.alignright { + display: inline; + float: right; + margin-left: 1.5em; +} +.aligncenter { + clear: both; + display: block; + margin: 0 auto; +} + /*--------------------------------------- + ** 8.0 Clearings ----- +-----------------------------------------*/ +.clear:before, +.clear:after, +.entry-content:before, +.entry-content:after, +.comment-content:before, +.comment-content:after, +.site-header:before, +.site-header:after, +.site-content:before, +.site-content:after, +.site-footer:before, +.site-footer:after { + content: ''; + display: table; +} +.clear:after, +.entry-content:after, +.comment-content:after, +.site-header:after, +.site-content:after, +.site-footer:after { + clear: both; +} + /*--------------------------------------- + ** 9.0 Widgets ----- +-----------------------------------------*/ +.sidebar-wrap { + border-left: 1px solid rgba(0, 0, 0, 0.05); +} +.widget { + /*margin: 0 0 1.5em; + margin-bottom: 30px;*/ +} +.widget .widget-title { + color: #404040; + text-transform: uppercase; + margin-bottom: 30px; + font-weight: bold; + font-size: 17px; + position: relative; + text-align: left; + margin-top: 30px; + padding-bottom: 5px; + float: none; +} +.widget .widget-title:before{ + position: absolute; + margin: auto; + z-index: 1; + content: ""; + width: 35%; + height: 2px; + background: #e96656; + bottom: -9px; + left: 0; +} +/* Make sure select elements fit in widgets */ +.widget select { + max-width: 100%; + width: 100%; + padding: 10px; + border: 1px solid #e9e9e9; +} +.tagcloud a{ + background: #FCFCFC; + + padding: 2px 5px; +} +/* Search widget */ +.widget_search .search-submit { +/* display: none; */ + display: block; + width: 46px; + height: 46px; + position: absolute; + top: 0; + right: 0; + padding: 0; + margin: 0; + background: url(images/search_icon.png) no-repeat center center; + text-indent: -99999999999px; +} +.widget_search label{ + + width: 100%; + position: relative; +} +.widget_search form{ + position: relative; +} +.widget_search input{ + width: 83%; + padding: 12px 15% 12px 2%; +} +.widget ul { + margin:0; + padding:0; + display: block; +} +.widget li { + list-style: none; + margin: 15px 0; + text-align: left; + margin-left: 3%; + position: relative; + padding-left: 10px; +} +.widget li:before{ + content: ''; + width: 4px; + height: 4px; + background: #e9e9e9; + float: left; + position: absolute; + margin-top: 11px; + left: 0; +} +.widget li a { + color:#808080; +} +.widget li a:hover { + color:#404040 +} + /*--------------------------------------- + ** 10.0 Content ----- +-----------------------------------------*/ + +container>.navbar-header, +.container-fluid>.navbar-header, +.container>.navbar-collapse, +.container-fluid>.navbar-collapse { + margin-right: 0; + margin-left: 0; +} + + /*--------------------------------------- + ** 10.1 Posts and pages ----- +-----------------------------------------*/ +.sticky { +} +.hentry { + margin: 0 0 1.5em; +} +.byline, +.updated { + display: none; +} +.single .byline, +.group-blog .byline { + display: inline; +} +.page-content, +.entry-content, +.entry-summary { + margin: 1.5em 0 0; +} +.page-links { + clear: both; + margin: 0 0 1.5em; +} +.page-header{ + text-align: left; + border-bottom: none; + margin: 40px 0 40px; +} +.page-header .page-title{ + position: relative; +} +.page-header .page-title:before{ + position: absolute; + margin: auto; + z-index: 1; + content: ""; + width: 35%; + height: 2px; + background: #e9e9e9; + bottom: -9px; + left: 0; +} +.taxonomy-description{ + margin-top: 15px; +} +.entry-title{ + + position: relative; +} +.entry-title:before { + position: absolute; + margin: auto; + z-index: 1; + content: ""; + width: 10%; + height: 2px; + background: #e96656; + bottom: -9px; + left: 0; +} +.entry-meta{ + margin-top: 10px; +} + /*--------------------------------------- + ** 10.2 Asides ----- +-----------------------------------------*/ +.blog .format-aside .entry-title, +.archive .format-aside .entry-title { + display: none; +} + /*--------------------------------------- + ** 10.3 Comments ----- +-----------------------------------------*/ +.comment { + list-style:none; + margin-top:10px; + margin-bottom:10px; +} +.comment a { + color:#c7254e; +} +.comment-body { + text-align: left; + border-bottom: 1px solid rgba(0, 0, 0, 0.05); + padding-bottom: 10px; + position: relative; + padding-left: 40px; +} +.comment-content a { + word-wrap: break-word; +} +.bypostauthor { +} +.comment-form, .comments-title, .comment-reply-title { + text-align:left; +} +.comment-form p { + margin:10px 10px 10px 0; +} +.comment-form label { + width:85px; +} +.comments-title { + font-size:20px; + margin-bottom:20px; +} +.comment-list { + margin-left:0px; +} +.comment-list li{ + list-style: none; + float: left; + width: 100%; +} +.comment-reply-link { + border: 1px solid #ccc; + border-radius: 3px; + font-size: 1.2rem; + line-height: 1; + padding: .6em 1em .4em; + text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8); + font-family: sans-serif; + box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 15px 17px rgba(255, 255, 255, 0.5), inset 0 -5px 12px rgba(0, 0, 0, 0.05); + box-shadow: none; + text-shadow: none; + padding: 3px 5px; + position: absolute; + top: 0; + right: 0; +} +.comment-form #submit, .comment-reply-link { + background:#e96656; + border-color:#e96656; + color:#fff !important; +} +.comment-form #submit:hover { + + background: #cb4332; +} +.comment-meta{ + + margin-top: 0 !important; + padding-top: 0 !important; +} +.comment-metadata{ + position: absolute; + top: -2px; + right: 55px; +} +.comment-metadata, +.comment-metadata a{ + color: #bdbdbd; + font-style: italic; + font-size: 12px; +} +.comment-reply-link:hover{ + background: #cb4332; + box-shadow: none; +} +.comment-author img{ + border-radius: 50%; + position: absolute; + left: 0; +} +.comment-author b.fn{ + color: #000; +} + /*--------------------------------------- + ** 11.0 Infinite scroll ----- +-----------------------------------------*/ +/* Globally hidden elements when Infinite Scroll is supported and in use. */ +.infinite-scroll .paging-navigation, /* Older / Newer Posts Navigation (always hidden) */ +.infinite-scroll.neverending .site-footer { /* Theme Footer (when set to scrolling) */ + display: none; +} +/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before */ +.infinity-end.neverending .site-footer { + display: block; +} + /*--------------------------------------- + ** 12.0 Media ----- +-----------------------------------------*/ +.page-content img.wp-smiley, +.entry-content img.wp-smiley, +.comment-content img.wp-smiley { + border: none; + margin-bottom: 0; + margin-top: 0; + padding: 0; +} +.wp-caption { + border: 1px solid #ccc; + margin-bottom: 1.5em; + max-width: 100%; +} +.wp-caption img[class*="wp-image-"] { + display: block; + margin: 1.2% auto 0; + max-width: 98%; +} +.wp-caption-text { + text-align: center; +} +.wp-caption .wp-caption-text { + margin: 0.8075em 0; +} +.site-main .gallery { + margin-bottom: 1.5em; +} +.gallery-caption { +} +.site-main .gallery a img { + border: none; + height: auto; + max-width: 90%; +} +.site-main .gallery dd, +.site-main .gallery figcaption { + margin: 0; +} +.site-main .gallery-columns-4 .gallery-item { +} +.site-main .gallery-columns-4 .gallery-item img { +} +/* Make sure embeds and iframes fit their containers */ +embed, +iframe, +object { + max-width: 100%; +} + /*--------------------------------------- + ** 6.5 Gallery ----- +-----------------------------------------*/ +.gallery { + margin-bottom: 20px; +} +.gallery-item { + float: left; + margin: 0 4px 4px 0; + overflow: hidden; + position: relative; +} +.gallery-columns-1 .gallery-item { + max-width: 100%; +} +.gallery-columns-2 .gallery-item { + max-width: 48%; + max-width: -webkit-calc(50% - 4px); + max-width: calc(50% - 4px); +} +.gallery-columns-3 .gallery-item { + max-width: 32%; + max-width: -webkit-calc(33.3% - 4px); + max-width: calc(33.3% - 4px); +} +.gallery-columns-4 .gallery-item { + max-width: 23%; + max-width: -webkit-calc(25% - 4px); + max-width: calc(25% - 4px); +} +.gallery-columns-5 .gallery-item { + max-width: 19%; + max-width: -webkit-calc(20% - 4px); + max-width: calc(20% - 4px); +} +.gallery-columns-6 .gallery-item { + max-width: 15%; + max-width: -webkit-calc(16.7% - 4px); + max-width: calc(16.7% - 4px); +} +.gallery-columns-7 .gallery-item { + max-width: 13%; + max-width: -webkit-calc(14.28% - 4px); + max-width: calc(14.28% - 4px); +} +.gallery-columns-8 .gallery-item { + max-width: 11%; + max-width: -webkit-calc(12.5% - 4px); + max-width: calc(12.5% - 4px); +} +.gallery-columns-9 .gallery-item { + max-width: 9%; + max-width: -webkit-calc(11.1% - 4px); + max-width: calc(11.1% - 4px); +} +.gallery-columns-1 .gallery-item:nth-of-type(1n), +.gallery-columns-2 .gallery-item:nth-of-type(2n), +.gallery-columns-3 .gallery-item:nth-of-type(3n), +.gallery-columns-4 .gallery-item:nth-of-type(4n), +.gallery-columns-5 .gallery-item:nth-of-type(5n), +.gallery-columns-6 .gallery-item:nth-of-type(6n), +.gallery-columns-7 .gallery-item:nth-of-type(7n), +.gallery-columns-8 .gallery-item:nth-of-type(8n), +.gallery-columns-9 .gallery-item:nth-of-type(9n) { + margin-right: 0; +} +.gallery-columns-1.gallery-size-medium figure.gallery-item:nth-of-type(1n+1), +.gallery-columns-1.gallery-size-thumbnail figure.gallery-item:nth-of-type(1n+1), +.gallery-columns-2.gallery-size-thumbnail figure.gallery-item:nth-of-type(2n+1), +.gallery-columns-3.gallery-size-thumbnail figure.gallery-item:nth-of-type(3n+1) { + clear: left; +} +.gallery-caption { + background-color: rgba(0, 0, 0, 0.7); + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + color: #fff; + font-size: 12px; + line-height: 1.5; + margin: 0; + max-height: 50%; + opacity: 0; + padding: 6px 8px; + position: absolute; + bottom: 0; + left: 0; + text-align: left; + width: 100%; +} +.gallery-caption:before { + content: ""; + height: 100%; + min-height: 49px; + position: absolute; + top: 0; + left: 0; + width: 100%; +} +.gallery-item:hover .gallery-caption { + opacity: 1; +} +.gallery-columns-7 .gallery-caption, +.gallery-columns-8 .gallery-caption, +.gallery-columns-9 .gallery-caption { + display: none; +} +.gallery-item img{ + max-width: 100% !important; +} +/*--------------------------------------- + ** Header ----- +-----------------------------------------*/ +/*** SECTION HEADERS ***/ +.focus,.works,.about-us,.features,.packages,.products,.testimonial,.contact-us { + padding-top: 100px; +} +.section-header { + text-align: center; + padding-bottom: 75px; +} +.section-header h2 { + padding-bottom: 10px; + line-height: 40px; + position: relative; + display: inline-block; + font-size: 45px; + text-transform: uppercase; +} +.section-header h6 { + font-size: 16px; + padding-bottom: 15px; +} +/* PRE LOADER */ +.preloader { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: #fefefe; + z-index: 99999; + height: 100%; + width: 100%; + overflow: hidden !important; +} +.status { + width: 200px; + height: 200px; + position: absolute; + left: 50%; + top: 50%; + background-image: url(images/loading.gif); + background-repeat: no-repeat; + background-position: center; + margin: -100px 0 0 -100px; +} +/*--------------------------------------- + ** Section: Home ----- +-----------------------------------------*/ +.header { + background: rgba(0, 0, 0, 0.5); + min-height: 775px; + position: relative; + overflow: hidden; +} +.header_title { + float: left; + height:50px; + margin-top:10px; +} +.header_title h1{ + font-size: 20px; + line-height: 20px; + margin-bottom: 5px; + text-align: center; + margin-top: 5px; +} +.header_title h2{ + font-size:15px !important; + line-height:15px; + margin: 0; +} +.header_title a { + color:#000; +} +/*---- SECTION: HOME > TOP BAR ----*/ +.navbar { + background: #FFF; + border: 0; + border-radius: 0 !important; + text-align: left; + -webkit-box-shadow: 0px 5px 11px 0px rgba(50, 50, 50, 0.08); + box-shadow: 0px 5px 11px 0px rgba(50, 50, 50, 0.08); +} +#main-nav { + position: fixed; + width: 100%; + z-index: 1000; + min-height: 75px; +} +#main-nav.fixed { + position: fixed !important; + top: 0; +} +.navbar-inverse .navbar-nav >li { + display: inline; + margin-right: 20px; + margin-top: 20px; +} +.navbar-inverse .navbar-nav>li:last-child { + margin-right: 0 !important; +} +.navbar-inverse .navbar-nav>li>a { + color: #404040; + padding: 0; + line-height: 35px; +} +.navbar-inverse .main-navigation ul > li { + display: inline; + margin-right: 20px; + margin-top: 20px; +} +.navbar-inverse .main-navigation > ul > li:last-child { + margin-right: 0 !important; +} +.navbar-inverse .main-navigation > ul > li > a { + color: #404040; + padding: 0; + line-height: 35px; +} +.navbar-inverse .navbar-nav ul.sub-menu { + display: none; + position: absolute; top: 100%; + background:#fff; + width:200px; + box-shadow: 3px 3px 2px rgba(50, 50, 50, 0.08); +} +.navbar-inverse .navbar-nav ul.sub-menu { + margin:0; +} +.navbar-inverse .navbar-nav ul.sub-menu ul.sub-menu{ + position: absolute; + left:100%; + top:0; +} +.navbar-inverse .navbar-nav ul.sub-menu li { + float: none; + position: relative; + list-style:none; + padding:10px; +} +.navbar-inverse .navbar-nav ul.sub-menu li a { + color:#404040; +} +.navbar-inverse .navbar-nav ul.sub-menu li:hover > a { + color:#e96656; +} +.navbar-inverse .navbar-nav li:hover > ul.sub-menu { + display: block; +} + +.navbar-brand { + height: 76px; + position: relative; + line-height: 45px; +} +.current a { + color: #e96656 !important; + position: relative; + outline: none; +} +.current:before { + position: absolute; + margin: auto; + z-index: 1; + content: ""; + width: 75%; + height: 2px; + background: #e96656; + bottom: 0px; + left: 12.5%; +} +.navbar-inverse .navbar-nav>li>a:hover { + color: #e96656; + outline: none; +} +.navbar-toggle { + border: 0; + background-color: #808080; + margin-top: 23px; +} +.navbar-inverse .navbar-toggle:hover,.navbar-inverse .navbar-toggle:focus { + background-color: #e96656; + filter: alpha(opacity=100); + opacity: 1; + box-shadow: none; +} +.navbar-toggle.active{ + background-color: #e96656 !important; +} +.navbar-toggle.collapsed{ + background-color: #808080 !important; +} +/*---- SECTION: HOME > INTRO AND SHORT MSGS ----*/ +.intro { + text-align: center; + color: #FFF; + margin-top: 25%; + line-height: 65px; + z-index: 0; + text-transform: uppercase; + font-size: 55px; + float:none; +} +.intro-text{ + text-align: center; + color: #FFF; + margin-top: 25%; + line-height: 65px; + z-index: 0; + text-transform: uppercase; + font-size: 55px; + float:none; + +} +/* Short Messages */ +.bottom-message-section { + margin-top: 14%; + position: relative; +} +.short-text { + margin: auto; + text-align: center; + color: rgba(255,255,255,0.7); + text-transform: uppercase; +} +/*--------------------------------------- + ** Section: Our focus ----- +-----------------------------------------*/ + +.focus { + padding-bottom: 100px; + overflow: hidden; + background: #FFFFFF; +} +/* FOCUS BOX */ +.focus-box .service-icon { + margin-bottom: 30px; + width: 145px; + height: 145px; + margin: auto; + border-radius: 50%; + border: 10px solid #ececec; + margin-bottom: 20px; + position: relative; + -webkit-transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; +} +/* ON HOVER COLORED ROUNDED CIRCLE AROUND ICONS */ +.red,.green,.blue,.yellow { + -webkit-transition: all 0.2s ease-in-out; + transition: all 0.2s ease-in-out; +} +.ctUp-ads:nth-child(1) .service-icon:hover { + border: 10px solid #e96656; +} +.ctUp-ads:nth-child(2) .service-icon:hover{ + border: 10px solid #34d293; +} +.ctUp-ads:nth-child(3) .service-icon:hover { + border: 10px solid #3ab0e2; +} +.ctUp-ads:nth-child(4) .service-icon:hover{ + border: 10px solid #f7d861; +} +.ctUp-ads:nth-child(1) .red-border-bottom:before { + background: #e96656; +} +.ctUp-ads:nth-child(2) .red-border-bottom:before { + background: #34d293; +} +.ctUp-ads:nth-child(3) .red-border-bottom:before { + background: #3ab0e2; +} +.ctUp-ads:nth-child(4) .red-border-bottom:before { + background: #f7d861; +} +.focus-box h5 { + margin-bottom: 15px; + color: #404040; + position: relative; + display: inline-block; + text-transform: uppercase; + margin-bottom: 30px; + font-weight: bold; + font-size: 17px; + float: none; + width: auto; +} +.focus-box p { + font-size: 14px; +} +/*----OTHER FOCUSES ----*/ +.other-focuses { + background: url(images/lines.png) repeat-x center; + margin-bottom: 25px; +} +.other-focuses .section-footer-title { + padding: 0 15px; + color: #404040; + font-weight: bold; +} +.other-focus-list { + padding-top: 5px; + margin-bottom: -17px; +} +.other-focus-list ul li { + display: inline-block; + margin-right: 50px; + padding-bottom: 15px; + text-transform: uppercase; +} +.other-focus-list ul li:last-child { + margin-right: 0; +} +.other-focus-list ul li i { + margin-right: 8px; +} +/*--------------------------------------- + ** Secction: Separator one ----- +-----------------------------------------*/ +.separator-one { + background: rgba(52, 210, 147, 0.8); + padding: 100px 0 100px 0; +} +.separator-one .green-btn { + background: #14a168; +} +.separator-one .green-btn:hover { + background: #007345; +} +.separator-one .text { + color: #FFF; + line-height: 34px; + padding: 0; + max-width: 800px; + margin-bottom: 20px; +} +/*--------------------------------------- + ** Section: Portfolio ----- +-----------------------------------------*/ +.works { + padding-bottom: 100px; + background: #FFFFFF; + min-height: 800px; +} +/* IMAGE GRID */ +.cbp-rfgrid { + margin: auto; + padding: 0; + list-style: none; + position: relative; + width: 100%; +} +.cbp-rfgrid li { + position: relative; + float: left; + overflow: hidden; + width: 25%; /* Fallback */ +width: -webkit-calc(100% / 4); + width: calc(100% / 4); + -webkit-transition: 0.4s all linear; + transition: 0.4s all linear; +} +.cbp-rfgrid li a,.cbp-rfgrid li a img { + display: block; + max-width: 100%; + -webkit-transform: scale(1,1); + -ms-transform: scale(1,1); + transform: scale(1,1); + -webkit-transition-timing-function: ease-in; + transition-timing-function: ease-in; + -webkit-transition-duration: 250ms; + transition-duration: 250ms; + cursor: pointer; + -webkit-transition: 0.4s all linear; + transition: 0.4s all linear; + width: 100%; +} +.cbp-rfgrid li a:hover img { + -webkit-transform: scale(1.05,1.07); + -ms-transform: scale(1.05,1.07); + transform: scale(1.05,1.07); + -webkit-transition-timing-function: ease-out; + transition-timing-function: ease-out; + -webkit-transition-duration: 250ms; + transition-duration: 250ms; +} +/* Flexbox is used for centering the heading */ +.cbp-rfgrid li a .project-info { + position: absolute; + left: 10px; + top: 10px; + right: 10px; + bottom: 10px; + background: rgba(0,0,0,0.5); + padding-top: 25%; + text-align: center; + filter: alpha(opacity=0); + opacity: 0; + -webkit-transition: all ease .25s; + transition: all ease .25s; +} +.cbp-rfgrid li a .project-info .project-details { + position: relative; + top: -29px; + filter: alpha(opacity=0); + opacity: 0; + -webkit-transition: all ease .25s; + transition: all ease .25s; + width: 100%; +} +.cbp-rfgrid li a .project-info h5 { + position: relative; + display: inline-block; + margin-bottom: 15px; + font-weight: bold; + text-transform: uppercase; +} +.cbp-rfgrid li a:hover .project-info { + filter: alpha(opacity=100); + opacity: 1; +} +.cbp-rfgrid li a:hover .project-details { + filter: alpha(opacity=100); + opacity: 1; + top: 0; +} +.cbp-rfgrid li a:hover .button { + filter: alpha(opacity=100); + opacity: 1; + bottom: -50px; +} +/* media queries: change number of items per row */ +@media screen and (max-width: 1190px) { + .cbp-rfgrid li { + width: 25%; /* Fallback */ + width: -webkit-calc(100% / 4); + width: calc(100% / 4); + } +} +@media screen and (max-width: 1024px) { + .cbp-rfgrid li { + width: 33.33333333333333%; /* Fallback */ + width: -webkit-calc(100% / 3); + width: calc(100% / 3); + } +} +@media screen and (max-width: 768px) { + .cbp-rfgrid li { + width: 50%; /* Fallback */ + width: -webkit-calc(100% / 2); + width: calc(100% / 2); + } +} +@media screen and (max-width: 480px) { + .cbp-rfgrid li { + width: 100%; + } +} +@media screen and (max-width: 300px) { + .cbp-rfgrid li { + width: 100%; + } +} +/* PROJECT DETAILS LOADER */ +#back-button { + display: none; + text-align: center; + text-transform: uppercase; + padding: 13px 35px 13px 35px; + border-radius: 4px; + margin: 10px; +} +#back-button i { + margin-right: 10px; +} +#loader { + min-height: 930px; + position: relative; + display: none; +} +#loader .loader-icon { + background: url(images/loading.gif) no-repeat center center; + background-color: #FFF; + margin: -22px -22px; + top: 50%; + left: 50%; + z-index: 10000; + position: fixed; + width: 44px; + height: 44px; + -webkit-background-size: 30px 30px; + background-size: 30px 30px; + border-radius: 5px; +} +/*--------------------------------------- + ** Section: Abot us; ----- +-----------------------------------------*/ +.about-us { + background: #272727; + color: #FFF; + padding-bottom: 100px; +} +.about-us .big-intro { + text-align: right; + font-weight: 300; + font-size: 60px; + line-height: normal; + margin-top: -15px; +} +.about-us p { + text-align: left; + color: #939393; +} +.about-us .column { + margin-bottom: 78px; +} +/*--SKILLS --*/ +.skills { + text-align: left; +} +.skills .skill { + display: block; + clear: both; + margin-top: 0; + margin-bottom: 25px; +} +.skills .skill .skill-count { + display: inline-block; + height: 64px; + margin-top: 3px; + float: left; + margin-right: 15px; + margin-bottom: 25px; +} +.skills li:last-child { + margin-bottom: 0; +} +.skills .skill .skill1,.skill2,.skill3,.skill4 { + font-size: 16px !important; +} +.skills .skill h6 { + text-transform: uppercase; + font-weight: 700; + clear: none; + width: auto; + float: none; +} +.skills .skill p { + line-height: 20px; + color: #8f8f8f; +} +/*--OUR CLIENTS --*/ +.our-clients { + background: url(images/lines-dark.png) repeat-x center; + margin-bottom: 40px; + float: left; + width: 100%; +} +.our-clients .section-footer-title { + background: #272727; + padding: 0 15px; + color: #FFF; +} +.our-clients h5 { + font-weight: 700; + float:none; +} +.client-list { + padding-top: 5px; + margin-bottom: -17px; +} +.client-list ul{ + margin: 0; +} +.client-list ul li { + vertical-align: middle; + display: inline-block; + margin-right: 24px; + padding-bottom: 15px; + text-transform: uppercase; +} +.client-list ul li img { + max-width: 130px; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"; + filter: alpha(opacity=80); + opacity: 0.8; + -webkit-transition: all ease .55s; + transition: all ease .55s; +} +.client-list ul li img:hover { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; + filter: alpha(opacity=100); + opacity: 1; +} +.client-list ul li:last-child { + margin-right: 0; +} +.client-list ul li i { + margin-right: 8px; +} +.client-list div{ + margin: 0; +} +.client-list div a{ + margin-right: 24px; +} +.client-list div a:last-child{ + margin-right: 0; +} +.client-list div img { + max-width: 130px; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"; + filter: alpha(opacity=80); + opacity: 0.8; + -webkit-transition: all ease .55s; + transition: all ease .55s; + padding-bottom: 15px; +} +.client-list div img:hover { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; + filter: alpha(opacity=100); + opacity: 1; +} +.client-list div a:last-child { + margin-right: 0; +} +/*--------------------------------------- + ** Section: stats ----- +-----------------------------------------*/ +.stats { + background: rgba(0, 0, 0, 0.5); + padding: 100px 0 60px 0 !important; + clear: both; +} +.stat { + margin-bottom: 40px; +} +.stat .icon-top { + font-size: 40px; + height: 50px; + line-height: 50px; +} +.stat .stat-text { + display: inline-block; + position: relative; +} +.stat h3 { + margin-top: 20px; + padding-bottom: 5px; + position: relative; + display: inline-block; +} +.stat h6 { + color: #d1d1d1; + margin-top: 15px; +} +/*--------------------------------------- + ** Section: Our team; ----- +-----------------------------------------*/ +.our-team { + padding-bottom: 66px; + padding-top: 100px; + background: #FFFFFF; +} +.team-member { + border-radius: 4px; + overflow: hidden; + position: relative; + margin-bottom: 35px; +} +.team-member .details { + text-align: left; + font-size: 13px; + line-height: 20px; + position: absolute; + padding: 15px; + top: -200px; + left: 0; + width: 100%; + height: 190px; + -webkit-transition: all 500ms; + transition: all 500ms; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + filter: alpha(opacity=0); + opacity: 0; +} +.team-member .member-details { + position: relative; + display: inline-block; + padding-bottom: 5px; +} +.team-member:hover .details { + top: 0; + background: #333; + color: white; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; + filter: alpha(opacity=100); + opacity: 1; +} +.team-member .profile-pic { + border-radius: 50%; + width: 174px; + height: 174px; + margin: auto; + overflow: hidden; + margin-bottom: 25px; +} +.team-member .profile-pic img { + width: 100%; + height: 100%; +} +.team-member h5 { + text-transform: uppercase; + color: #404040; + font-weight: 700; + position: relative; +} +.team-member .position { + font-size: 13px; + margin-top: 15px; +} +.team-member .social-icons { + margin-bottom: 25px; +} +.team-member .social-icons ul { + margin: 0 0 1.5em 0; +} +.team-member .social-icons ul li { + display: inline-block; + line-height: 32px; + margin: 6px; +} +.team-member .social-icons ul li a { + background: #FFF; + font-size: 18px; + border-radius: 50%; + color: #808080; +} +.team-member .social-icons ul li a:hover { + color: #e96656; +} +.our-team .row > div:nth-child(4n+1) .red-border-bottom:before{ + background: #e96656; +} +.our-team .row > div:nth-child(4n+2) .red-border-bottom:before{ + background: #34d293; +} +.our-team .row > div:nth-child(4n+3) .red-border-bottom:before{ + background: #3ab0e2; +} +.our-team .row > div:nth-child(4n+4) .red-border-bottom:before{ + background: #f7d861; +} +/*--------------------------------------- + ** Features ----- +-----------------------------------------*/ +.features { + background: #FFFFFF; + text-align: left; + padding-bottom: 51px; +} +.features .feature { + margin-bottom: 55px; +} +.features .feature-icon { + font-size: 55px; + float: left; + margin-top: 10px; + margin-right: 25px; +} +.features .feature h5 { + font-weight: bold; + line-height: 28px; + color: #404040; +} +.features .feature p { + font-size: 14px; +} +/*--------------------------------------- + ** Pacages ----- +-----------------------------------------*/ +.packages { + padding-bottom: 50px; + background: rgba(0, 0, 0, 0.5); +} +.package { + border-radius: 4px; + background: #FFFFFF; + margin-top: 25px; + margin-bottom: 50px; + padding-bottom: 15px; +} +.package-header { + height: 57px; + color: #FFF; + line-height: 57px; + border-top-left-radius: 4px; + border-top-right-radius: 4px; +} +.package-header h5 { + text-transform: uppercase; + font-weight: bold; +} +.price { + line-height: 120px; + height: 100px; + color: #FFF; + font-weight: 400; +} +.price h4 { + display: inline; + font-size: 40px; + line-height: normal; + margin-bottom: 0; +} +.price h4 .dollar-sign { + font-size: 17px; + vertical-align: super; +} +.price .price-meta { + line-height: normal; + text-transform: uppercase; + color: #9f9f9f; +} +.package ul li { + padding-top: 10px; + padding-bottom: 10px; + width: 80%; + margin: auto; + border-bottom: 1px dotted #dadada; +} +.package ul li:last-child { + border-bottom: 0; +} +.best-value .package { + margin-top: 0; +} +.best-value .package-header { + padding-top: 17px; + height: 82px !important; +} +.best-value .package-header h4 { + font-weight: bold; + line-height: 29px; + text-transform: uppercase; +} +.best-value .package-header .meta-text { + font-size: 13px; + line-height: normal; +} +.best-value .package-header { + height: 72px; +} +.package ul li i { + font-size: 13px; + margin-right: 5px; +} +.order { + background: #d8ccba; + color: #404040; +} +.package .order-now { + line-height: 45px; + max-width: 100%; + display: block; + background: #404040; + color: #FFF; + -webkit-transition: all 700ms; + transition: all 700ms; + border-bottom-right-radius: 4px; + border-bottom-left-radius: 4px; +} +.package .order-now:hover { + background: #e96656; +} +/*--------------------------------------- +** Producs ----- +-----------------------------------------*/ +.products { + background: url(images/product-bg.png) 50% 0 repeat; +} +.products .color-overlay { + background: rgba(39,144,176, 0.96); + margin-top: -100px; + padding-top: 100px; + padding-bottom: 70px; +} +/*--ITEMS IMAGES--*/ +/*--ITEMS IMAGES--*/ +.item-1 { + background-image: url(images/products/1.jpg); +} +.item-2 { + background-image: url(images/products/2.jpg); +} +.item-3 { + background-image: url(images/products/3.jpg); +} +.item-4 { + background-image: url(images/products/4.jpg); +} +.item-5 { + background-image: url(images/products/5.jpg); +} +.item-6 { + background-image: url(images/products/6.jpg); +} +.item-7 { + background-image: url(images/products/7.jpg); +} +.item-8 { + background-image: url(images/products/8.jpg); +} +/*---ITEM STYLE ---*/ +.item { + width: 100%; + height: 260px; + display: block; + -webkit-background-size: 100%; + background-size: 100%; + position: relative; + margin: auto; + margin-bottom: 30px; + z-index: 5; + -webkit-backface-visibility: hidden; + overflow: hidden; + border-radius: 4px; +} +.item-overlay { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + overflow: hidden; + -webkit-transition: background-color 0.3s ease-in-out; + transition: background-color 0.3s ease-in-out; +} +.item-content { + position: absolute; + width: 100%; + bottom: 0; + -webkit-transform: translate(0,100%); + -ms-transform: translate(0,100%); + transform: translate(0,100%); + -webkit-transition: all 0.3s ease-in-out; + transition: all 0.3s ease-in-out; +} +.item:hover .item-content { + -webkit-transform: translate(0,0); + -ms-transform: translate(0,0); + transform: translate(0,0); + -webkit-transition: all 0.3s ease-in-out; + transition: all 0.3s ease-in-out; +} +.item-top-content { + position: relative; +} +.item-top-content-inner { + position: absolute; + bottom: 0; + padding: 10px 15px 10px 15px; + background: rgba(255,255,255,.95); + width: 100%; +} +.item-add-content { + padding: 0 15px 15px 15px; + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"; + filter: alpha(opacity=0); + opacity: 0; + -webkit-transition: all 0.3s ease-in-out; + transition: all 0.3s ease-in-out; +} +.item:hover .item-add-content { + -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"; + filter: alpha(opacity=100); + opacity: 1; +} +.item-add-content-inner { + border: 0px solid #dadada; + border-top-width: 1px; + padding-top: 10px; +} +.item-top-title { + text-align: left; +} +.item-top-title h5 { + color: #404040; + font-weight: 700; +} +/* ITEM DETAILS */ +.item-product { + width: 70%; + float: left; +} +.item-product-price { + width: 30%; + float: right; + text-align: right; +} +.subdescription { + font-size: 14px; + font-weight: 400; + color: #7d7d7d; +} +/*---PRODUCT PRICE---*/ +.item-product-price { + font-size: 1em; + font-weight: 700; + position: relative; +} +.item-product-price .subdescription { + color: #808080; +} +.old-price { + border: 0 solid #808080; + border-bottom-width: 1px; + margin-top: -11px; + width: 30px; + position: absolute; + right: -2px; + bottom: 10px; + -webkit-transform: rotate(-30deg); + -ms-transform: rotate(-30deg); + transform: rotate(-30deg); +} +/*---ITEM DESCRIPTION ---*/ +.item-content { + background: rgba(255,255,255,.85); +} +.item-add-content { + font-weight: 400; + color: #808080; +} +.item-add-content .section { + margin-bottom: 10px; +} +.item-add-content .section:last-of-type { + margin-bottom: 0; +} +.item-add-content p { + font-size: 14PX; +} +/*--------------------------------------- + ** Newsletter ----- +-----------------------------------------*/ +.newsletter { + padding-top: 62px; + padding-bottom: 62px; + background: rgba(0, 0, 0, 0.5); +} +.newsletter h3 { + font-size: 28px; + text-transform: uppercase; + font-family: 'Montserrat', sans-serif; + font-weight: 700; + margin-bottom: 8px; +} +.newsletter .subscription { + margin-top: 15px; +} +.newsletter .custom-button { + margin-top: 7px; +} +/*---------------------------------------- + ** Testionial ----- +-----------------------------------------*/ +.testimonial { + background: #dbbf56; + padding-bottom: 90px; +} +#client-feedbacks .feedback-box { + width: 30%; + float:left; + background: #FFFFFF; + padding: 25px; + margin: 13px; + text-align: left; + border-radius: 4px; + -webkit-box-shadow: none; + box-shadow: none; + display: block; + z-index: 5; +} +.feedback-box .message { + font-size: 15px; + color: #909090; +} +.feedback-box .client { + margin-top: 30px; + height: 73px; + position: relative; +} +.feedback-box .quote { + float: left; + font-size: 45px; + line-height: 80px; +} +.feedback-box .client-info { + float: left; + margin-left: 18px; + padding-top: 15px; +} +.feedback-box .client-info .client-name { + font-family: 'Homemade Apple', serif; + color: #404040; +} +.feedback-box .client-info .client-company { + font-size: 13px; + margin-top: -3px; +} +.feedback-box .client-image { + float: right; + width: 73px; + height: 73px; + border-radius: 50%; + overflow: hidden; + border: 3px solid #f6f6f6; +} +.feedback-box .client-image img { + width:100%; + height:100%; +} +.customNavigation { + text-align: center; +} +.owl-theme .owl-controls .owl-page span { + background: #886e0e; + border-radius: 50%; +} +.customNavigation a { + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); +} +/*---------------------------------------- + ** Purchase now ----- +-----------------------------------------*/ +.purchase-now { + background: #e96656; + padding-top: 70px; + padding-bottom: 70px; +} +.purchase-now h3 { + text-align: left; + line-height: 40px; + margin-top: 14px; +} +.purchase-now .red-btn { + float: right; + background: #db5a4a; +} +.purchase-now .red-btn:hover { + background: #bf3928; +} +/*---------------------------------------- + ** Contact us ----- +-----------------------------------------*/ +.contact-us { + background: rgba(0, 0, 0, 0.5); + padding-bottom: 95px; +} +.contact-us .input-box,textarea { + width: 100%; + margin: auto; + margin-bottom: 20px; +} +.contact-us .custom-button { + float: right; + margin-right: 15px; +} +/*--------------------------------------- + ** Footer ----- +-----------------------------------------*/ +#footer { + background: #272727; +} +.company-details { + color: #939393; + padding-top: 67px; + padding-bottom: 67px; +} +.company-details .icon-top { + font-size: 30px; + margin-bottom: 10px; +} +.copyright { + padding-top: 68px; + padding-bottom: 68px; + background: #171717; +} +.social { + margin: 0 0 1.5em 0 !important; +} +.social li { + display: inline-block; + margin: 5px; +} +.social li a { + color: #939393; + font-size: 18px; +} +.social li a:hover { + color: #e96656; +} +/*--------------------------------------- + ** Single page ----- +-----------------------------------------*/ +.single-project { + text-align: left; + margin-bottom: 25px; +} +.single-project .project-image { + width: 100%; + float: left; + text-align: left; + margin-bottom: 25px; +} +.single-project h3 { + margin-bottom: 10px; + padding-bottom: 7px; + line-height: 40px; + border-bottom: 1px dotted #dadada; +} +.single-project .project-description { + margin-bottom: 25px; +} +.single-project .button { + margin-left: 0; +} +.single-project .project-information { + margin-bottom: 10px; +} +.single-project .project-information ul li { + border-bottom: 1px dotted #dadada; + padding-bottom: 5px; + margin-top: 10px; +} +.single-project .project-information ul li span { + font-weight: 700; + margin-right: 5px; +} +/*--------------------------------------- + ** Section blog ----- +-----------------------------------------*/ +.blog { + min-height: 175px; + position: relative; + overflow: hidden; +} +.blog-list{ + background: #FFF; +} +.post-img-wrap{ + float: left; + margin-right: 20px; +} +.post-img-wrap a{ + display: block; + float: left; + overflow: hidden; +} +.post-img-wrap a img{ + width: 200px; + height: auto; + -webkit-transform: scale(1); + -moz-transform: scale(1); + -o-transform: scale(1); + -ms-transform: scale(1); + transform: scale(1); + -webkit-transition: all 0.3s ease-out; + -moz-transition: all 0.3s ease-out; + -ms-transition: all 0.3s ease-out; + -o-transition: all 0.3s ease-out; + transition: all 0.3 ease-out; +} +.post-img-wrap a:hover img{ + -webkit-transform: scale(1.1); + -moz-transform: scale(1.1); + -o-transform: scale(1.1); + -ms-transform: scale(1.1); + transform: scale(1.1); + -webkit-transition: all 0.5s ease-out; + -moz-transition: all 0.5s ease-out; + -ms-transition: all 0.5s ease-out; + -o-transition: all 0.5s ease-out; + transition: all 0.5 ease-out; +} +article.hentry{ + float: left; + width: 100%; + margin-bottom: 30px; + padding-bottom: 30px; + border-bottom: 1px solid rgba(0, 0, 0, 0.05); +} +article.sticky{ + background: #f9f9f9; + padding: 10px; +} +article{ + text-align: left; +} +article .entry-meta a{ + color :#bdbdbd; + font-style: italic; +} +article .posted-on a:hover{ + color: #e96656; +} +.entry-footer a{ + color :#bdbdbd; + font-style: italic; +} +.entry-footer a:hover{ + color: #e96656; +} +.entry-title, +.entry-title a, +.widget-title, +.widget-title a{ + font-size: 20px; + line-height: 22px; + color: #404040; +} +.entry-title a:hover{ + color: #e96656;; +} +.clear{ + clear: both; +} +.content-left-wrap{ + margin-top: 50px; +} +.debar-wrap { + margin-top: 50px; +} +.listpost-content-wrap{ + width: 63%; + float: left; + margin-top: -29px; +} +.listpost-content-wrap-full{ + width: 100%; +} +.listpost-content-wrap-full .list-post-top{ + min-height: 1px; + margin-bottom: 20px; +} +.entry-title{ + font-size: 20px; +} +.entry-content{ + line-height: 20px; +} +.list-post-top{ + min-height: 174px; +} +.search .list-post-top{ + min-height: 1px; +} +.entry-footer{ + background: transparent; +} +.entry-content{ + margin: 1em 0 0; +} +.row{ + float: left; + width: 100%; + margin-right: 0; + margin-left: 0; +} +/* Calendar style */ +/* Calendar Widget */ +.widget_calendar table, +.widget_calendar td { + border: 0; + border-collapse: separate; + border-spacing: 1px; +} +.widget_calendar caption { + font-size: 14px; + margin: 0; + margin-bottom: 6px; +} +.widget_calendar th, +.widget_calendar td { + padding: 0; + text-align: center; +} +.widget_calendar a { + display: block; + background: #f9f9f9; + color: #e96656; +} +.widget_calendar a:hover { + background-color: #e96656; + color: #FFF; +} +.widget_calendar tbody td { + background-color: #f9f9f9; +} +.site-footer .widget_calendar tbody td { + background-color: rgba(255, 255, 255, 0.05); +} +.widget_calendar tbody .pad, .site-footer .widget_calendar tbody .pad { + background-color: transparent; +} +.widget_calendar thead th{ + background: #e9e9e9; + border: none; +} + +/*--------------------------------------- + ** Responsive ----- +-----------------------------------------*/ +@media (min-width: 768px) and (max-width: 1024px) { + + /* TOP BAR ELEMENTS */ + .responsive-logo { + width: 100%; + position: relative; + text-align: center; + margin-top: 10px; + padding-top: 15px; + } + .responsive-logo a { + float: none !important; + } + .responsive-nav { + text-align: center; + width: 100%; + padding-top: 0; + } + .responsive-nav li { + margin-bottom: 15px; + margin-top: 0 !important; + } + + /* HOME */ + .intro { + margin-top: 40%; + line-height: 55px; + font-size: 45px; + } + + /* ABOUT US */ + .big-intro { + text-align: center !important; + } + .about-us .column { + margin-bottom: 40px; + } + .skills { + margin-bottom: 78px !important; + } + + /* TEAM */ + .team-member .profile-pic { + width: 128px; + height: 128px; + } + .team-member .details { + display: none; + } + /* PURCHASE NOW */ + .purchase-now { + margin: auto; + text-align: center !important; + } + .purchase-now h3 { + text-align: center; + margin-bottom: 20px; + } + .purchase-now .button { + float: none; + } + + /* FOOTER */ + footer { + padding-top: 40px; + } + .company-details { + padding-top: 0; + padding-bottom: 33px; + } + .copyright { + width: 100%; + padding-top: 33px; + padding-bottom: 33px; + } +} +@media (max-width: 992px) { + + .purchase-now .red-btn{ + float: none; + } + .skills{ + margin-left: 0; + } + #client-feedbacks .feedback-box{ + width: 100%; + margin-left: 0; + margin-right: 0; + } + .intro-text{ + margin-top: 31%; + font-size: 45px; + line-height: 55px; + } + .section-header h2{ + font-size: 35px; + } + .section-header { + padding-bottom: 30px; + } + .focus, .works, .about-us, .features, .packages, .products, .testimonial, .contact-us { + padding-top: 60px; + padding-bottom: 60px; + } + +} +@media (max-width: 767px) { + + .bs-navbar-collapse { + border: 0; + } + #main-nav { + overflow: hidden; + } + .navbar-inverse .navbar-nav { + padding-left: 10px; + line-height: normal; + text-align: center; + } + .navbar-inverse .navbar-nav>li { + display: inline-block; + margin-bottom: 0; + } + + + /* HOME */ + .header { + min-height: inherit; + padding-bottom: 0 !important; + } + .intro { + line-height: 8vh; + font-size: 6.5vw; + } + .intro-text{ + margin-top: 30%; + font-size: 41px; + line-height: 49px; + } + .focus-box { + margin-bottom: 75px; + } + .section-header { + float: left; + width: 100%; + } + + /* ABOUT US */ + .big-intro { + text-align: center !important; + font-size: 8vw !important; + } + .about-us .column { + margin-bottom: 40px; + } + .skills { + margin-bottom: 78px !important; + } + .our-clients{ + width: 100%; + float: left; + } + + /* PURCHASE NOW */ + .purchase-now { + margin: auto; + text-align: center !important; + } + .purchase-now h3 { + text-align: center; + margin-bottom: 20px; + } + .purchase-now .button { + float: none; + } + + /* FOOTER */ + footer { + padding-top: 40px; + } + .company-details { + padding-top: 0; + padding-bottom: 33px; + } + .copyright { + width: 100%; + padding-top: 33px; + padding-bottom: 33px; + } + /* comments */ + .comment-metadata { + position: relative; + top: 0px; + right: 0px; + } +} +@media (max-width: 480px) { + +/* HOME */ + .intro { + margin-top: 60%; + line-height: 6vh; + font-size: 6.5vw; + } + .intro-text{ + margin-top: 40%; + font-size: 32px; + line-height: 37px; + } + h2 { + font-size: 6.5vw !important; + } + .other-focus-list ul li { + display: block; + text-align: left; + margin-right: 0; + } + /* blog */ + .post-img-wrap { + width: 100%; + + } + .listpost-content-wrap { + width: 100%; + margin-top: 20px; + } + .post-img-wrap a { + float: none; + margin: 0 auto; + width: 250px; + height: 250px; + } + .post-img-wrap a img{ + + width: auto; + } + /* comments */ + .comment-reply-link{ + position: relative; + margin-top: 10px; + } +} +@media (max-width: 320px) { + .intro { + line-height: 25px; + font-size: 7vw; + } + .intro-text { + margin-top: 50%; + font-size: 22px; + line-height: 30px; + } + .client-list ul li { + display: block; + } +} +/* trebuie sters la un moment dat ca pentru ca +ca nu o sa mearga chestii in header pe homepage */ +.header { + min-height: 56px; +}