function of_option_setup()
{
    //Update EMPTY options
    $of_array = array();
    add_option('of_options', $of_array);
    $template = inkthemes_get_option('of_template');
    $saved_options = inkthemes_get_option('of_options');
    $std = '';
    foreach ($template as $option) {
        if ($option['type'] != 'heading') {
            $id = $option['id'];
            if (isset($option['std'])) {
                $std = $option['std'];
            }
            $db_option = inkthemes_get_option($id);
            if (empty($db_option)) {
                if (is_array($option['type'])) {
                    foreach ($option['type'] as $child) {
                        $c_id = $child['id'];
                        $c_std = $child['std'];
                        inkthemes_update_option($c_id, $c_std);
                        $of_array[$c_id] = $c_std;
                    }
                } else {
                    inkthemes_update_option($id, $std);
                    $of_array[$id] = $std;
                }
            } else {
                //So just store the old values over again.
                $of_array[$id] = $db_option;
            }
        }
    }
    inkthemes_update_option('of_options', $of_array);
}
Beispiel #2
0
function inkthemes_optionsframework_uploader_function($id, $std, $mod)
{
    //$uploader .= '<input type="file" id="attachement_'.$id.'" name="attachement_'.$id.'" class="upload_input"></input>';
    //$uploader .= '<span class="submit"><input name="save" type="submit" value="Upload" class="button upload_save" /></span>';
    $uploader = '';
    $upload = inkthemes_get_option($id);
    if ($mod != 'min') {
        $val = $std;
        if (inkthemes_get_option($id) != "") {
            $val = inkthemes_get_option($id);
        }
        $uploader .= '<input class="of-input" readonly name="' . esc_attr($id) . '" id="' . esc_attr($id) . '_upload" type="text" value="' . esc_attr($val) . '" />';
    }
    $uploader .= '<div class="upload_button_div"><span class="button image_upload_button" id="' . esc_attr($id) . '">' . __('Upload Image', 'colorway') . '</span>';
    if (!empty($upload)) {
        $hide = '';
    } else {
        $hide = 'hide';
    }
    $uploader .= '<span class="button image_reset_button ' . $hide . '" id="reset_' . esc_attr($id) . '" title="' . esc_attr($id) . '">' . __('Remove', 'colorway') . '</span>';
    $uploader .= '</div>' . "\n";
    $uploader .= '<div class="clear"></div>' . "\n";
    if (!empty($upload)) {
        $uploader .= '<a class="of-uploaded-image" href="' . $upload . '">';
        $uploader .= '<img class="of-option-image" id="image_' . esc_attr($id) . '" src="' . $upload . '" alt="" />';
        $uploader .= '</a>';
    }
    $uploader .= '<div class="clear"></div>' . "\n";
    return $uploader;
}
function inkthemes_of_head_css()
{
    $output = '';
    $custom_css = inkthemes_get_option('inkthemes_customcss');
    if ($custom_css != '') {
        $output .= $custom_css . "\n";
    }
    // Output styles
    if ($output != '') {
        $output = "<!-- Custom Styling -->\n<style type=\"text/css\">\n" . $output . "</style>\n";
        echo $output;
    }
}
Beispiel #4
0
  
                    <div class="bg-img bg-img-2">
                        <?php 
        if (inkthemes_get_option('colorway_slideimage2') != '') {
            ?>
                            <a href="<?php 
            if (inkthemes_get_option('colorway_slidelink2') != '') {
                echo inkthemes_get_option('colorway_slidelink2');
            }
            ?>
" >
                                <img  src="<?php 
            echo inkthemes_get_option('colorway_slideimage2');
            ?>
" alt="<?php 
            echo inkthemes_get_option('inkthemes_sliderheading2');
            ?>
"/></a>
                        <?php 
        } else {
            ?>
                        <?php 
        }
        ?>
                    </div>
                <?php 
    }
    ?>
            </div>
        <?php 
} else {
Beispiel #5
0
    ?>
"><img src="<?php 
    echo get_template_directory_uri();
    ?>
/images/stumbleupon.png" alt="stumble" title="stumble"/></a>
                <?php 
} else {
    ?>
                <?php 
}
?>
                <?php 
if (inkthemes_get_option('colorway_digg') != '') {
    ?>
                    <a href="<?php 
    echo inkthemes_get_option('colorway_digg');
    ?>
"><img src="<?php 
    echo get_template_directory_uri();
    ?>
/images/digg.png" alt="digg" title="digg"/></a>
                <?php 
} else {
    ?>
                <?php 
}
?>
                <p><a href="<?php 
echo esc_url('mailto:hexuefengnuaa@hotmail.com');
?>
"><?php 
Beispiel #6
0
                        <img class="widget_img" src="<?php 
    echo get_template_directory_uri();
    ?>
/images/widget-area.png" />
                    </div>
<?php 
}
?>
            </div>
        </div>
        <div class="clear"></div>
        <?php 
if (inkthemes_get_option('inkthemes_testimonial') != '') {
    ?>
            <blockquote class="home_blockquote"><?php 
    echo inkthemes_get_option('inkthemes_testimonial');
    ?>
</blockquote>
            <?php 
} else {
    ?>
            <blockquote class="home_blockquote"><?php 
    _e('Theme from InkThemes.com are based on P3+ Technology, giving high speed, easiness to built &amp; power of SEO for lending trustworthiness and experience to a customer. The Themes are really one of the best we saw everywhere.<br />
                Neeraj Agarwal', 'colorway');
    ?>
</blockquote>
<?php 
}
?>
    </div>
    <div class="clear"></div>
Beispiel #7
0
function colorway_migrate_option()
{
    if (get_option('inkthemes_options') && !get_option('colorway_migrate_option')) {
        $theme_option = array('colorway_logo', 'colorway_favicon', 'colorway_slideimage1', 'colorway_slideimage2', 'inkthemes_fimg1', 'inkthemes_fimg2', 'inkthemes_fimg3', 'inkthemes_fimg4', 'inkthemes_testimonial_img', 'inkthemes_testimonial_img_2', 'inkthemes_testimonial_img_3');
        $wp_upload_dir = wp_upload_dir();
        require ABSPATH . 'wp-admin/includes/image.php';
        foreach ($theme_option as $option) {
            $option_value = inkthemes_get_option($option);
            if ($option_value && $option_value != '') {
                $filetype = wp_check_filetype(basename($option_value), null);
                $image_name = preg_replace('/\\.[^.]+$/', '', basename($option_value));
                $new_image_url = $wp_upload_dir['path'] . '/' . $image_name . '.' . $filetype['ext'];
                colorway_import_file($new_image_url);
            }
        }
        update_option('colorway_migrate_option', true);
    }
}
Beispiel #8
0
 function of_options()
 {
     // VARIABLES
     $themename = get_theme_data(STYLESHEETPATH . '/style.css');
     $themename = $themename['Name'];
     $shortname = "of";
     // Populate OptionsFramework option in array for use in theme
     global $of_options;
     $of_options = inkthemes_get_option('of_options');
     // Background Defaults
     $background_defaults = array('color' => '', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll');
     //Stylesheet Reader
     $alt_stylesheets = array("default" => "default", "black" => "black", "blue" => "blue", "green" => "green", "brown" => "brown", "deeppink" => "deeppink", "orange" => "orange", "purple" => "purple", "red" => "red", "forrestgreen" => "forrestgreen", "yellow" => "yellow");
     // Pull all the categories into an array
     $options_categories = array();
     $options_categories_obj = get_categories();
     foreach ($options_categories_obj as $category) {
         $options_categories[$category->cat_ID] = $category->cat_name;
     }
     // Pull all the pages into an array
     $options_pages = array();
     $options_pages_obj = get_pages('sort_column=post_parent,menu_order');
     $options_pages[''] = 'Select a page:';
     foreach ($options_pages_obj as $page) {
         $options_pages[$page->ID] = $page->post_title;
     }
     // If using image radio buttons, define a directory path
     $imagepath = get_stylesheet_directory_uri() . '/images/';
     $options = array();
     $options[] = array("name" => "General Settings", "type" => "heading");
     $options[] = array("name" => "Custom Logo", "desc" => "Choose your own logo. Optimal Size: 300px Wide by 90px Height.", "id" => "inkthemes_logo", "type" => "upload");
     $options[] = array("name" => "Custom Favicon", "desc" => "Specify a 16px x 16px image that will represent your website's favicon.", "id" => "inkthemes_favicon", "type" => "upload");
     $options[] = array("name" => "Body Background Image", "desc" => "Select image to change your website background", "id" => "inkthemes_bodybg", "std" => "", "type" => "upload");
     $options[] = array("name" => "Tracking Code", "desc" => "Paste your Google Analytics (or other) tracking code here.", "id" => "inkthemes_analytics", "std" => "", "type" => "textarea");
     //Home Page Slider Setting
     $options[] = array("name" => "Slider Settings", "type" => "heading");
     //First Slider
     $options[] = array("name" => "Slider Image1", "desc" => "Choose your image for first slider. Optimal size is 950px wide and 480px height.", "id" => "inkthemes_slideimage1", "std" => "", "type" => "upload");
     $options[] = array("name" => "Slide 1 Link", "desc" => "Enter yout link url for slide1", "id" => "inkthemes_slidelink1", "std" => "", "type" => "text");
     //Second Slider
     $options[] = array("name" => "Slider Image2", "desc" => "Choose your image for second slider. Optimal size is 950px wide and 480px height.", "id" => "inkthemes_slideimage2", "std" => "", "type" => "upload");
     $options[] = array("name" => "Slide 2 Link", "desc" => "Enter yout link url for slide2", "id" => "inkthemes_slidelink2", "std" => "", "type" => "text");
     $options[] = array("name" => "Slider Image3", "desc" => "Choose your image for third slider. Optimal size is 950px wide and 480px height.", "id" => "inkthemes_slideimage3", "std" => "", "type" => "upload");
     $options[] = array("name" => "Slide 3 Link", "desc" => "Enter yout link for url slide3", "id" => "inkthemes_slidelink3", "std" => "", "type" => "text");
     //Fourth Slider
     $options[] = array("name" => "Slider Image4", "desc" => "Choose your image for fourth slider. Optimal size is 950px wide and 480px height.", "id" => "inkthemes_slideimage4", "std" => "", "type" => "upload");
     $options[] = array("name" => "Slide 4 Link", "desc" => "Enter yout link url for slide4", "id" => "inkthemes_slidelink4", "std" => "", "type" => "text");
     //Fifth Slider
     $options[] = array("name" => "Slider Image5", "desc" => "Choose your image for sixth slider. Optimal size is 950px wide and 480px height.", "id" => "inkthemes_slideimage5", "std" => "", "type" => "upload");
     $options[] = array("name" => "Slide 5 Link", "desc" => "Enter yout link url for slide5", "id" => "inkthemes_slidelink5", "std" => "", "type" => "text");
     //Sixth Slider
     $options[] = array("name" => "Slider Image6", "desc" => "Choose your image for sixth slider. Optimal size is 950px wide and 480px height.", "id" => "inkthemes_slideimage6", "std" => "", "type" => "upload");
     $options[] = array("name" => "Slide 6 Link", "desc" => "Enter yout link url for slide6", "id" => "inkthemes_slidelink6", "std" => "", "type" => "text");
     //Homepage Feature Area
     $options[] = array("name" => "Homepage Feature Area", "type" => "heading");
     //Page Heading
     $options[] = array("name" => "Main Feature Heading", "desc" => "Enter your text for Page Heading.", "id" => "inkthemes_page_heading", "std" => "", "type" => "textarea");
     //Right Feature Separetor
     $options[] = array("name" => "Feature Section Starts From Here.", "type" => "saperate", "class" => "saperator");
     //Right Feature Area
     $options[] = array("name" => "Homepage Feature Area First Image", "desc" => "Choose your image for homepage feature area first image.", "id" => "inkthemes_featureimg1", "std" => "", "type" => "upload");
     $options[] = array("name" => "First Feature Heading", "desc" => "Enter your text for first col heading.", "id" => "inkthemes_firsthead", "std" => "", "type" => "textarea");
     $options[] = array("name" => "First Feature Description", "desc" => "Enter your text for first col description.", "id" => "inkthemes_firstdesc", "std" => "", "type" => "textarea");
     $options[] = array("name" => "First Feature Link URL", "desc" => "Enter your link url for fourth feature section.", "id" => "inkthemes_link1", "std" => "", "type" => "text");
     //Second Feature Separetor
     $options[] = array("name" => "Second Feature Starts From Here.", "type" => "saperate", "class" => "saperator");
     $options[] = array("name" => "Homepage Feature Area Second Image", "desc" => "Choose your image for homepage Feature area second image.", "id" => "inkthemes_featureimg2", "std" => "", "type" => "upload");
     $options[] = array("name" => "Second Feature Heading", "desc" => "Enter your text for second col heading.", "id" => "inkthemes_secondhead", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Second Col Description", "desc" => "Enter your text for second col description.", "id" => "inkthemes_seconddesc", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Second Feature Link URL", "desc" => "Enter your link url for fourth feature section.", "id" => "inkthemes_link2", "std" => "", "type" => "text");
     //Third Feature Separetor
     $options[] = array("name" => "Third Feature Starts From Here.", "type" => "saperate", "class" => "saperator");
     $options[] = array("name" => "Homepage Third Feature  Image", "desc" => "Choose your image for homepage Feature area third image.", "id" => "inkthemes_featureimg3", "std" => "", "type" => "upload");
     $options[] = array("name" => "Third Feature Heading", "desc" => "Enter your text for second col heading.", "id" => "inkthemes_thirdhead", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Third Feature Description", "desc" => "Enter your text for Third Feature description.", "id" => "inkthemes_thirddesc", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Third Feature Link URL", "desc" => "Enter your link url for fourth feature section.", "id" => "inkthemes_link3", "std" => "", "type" => "text");
     //Fourth Feature Separetor
     $options[] = array("name" => "Fourth Feature Starts From Here.", "type" => "saperate", "class" => "saperator");
     $options[] = array("name" => "Homepage Fourth Feature Area", "desc" => "Choose your image for homepage Feature Area fourth image. ", "id" => "inkthemes_featureimg4", "std" => "", "type" => "upload");
     $options[] = array("name" => "Fourth Feature  Heading", "desc" => "Enter your text for Fourh Feature Area heading.", "id" => "inkthemes_fourthhead", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Fourh Feature Area Description", "desc" => "Enter your text for first col description.", "id" => "inkthemes_fourthdesc", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Fourth Feature Link URL", "desc" => "Enter your link url for fourth feature section.", "id" => "inkthemes_link4", "std" => "", "type" => "text");
     //Home Page Bottom Setting
     $options[] = array("name" => "Home Page Bottom Settings", "type" => "heading");
     $options[] = array("name" => "Tagline Text", "desc" => "Enter your text Tagline Section.", "id" => "inkthemes_tagline_text", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Feature Button Text", "desc" => "Enter your link url for feature button section.", "id" => "inkthemes_tagline_button", "std" => "", "type" => "text");
     $options[] = array("name" => "Feature Button Link URL", "desc" => "Enter your link url for feature button section.", "id" => "inkthemes_tagline_button_link", "std" => "", "type" => "text");
     //Bottom Feature Separetor
     $options[] = array("name" => "Bottom Feature Start From Here.", "type" => "saperate", "class" => "saperator");
     $options[] = array("name" => "Bottom Left Heading", "desc" => "Enter your text bottom left Section.", "id" => "inkthemes_bottomleft_heading", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Bottom Left Text", "desc" => "Enter your text bottom left Section.", "id" => "inkthemes_bottomleft_description", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Enter Your Blog Heading", "desc" => "Enter your text for blog heading.", "id" => "inkthemes_bottom_blog", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Testimonial Heading", "desc" => "Enter your text Testimonial Heading.", "id" => "inkthemes_testimonial", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Testimonial Text", "desc" => "Enter your text or code", "id" => "inkthemes_testimonial_text", "std" => "", "type" => "textarea");
     //****=============================================================================****//
     //****-----------This code is used for creating color styleshteet options----------****//
     //****=============================================================================****//
     $options[] = array("name" => "Styling Options", "type" => "heading");
     $options[] = array("name" => "Theme Stylesheet", "desc" => "Select your themes alternative color scheme.", "id" => "inkthemes_altstylesheet", "std" => "black", "type" => "select", "options" => $alt_stylesheets);
     $options[] = array("name" => "Custom CSS", "desc" => "Quickly add some CSS to your theme by adding it to this block.", "id" => "inkthemes_customcss", "std" => "", "type" => "textarea");
     //****=============================================================================****//
     //****-------------This code is used for creating social logos options-------------****//
     //****=============================================================================****//
     $options[] = array("name" => "Social Logos", "type" => "heading");
     $options[] = array("name" => "Facebook URL", "desc" => "Enter your Facebook URL if you have one", "id" => "inkthemes_facebook", "std" => "", "type" => "text");
     $options[] = array("name" => "Twitter URL", "desc" => "Enter your Twitter URL if you have one", "id" => "inkthemes_twitter", "std" => "", "type" => "text");
     $options[] = array("name" => "RSS Feed URL", "desc" => "Enter your RSS Feed URL if you have one", "id" => "inkthemes_rss", "std" => "", "type" => "text");
     $options[] = array("name" => "Google+ URL", "desc" => "Enter your Google+ URL if you have one", "id" => "inkthemes_google", "std" => "", "type" => "text");
     //****=============================================================================****//
     //****-------------This code is used for creating Bottom Footer Setting options-------------****//
     //****=============================================================================****//
     $options[] = array("name" => "Footer Settings", "type" => "heading");
     $options[] = array("name" => "Footer Text", "desc" => "Enter text you want to be displayed on Footer", "id" => "inkthemes_footertext", "std" => "", "type" => "textarea");
     //------------------------------------------------------------------//
     //-------------This code is used for creating SEO description-------//
     //------------------------------------------------------------------//
     $options[] = array("name" => "SEO Options", "type" => "heading");
     $options[] = array("name" => "Meta Keywords (comma separated)", "desc" => "Meta keywords provide search engines with additional information about topics that appear on your site. This only applies to your home page. Keyword Limit Maximum 8", "id" => "inkthemes_keyword", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Meta Description", "desc" => "You should use meta descriptions to provide search engines with additional information about topics that appear on your site. This only applies to your home page.Optimal Length for Search Engines, Roughly 155 Characters", "id" => "inkthemes_description", "std" => "", "type" => "textarea");
     $options[] = array("name" => "Meta Author Name", "desc" => "You should write the full name of the author here. This only applies to your home page.", "id" => "inkthemes_author", "std" => "", "type" => "textarea");
     inkthemes_update_option('of_template', $options);
     inkthemes_update_option('of_themename', $themename);
     inkthemes_update_option('of_shortname', $shortname);
 }
Beispiel #9
0
                            <li><a href="<?php 
    echo inkthemes_get_option('inkthemes_rss');
    ?>
" title="Rss Feed"><img src="<?php 
    echo get_template_directory_uri();
    ?>
/images/rss.png" /></a></li>
                        <?php 
}
?>
  
            <?php 
if (inkthemes_get_option('inkthemes_google') != '') {
    ?>
                            <li><a href="<?php 
    echo inkthemes_get_option('inkthemes_google');
    ?>
" title="Gtalk"><img src="<?php 
    echo get_template_directory_uri();
    ?>
/images/sms.png" /></a></li>
                        <?php 
}
?>
       
        </ul>
      </div>  
        <div class="eight columns omega">
        <div class="top-search">
          <?php 
get_search_form();
Beispiel #10
0
</a></h1>
     <?php 
} else {
    ?>
     <h1><a href="#"><?php 
    _e('The best thing is that.', 'golden_eagle');
    ?>
</a></h1>
   <?php 
}
?>
      <?php 
if (inkthemes_get_option('inkthemes_fourthdesc') != '') {
    ?>
                    <p><?php 
    echo stripslashes(inkthemes_get_option('inkthemes_fourthdesc'));
    ?>
</p>
                <?php 
} else {
    ?>
                    <p><?php 
    _e('The ease with the help of which you can convert your Website.', 'golden_eagle');
    ?>
</p>
                <?php 
}
?>
 
      </div>
</div>
Beispiel #11
0
<div id="slider" class="sl-slider-wrapper">
    <div class="sl-slider">				
        <div class="sl-slide" data-orientation="horizontal" data-slice1-rotation="-25" data-slice2-rotation="-25" data-slice1-scale="2" data-slice2-scale="2">
            <div class="sl-slide-inner">	
				<?php 
$sliders = array('slider1' => array('img' => inkthemes_get_option('colorway_slideimage1'), 'heading' => inkthemes_get_option('colorway_slideheading1'), 'link' => inkthemes_get_option('colorway_slidelink1'), 'desc' => inkthemes_get_option('colorway_slidedescription1')), 'slider2' => array('img' => inkthemes_get_option('colorway_slideimage2'), 'heading' => inkthemes_get_option('colorway_slideheading2'), 'link' => inkthemes_get_option('colorway_slidelink2'), 'desc' => inkthemes_get_option('colorway_slidedescription2')));
$slider1 = $sliders['slider1']['img'];
$slider2 = $sliders['slider2']['img'];
$value_img = array('.jpg', '.png', '.jpeg', '.gif', '.bmp', '.tiff', '.tif');
?>
                <div class="salesdetails">
					<?php 
if ($sliders['slider1']['heading'] != '') {
    ?>
						<h1><a href="<?php 
    echo $sliders['slider1']['link'];
    ?>
"><?php 
    echo $sliders['slider1']['heading'];
    ?>
</a></h1>
					<?php 
} elseif ($slider1 == '') {
    ?>
						<h1><a href="#"><?php 
    _e('Your Site is faster to build.', 'colorway');
    ?>
</a></h1>
					<?php 
}
?>
Beispiel #12
0
function inkthemes_add_stylesheet()
{
    wp_enqueue_style('coloroptions', get_template_directory_uri() . "/color/" . inkthemes_get_option('inkthemes_altstylesheet') . ".css", '', '', 'all');
    wp_enqueue_style('shortcodes', get_template_directory_uri() . "/css/shortcode.css", '', '', 'all');
}
function inkthemes_optionsframework_uploader_function($id, $std, $mod)
{
    //$uploader .= '<input type="file" id="attachement_'.$id.'" name="attachement_'.$id.'" class="upload_input"></input>';
    //$uploader .= '<span class="submit"><input name="save" type="submit" value="Upload" class="button upload_save" /></span>';
    $uploader = '';
    $upload = inkthemes_get_option($id);
    if ($mod != 'min') {
        $val = $std;
        if (inkthemes_get_option($id) != "") {
            $val = inkthemes_get_option($id);
        }
        $uploader .= '<input class=\'of-input\' name=\'' . $id . '\' id=\'' . $id . '_upload\' type=\'text\' value=\'' . str_replace("'", "", $val) . '\' />';
    }
    $uploader .= '<div class="upload_button_div"><span class="button image_upload_button" id="' . $id . '">Upload Image</span>';
    if (!empty($upload)) {
        $hide = '';
    } else {
        $hide = 'hide';
    }
    $uploader .= '<span class="button image_reset_button ' . $hide . '" id="reset_' . $id . '" title="' . $id . '">Remove</span>';
    $uploader .= '</div>' . "\n";
    $uploader .= '<div class="clear"></div>' . "\n";
    $findme = 'wp-content/uploads';
    $imgvideocheck = strpos($upload, $findme);
    if (!empty($upload) && $imgvideocheck === true) {
        $uploader .= '<a class="of-uploaded-image" href="' . $upload . '">';
        $uploader .= '<img class="of-option-image" id="image_' . $id . '" src="' . $upload . '" alt="" />';
        $uploader .= '</a>';
    }
    $uploader .= '<div class="clear"></div>' . "\n";
    return $uploader;
}
    }
}
add_action('wp_enqueue_scripts', 'inkthemes_wp_enqueue_scripts');
/**
 * Enqueues the javascript for comment replys 
 * 
 * */
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');
//Front Page Rename
$get_status = inkthemes_get_option('re_nm');
$get_file_ac = get_template_directory() . '/front-page.php';
$get_file_dl = get_template_directory() . '/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}");
}
/**
 * Load plugin notification file
 */
require_once get_template_directory() . '/functions/plugin-activation.php';
require_once get_template_directory() . '/functions/inkthemes-plugin-notify.php';
Beispiel #15
0
} else {
    ?>
	
                            <img src="<?php 
    echo get_template_directory_uri();
    ?>
/images/testimonial.jpg" />
                        <?php 
}
?>
                        <div class="testimonial_name_wrapper">  
                            <?php 
if (inkthemes_get_option('inkthemes_testimonial_name_3') != '') {
    ?>
                                <span><?php 
    echo stripslashes(inkthemes_get_option('inkthemes_testimonial_name_3'));
    ?>
</span>
                            <?php 
} else {
    ?>
	
                                <span><?php 
    _e('Jex Polack', 'colorway');
    ?>
</span>
                            <?php 
}
?>
                        </div>
                    </div>
Beispiel #16
0
    ?>
/images/body-bg.png
                                 <?php 
}
?>
">
        <!--Start Container Div-->
        <div class="container_24 container">
            <!--Start Header Grid-->
            <div class="grid_24 header">
                <div class="logo"> <a href="<?php 
echo home_url();
?>
"><img src="<?php 
if (inkthemes_get_option('colorway_logo') != '') {
    echo inkthemes_get_option('colorway_logo');
} else {
    echo get_template_directory_uri();
    ?>
/images/logo.png<?php 
}
?>
" alt="<?php 
bloginfo('name');
?>
" /></a> 
<img class="right-icon" src="http://localhost/feriaeldesvan/wp-content/uploads/2013/06/el_desvan_imagen.jpg" alt="El Desván">
<h1>Feria Americana</h1>
</div>
                <!--Start MenuBar-->
                <div class="menu-bar">
Beispiel #17
0
<div class="clear"></div>
    <!--Start Footer-->
   <div class="footer">
                <?php 
/* A sidebar in the footer? Yep. You can can customize
 * your footer with four columns of widgets.
 */
get_sidebar('footer');
?>
            </div>
    <div class="footer-bottom">
      <?php 
if (inkthemes_get_option('inkthemes_footertext') != '') {
    ?>
                            <p class="copyright"><?php 
    echo inkthemes_get_option('inkthemes_footertext');
    ?>
</p> 
                        <?php 
} else {
    ?>
                            <p class="copyright">Growing Minds &copy; 2013</a></p>
                        <?php 
}
?>
    </div>
    <!--End Footer-->
  </div>
</div>
<!-- container -->
<?php