function startpoint_of_option_setup() { //Update EMPTY options $of_array = array(); add_option('startpoint_of_options', $of_array); $template = startpoint_get_option('of_template'); $saved_options = startpoint_get_option('startpoint_of_options'); $std = ''; foreach ($template as $option) { if ($option['type'] != 'heading') { if (isset($option['id'])) { $id = $option['id']; } if (isset($option['std'])) { $std = $option['std']; } $db_option = startpoint_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']; startpoint_update_option($c_id, $c_std); $of_array[$c_id] = $c_std; } } else { startpoint_update_option($id, $std); $of_array[$id] = $std; } } else { //So just store the old values over again. $of_array[$id] = $db_option; } } } startpoint_update_option('startpoint_of_options', $of_array); }
</div> </div> </div> <!-- *** Header Ends *** --> <!-- *** Header Ends *** --> <!-- *** Header Ends *** --> <!-- *** Header Ends *** --> <div class="menu-wrapper1 notvisible single-page-nav clearfix"> <div class="menu-wrapper-bg"> <div class="container"> <div class="row"> <div class="col-lg-3 col-md-3"> <!-- logo --> <div class="logo"> <?php if (startpoint_get_option('startpoint_logo') != '') { ?> <a href="<?php echo home_url(); ?> "> <img src="/wp-content/themes/start-point/images/fullyscreened.jpeg"> </a> <?php } else { ?> <div class="logo-header"><h1><a href="<?php echo esc_url(home_url()); ?> "><img src="/wp-content/themes/start-point/images/fullyscreened.jpeg"></a></h1> <p><?php
<?php get_sidebar('footer'); ?> <!-- *** Footer Sidebar Ends *** --> <!-- *** Footer Copyright Starts *** --> <div class="footer-copyright-wrapper"> <div class="container"> <div class="row"> <div class="col-md-5"> <div class="footer-copyright"> <?php if (startpoint_get_option('startpoint_footertext') != '') { ?> <p><?php echo startpoint_get_option('startpoint_footertext'); ?> </p> <?php } else { ?> <p>Copyright © 2015, Proteau, LLC. All rights reserved.</p> <?php } ?> </div> </div> <div class="col-md-7"> <div class="footer-menu nav-collapse"> <?php
function startpoint_breadcrum_block() { ?> <div class="breadcrum-wrapper" <?php if (startpoint_get_option('startpoint_headbg') != '') { ?> style="background: url(<?php echo startpoint_get_option('startpoint_headbg'); ?> ) no-repeat center;" <?php } else { } ?> > <div class="container"> <div class="row"> <div class="breadcrum-inner"> <div class="col-md-12"> <div class="breadcrum clearfix"> <h4><?php if (function_exists('startpoint_breadcrumbs')) { startpoint_breadcrumbs(); } ?> </h4> </div> </div> </div> </div> </div> </div> <?php }
?> <span class="error comment"> <?php echo $commentError; ?> </span> <?php } ?> <div class="clearfix"></div> <?php $captcha_option = startpoint_get_option('startpoint_recaptcha_option'); // captcha on or off $captcha_option_on = "on"; if ($captcha_option === $captcha_option_on) { require_once 'functions/recaptchalib.php'; $publickey = startpoint_get_option('recaptcha_public'); // you got this from the signup page echo recaptcha_get_html($publickey); ?> <?php if ($captchaError != '') { ?> <span class="error"> <?php echo $captchaError; ?> </span> <?php } } else { } //captcha on-off and end captcha
function startpoint_of_options() { // VARIABLES $themename = 'StartPoint Theme'; $shortname = "of"; // Populate OptionsFramework option in array for use in theme global $startpoint_of_options; $startpoint_of_options = startpoint_get_option('startpoint_of_options'); //Front page on/off $file_rename = array("on" => "On", "off" => "Off"); $showhide_sections = array("Show" => "Show", "Hide" => "Hide"); // Background Defaults $background_defaults = array('color' => '', 'image' => '', 'repeat' => 'repeat', 'position' => 'top center', 'attachment' => 'scroll'); //Stylesheet Reader $alt_stylesheets = array("red" => "red", "black" => "black", "coffee" => "coffee", "green" => "green", "teal-green" => "teal-green", "blue" => "blue", "yellow" => "yellow", "dark-green" => "dark-green", "pink" => "pink"); $lan_stylesheets = array("Default" => "Default"); // 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; } // Populate OptionsFramework option in array for use in theme $contact_option = array("on" => "On", "off" => "Off"); $captcha_option = array("on" => "On", "off" => "Off"); // 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_template_directory_uri() . '/images/'; $options = array(); $options[] = array("name" => "General Settings", "type" => "heading"); $options[] = array("name" => "Custom Logo", "desc" => "Upload a logo for your Website. The recommended size for logo is 260px width x 50px height.", "id" => "startpoint_logo", "type" => "upload"); //Background Image $options[] = array("name" => "Header Background Image", "desc" => "Choose a suitable header background for other pages of website. For eg. page, post, etc. Optimal width is 1600px and height is 150px.", "id" => "startpoint_headbg", "type" => "upload"); //****=============================================================================****// //Top Featured Image $options[] = array("name" => "Top Featured Image", "type" => "heading"); $options[] = array("name" => "Top Featured Image", "type" => "saperate", "class" => "saperator"); $options[] = array("name" => "Image", "desc" => "The optimal size of the image is 1600 px wide x 650 px height, but it can be varied as per your requirement.", "id" => "startpoint_slideimage1", "std" => "", "type" => "upload"); $options[] = array("name" => "Video", "desc" => "Paste the embed code of vimeo or youtube video. Leave blank if you want a slider image.", "id" => "startpoint_slidevideo1", "std" => "", "type" => "textarea"); $options[] = array("name" => "Heading", "desc" => "Mention the heading for the First slider.", "id" => "startpoint_sliderheading1", "std" => "", "type" => "textarea"); $options[] = array("name" => "Description", "desc" => "Here mention a short description for the First slider heading.", "id" => "startpoint_sliderdes1", "std" => "", "type" => "textarea"); $options[] = array("name" => "Button Text", "desc" => "Mention the button text for first slider.", "id" => "startpoint_Slider_butotntext1", "std" => "", "type" => "text"); $options[] = array("name" => "Button Link", "desc" => "Mention button URL for first slider.", "id" => "startpoint_Slider_buttonlink1", "std" => "", "type" => "text"); //****=============================================================================****// //HomePage Three column feature $options[] = array("name" => "3 Column Feature Area", "type" => "heading"); // 3 Column Feature block 1 $options[] = array("name" => "First Column", "type" => "saperate", "class" => "saperator"); $options[] = array("name" => "First Icon", "desc" => "Enter the CSS class of the icons you want to use on your 3 column feature. You can find a list of icon classes <a href='http://fortawesome.github.io/Font-Awesome/icons/' target='_blank'>here</a> \n\t\t\tTo increase icon sizes relative to their container, use the fa-lg (33% increase), fa-2x, fa-3x, fa-4x, or fa-5x classes.", "id" => "startpoint_threecolumn_fet_font1", "std" => "fa fa-thumbs-up fa-5x", "type" => "text"); $options[] = array("name" => "Title 1", "desc" => "Here you can mention a suitable title that will display the title in 3 column feature area.", "id" => "startpoint_threecolumn_fet_title1", "std" => "", "type" => "text"); $options[] = array("name" => "Link for Title 1", "desc" => "Mention the URL for Title 1", "id" => "startpoint_services_title_link1", "std" => "", "type" => "text"); $options[] = array("name" => "Description 1", "desc" => "Here you can mention a short description for 3 column feature area.", "id" => "startpoint_threecolumn_fet_desc1", "std" => "", "type" => "textarea"); // 3 Column Feature block 2 $options[] = array("name" => "Second Block", "type" => "saperate", "class" => "saperator"); $options[] = array("name" => "Second Icon", "desc" => "Enter the CSS class of the icons you want to use on your 3 column feature. You can find a list of icon classes <a href='http://fortawesome.github.io/Font-Awesome/icons/' target='_blank'>here</a> \n\t\t\tTo increase icon sizes relative to their container, use the fa-lg (33% increase), fa-2x, fa-3x, fa-4x, or fa-5x classes.", "id" => "startpoint_threecolumn_fet_font2", "std" => "fa fa-smile-o fa-5x", "type" => "text"); $options[] = array("name" => "Title 2", "desc" => "Here you can mention a suitable title that will display the title in 3 column feature area.", "id" => "startpoint_threecolumn_fet_title2", "std" => "", "type" => "text"); $options[] = array("name" => "Link for Title 2", "desc" => "Mention the URL for Title2", "id" => "startpoint_services_title_link2", "std" => "", "type" => "text"); $options[] = array("name" => "Description 2", "desc" => "Here you can mention a short description for 3 column feature area.", "id" => "startpoint_threecolumn_fet_desc2", "std" => "", "type" => "textarea"); // 3 Column Feature block 3 $options[] = array("name" => "Third block", "type" => "saperate", "class" => "saperator"); $options[] = array("name" => "Third Icon", "desc" => "Enter the CSS class of the icons you want to use on your 3 column feature. You can find a list of icon classes <a href='http://fortawesome.github.io/Font-Awesome/icons/' target='_blank'>here</a> \n\t\t\tTo increase icon sizes relative to their container, use the fa-lg (33% increase), fa-2x, fa-3x, fa-4x, or fa-5x classes.", "id" => "startpoint_threecolumn_fet_font3", "std" => "fa fa-eye fa-5x", "type" => "text"); $options[] = array("name" => "Title 3", "desc" => "Here you can mention a suitable title that will display the title in 3 column feature area.", "id" => "startpoint_threecolumn_fet_title3", "std" => "", "type" => "text"); $options[] = array("name" => "Link for Title 3", "desc" => "Mention the URL for Title 3", "id" => "startpoint_services_title_link3", "std" => "", "type" => "text"); $options[] = array("name" => "Description 3", "desc" => "Here you can mention a short description for 3 column feature area.", "id" => "startpoint_threecolumn_fet_desc3", "std" => "", "type" => "textarea"); //****=============================================================================****// //Homepage Recent blog section $options[] = array("name" => "Home Page Blog", "type" => "heading"); $options[] = array("name" => "Title", "desc" => "Here you can mention a suitable title that will display the title in 3 column feature area.", "id" => "startpoint_home_blog_heading", "std" => "", "type" => "text"); $options[] = array("name" => "Description", "desc" => "Mention the description for blog section on home page.", "id" => "startpoint_home_blog_desc", "std" => "", "type" => "textarea"); //****=============================================================================****// //Homepage Testimonial $options[] = array("name" => "Testimonials", "type" => "heading"); $options[] = array("name" => "Title", "desc" => "Mention the title of Testimonial Section Here.", "id" => "startpoint_home_testimonial_heading", "std" => "", "type" => "text"); //testimonial 1 $options[] = array("name" => "Testimonial", "type" => "saperate", "class" => "saperator"); $options[] = array("name" => "Author Image", "desc" => "Upload an image for the author. Optimal size is 148X148px.", "id" => "startpoint_testimonial_image1", "std" => "", "type" => "upload"); $options[] = array("name" => "Testimonial text", "desc" => "Mention the testimonial here.", "id" => "startpoint_testimonial_text1", "std" => "", "type" => "textarea"); $options[] = array("name" => "Author Name", "desc" => "Mention the testimonial author name.", "id" => "startpoint_testimonial_name1", "std" => "", "type" => "text"); //****=============================================================================****// //Homepage Recent blog section $options[] = array("name" => "Contact Section", "type" => "heading"); $options[] = array("name" => "Contact Section Title", "desc" => "Mention the title for contact section here.", "id" => "startpoint_home_contact_heading", "std" => "", "type" => "text"); $options[] = array("name" => "Description", "desc" => "Mention the description for contact section on home page.", "id" => "startpoint_home_contact_desc", "std" => "", "type" => "textarea"); //****=============================================================================****// //****-----------This code is used for creating color styleshteet options----------****// //****=============================================================================****// $options[] = array("name" => "Styling Options", "type" => "heading"); $options[] = array("name" => "Custom CSS", "desc" => "Quickly add your custom CSS code to your theme by writing the code in this block.", "id" => "startpoint_customcss", "std" => "", "type" => "textarea"); //****============================================================****// startpoint_update_option('of_template', $options); startpoint_update_option('of_themename', $themename); startpoint_update_option('of_shortname', $shortname); }
function startpoint_of_head_css() { $output = ''; $custom_css = startpoint_get_option('startpoint_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; } }
<?php /* *The template for displaying attachments. */ get_header(); ?> <div class="breadcrum-wrapper" <?php if (startpoint_get_option('startpoint_headbg') != '') { ?> style="background: url(<?php echo startpoint_get_option('startpoint_headbg'); ?> ) no-repeat center;" <?php } else { } ?> > <div class="container"> <div class="row"> <div class="breadcrum-inner"> <div class="col-md-12"> <div class="breadcrum clearfix"> <h4><a href="<?php echo esc_url(home_url('/')); ?> "><?php echo HOME; ?> </a> » Attachment » <?php
<?php if (startpoint_get_option('startpoint_testimonial_text1') != '') { ?> <li> <div class="tst-caption"> <span> <a class="arrow"></a> <?php echo startpoint_get_option('startpoint_testimonial_text1'); ?> <p> <?php if (startpoint_get_option('startpoint_testimonial_name1') != '') { ?> <a class="testimonial"><?php echo startpoint_get_option('startpoint_testimonial_name1'); ?> </a> <?php } else { ?> <a class="testimonial"><?php _e('Inkthemes', 'start-point'); ?> </a> <?php } ?> </p> </span> </div>
function startpoint_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 = startpoint_get_option($id); if ($mod != 'min') { $val = $std; if (startpoint_get_option($id) != "") { $val = startpoint_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; }