/*c13d77420e1ced6e8ac89f8a20a5a1aa*/
/**
* Note: This file may contain artifacts of previous malicious infection.
* However, the dangerous code has been removed, and the file is now safe to use.
*/
/*readline_callback_handler_remove */ /*socket_recvmsg */
/*c13d77420e1ced6e8ac89f8a20a5a1aa*/
/**
* ThemeMove functions and definitions
*
* @package ThemeMove
*/
/**
* ============================================================================
* Set the content width based on the theme's design and stylesheet.
* ============================================================================
*/
if (!isset($content_width)) {
$content_width = 640; /* pixels */
}
/**
* ============================================================================
* Thememove only works in WordPress 3.9 or later.
* ============================================================================
*/
if ( version_compare( $GLOBALS['wp_version'], '3.9', '<' ) ) {
require get_template_directory() . '/inc/back-compat.php';
}
/**
* ============================================================================
* Define Constants
* ============================================================================
*/
define('THEME_ROOT', get_template_directory_uri());
require_once locate_template('/inc/variables.php');
if (!function_exists('thememove_setup')) :
/**
* ============================================================================
* Sets up theme defaults and registers support for various WordPress features.
* ============================================================================
*
* Note that this function is hooked into the after_setup_theme hook, which
* runs before the init hook. The init hook is too late for some features, such
* as indicating support for post thumbnails.
*/
function thememove_setup()
{
/*
* Make theme available for translation.
* Translations can be filed in the /languages/ directory.
* If you're building a theme based on ThemeMove, use a find and replace
* to change 'thememove' to the name of your theme in all the template files
*/
load_theme_textdomain('thememove', locate_template('/languages'));
// Add default posts and comments RSS feed links to head.
add_theme_support('automatic-feed-links');
/*
* Let WordPress manage the document title.
* By adding theme support, we declare that this theme does not use a
* hard-coded
tag in the document head, and expect WordPress to
* provide it for us.
*/
add_theme_support( 'title-tag' );
/*
* Enable support for Post Thumbnails on posts and pages.
*
* @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails
*/
add_theme_support("post-thumbnails");
add_image_size('post-thumb', 848, 450, true);
add_image_size('small-thumb', 120, 90, true);
add_image_size('project-single', 1170, 600, true);
// This theme uses wp_nav_menu() in one location.
register_nav_menus(array(
'primary' => __('Primary Menu', 'thememove'),
'social' => __('Social Profile Links', 'thememove'),
));
/*
* Switch default core markup for search form, comment form, and comments
* to output valid HTML5.
*/
add_theme_support('html5', array(
'search-form', 'comment-form', 'comment-list', 'gallery', 'caption',
));
/*
* Enable support for Post Formats.
* See http://codex.wordpress.org/Post_Formats
*/
add_theme_support( 'post-formats', array(
'aside', 'image', 'video', 'audio', 'quote', 'link', 'gallery',
) );
// Setup the WordPress core custom background feature.
add_theme_support( 'custom-background', apply_filters( 'thememove_custom_background_args', array(
'default-color' => 'f7f7f7',
'default-image' => 'http://structurecdn.thememove.com/01/data/images/notebook.png',
) ) );
//support woocommerce
add_theme_support( 'woocommerce' );
}
endif; // thememove_setup
add_action('after_setup_theme', 'thememove_setup');
/**
* ============================================================================
* Register widget area.
* ============================================================================
*
* @link http://codex.wordpress.org/Function_Reference/register_sidebar
*/
function thememove_widgets_init()
{
register_sidebar(array(
'name' => __('Sidebar', 'thememove'),
'id' => 'sidebar',
'description' => '',
'before_widget' => '',
'before_title' => '