Guest User

Untitled

a guest
May 3rd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.11 KB | None | 0 0
  1. <?php
  2. /*
  3. * Generated By Orbisius Child Theme Creator - your favorite plugin for Child Theme creation :)
  4. * https://wordpress.org/plugins/orbisius-child-theme-creator/
  5. *
  6. * Unlike style.css, the functions.php of a child theme does not override its counterpart from the parent.
  7. * Instead, it is loaded in addition to the parent’s functions.php. (Specifically, it is loaded right before the parent theme's functions.php).
  8. * Source: http://codex.wordpress.org/Child_Themes#Using_functions.php
  9. *
  10. * Be sure not to define functions, that already exist in the parent theme!
  11. * A common pattern is to prefix function names with the (child) theme name.
  12. * Also if the parent theme supports pluggable functions you can use function_exists( 'put_the_function_name_here' ) checks.
  13. */
  14.  
  15. /**
  16. * Loads parent and child themes' style.css
  17. */
  18. function orbisius_ct_corporal_premium_child_theme_child_theme_enqueue_styles() {
  19. $parent_style = 'orbisius_ct_corporal_premium_child_theme_parent_style';
  20. $parent_base_dir = 'corporal-premium';
  21.  
  22. wp_enqueue_style( $parent_style,
  23. get_template_directory_uri() . '/style.css',
  24. array(),
  25. wp_get_theme( $parent_base_dir ) ? wp_get_theme( $parent_base_dir )->get('Version') : ''
  26. );
  27.  
  28. wp_enqueue_style( $parent_style . '_child_style',
  29. get_stylesheet_directory_uri() . '/style.css',
  30. array( $parent_style ),
  31. wp_get_theme()->get('Version')
  32. );
  33. }
  34.  
  35. add_action( 'wp_enqueue_scripts', 'orbisius_ct_corporal_premium_child_theme_child_theme_enqueue_styles' );
  36.  
  37. require( get_stylesheet_directory() . '/cpt.php' );
  38.  
  39. function corporal_default_settings1()
  40. { $site_logo = get_template_directory_uri().'/images/logo.png';
  41. $testi_bg = get_template_directory_uri().'/images/test1.jpg';
  42. $testi_image = get_template_directory_uri().'/images/h_3_t.png';
  43. $fact_bg = get_template_directory_uri().'/images/fact-cover1.jpg';
  44. $contact_bg = get_template_directory_uri().'/images/contact_bg.jpg';
  45. $site_bg = get_template_directory_uri().'/images/bg/6.jpg';
  46. $corporal_theme_options=array(
  47. /* General Settings*/
  48. 'front_page' => 'on',
  49. 'mega_menu' => 'on',
  50. 'site_logo' => $site_logo,
  51. 'logo_height' => 70,
  52. 'logo_width' => 300,
  53. 'header_image' => $testi_bg,
  54. 'sticky_header'=>'on',
  55. 'search_header'=>'on',
  56. 'upload_image_favicon'=>'',
  57. 'google_analytics'=>'',
  58. 'custom_css'=>'',
  59. /* header elements */
  60. 'header_template' => 1,
  61. 'header_contact' => '+919876543210',
  62. 'header_mail' => 'demo@gmail.com',
  63. 'header_social' => 'on',
  64.  
  65. /* Social Elements */
  66. 'social_icon_1' => 'fa fa-facebook',
  67. 'social_link_1' => '#',
  68. 'social_icon_2' => 'fa fa-twitter',
  69. 'social_link_2' => '#',
  70. 'social_icon_3' => 'fa fa-google',
  71. 'social_link_3' => '#',
  72. 'social_icon_4' => 'fa fa-instagram',
  73. 'social_link_4' => '#',
  74. 'social_icon_5' => 'fa fa-yahoo',
  75. 'social_link_5' => '#',
  76.  
  77. /* Slider Elements */
  78. 'slider_template' => 1,
  79. 'slider_loop' => 'on',
  80. 'slider_autoplay' => 'on',
  81. 'slider_time' => 3000,
  82. 'video_id' => 'B0EVc3VXRdI',
  83. 'video_title' => 'LOREM IPSUM DOLOR SIM AMET',
  84. '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.',
  85. 'video_link' => '#',
  86. 'video_link_text' => 'Read More',
  87.  
  88. /* Service Elements */
  89. 'service_template' => 1,
  90. 'service_title' => 'Our Services',
  91. '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.',
  92. 'service_layout' => 2,
  93. 'service_count' => 6,
  94.  
  95. /* Testimonial Elements */
  96. 'testi_template' => 1,
  97. 'testi_title' => 'Testimonials',
  98. '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.',
  99. 'testi_loop' => 'on',
  100. 'testi_autoplay' => 'on',
  101. 'testi_time' => 3000,
  102. 'testi_layout' => 2,
  103. 'testi_bg' => $testi_bg ,
  104. 'testi_image' => $testi_image ,
  105.  
  106. /* Client Elements */
  107. 'client_template' => 1,
  108. 'client_title' => 'Our Sponsers',
  109. '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.',
  110. 'client_loop' => 'on',
  111. 'client_autoplay' => 'on',
  112. 'client_time' => 3000,
  113. 'client_layout' => 4,
  114.  
  115. /* Blog Elements */
  116. 'blog_template' => 1,
  117. 'blog_title' => 'Latest News',
  118. '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.',
  119. 'blog_loop' => 'on',
  120. 'blog_autoplay' => 'on',
  121. 'blog_time' => 3000,
  122.  
  123. /* Portfolio Elements */
  124. 'portfolio_template' => 1,
  125. 'portfolio_title' => 'Our Portfolio',
  126. '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.',
  127. 'portfolio_layout' => 4,
  128. 'portfolio_slide' => 4,
  129. 'portfolio_loop' => 'on',
  130. 'portfolio_autoplay' => 'on',
  131. 'portfolio_time' => 3000,
  132.  
  133. /* Team Elements */
  134. 'team_template' => 1,
  135. 'team_title' => 'Our Team',
  136. '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.',
  137. 'team_layout' => 3,
  138. 'team_autoplay' => 'off',
  139. 'team_time' => 3000,
  140.  
  141. /* Facts Elements */
  142. 'fact_template' => 1,
  143. 'fact_title' => 'Fun Facts',
  144. '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.',
  145. 'fact_bg' => $fact_bg ,
  146.  
  147. /* Skills Elements */
  148. 'skill_template' => 1,
  149. 'skill_title' => 'Our Skills',
  150. '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.',
  151.  
  152. /* Subscriber Elements */
  153. 'subscriber_template' => 1,
  154. 'subscriber_title' => 'Stay In Touch For Incoming Events',
  155. 'subscriber_desc' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit sit amet consectetur adipiscing elit sit amet vista adipiscing elit',
  156. 'subscriber_bg' => $fact_bg,
  157. 'subscriber_placeholder' => 'Enter Your Email Address Here...',
  158. 'subscriber_icon' => 'fa fa-envelope',
  159. 'subscriber_text' => 'Subscribe',
  160.  
  161. /* Callout Elements*/
  162. 'callout_template' => 1,
  163. 'callout_text' => 'LOREM IPSUM DOLOR SIM AMET ASTHLA VISTA',
  164. 'callout_span_text' => 'ALJENDRO MAMASITA.',
  165. 'callout_btn_link' => '#',
  166. 'callout_btn_text' => 'Download Now',
  167. 'callout_new_tab' => 'on',
  168.  
  169. /* Home Contact Elements */
  170. 'contact_template' => 1,
  171. 'contact_title' => 'Contact Us',
  172. '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.',
  173. 'contact_bg' => $contact_bg ,
  174. 'contact_mail' => get_option('admin_email') ,
  175.  
  176. /* Footer Elements */
  177. 'footer_social'=>'on',
  178. 'footer_text'=>'© 2016 Corporal | Theme Developed By',
  179. 'footer_link_text'=>'Weblizar Themes',
  180. 'footer_link'=>'http://weblizar.com/',
  181.  
  182. /* Contact Elements */
  183. 'map_url' => 'https://maps.google.co.in/?ie=UTF8&amp;ll=25.705888,76.871338&amp;spn=1.217564,3.348083&amp;t=m&amp;z=9&amp;output=embed',
  184. 'name_placeholder' => 'Your Name',
  185. 'subject_placeholder' => 'Enter Subject',
  186. 'email_placeholder' => 'Enter Email Address',
  187. 'message_placeholder' => 'Enter Your Query',
  188. 'submit_btn' => 'Send Mail',
  189. 'detail_icon_1' => 'fa fa-map-marker',
  190. 'detail_heading_1' => 'Address',
  191. 'detail_desc_1' => '2901 London Road, ClasgoSetle WA 918 221-6750',
  192. 'detail_icon_2' => 'fa fa-phone',
  193. 'detail_heading_2' => 'Phone No.',
  194. 'detail_desc_2' => '9876543210',
  195. 'detail_icon_3' => 'fa fa-envelope',
  196. 'detail_heading_3' => 'Email',
  197. 'detail_desc_3' => 'contact@yoursite.com',
  198. 'detail_icon_4' => 'fa fa-fax',
  199. 'detail_heading_4' => 'Fax',
  200. 'detail_desc_4' => '(070) 412 3456',
  201.  
  202. /* layout */
  203. 'home_page_layout'=> array('service','facts','portfolio','testimonial','blog','callout','skills','subscriber','team','contact','clients'),
  204.  
  205. /* About us Elements */
  206. 'about_testi' => 'on',
  207. 'about_client' => 'on',
  208. 'about_facts' => 'on',
  209.  
  210. /* Skin Layout */
  211. 'theme_color'=>'#f8a71b',
  212. 'site_layout'=>'wide',
  213. 'custom_bg'=>'off',
  214. 'site_bg'=>$site_bg,
  215.  
  216. /* Custom URLs*/
  217. 'service_slug'=>'services',
  218. 'portfolio_slug'=>'portfolios',
  219. 'member_slug'=>'members',
  220. );
  221.  
  222. return apply_filters( 'corporal_pro_options', $corporal_theme_options );
  223.  
  224. }
  225. function corporal_options1(){
  226. // Options API
  227. return wp_parse_args(
  228. get_option( 'corporal_pro_options', array() ), corporal_default_settings1()
  229. );
  230. }
Add Comment
Please, Sign In to add comment