Guest User

Untitled

a guest
Jul 31st, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.97 KB | None | 0 0
  1. <?php
  2. function appointment_service_customizer( $wp_customize ) {
  3.  
  4. //Service section panel
  5. $wp_customize->add_panel( 'appointment_service_options', array(
  6. 'priority' => 600,
  7. 'capability' => 'edit_theme_options',
  8. 'title' => __('Service Settings', 'appointment'),
  9. ) );
  10.  
  11.  
  12. $wp_customize->add_section( 'service_section_head' , array(
  13. 'title' => __('Service Heading ', 'appointment'),
  14. 'panel' => 'appointment_service_options',
  15. 'priority' => 50,
  16. ) );
  17.  
  18.  
  19. //Hide Index Service Section
  20.  
  21. $wp_customize->add_setting(
  22. 'appointment_options[service_section_enabled]',
  23. array(
  24. 'default' => '',
  25. 'capability' => 'edit_theme_options',
  26. 'sanitize_callback' => '',
  27. 'type' => 'option'
  28. )
  29. );
  30. $wp_customize->add_control(
  31. 'appointment_options[service_section_enabled]',
  32. array(
  33. 'label' => __('Hide Home Service Section','appointment'),
  34. 'section' => 'service_section_head',
  35. 'type' => 'checkbox',
  36. )
  37. );
  38.  
  39. $wp_customize->add_setting(
  40. 'appointment_options[service_title]',
  41. array(
  42. 'default' => __('Our Services','appointment'),
  43. 'capability' => 'edit_theme_options',
  44. 'sanitize_callback' => 'appointment_service_sanitize_html',
  45. 'type' => 'option'
  46. )
  47. );
  48. $wp_customize->add_control(
  49. 'appointment_options[service_title]',
  50. array(
  51. 'label' => __('Service Title','appointment'),
  52. 'section' => 'service_section_head',
  53. 'type' => 'text',
  54. )
  55. );
  56.  
  57. $wp_customize->add_setting(
  58. 'appointment_options[service_description]',
  59. array(
  60. 'default' => __('Duis aute irure dolor in reprehenderit in voluptate velit cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupid non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.','appointment'),
  61. 'sanitize_callback' => '',
  62. 'type' => 'option'
  63. )
  64. );
  65. $wp_customize->add_control(
  66. 'appointment_options[service_description]',
  67. array(
  68. 'label' => __('Service Description','appointment'),
  69. 'section' => 'service_section_head',
  70. 'type' => 'text',
  71. 'sanitize_callback' => '',
  72. )
  73. );
  74.  
  75. //service section one
  76. $wp_customize->add_section( 'service_section_one' , array(
  77. 'title' => __('Service Section one', 'appointment'),
  78. 'panel' => 'appointment_service_options',
  79. 'priority' => 100,
  80. 'sanitize_callback' => '',
  81. ) );
  82. $wp_customize->add_setting(
  83. 'appointment_options[service_one_icon]', array(
  84. 'sanitize_callback' => '',
  85. 'default' => 'fa-mobile',
  86. 'capability' => 'edit_theme_options',
  87. 'type' => 'option',
  88. ));
  89.  
  90. $wp_customize->add_control( 'appointment_options[service_one_icon]', array(
  91. 'label' => __('Service icon', 'appointment'),
  92. 'style' => 'background-color: red',
  93. 'section' => 'service_section_one',
  94. 'type' => 'text',
  95. ));
  96.  
  97. $wp_customize->add_setting(
  98. 'appointment_options[service_one_title]',
  99. array(
  100. 'default' => __('Easy to Use','appointment'),
  101. 'capability' => 'edit_theme_options',
  102. 'sanitize_callback' => 'appointment_service_sanitize_html',
  103. 'type' => 'option'
  104. )
  105. );
  106. $wp_customize->add_control(
  107. 'appointment_options[service_one_title]',
  108. array(
  109. 'label' => __('Title one','appointment'),
  110. 'section' => 'service_section_one',
  111. 'type' => 'text',
  112. )
  113. );
  114.  
  115. $wp_customize->add_setting(
  116. 'appointment_options[service_one_description]',
  117. array(
  118. 'default' => __('Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consec tetur adipisicing elit dignissim dapib tumst.','appointment'),
  119. 'capability' => 'edit_theme_options',
  120. 'sanitize_callback' => '',
  121. 'type' => 'option'
  122. )
  123. );
  124. $wp_customize->add_control(
  125. 'appointment_options[service_one_description]',
  126. array(
  127. 'label' => __('Description One','appointment'),
  128. 'section' => 'service_section_one',
  129. 'type' => 'text',
  130. )
  131. );
  132. //Service First icon link
  133. $wp_customize ->add_setting (
  134. 'appointment_options[service_one_link]',
  135. array(
  136. 'default' => __('#','appointment'),
  137. 'capability' => 'edit_theme_options',
  138. 'sanitize_callback' => '',
  139. 'type' => 'option',
  140. ) );
  141.  
  142. $wp_customize->add_control (
  143. 'appointment_options[service_one_link]',
  144. array (
  145. 'label' => __('Service Title & Icon Link','appointment'),
  146. 'section' => 'service_section_one',
  147. 'type' => 'text',
  148. ) );
  149.  
  150. $wp_customize->add_setting(
  151. 'appointment_options[service_one_link_target]',
  152. array('capability' => 'edit_theme_options',
  153. 'sanitize_callback' => '',
  154. 'type' => 'option',
  155. 'default' => false
  156. ));
  157.  
  158. $wp_customize->add_control(
  159. 'appointment_options[service_one_link_target]',
  160. array(
  161. 'type' => 'checkbox',
  162. 'label' => __('Open link new tab/window','appointment'),
  163. 'section' => 'service_section_one',
  164. )
  165. );
  166.  
  167.  
  168. //Second service
  169.  
  170. $wp_customize->add_section( 'service_section_two' , array(
  171. 'title' => __('Service Section Two', 'appointment'),
  172. 'panel' => 'appointment_service_options',
  173. 'priority' => 200,
  174. ) );
  175.  
  176.  
  177. $wp_customize->add_setting(
  178. 'appointment_options[service_two_icon]',
  179. array(
  180. 'type' =>'option',
  181. 'default' => 'fa-bell',
  182. 'capability' => 'edit_theme_options',
  183. 'sanitize_callback' => '',
  184.  
  185. )
  186. );
  187. $wp_customize->add_control(
  188. 'appointment_options[service_two_icon]',
  189. array(
  190. 'label' => __('Icon Two Like: fa-group','appointment'),
  191. 'section' => 'service_section_two',
  192. 'type' => 'text',
  193. )
  194. );
  195.  
  196. $wp_customize->add_setting(
  197. 'appointment_options[service_two_title]',
  198. array(
  199. 'default' => __('Easy to Use','appointment'),
  200. 'capability' => 'edit_theme_options',
  201. 'sanitize_callback' => 'appointment_service_sanitize_html',
  202. 'type' => 'option',
  203. )
  204. );
  205. $wp_customize->add_control(
  206. 'appointment_options[service_two_title]',
  207. array(
  208. 'label' => __('Title two' ,'appointment'),
  209. 'section' => 'service_section_two',
  210. 'type' => 'text',
  211. )
  212. );
  213.  
  214. $wp_customize->add_setting(
  215. 'appointment_options[service_two_description]',
  216. array(
  217. 'default' => __('Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consec tetur adipisicing elit dignissim dapib tumst.','appointment'),
  218. 'capability' => 'edit_theme_options',
  219. 'sanitize_callback' => '',
  220. 'type' => 'option',
  221. )
  222. );
  223. $wp_customize->add_control(
  224. 'appointment_options[service_two_description]',
  225. array(
  226. 'label' => __('Description two','appointment'),
  227. 'section' => 'service_section_two',
  228. 'type' => 'text',
  229. )
  230. );
  231.  
  232. //Service two icon link
  233. $wp_customize ->add_setting (
  234. 'appointment_options[service_two_link]',
  235. array(
  236. 'default' => __('#','appointment'),
  237. 'capability' => 'edit_theme_options',
  238. 'sanitize_callback' => '',
  239. 'type' => 'option',
  240. ) );
  241.  
  242. $wp_customize->add_control (
  243. 'appointment_options[service_two_link]',
  244. array (
  245. 'label' => __('Service Title & Icon Link','appointment'),
  246. 'section' => 'service_section_two',
  247. 'type' => 'text',
  248. ) );
  249.  
  250. $wp_customize->add_setting(
  251. 'appointment_options[service_two_link_target]',
  252. array('capability' => 'edit_theme_options',
  253. 'sanitize_callback' => '',
  254. 'type' => 'option',
  255. ));
  256.  
  257. $wp_customize->add_control(
  258. 'appointment_options[service_two_link_target]',
  259. array(
  260. 'type' => 'checkbox',
  261. 'label' => __('Open link new tab/window','appointment'),
  262. 'section' => 'service_section_two',
  263. )
  264. );
  265.  
  266. //Third Service section
  267. $wp_customize->add_section( 'service_section_three' , array(
  268. 'title' => __('Service Section Three', 'appointment'),
  269. 'panel' => 'appointment_service_options',
  270. 'priority' => 300,
  271. ) );
  272.  
  273.  
  274. $wp_customize->add_setting(
  275. 'appointment_options[service_three_icon]',
  276. array(
  277. 'default' => 'fa-laptop',
  278. 'capability' => 'edit_theme_options',
  279. 'sanitize_callback' => '',
  280. 'type' => 'option',
  281.  
  282. )
  283. );
  284. $wp_customize->add_control(
  285. 'appointment_options[service_three_icon]',
  286. array(
  287. 'label' => __('Icon three Like: fa-group','appointment'),
  288. 'section' => 'service_section_three',
  289. 'type' => 'text',
  290.  
  291. )
  292. );
  293.  
  294. $wp_customize->add_setting(
  295. 'appointment_options[service_three_title]',
  296. array(
  297. 'default' => __('Easy to Use','appointment'),
  298. 'capability' => 'edit_theme_options',
  299. 'sanitize_callback' => 'appointment_service_sanitize_html',
  300. 'type' =>'option',
  301. )
  302. );
  303. $wp_customize->add_control(
  304. 'appointment_options[service_three_title]',
  305. array(
  306. 'label' => __('Title three','appointment'),
  307. 'section' => 'service_section_three',
  308. 'type' => 'text',
  309. )
  310. );
  311.  
  312. $wp_customize->add_setting(
  313. 'appointment_options[service_three_description]',
  314. array(
  315. 'default' => __('Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consec tetur adipisicing elit dignissim dapib tumst.','appointment'),
  316. 'capability' => 'edit_theme_options',
  317. 'sanitize_callback' => '',
  318. 'type' =>'option',
  319. )
  320. );
  321. $wp_customize->add_control(
  322. 'appointment_options[service_three_description]',
  323. array(
  324. 'label' => __('Description three','appointment'),
  325. 'section' => 'service_section_three',
  326. 'type' => 'text',
  327. )
  328. );
  329.  
  330. //Service three icon link
  331. $wp_customize ->add_setting (
  332. 'appointment_options[service_three_link]',
  333. array(
  334. 'default' => __('#','appointment'),
  335. 'capability' => 'edit_theme_options',
  336. 'sanitize_callback' => '',
  337. 'type' => 'option',
  338. ) );
  339.  
  340. $wp_customize->add_control (
  341. 'appointment_options[service_three_link]',
  342. array (
  343. 'label' => __('Service Title & Icon Link','appointment'),
  344. 'section' => 'service_section_three',
  345. 'type' => 'text',
  346. ) );
  347.  
  348. $wp_customize->add_setting(
  349. 'appointment_options[service_three_link_target]',
  350. array('capability' => 'edit_theme_options',
  351. 'sanitize_callback' => '',
  352. 'type' => 'option',
  353. ));
  354.  
  355. $wp_customize->add_control(
  356. 'appointment_options[service_three_link_target]',
  357. array(
  358. 'type' => 'checkbox',
  359. 'label' => __('Open link new tab/window','appointment'),
  360. 'section' => 'service_section_three',
  361. )
  362. );
  363.  
  364. //Four Service section
  365.  
  366. $wp_customize->add_section( 'service_section_four' , array(
  367. 'title' => __('Service Section Four', 'appointment'),
  368. 'panel' => 'appointment_service_options',
  369. 'priority' => 400,
  370. ) );
  371.  
  372. $wp_customize->add_setting(
  373. 'appointment_options[service_four_icon]',
  374. array(
  375. 'default' => 'fa-support',
  376. 'capability' => 'edit_theme_options',
  377. 'sanitize_callback' => '',
  378. 'type' =>'option',
  379. )
  380. );
  381. $wp_customize->add_control(
  382. 'appointment_options[service_four_icon]',
  383. array(
  384. 'label' => __('Icon Four Like: fa-group','appointment'),
  385. 'section' => 'service_section_four',
  386. 'type' => 'text',
  387. )
  388. );
  389.  
  390. $wp_customize->add_setting(
  391. 'appointment_options[service_four_title]',
  392. array(
  393. 'default' => __('Easy to Use','appointment'),
  394. 'capability' => 'edit_theme_options',
  395. 'sanitize_callback' => 'appointment_service_sanitize_html',
  396. 'type' => 'option'
  397. )
  398. );
  399. $wp_customize->add_control(
  400. 'appointment_options[service_four_title]',
  401. array(
  402. 'label' => __('Title four','appointment'),
  403. 'section' => 'service_section_four',
  404. 'type' => 'text',
  405. )
  406. );
  407.  
  408. $wp_customize->add_setting(
  409. 'appointment_options[service_four_description]',
  410. array(
  411. 'default' => __('Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consec tetur adipisicing elit dignissim dapib tumst.','appointment'),
  412. 'capability' => 'edit_theme_options',
  413. 'sanitize_callback' => '',
  414. 'type' => 'option'
  415. )
  416. );
  417. $wp_customize->add_control(
  418. 'appointment_options[service_four_description]',
  419. array(
  420. 'label' => __('Description four','appointment'),
  421. 'section' => 'service_section_four',
  422. 'type' => 'text',
  423. 'sanitize_callback' => '',
  424. )
  425. );
  426.  
  427.  
  428. //Service Four icon link
  429. $wp_customize ->add_setting (
  430. 'appointment_options[service_four_link]',
  431. array(
  432. 'default' => __('#','appointment'),
  433. 'capability' => 'edit_theme_options',
  434. 'sanitize_callback' => '',
  435. 'type' => 'option',
  436. ) );
  437.  
  438. $wp_customize->add_control (
  439. 'appointment_options[service_four_link]',
  440. array (
  441. 'label' => __('Service Title & Icon Link','appointment'),
  442. 'section' => 'service_section_four',
  443. 'type' => 'text',
  444. ) );
  445.  
  446. $wp_customize->add_setting(
  447. 'appointment_options[service_four_link_target]',
  448. array('capability' => 'edit_theme_options',
  449. 'sanitize_callback' => '',
  450. 'type' => 'option',
  451. ));
  452.  
  453. $wp_customize->add_control(
  454. 'appointment_options[service_four_link_target]',
  455. array(
  456. 'type' => 'checkbox',
  457. 'label' => __('Open link new tab/window','appointment'),
  458. 'section' => 'service_section_four',
  459. )
  460. );
  461.  
  462.  
  463. //Five service section
  464. $wp_customize->add_section( 'service_section_five' , array(
  465. 'title' => __('Service Section Five', 'appointment'),
  466. 'panel' => 'appointment_service_options',
  467. 'priority' => 500,
  468. ) );
  469.  
  470.  
  471. $wp_customize->add_setting(
  472. 'appointment_options[service_five_icon]',
  473. array(
  474. 'default' => 'fa-code',
  475. 'capability' => 'edit_theme_options',
  476. 'sanitize_callback' => '',
  477. 'type' => 'option',
  478. )
  479. );
  480. $wp_customize->add_control(
  481. 'appointment_options[service_five_icon]',
  482. array(
  483. 'label' => __('Icon five Like: fa-group','appointment'),
  484. 'section' => 'service_section_five',
  485. 'type' => 'text',
  486. )
  487. );
  488.  
  489. $wp_customize->add_setting(
  490. 'appointment_options[service_five_title]',
  491. array(
  492. 'default' => __('Easy to Use','appointment'),
  493. 'capability' => 'edit_theme_options',
  494. 'sanitize_callback' => 'appointment_service_sanitize_html',
  495. 'type' => 'option',
  496. )
  497. );
  498. $wp_customize->add_control(
  499. 'appointment_options[service_five_title]',
  500. array(
  501. 'label' => __('Title five','appointment'),
  502. 'section' => 'service_section_five',
  503. 'type' => 'text',
  504.  
  505. )
  506. );
  507.  
  508. $wp_customize->add_setting(
  509. 'appointment_options[service_five_description]',
  510. array(
  511. 'default' => __('Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consec tetur adipisicing elit dignissim dapib tumst.','appointment'),
  512. 'capability' => 'edit_theme_options',
  513. 'sanitize_callback' => '',
  514. 'type' => 'option'
  515. )
  516. );
  517. $wp_customize->add_control(
  518. 'appointment_options[service_five_description]',
  519. array(
  520. 'label' => __('Description five','appointment'),
  521. 'section' => 'service_section_five',
  522. 'type' => 'text',
  523. )
  524. );
  525.  
  526. //Service Five icon link
  527. $wp_customize ->add_setting (
  528. 'appointment_options[service_five_link]',
  529. array(
  530. 'default' => __('#','appointment'),
  531. 'capability' => 'edit_theme_options',
  532. 'sanitize_callback' => '',
  533. 'type' => 'option',
  534. ) );
  535.  
  536. $wp_customize->add_control (
  537. 'appointment_options[service_five_link]',
  538. array (
  539. 'label' => __('Service Title & Icon Link','appointment'),
  540. 'section' => 'service_section_five',
  541. 'type' => 'text',
  542. ) );
  543.  
  544. $wp_customize->add_setting(
  545. 'appointment_options[service_five_link_target]',
  546. array('capability' => 'edit_theme_options',
  547. 'sanitize_callback' => '',
  548. 'type' => 'option',
  549. ));
  550.  
  551. $wp_customize->add_control(
  552. 'appointment_options[service_five_link_target]',
  553. array(
  554. 'type' => 'checkbox',
  555. 'label' => __('Open link new tab/window','appointment'),
  556. 'section' => 'service_section_five',
  557. )
  558. );
  559.  
  560. //Six service section
  561. $wp_customize->add_section( 'service_section_six' , array(
  562. 'title' => __('Service Section Six', 'appointment'),
  563. 'panel' => 'appointment_service_options',
  564. 'priority' => 600,
  565.  
  566. ) );
  567.  
  568.  
  569. $wp_customize->add_setting(
  570. 'appointment_options[service_six_icon]',
  571. array(
  572. 'default' => 'fa-cog',
  573. 'capability' => 'edit_theme_options',
  574. 'sanitize_callback' => '',
  575. 'type' => 'option',
  576. )
  577. );
  578. $wp_customize->add_control(
  579. 'appointment_options[service_six_icon]',
  580. array(
  581. 'label' => __('Icon six Like: fa-group','appointment'),
  582. 'section' => 'service_section_six',
  583. 'type' => 'text',
  584. )
  585. );
  586.  
  587. $wp_customize->add_setting(
  588. 'appointment_options[service_six_title]',
  589. array(
  590. 'default' => __('Easy to Use','appointment'),
  591. 'capability' => 'edit_theme_options',
  592. 'sanitize_callback' => 'appointment_service_sanitize_html',
  593. 'type' => 'option',
  594. )
  595. );
  596. $wp_customize->add_control(
  597. 'appointment_options[service_six_title]',
  598. array(
  599. 'label' => __('Title six','appointment'),
  600. 'section' => 'service_section_six',
  601. 'type' => 'text',
  602.  
  603. )
  604. );
  605.  
  606. $wp_customize->add_setting(
  607. 'appointment_options[service_six_description]',
  608. array(
  609. 'default' => __('Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consec tetur adipisicing elit dignissim dapib tumst.','appointment'),
  610. 'capability' => 'edit_theme_options',
  611. 'sanitize_callback' => '',
  612. 'type' => 'option',
  613. )
  614. );
  615. $wp_customize->add_control(
  616. 'appointment_options[service_six_description]',
  617. array(
  618. 'label' => __('Description six','appointment'),
  619. 'section' => 'service_section_six',
  620. 'type' => 'text',
  621. )
  622. );
  623.  
  624. //Service six icon link
  625. $wp_customize ->add_setting (
  626. 'appointment_options[service_six_link]',
  627. array(
  628. 'default' => __('#','appointment'),
  629. 'capability' => 'edit_theme_options',
  630. 'sanitize_callback' => '',
  631. 'type' => 'option',
  632. ) );
  633.  
  634. $wp_customize->add_control (
  635. 'appointment_options[service_six_link]',
  636. array (
  637. 'label' => __('Service Title & Icon Link','appointment'),
  638. 'section' => 'service_section_six',
  639. 'type' => 'text',
  640. ) );
  641.  
  642. $wp_customize->add_setting(
  643. 'appointment_options[service_six_link_target]',
  644. array('capability' => 'edit_theme_options',
  645. 'sanitize_callback' => '',
  646. 'type' => 'option',
  647. ));
  648.  
  649. $wp_customize->add_control(
  650. 'appointment_options[service_six_link_target]',
  651. array(
  652. 'type' => 'checkbox',
  653. 'label' => __('Open link new tab/window','appointment'),
  654. 'section' => 'service_section_six',
  655. )
  656. );
  657. //Seven service section
  658. $wp_customize->add_section( 'service_section_seven' , array(
  659. 'title' => __('Service Section Seven', 'appointment'),
  660. 'panel' => 'appointment_service_options',
  661. 'priority' => 700,
  662. ) );
  663.  
  664.  
  665. $wp_customize->add_setting(
  666. 'appointment_options[service_seven_icon]',
  667. array(
  668. 'default' => __('','appointment'),
  669. 'capability' => 'edit_theme_options',
  670. 'sanitize_callback' => '',
  671. 'type' => 'option',
  672. )
  673. );
  674.  
  675. $wp_customize->add_control(
  676. 'appointment_options[service_seven_icon]',
  677. array(
  678. 'label' => __('Icon seven Like: fa-group','appointment'),
  679. 'section' => 'service_section_seven',
  680. 'type' => 'text',
  681. )
  682. );
  683.  
  684. $wp_customize->add_setting(
  685. 'appointment_options[service_seven_title]',
  686. array(
  687. 'default' => __('','appointment'),
  688. 'capability' => 'edit_theme_options',
  689. 'sanitize_callback' => 'appointment_service_sanitize_html',
  690. 'type' => 'option',
  691. )
  692. );
  693. $wp_customize->add_control(
  694. 'appointment_options[service_seven_title]',
  695. array(
  696. 'label' => __('Title seven','appointment'),
  697. 'section' => 'service_section_seven',
  698. 'type' => 'text',
  699. )
  700. );
  701.  
  702. $wp_customize->add_setting(
  703. 'appointment_options[service_seven_description]',
  704. array(
  705. 'default' => __('','appointment'),
  706. 'capability' => 'edit_theme_options',
  707. 'sanitize_callback' => '',
  708. 'type' => 'option',
  709. )
  710. );
  711. $wp_customize->add_control(
  712. 'appointment_options[service_seven_description]',
  713. array(
  714. 'label' => __('Description seven','appointment'),
  715. 'section' => 'service_section_seven',
  716. 'type' => 'text',
  717. )
  718. );
  719.  
  720. //Service seven icon link
  721. $wp_customize ->add_setting (
  722. 'appointment_options[service_seven_link]',
  723. array(
  724. 'default' => __('#','appointment'),
  725. 'capability' => 'edit_theme_options',
  726. 'sanitize_callback' => '',
  727. 'type' => 'option',
  728. ) );
  729.  
  730. $wp_customize->add_control (
  731. 'appointment_options[service_seven_link]',
  732. array (
  733. 'label' => __('Service Title & Icon Link','appointment'),
  734. 'section' => 'service_section_seven',
  735. 'type' => 'text',
  736. ) );
  737.  
  738. $wp_customize->add_setting(
  739. 'appointment_options[service_seven_link_target]',
  740. array('capability' => 'edit_theme_options',
  741. 'sanitize_callback' => '',
  742. 'type' => 'option',
  743. ));
  744.  
  745. $wp_customize->add_control(
  746. 'appointment_options[service_seven_link_target]',
  747. array(
  748. 'type' => 'checkbox',
  749. 'label' => __('Open link new tab/window','appointment'),
  750. 'section' => 'service_section_seven',
  751. )
  752. );
  753.  
  754. //eight service section
  755. $wp_customize->add_section( 'service_section_eight' , array(
  756. 'title' => __('Service Section Eight', 'appointment'),
  757. 'panel' => 'appointment_service_options',
  758. 'priority' => 800,
  759. ) );
  760.  
  761. $wp_customize->add_setting(
  762. 'appointment_options[service_eight_icon]',
  763. array(
  764. 'default' => __('','appointment'),
  765. 'capability' => 'edit_theme_options',
  766. 'sanitize_callback' => '',
  767. 'type' => 'option',
  768. )
  769. );
  770.  
  771. $wp_customize->add_control(
  772. 'appointment_options[service_eight_icon]',
  773. array(
  774. 'label' => __('Icon eight Like: fa-group','appointment'),
  775. 'section' => 'service_section_eight',
  776. 'type' => 'text',
  777. )
  778. );
  779.  
  780. $wp_customize->add_setting(
  781. 'appointment_options[service_eight_title]',
  782. array(
  783. 'default' => __('','appointment'),
  784. 'capability' => 'edit_theme_options',
  785. 'sanitize_callback' => 'appointment_service_sanitize_html',
  786. 'type' => 'option',
  787. )
  788. );
  789. $wp_customize->add_control(
  790. 'appointment_options[service_eight_title]',
  791. array(
  792. 'label' => __('Title eight','appointment'),
  793. 'section' => 'service_section_eight',
  794. 'type' => 'text',
  795. )
  796. );
  797.  
  798. $wp_customize->add_setting(
  799. 'appointment_options[service_eight_description]',
  800. array(
  801. 'default' => __('','appointment'),
  802. 'capability' => 'edit_theme_options',
  803. 'sanitize_callback' => '',
  804. 'type' => 'option',
  805. )
  806. );
  807. $wp_customize->add_control(
  808. 'appointment_options[service_eight_description]',
  809. array(
  810. 'label' => __('Description eight','appointment'),
  811. 'section' => 'service_section_eight',
  812. 'type' => 'text',
  813. )
  814. );
  815. //Service eight link
  816. $wp_customize ->add_setting (
  817. 'appointment_options[service_eight_link]',
  818. array(
  819. 'default' => __('#','appointment'),
  820. 'capability' => 'edit_theme_options',
  821. 'sanitize_callback' => '',
  822. 'type' => 'option',
  823. ) );
  824.  
  825. $wp_customize->add_control (
  826. 'appointment_options[service_eight_link]',
  827. array (
  828. 'label' => __('Service Title & Icon Link','appointment'),
  829. 'section' => 'service_section_eight',
  830. 'type' => 'text',
  831. ) );
  832.  
  833. $wp_customize->add_setting(
  834. 'appointment_options[service_eight_link_target]',
  835. array('capability' => 'edit_theme_options',
  836. 'sanitize_callback' => '',
  837. 'type' => 'option',
  838. ));
  839.  
  840. $wp_customize->add_control(
  841. 'appointment_options[service_eight_link_target]',
  842. array(
  843. 'type' => 'checkbox',
  844. 'label' => __('Open link new tab/window','appointment'),
  845. 'section' => 'service_section_eight',
  846. )
  847. );
  848.  
  849. //nine service section
  850. $wp_customize->add_section( 'service_section_nine' , array(
  851. 'title' => __('Service Section Nine', 'appointment'),
  852. 'panel' => 'appointment_service_options',
  853. 'priority' => 900,
  854. ) );
  855.  
  856.  
  857. $wp_customize->add_setting(
  858. 'appointment_options[service_nine_icon]',
  859. array(
  860. 'default' => __('','appointment'),
  861. 'capability' => 'edit_theme_options',
  862. 'sanitize_callback' => '',
  863. 'type' => 'option',
  864.  
  865. )
  866. );
  867.  
  868. $wp_customize->add_control(
  869. 'appointment_options[service_nine_icon]',
  870. array(
  871. 'label' => __('Icon nine Like: fa-group','appointment'),
  872. 'section' => 'service_section_nine',
  873. 'type' => 'text',
  874. )
  875. );
  876.  
  877. $wp_customize->add_setting(
  878. 'appointment_options[service_nine_title]',
  879. array(
  880. 'default' => __('','appointment'),
  881. 'capability' => 'edit_theme_options',
  882. 'sanitize_callback' => 'appointment_service_sanitize_html',
  883. 'type' => 'option',
  884. )
  885. );
  886. $wp_customize->add_control(
  887. 'appointment_options[service_nine_title]',
  888. array(
  889. 'label' => __('Title nine','appointment'),
  890. 'section' => 'service_section_nine',
  891. 'type' => 'text',
  892. )
  893. );
  894.  
  895. $wp_customize->add_setting(
  896. 'appointment_options[service_nine_description]',
  897. array(
  898. 'default' => __('','appointment'),
  899. 'capability' => 'edit_theme_options',
  900. 'sanitize_callback' => '',
  901. 'type' => 'option',
  902. )
  903. );
  904. $wp_customize->add_control(
  905. 'appointment_options[service_nine_description]',
  906. array(
  907. 'label' => __('Description nine','appointment'),
  908. 'section' => 'service_section_nine',
  909. 'type' => 'text',
  910. )
  911. );
  912.  
  913. //Service nine link
  914. $wp_customize ->add_setting (
  915. 'appointment_options[service_nine_link]',
  916. array(
  917. 'default' => __('#','appointment'),
  918. 'capability' => 'edit_theme_options',
  919. 'sanitize_callback' => '',
  920. 'type' => 'option',
  921. ) );
  922.  
  923. $wp_customize->add_control (
  924. 'appointment_options[service_nine_link]',
  925. array (
  926. 'label' => __('Service Title & Icon Link','appointment'),
  927. 'section' => 'service_section_nine',
  928. 'type' => 'text',
  929. ) );
  930.  
  931. $wp_customize->add_setting(
  932. 'appointment_options[service_nine_link_target]',
  933. array('capability' => 'edit_theme_options',
  934. 'sanitize_callback' => '',
  935. 'type' => 'option',
  936. ));
  937.  
  938. $wp_customize->add_control(
  939. 'appointment_options[service_nine_link_target]',
  940. array(
  941. 'type' => 'checkbox',
  942. 'label' => __('Open link new tab/window','appointment'),
  943. 'section' => 'service_section_nine',
  944. )
  945. );
  946. function appointment_service_sanitize_html( $input ) {
  947. return force_balance_tags( $input );
  948. }
  949. }
  950. add_action( 'customize_register', 'appointment_service_customizer' );
  951. ?>
Add Comment
Please, Sign In to add comment