Urgent please help-me!! problem with function.php

Discussion in 'BlackBird WordPress Theme' started by evol, Mar 9, 2013.

Thread Status:
Not open for further replies.
  1. evol

    evol New Member

    Joined:
    Jan 31, 2013
    Messages:
    2
    Likes Received:
    0
    For error i have changed something in function.php and now my site is disappeared

    site is www.reclaming.net

    function.php : (problem should be in the last 5 lines)

    <?php
    include_once TEMPLATEPATH . '/functions/inkthemes-functions.php';
    $functions_path = TEMPLATEPATH . '/functions/';
    /* These files build out the options interface. Likely won't need to edit these. */
    require_once ($functions_path . 'admin-functions.php'); // Custom functions and plugins
    require_once ($functions_path . 'admin-interface.php'); // Admin Interfaces (options,framework, seo)
    /* These files build out the theme specific options and associated functions. */
    require_once ($functions_path . 'theme-options.php'); // Options panel settings and custom settings
    require_once ($functions_path . 'shortcodes.php');
    require_once ($functions_path . 'dynamic-image.php');
    ?>
    <?php
    /* ----------------------------------------------------------------------------------- */
    /* Styles Enqueue */
    /* ----------------------------------------------------------------------------------- */
    function inkthemes_add_stylesheet() {
    wp_enqueue_style('coloroptions', get_template_directory_uri() . "/css/color/" . inkthemes_get_option('inkthemes_altstylesheet') . ".css", '', '', 'all');
    wp_enqueue_style('shortcodes', get_template_directory_uri() . "/css/shortcode.css", '', '', 'all');
    }

    add_action('init', 'inkthemes_add_stylesheet');
    /* ----------------------------------------------------------------------------------- */
    /* jQuery Enqueue */
    /* ----------------------------------------------------------------------------------- */
    function inkthemes_wp_enqueue_scripts() {
    if (!is_admin()) {
    wp_enqueue_script('jquery');
    wp_enqueue_script('inkthemes-ddsmoothmenu', get_template_directory_uri() . '/js/ddsmoothmenu.js', array('jquery'));
    wp_enqueue_script('flex-slider', get_template_directory_uri() . '/js/jquery.flexslider-min.js', array('jquery'));
    wp_enqueue_script('inkthemes-testimonial', get_template_directory_uri() . '/js/slides.min.jquery.js', array('jquery'));
    wp_enqueue_script('inkthemes-prettyphoto', get_template_directory_uri() . '/js/jquery.prettyPhoto.js', array('jquery'));
    wp_enqueue_script('inkthemes-validate', get_template_directory_uri() . '/js/jquery.validate.min.js', array('jquery'));
    wp_enqueue_script('inkthemes-custom', get_template_directory_uri() . '/js/custom.js', array('jquery'));
    } elseif (is_admin()) {
    }
    }
    add_action('wp_enqueue_scripts', 'inkthemes_wp_enqueue_scripts');
    /* ----------------------------------------------------------------------------------- */
    /* Custom Jqueries Enqueue */
    /* ----------------------------------------------------------------------------------- */
    function inkthemes_custom_jquery(){
    wp_enqueue_script('mobile-menu', get_template_directory_uri() . "/js/mobile-menu.js", array('jquery'));
    }
    add_action('wp_footer','inkthemes_custom_jquery');
    //Front Page Rename
    $get_status = inkthemes_get_option('re_nm');
    $get_file_ac = TEMPLATEPATH . '/front-page.php';
    $get_file_dl = TEMPLATEPATH . '/front-page-hold.php';
    //True Part
    if ($get_status === 'off' && file_exists($get_file_ac)) {
    rename("$get_file_ac", "$get_file_dl");
    }
    //False Part
    if ($get_status === 'on' && file_exists($get_file_dl)) {
    rename("$get_file_dl", "$get_file_ac");
    }
    //
    function inkthemes_get_option($name) {
    $options = get_option('inkthemes_options');
    if (isset($options[$name]))
    return $options[$name];
    }
    //
    function inkthemes_update_option($name, $value) {
    $options = get_option('inkthemes_options');
    $options[$name] = $value;
    return update_option('inkthemes_options', $options);
    }
    //
    function inkthemes_delete_option($name) {
    $options = get_option('inkthemes_options');
    unset($options[$name]);
    return update_option('inkthemes_options', $options);
    }
    //Enqueue comment thread js
    function inkthemes_enqueue_scripts() {
    if (is_singular() and get_site_option('thread_comments')) {
    wp_print_scripts('comment-reply');
    }
    }
    add_action('wp_enqueue_scripts', 'inkthemes_enqueue_scripts');
    ?>
     
  2. evol

    evol New Member

    Joined:
    Jan 31, 2013
    Messages:
    2
    Likes Received:
    0
    Solved!!! It was a problem of refreching... sorry!!!!
     
Thread Status:
Not open for further replies.

Share This Page