Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * Generated By Orbisius Child Theme Creator - your favorite plugin for Child Theme creation :)
- * https://wordpress.org/plugins/orbisius-child-theme-creator/
- *
- * Unlike style.css, the functions.php of a child theme does not override its counterpart from the parent.
- * Instead, it is loaded in addition to the parent’s functions.php. (Specifically, it is loaded right before the parent theme's functions.php).
- * Source: http://codex.wordpress.org/Child_Themes#Using_functions.php
- *
- * Be sure not to define functions, that already exist in the parent theme!
- * A common pattern is to prefix function names with the (child) theme name.
- * Also if the parent theme supports pluggable functions you can use function_exists( 'put_the_function_name_here' ) checks.
- */
- /**
- * Loads parent and child themes' style.css
- */
- function orbisius_ct_corporal_premium_child_theme_child_theme_enqueue_styles() {
- $parent_style = 'orbisius_ct_corporal_premium_child_theme_parent_style';
- $parent_base_dir = 'corporal-premium';
- wp_enqueue_style( $parent_style,
- get_template_directory_uri() . '/style.css',
- array(),
- wp_get_theme( $parent_base_dir ) ? wp_get_theme( $parent_base_dir )->get('Version') : ''
- );
- wp_enqueue_style( $parent_style . '_child_style',
- get_stylesheet_directory_uri() . '/style.css',
- array( $parent_style ),
- wp_get_theme()->get('Version')
- );
- }
- add_action( 'wp_enqueue_scripts', 'orbisius_ct_corporal_premium_child_theme_child_theme_enqueue_styles' );
- require( get_stylesheet_directory() . '/cpt.php' );
- function corporal_default_settings1()
- { $site_logo = get_template_directory_uri().'/images/logo.png';
- $testi_bg = get_template_directory_uri().'/images/test1.jpg';
- $testi_image = get_template_directory_uri().'/images/h_3_t.png';
- $fact_bg = get_template_directory_uri().'/images/fact-cover1.jpg';
- $contact_bg = get_template_directory_uri().'/images/contact_bg.jpg';
- $site_bg = get_template_directory_uri().'/images/bg/6.jpg';
- $corporal_theme_options=array(
- /* General Settings*/
- 'front_page' => 'on',
- 'mega_menu' => 'on',
- 'site_logo' => $site_logo,
- 'logo_height' => 70,
- 'logo_width' => 300,
- 'header_image' => $testi_bg,
- 'sticky_header'=>'on',
- 'search_header'=>'on',
- 'upload_image_favicon'=>'',
- 'google_analytics'=>'',
- 'custom_css'=>'',
- /* header elements */
- 'header_template' => 1,
- 'header_contact' => '+919876543210',
- 'header_mail' => 'demo@gmail.com',
- 'header_social' => 'on',
- /* Social Elements */
- 'social_icon_1' => 'fa fa-facebook',
- 'social_link_1' => '#',
- 'social_icon_2' => 'fa fa-twitter',
- 'social_link_2' => '#',
- 'social_icon_3' => 'fa fa-google',
- 'social_link_3' => '#',
- 'social_icon_4' => 'fa fa-instagram',
- 'social_link_4' => '#',
- 'social_icon_5' => 'fa fa-yahoo',
- 'social_link_5' => '#',
- /* Slider Elements */
- 'slider_template' => 1,
- 'slider_loop' => 'on',
- 'slider_autoplay' => 'on',
- 'slider_time' => 3000,
- 'video_id' => 'B0EVc3VXRdI',
- 'video_title' => 'LOREM IPSUM DOLOR SIM AMET',
- 'video_desc' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed turpis quam, ultricies at luctus eget, vestibulum vel elit. Nulla et diam non dui blandit tincidunt.',
- 'video_link' => '#',
- 'video_link_text' => 'Read More',
- /* Service Elements */
- 'service_template' => 1,
- 'service_title' => 'Our Services',
- 'service_desc' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed turpis quam, ultricies at luctus eget, vestibulum vel elit. Nulla et diam non dui blandit tincidunt.',
- 'service_layout' => 2,
- 'service_count' => 6,
- /* Testimonial Elements */
- 'testi_template' => 1,
- 'testi_title' => 'Testimonials',
- 'testi_desc' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed turpis quam, ultricies at luctus eget, vestibulum vel elit. Nulla et diam non dui blandit tincidunt.',
- 'testi_loop' => 'on',
- 'testi_autoplay' => 'on',
- 'testi_time' => 3000,
- 'testi_layout' => 2,
- 'testi_bg' => $testi_bg ,
- 'testi_image' => $testi_image ,
- /* Client Elements */
- 'client_template' => 1,
- 'client_title' => 'Our Sponsers',
- 'client_desc' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed turpis quam, ultricies at luctus eget, vestibulum vel elit. Nulla et diam non dui blandit tincidunt.',
- 'client_loop' => 'on',
- 'client_autoplay' => 'on',
- 'client_time' => 3000,
- 'client_layout' => 4,
- /* Blog Elements */
- 'blog_template' => 1,
- 'blog_title' => 'Latest News',
- 'blog_desc' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed turpis quam, ultricies at luctus eget, vestibulum vel elit. Nulla et diam non dui blandit tincidunt.',
- 'blog_loop' => 'on',
- 'blog_autoplay' => 'on',
- 'blog_time' => 3000,
- /* Portfolio Elements */
- 'portfolio_template' => 1,
- 'portfolio_title' => 'Our Portfolio',
- 'portfolio_desc' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed turpis quam, ultricies at luctus eget, vestibulum vel elit. Nulla et diam non dui blandit tincidunt.',
- 'portfolio_layout' => 4,
- 'portfolio_slide' => 4,
- 'portfolio_loop' => 'on',
- 'portfolio_autoplay' => 'on',
- 'portfolio_time' => 3000,
- /* Team Elements */
- 'team_template' => 1,
- 'team_title' => 'Our Team',
- 'team_desc' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed turpis quam, ultricies at luctus eget, vestibulum vel elit. Nulla et diam non dui blandit tincidunt.',
- 'team_layout' => 3,
- 'team_autoplay' => 'off',
- 'team_time' => 3000,
- /* Facts Elements */
- 'fact_template' => 1,
- 'fact_title' => 'Fun Facts',
- 'fact_desc' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed turpis quam, ultricies at luctus eget, vestibulum vel elit. Nulla et diam non dui blandit tincidunt.',
- 'fact_bg' => $fact_bg ,
- /* Skills Elements */
- 'skill_template' => 1,
- 'skill_title' => 'Our Skills',
- 'skill_desc' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed turpis quam, ultricies at luctus eget, vestibulum vel elit. Nulla et diam non dui blandit tincidunt.',
- /* Subscriber Elements */
- 'subscriber_template' => 1,
- 'subscriber_title' => 'Stay In Touch For Incoming Events',
- 'subscriber_desc' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit sit amet consectetur adipiscing elit sit amet vista adipiscing elit',
- 'subscriber_bg' => $fact_bg,
- 'subscriber_placeholder' => 'Enter Your Email Address Here...',
- 'subscriber_icon' => 'fa fa-envelope',
- 'subscriber_text' => 'Subscribe',
- /* Callout Elements*/
- 'callout_template' => 1,
- 'callout_text' => 'LOREM IPSUM DOLOR SIM AMET ASTHLA VISTA',
- 'callout_span_text' => 'ALJENDRO MAMASITA.',
- 'callout_btn_link' => '#',
- 'callout_btn_text' => 'Download Now',
- 'callout_new_tab' => 'on',
- /* Home Contact Elements */
- 'contact_template' => 1,
- 'contact_title' => 'Contact Us',
- 'contact_desc' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed turpis quam, ultricies at luctus eget, vestibulum vel elit. Nulla et diam non dui blandit tincidunt.',
- 'contact_bg' => $contact_bg ,
- 'contact_mail' => get_option('admin_email') ,
- /* Footer Elements */
- 'footer_social'=>'on',
- 'footer_text'=>'© 2016 Corporal | Theme Developed By',
- 'footer_link_text'=>'Weblizar Themes',
- 'footer_link'=>'http://weblizar.com/',
- /* Contact Elements */
- 'map_url' => 'https://maps.google.co.in/?ie=UTF8&ll=25.705888,76.871338&spn=1.217564,3.348083&t=m&z=9&output=embed',
- 'name_placeholder' => 'Your Name',
- 'subject_placeholder' => 'Enter Subject',
- 'email_placeholder' => 'Enter Email Address',
- 'message_placeholder' => 'Enter Your Query',
- 'submit_btn' => 'Send Mail',
- 'detail_icon_1' => 'fa fa-map-marker',
- 'detail_heading_1' => 'Address',
- 'detail_desc_1' => '2901 London Road, ClasgoSetle WA 918 221-6750',
- 'detail_icon_2' => 'fa fa-phone',
- 'detail_heading_2' => 'Phone No.',
- 'detail_desc_2' => '9876543210',
- 'detail_icon_3' => 'fa fa-envelope',
- 'detail_heading_3' => 'Email',
- 'detail_desc_3' => 'contact@yoursite.com',
- 'detail_icon_4' => 'fa fa-fax',
- 'detail_heading_4' => 'Fax',
- 'detail_desc_4' => '(070) 412 3456',
- /* layout */
- 'home_page_layout'=> array('service','facts','portfolio','testimonial','blog','callout','skills','subscriber','team','contact','clients'),
- /* About us Elements */
- 'about_testi' => 'on',
- 'about_client' => 'on',
- 'about_facts' => 'on',
- /* Skin Layout */
- 'theme_color'=>'#f8a71b',
- 'site_layout'=>'wide',
- 'custom_bg'=>'off',
- 'site_bg'=>$site_bg,
- /* Custom URLs*/
- 'service_slug'=>'services',
- 'portfolio_slug'=>'portfolios',
- 'member_slug'=>'members',
- );
- return apply_filters( 'corporal_pro_options', $corporal_theme_options );
- }
- function corporal_options1(){
- // Options API
- return wp_parse_args(
- get_option( 'corporal_pro_options', array() ), corporal_default_settings1()
- );
- }
Add Comment
Please, Sign In to add comment