YITH_WCWL_Admin_Init

Initiator class.

Defined (1)

The class is defined in the following location(s).

/includes/class.yith-wcwl-admin-init.php  
  1. class YITH_WCWL_Admin_Init { 
  2.  
  3. /** 
  4. * Single instance of the class 
  5. * @var \YITH_WCWL_Admin_Init 
  6. * @since 2.0.0 
  7. */ 
  8. protected static $instance; 
  9.  
  10. /** 
  11. * Wishlist panel 
  12. * @var string Panel hookname 
  13. * @since 2.0.0 
  14. */ 
  15. protected $_panel = null; 
  16.  
  17. /** 
  18. * Tab name 
  19. * @var string 
  20. * @since 1.0.0 
  21. */ 
  22. public $tab; 
  23.  
  24. /** 
  25. * Various links 
  26. * @var string 
  27. * @access public 
  28. * @since 1.0.0 
  29. */ 
  30. public $doc_url = 'http://yithemes.com/docs-plugins/yith-woocommerce-wishlist/'; 
  31. public $premium_landing_url = 'http://yithemes.com/themes/plugins/yith-woocommerce-wishlist/'; 
  32. public $live_demo_url = 'http://plugins.yithemes.com/yith-woocommerce-wishlist/'; 
  33.  
  34. /** 
  35. * Plugin options 
  36. * @var array 
  37. * @since 1.0.0 
  38. */ 
  39. public $options; 
  40.  
  41. /** 
  42. * List of available tab for wishlist panel 
  43. * @var array 
  44. * @access public 
  45. * @since 2.0.0 
  46. */ 
  47. public $available_tabs = array(); 
  48.  
  49. /** 
  50. * Default tab to show when no selected 
  51. * @var string 
  52. * @access public 
  53. * @since 2.0.0 
  54. */ 
  55. public $default_tab = 'settings'; 
  56.  
  57. /** 
  58. * Returns single instance of the class 
  59. * @return \YITH_WCWL_Admin_Init 
  60. * @since 2.0.0 
  61. */ 
  62. public static function get_instance() { 
  63. if( is_null( self::$instance ) ) { 
  64. self::$instance = new self(); 
  65.  
  66. return self::$instance; 
  67.  
  68. /** 
  69. * Constructor of the class 
  70. * @return \YITH_WCWL_Admin_Init 
  71. * @since 2.0.0 
  72. */ 
  73. public function __construct() { 
  74. // init premium features for admin panel 
  75. if( function_exists( 'YITH_WCWL_Admin_Premium' ) ) { 
  76. YITH_WCWL_Admin_Premium(); 
  77.  
  78. $this->options = $this->_plugin_options(); 
  79.  
  80. if ( ! defined( 'DOING_AJAX' ) ) { 
  81. $this->install(); 
  82.  
  83. add_action( 'init', array( $this, 'init' ), 0 ); 
  84.  
  85. // enqueue scripts 
  86. add_action( 'admin_enqueue_scripts', array( $this, 'enqueue' ), 20 ); 
  87.  
  88. // add plugin links 
  89. add_filter( 'plugin_action_links_' . plugin_basename( YITH_WCWL_DIR . 'init.php' ), array( $this, 'action_links' ) ); 
  90. add_filter( 'plugin_row_meta', array( $this, 'add_plugin_meta' ), 10, 2 ); 
  91.  
  92. // saves panel options 
  93. add_filter( 'woocommerce_admin_settings_sanitize_option_yith_wcwl_color_panel', array( $this, 'update_color_options' ) ); 
  94.  
  95. // handles custom wc option type 
  96. add_action( 'woocommerce_admin_field_yith_wcwl_color_panel', array( $this, 'print_color_panel' ) ); 
  97.  
  98. // register wishlist panel 
  99. add_action( 'admin_menu', array( $this, 'register_panel' ), 5 ); 
  100. add_action( 'yith_wcwl_premium_tab', array( $this, 'print_premium_tab' ) ); 
  101.  
  102. // register pointer methods 
  103. add_action( 'admin_init', array( $this, 'register_pointer' ) ); 
  104.  
  105. /** 
  106. * Get the premium landing uri 
  107. * @since 1.0.0 
  108. * @author Andrea Grillo <andrea.grillo@yithemes.com> 
  109. * @return string The premium landing link 
  110. */ 
  111. public function get_premium_landing_uri() { 
  112. return defined( 'YITH_REFER_ID' ) ? $this->premium_landing_url . '?refer_id=' . YITH_REFER_ID : $this->premium_landing_url . '?refer_id=1030585'; 
  113.  
  114. /** === INITIALIZATION SECTION === */ 
  115.  
  116. /** 
  117. * Initiator method. Initiate properties. 
  118. * @return void 
  119. * @access private 
  120. * @since 1.0.0 
  121. */ 
  122. public function init() { 
  123. $this->tab = __( 'Wishlist', 'yith-woocommerce-wishlist' ); 
  124. $this->available_tabs = apply_filters( 'yith_wcwl_available_admin_tabs', array( 
  125. 'settings' => __( 'Settings', 'yith-woocommerce-wishlist' ),  
  126. 'colors' => __( 'Colors', 'yith-woocommerce-wishlist' ),  
  127. 'premium' => __( 'Premium Version', 'yith-woocommerce-wishlist' ) 
  128. ) ); 
  129. $this->default_tab = apply_filters( 'yith_wcwl_default_admin_tab', $this->default_tab ); 
  130.  
  131. wp_register_style( 'yith-wcwl-admin', YITH_WCWL_URL . 'assets/css/admin.css', array(), YITH_WCWL_Init()->version ); 
  132. wp_register_script( 'yith-wcwl-admin', YITH_WCWL_URL . 'assets/js/admin/yith-wcwl.js', array(), YITH_WCWL_Init()->version ); 
  133.  
  134. /** 
  135. * Run the installation 
  136. * @return void 
  137. * @since 1.0.0 
  138. */ 
  139. public function install() { 
  140. $stored_db_version = get_option( 'yith_wcwl_db_version' ); 
  141.  
  142. if( $stored_db_version == '1.0.0' ) { 
  143. add_action( 'init', array( YITH_WCWL_Install(), 'update' ) ); 
  144. add_action( 'init', 'flush_rewrite_rules' ); 
  145. YITH_WCWL_Install()->default_options( $this->options ); 
  146.  
  147. // Plugin installed 
  148. do_action( 'yith_wcwl_installed' ); 
  149. do_action( 'yith_wcwl_updated' ); 
  150. elseif ( YITH_WCWL_Init()->db_version != $stored_db_version || ! YITH_WCWL_Install()->is_installed() ) { 
  151. add_action( 'init', array( YITH_WCWL_Install(), 'init' ) ); 
  152. add_action( 'init', 'flush_rewrite_rules' ); 
  153. YITH_WCWL_Install()->default_options( $this->options ); 
  154.  
  155. // Plugin installed 
  156. do_action( 'yith_wcwl_installed' ); 
  157.  
  158. /** 
  159. * Update plugin color options. 
  160. * @return void 
  161. * @since 1.0.0 
  162. */ 
  163. public function update_color_options( $value = false ) { 
  164. global $pagenow; 
  165.  
  166. $colors_options = array(); 
  167.  
  168. foreach ( YITH_WCWL_Init()->colors_options as $name => $option ) { 
  169. foreach ( $option as $id => $color ) { 
  170. $default_value = isset( $colors_options[$name][$id] ) ? $colors_options[$name][$id] : ''; 
  171. if( isset( $_POST['yith_wcwl_color_' . $name . '_' . $id] ) && ! empty( $_POST['yith_wcwl_color_' . $name . '_' . $id] ) ) { 
  172. $colors_options[$name][$id] = wc_format_hex( $_POST['yith_wcwl_color_' . $name . '_' . $id] ); 
  173. else{ 
  174. $colors_options[$name][$id] = $default_value; 
  175.  
  176. update_option( 'yith_wcwl_frontend_css_colors', maybe_serialize( $colors_options ) ); 
  177.  
  178. return null; 
  179.  
  180. /** 
  181. * Print color panel. 
  182. * @return void 
  183. * @since 1.0.0 
  184. */ 
  185. public function print_color_panel() { 
  186. ?> 
  187. <div id="yith_wcwl_styles_colors"> 
  188. <h3><?php _e( 'Colors', 'yith-woocommerce-wishlist' ) ?></h3> 
  189. <?php $this->_styles_options() ?> 
  190. </div> <?php 
  191.  
  192. /** 
  193. * action_links function. 
  194. * @access public 
  195. * @param mixed $links 
  196. * @return array 
  197. */ 
  198. public function action_links( $links ) { 
  199. $plugin_links = array( 
  200. '<a href="' . admin_url( 'admin.php?page=yith_wcwl_panel&tab=settings' ) . '">' . __( 'Settings', 'yith-woocommerce-wishlist' ) . '</a>' 
  201. ); 
  202.  
  203. if( ! function_exists( 'YITH_WCWL_Premium' ) ) { 
  204. $plugin_links[] = '<a target="_blank" href="' . $this->get_premium_landing_uri() . '">' . __( 'Premium Version', 'yith-woocommerce-wishlist' ) . '</a>'; 
  205. $plugin_links[] = '<a target="_blank" href="' . $this->live_demo_url . '">' . __( 'Live Demo', 'yith-woocommerce-wishlist' ) . '</a>'; 
  206.  
  207. return array_merge( $links, $plugin_links ); 
  208.  
  209. /** 
  210. * Adds plugin row meta 
  211. * @param $plugin_meta array 
  212. * @param $plugin_file string 
  213. * @return array 
  214. * @since 2.0.0 
  215. */ 
  216. public function add_plugin_meta( $plugin_meta, $plugin_file ) { 
  217. global $woocommerce; 
  218.  
  219. if ( $plugin_file == plugin_basename( YITH_WCWL_DIR . 'init.php' ) ) { 
  220.  
  221. // outdated wc alert 
  222.  
  223. if( version_compare( preg_replace( '/-beta-([0-9]+)/', '', $woocommerce->version ), '2.5', '<' ) ) { 
  224. $woocommerce_file = $woocommerce->plugin_path; 
  225. if ( ! is_multisite() && current_user_can( 'delete_plugins' ) ) { 
  226. $plugin_meta['outdated_wc_alert'] = '<a class="outdated-wc-alert" style="color: red" href="' . wp_nonce_url( self_admin_url( 'update.php?action=upgrade-plugin&plugin=' ) . $woocommerce_file, 'upgrade-plugin_' . $woocommerce_file ) . '">' . __( 'WARNING: This plugin requires at least WooCommerce 2.2! Please, use this link to update it.', 'yith-woocommerce-wishlist' ) . '</a>'; 
  227. else{ 
  228. $plugin_meta['outdated_wc_alert'] = '<span class="outdated-wc-alert" style="color: red">' . __( 'WARNING: This plugin requires at least WooCommerce 2.2!', 'yith-woocommerce-wishlist' ) . '</span>'; 
  229.  
  230. // documentation link 
  231. $plugin_meta['documentation'] = '<a target="_blank" href="' . $this->doc_url . '">' . __( 'Plugin Documentation', 'yith-woocommerce-wishlist' ) . '</a>'; 
  232.  
  233. return $plugin_meta; 
  234.  
  235. /** 
  236. * Plugin options and tabs. 
  237. * @return array 
  238. * @since 1.0.0 
  239. */ 
  240. private function _plugin_options() { 
  241. $icons = array( 
  242. 'fa-glass' => 'Glass',  
  243. 'fa-music' => 'Music',  
  244. 'fa-search' => 'Search',  
  245. 'fa-envelope-o' => 'Envelope O',  
  246. 'fa-heart' => 'Heart',  
  247. 'fa-star' => 'Star',  
  248. 'fa-star-o' => 'Star O',  
  249. 'fa-user' => 'User',  
  250. 'fa-film' => 'Film',  
  251. 'fa-th-large' => 'Th Large',  
  252. 'fa-th' => 'Th',  
  253. 'fa-th-list' => 'Th List',  
  254. 'fa-check' => 'Check',  
  255. 'fa-remove' => 'Remove',  
  256. 'fa-search-plus' => 'Search Plus',  
  257. 'fa-search-minus' => 'Search Minus',  
  258. 'fa-power-off' => 'Power Off',  
  259. 'fa-signal' => 'Signal',  
  260. 'fa-cog' => 'Cog',  
  261. 'fa-trash-o' => 'Trash O',  
  262. 'fa-home' => 'Home',  
  263. 'fa-file-o' => 'File O',  
  264. 'fa-clock-o' => 'Clock O',  
  265. 'fa-road' => 'Road',  
  266. 'fa-download' => 'Download',  
  267. 'fa-arrow-circle-o-down' => 'Arrow Circle O Down',  
  268. 'fa-arrow-circle-o-up' => 'Arrow Circle O Up',  
  269. 'fa-inbox' => 'Inbox',  
  270. 'fa-play-circle-o' => 'Play Circle O',  
  271. 'fa-repeat' => 'Repeat',  
  272. 'fa-refresh' => 'Refresh',  
  273. 'fa-list-alt' => 'List Alt',  
  274. 'fa-lock' => 'Lock',  
  275. 'fa-flag' => 'Flag',  
  276. 'fa-headphones' => 'Headphones',  
  277. 'fa-volume-off' => 'Volume Off',  
  278. 'fa-volume-down' => 'Volume Down',  
  279. 'fa-volume-up' => 'Volume Up',  
  280. 'fa-qrcode' => 'Qrcode',  
  281. 'fa-barcode' => 'Barcode',  
  282. 'fa-tag' => 'Tag',  
  283. 'fa-tags' => 'Tags',  
  284. 'fa-book' => 'Book',  
  285. 'fa-bookmark' => 'Bookmark',  
  286. 'fa-print' => 'Print',  
  287. 'fa-camera' => 'Camera',  
  288. 'fa-font' => 'Font',  
  289. 'fa-bold' => 'Bold',  
  290. 'fa-italic' => 'Italic',  
  291. 'fa-text-height' => 'Text Height',  
  292. 'fa-text-width' => 'Text Width',  
  293. 'fa-align-left' => 'Align Left',  
  294. 'fa-align-center' => 'Align Center',  
  295. 'fa-align-right' => 'Align Right',  
  296. 'fa-align-justify' => 'Align Justify',  
  297. 'fa-list' => 'List',  
  298. 'fa-dedent' => 'Dedent',  
  299. 'fa-indent' => 'Indent',  
  300. 'fa-video-camera' => 'Video Camera',  
  301. 'fa-picture-o' => 'Photo',  
  302. 'fa-pencil' => 'Pencil',  
  303. 'fa-map-marker' => 'Map Marker',  
  304. 'fa-adjust' => 'Adjust',  
  305. 'fa-tint' => 'Tint',  
  306. 'fa-edit' => 'Edit',  
  307. 'fa-share-square-o' => 'Share Square O',  
  308. 'fa-check-square-o' => 'Check Square O',  
  309. 'fa-arrows' => 'Arrows',  
  310. 'fa-step-backward' => 'Step Backward',  
  311. 'fa-fast-backward' => 'Fast Backward',  
  312. 'fa-backward' => 'Backward',  
  313. 'fa-play' => 'Play',  
  314. 'fa-pause' => 'Pause',  
  315. 'fa-stop' => 'Stop',  
  316. 'fa-forward' => 'Forward',  
  317. 'fa-fast-forward' => 'Fast Forward',  
  318. 'fa-step-forward' => 'Step Forward',  
  319. 'fa-eject' => 'Eject',  
  320. 'fa-chevron-left' => 'Chevron Left',  
  321. 'fa-chevron-right' => 'Chevron Right',  
  322. 'fa-plus-circle' => 'Plus Circle',  
  323. 'fa-minus-circle' => 'Minus Circle',  
  324. 'fa-times-circle' => 'Times Circle',  
  325. 'fa-check-circle' => 'Check Circle',  
  326. 'fa-question-circle' => 'Question Circle',  
  327. 'fa-info-circle' => 'Info Circle',  
  328. 'fa-crosshairs' => 'Crosshairs',  
  329. 'fa-times-circle-o' => 'Times Circle O',  
  330. 'fa-check-circle-o' => 'Check Circle O',  
  331. 'fa-ban' => 'Ban',  
  332. 'fa-arrow-left' => 'Arrow Left',  
  333. 'fa-arrow-right' => 'Arrow Right',  
  334. 'fa-arrow-up' => 'Arrow Up',  
  335. 'fa-arrow-down' => 'Arrow Down',  
  336. 'fa-share' => 'Share',  
  337. 'fa-expand' => 'Expand',  
  338. 'fa-compress' => 'Compress',  
  339. 'fa-plus' => 'Plus',  
  340. 'fa-minus' => 'Minus',  
  341. 'fa-asterisk' => 'Asterisk',  
  342. 'fa-exclamation-circle' => 'Exclamation Circle',  
  343. 'fa-gift' => 'Gift',  
  344. 'fa-leaf' => 'Leaf',  
  345. 'fa-fire' => 'Fire',  
  346. 'fa-eye' => 'Eye',  
  347. 'fa-eye-slash' => 'Eye Slash',  
  348. 'fa-warning' => 'Warning',  
  349. 'fa-plane' => 'Plane',  
  350. 'fa-calendar' => 'Calendar',  
  351. 'fa-random' => 'Random',  
  352. 'fa-comment' => 'Comment',  
  353. 'fa-magnet' => 'Magnet',  
  354. 'fa-chevron-up' => 'Chevron Up',  
  355. 'fa-chevron-down' => 'Chevron Down',  
  356. 'fa-retweet' => 'Retweet',  
  357. 'fa-shopping-cart' => 'Shopping Cart',  
  358. 'fa-folder' => 'Folder',  
  359. 'fa-folder-open' => 'Folder Open',  
  360. 'fa-arrows-v' => 'Arrows V',  
  361. 'fa-arrows-h' => 'Arrows H',  
  362. 'fa-bar-chart' => 'Bar Chart',  
  363. 'fa-twitter-square' => 'Twitter Square',  
  364. 'fa-facebook-square' => 'Facebook Square',  
  365. 'fa-camera-retro' => 'Camera Retro',  
  366. 'fa-key' => 'Key',  
  367. 'fa-cogs' => 'Cogs',  
  368. 'fa-comments' => 'Comments',  
  369. 'fa-thumbs-o-up' => 'Thumbs O Up',  
  370. 'fa-thumbs-o-down' => 'Thumbs O Down',  
  371. 'fa-star-half' => 'Star Half',  
  372. 'fa-heart-o' => 'Heart O',  
  373. 'fa-sign-out' => 'Sign Out',  
  374. 'fa-linkedin-square' => 'Linkedin Square',  
  375. 'fa-thumb-tack' => 'Thumb Tack',  
  376. 'fa-external-link' => 'External Link',  
  377. 'fa-sign-in' => 'Sign In',  
  378. 'fa-trophy' => 'Trophy',  
  379. 'fa-github-square' => 'Github Square',  
  380. 'fa-upload' => 'Upload',  
  381. 'fa-lemon-o' => 'Lemon O',  
  382. 'fa-phone' => 'Phone',  
  383. 'fa-square-o' => 'Square O',  
  384. 'fa-bookmark-o' => 'Bookmark O',  
  385. 'fa-phone-square' => 'Phone Square',  
  386. 'fa-twitter' => 'Twitter',  
  387. 'fa-facebook' => 'Facebook',  
  388. 'fa-github' => 'Github',  
  389. 'fa-unlock' => 'Unlock',  
  390. 'fa-credit-card' => 'Credit Card',  
  391. 'fa-rss' => 'Rss',  
  392. 'fa-hdd-o' => 'Hdd O',  
  393. 'fa-bullhorn' => 'Bullhorn',  
  394. 'fa-bell' => 'Bell',  
  395. 'fa-certificate' => 'Certificate',  
  396. 'fa-hand-o-right' => 'Hand O Right',  
  397. 'fa-hand-o-left' => 'Hand O Left',  
  398. 'fa-hand-o-up' => 'Hand O Up',  
  399. 'fa-hand-o-down' => 'Hand O Down',  
  400. 'fa-arrow-circle-left' => 'Arrow Circle Left',  
  401. 'fa-arrow-circle-right' => 'Arrow Circle Right',  
  402. 'fa-arrow-circle-up' => 'Arrow Circle Up',  
  403. 'fa-arrow-circle-down' => 'Arrow Circle Down',  
  404. 'fa-globe' => 'Globe',  
  405. 'fa-wrench' => 'Wrench',  
  406. 'fa-tasks' => 'Tasks',  
  407. 'fa-filter' => 'Filter',  
  408. 'fa-briefcase' => 'Briefcase',  
  409. 'fa-arrows-alt' => 'Arrows Alt',  
  410. 'fa-group' => 'Group',  
  411. 'fa-link' => 'Link',  
  412. 'fa-cloud' => 'Cloud',  
  413. 'fa-flask' => 'Flask',  
  414. 'fa-cut' => 'Cut',  
  415. 'fa-copy' => 'Copy',  
  416. 'fa-paperclip' => 'Paperclip',  
  417. 'fa-save' => 'Save',  
  418. 'fa-square' => 'Square',  
  419. 'fa-navicon' => 'Navicon',  
  420. 'fa-list-ul' => 'List Ul',  
  421. 'fa-list-ol' => 'List Ol',  
  422. 'fa-strikethrough' => 'Strikethrough',  
  423. 'fa-underline' => 'Underline',  
  424. 'fa-table' => 'Table',  
  425. 'fa-magic' => 'Magic',  
  426. 'fa-truck' => 'Truck',  
  427. 'fa-pinterest' => 'Pinterest',  
  428. 'fa-pinterest-square' => 'Pinterest Square',  
  429. 'fa-google-plus-square' => 'Google Plus Square',  
  430. 'fa-google-plus' => 'Google Plus',  
  431. 'fa-money' => 'Money',  
  432. 'fa-caret-down' => 'Caret Down',  
  433. 'fa-caret-up' => 'Caret Up',  
  434. 'fa-caret-left' => 'Caret Left',  
  435. 'fa-caret-right' => 'Caret Right',  
  436. 'fa-columns' => 'Columns',  
  437. 'fa-unsorted' => 'Unsorted',  
  438. 'fa-sort-down' => 'Sort Down',  
  439. 'fa-sort-up' => 'Sort Up',  
  440. 'fa-envelope' => 'Envelope',  
  441. 'fa-linkedin' => 'Linkedin',  
  442. 'fa-undo' => 'Undo',  
  443. 'fa-legal' => 'Legal',  
  444. 'fa-dashboard' => 'Dashboard',  
  445. 'fa-comment-o' => 'Comment O',  
  446. 'fa-comments-o' => 'Comments O',  
  447. 'fa-bolt' => 'Bolt',  
  448. 'fa-sitemap' => 'Sitemap',  
  449. 'fa-umbrella' => 'Umbrella',  
  450. 'fa-paste' => 'Paste',  
  451. 'fa-lightbulb-o' => 'Lightbulb O',  
  452. 'fa-exchange' => 'Exchange',  
  453. 'fa-cloud-download' => 'Cloud Download',  
  454. 'fa-cloud-upload' => 'Cloud Upload',  
  455. 'fa-user-md' => 'User Md',  
  456. 'fa-stethoscope' => 'Stethoscope',  
  457. 'fa-suitcase' => 'Suitcase',  
  458. 'fa-bell-o' => 'Bell O',  
  459. 'fa-coffee' => 'Coffee',  
  460. 'fa-cutlery' => 'Cutlery',  
  461. 'fa-file-text-o' => 'File Text O',  
  462. 'fa-building-o' => 'Building O',  
  463. 'fa-hospital-o' => 'Hospital O',  
  464. 'fa-ambulance' => 'Ambulance',  
  465. 'fa-medkit' => 'Medkit',  
  466. 'fa-fighter-jet' => 'Fighter Jet',  
  467. 'fa-beer' => 'Beer',  
  468. 'fa-h-square' => 'H Square',  
  469. 'fa-plus-square' => 'Plus Square',  
  470. 'fa-angle-double-left' => 'Angle Double Left',  
  471. 'fa-angle-double-right' => 'Angle Double Right',  
  472. 'fa-angle-double-up' => 'Angle Double Up',  
  473. 'fa-angle-double-down' => 'Angle Double Down',  
  474. 'fa-angle-left' => 'Angle Left',  
  475. 'fa-angle-right' => 'Angle Right',  
  476. 'fa-angle-up' => 'Angle Up',  
  477. 'fa-angle-down' => 'Angle Down',  
  478. 'fa-desktop' => 'Desktop',  
  479. 'fa-laptop' => 'Laptop',  
  480. 'fa-tablet' => 'Tablet',  
  481. 'fa-mobile' => 'Mobile',  
  482. 'fa-circle-o' => 'Circle O',  
  483. 'fa-quote-left' => 'Quote Left',  
  484. 'fa-quote-right' => 'Quote Right',  
  485. 'fa-spinner' => 'Spinner',  
  486. 'fa-circle' => 'Circle',  
  487. 'fa-reply' => 'Reply',  
  488. 'fa-github-alt' => 'Github Alt',  
  489. 'fa-folder-o' => 'Folder O',  
  490. 'fa-folder-open-o' => 'Folder Open O',  
  491. 'fa-smile-o' => 'Smile O',  
  492. 'fa-frown-o' => 'Frown O',  
  493. 'fa-meh-o' => 'Meh O',  
  494. 'fa-gamepad' => 'Gamepad',  
  495. 'fa-keyboard-o' => 'Keyboard O',  
  496. 'fa-flag-o' => 'Flag O',  
  497. 'fa-flag-checkered' => 'Flag Checkered',  
  498. 'fa-terminal' => 'Terminal',  
  499. 'fa-code' => 'Code',  
  500. 'fa-reply-all' => 'Reply All',  
  501. 'fa-star-half-o' => 'Star Half O',  
  502. 'fa-location-arrow' => 'Location Arrow',  
  503. 'fa-crop' => 'Crop',  
  504. 'fa-code-fork' => 'Code Fork',  
  505. 'fa-chain-broken' => 'Chain Broken',  
  506. 'fa-question' => 'Question',  
  507. 'fa-info' => 'Info',  
  508. 'fa-exclamation' => 'Exclamation',  
  509. 'fa-superscript' => 'Superscript',  
  510. 'fa-subscript' => 'Subscript',  
  511. 'fa-eraser' => 'Eraser',  
  512. 'fa-puzzle-piece' => 'Puzzle Piece',  
  513. 'fa-microphone' => 'Microphone',  
  514. 'fa-microphone-slash' => 'Microphone Slash',  
  515. 'fa-shield' => 'Shield',  
  516. 'fa-calendar-o' => 'Calendar O',  
  517. 'fa-fire-extinguisher' => 'Fire Extinguisher',  
  518. 'fa-rocket' => 'Rocket',  
  519. 'fa-maxcdn' => 'Maxcdn',  
  520. 'fa-chevron-circle-left' => 'Chevron Circle Left',  
  521. 'fa-chevron-circle-right' => 'Chevron Circle Right',  
  522. 'fa-chevron-circle-up' => 'Chevron Circle Up',  
  523. 'fa-chevron-circle-down' => 'Chevron Circle Down',  
  524. 'fa-html5' => 'Html5',  
  525. 'fa-css3' => 'Css3',  
  526. 'fa-anchor' => 'Anchor',  
  527. 'fa-unlock-alt' => 'Unlock Alt',  
  528. 'fa-bullseye' => 'Bullseye',  
  529. 'fa-ellipsis-h' => 'Ellipsis H',  
  530. 'fa-ellipsis-v' => 'Ellipsis V',  
  531. 'fa-rss-square' => 'Rss Square',  
  532. 'fa-play-circle' => 'Play Circle',  
  533. 'fa-ticket' => 'Ticket',  
  534. 'fa-minus-square' => 'Minus Square',  
  535. 'fa-minus-square-o' => 'Minus Square O',  
  536. 'fa-level-up' => 'Level Up',  
  537. 'fa-level-down' => 'Level Down',  
  538. 'fa-check-square' => 'Check Square',  
  539. 'fa-pencil-square' => 'Pencil Square',  
  540. 'fa-external-link-square' => 'External Link Square',  
  541. 'fa-share-square' => 'Share Square',  
  542. 'fa-compass' => 'Compass',  
  543. 'fa-caret-square-o-down' => 'Caret Square O Down',  
  544. 'fa-caret-square-o-up' => 'Caret Square O Up',  
  545. 'fa-caret-square-o-right' => 'Caret Square O Right',  
  546. 'fa-eur' => 'Eur',  
  547. 'fa-gbp' => 'Gbp',  
  548. 'fa-usd' => 'Usd',  
  549. 'fa-inr' => 'Inr',  
  550. 'fa-jpy' => 'Jpy',  
  551. 'fa-rub' => 'Rub',  
  552. 'fa-krw' => 'Krw',  
  553. 'fa-btc' => 'Btc',  
  554. 'fa-file' => 'File',  
  555. 'fa-file-text' => 'File Text',  
  556. 'fa-sort-alpha-asc' => 'Sort Alpha Asc',  
  557. 'fa-sort-alpha-desc' => 'Sort Alpha Desc',  
  558. 'fa-sort-amount-asc' => 'Sort Amount Asc',  
  559. 'fa-sort-amount-desc' => 'Sort Amount Desc',  
  560. 'fa-sort-numeric-asc' => 'Sort Numeric Asc',  
  561. 'fa-sort-numeric-desc' => 'Sort Numeric Desc',  
  562. 'fa-thumbs-up' => 'Thumbs Up',  
  563. 'fa-thumbs-down' => 'Thumbs Down',  
  564. 'fa-youtube-square' => 'Youtube Square',  
  565. 'fa-youtube' => 'Youtube',  
  566. 'fa-xing' => 'Xing',  
  567. 'fa-xing-square' => 'Xing Square',  
  568. 'fa-youtube-play' => 'Youtube Play',  
  569. 'fa-dropbox' => 'Dropbox',  
  570. 'fa-stack-overflow' => 'Stack Overflow',  
  571. 'fa-instagram' => 'Instagram',  
  572. 'fa-flickr' => 'Flickr',  
  573. 'fa-adn' => 'Adn',  
  574. 'fa-bitbucket' => 'Bitbucket',  
  575. 'fa-bitbucket-square' => 'Bitbucket Square',  
  576. 'fa-tumblr' => 'Tumblr',  
  577. 'fa-tumblr-square' => 'Tumblr Square',  
  578. 'fa-long-arrow-down' => 'Long Arrow Down',  
  579. 'fa-long-arrow-up' => 'Long Arrow Up',  
  580. 'fa-long-arrow-left' => 'Long Arrow Left',  
  581. 'fa-long-arrow-right' => 'Long Arrow Right',  
  582. 'fa-apple' => 'Apple',  
  583. 'fa-windows' => 'Windows',  
  584. 'fa-android' => 'Android',  
  585. 'fa-linux' => 'Linux',  
  586. 'fa-dribbble' => 'Dribbble',  
  587. 'fa-skype' => 'Skype',  
  588. 'fa-foursquare' => 'Foursquare',  
  589. 'fa-trello' => 'Trello',  
  590. 'fa-female' => 'Female',  
  591. 'fa-male' => 'Male',  
  592. 'fa-gratipay' => 'Gratipay',  
  593. 'fa-sun-o' => 'Sun O',  
  594. 'fa-moon-o' => 'Moon O',  
  595. 'fa-archive' => 'Archive',  
  596. 'fa-bug' => 'Bug',  
  597. 'fa-vk' => 'Vk',  
  598. 'fa-weibo' => 'Weibo',  
  599. 'fa-renren' => 'Renren',  
  600. 'fa-pagelines' => 'Pagelines',  
  601. 'fa-stack-exchange' => 'Stack Exchange',  
  602. 'fa-arrow-circle-o-right' => 'Arrow Circle O Right',  
  603. 'fa-arrow-circle-o-left' => 'Arrow Circle O Left',  
  604. 'fa-caret-square-o-left' => 'Caret Square O Left',  
  605. 'fa-dot-circle-o' => 'Dot Circle O',  
  606. 'fa-wheelchair' => 'Wheelchair',  
  607. 'fa-vimeo-square' => 'Vimeo Square',  
  608. 'fa-try' => 'Try',  
  609. 'fa-plus-square-o' => 'Plus Square O',  
  610. 'fa-space-shuttle' => 'Space Shuttle',  
  611. 'fa-slack' => 'Slack',  
  612. 'fa-envelope-square' => 'Envelope Square',  
  613. 'fa-wordpress' => 'Wordpress',  
  614. 'fa-openid' => 'Openid',  
  615. 'fa-university' => 'University',  
  616. 'fa-graduation-cap' => 'Graduation Cap',  
  617. 'fa-yahoo' => 'Yahoo',  
  618. 'fa-google' => 'Google',  
  619. 'fa-reddit' => 'Reddit',  
  620. 'fa-reddit-square' => 'Reddit Square',  
  621. 'fa-stumbleupon-circle' => 'Stumbleupon Circle',  
  622. 'fa-stumbleupon' => 'Stumbleupon',  
  623. 'fa-delicious' => 'Delicious',  
  624. 'fa-digg' => 'Digg',  
  625. 'fa-pied-piper' => 'Pied Piper',  
  626. 'fa-pied-piper-alt' => 'Pied Piper Alt',  
  627. 'fa-drupal' => 'Drupal',  
  628. 'fa-joomla' => 'Joomla',  
  629. 'fa-language' => 'Language',  
  630. 'fa-fax' => 'Fax',  
  631. 'fa-building' => 'Building',  
  632. 'fa-child' => 'Child',  
  633. 'fa-paw' => 'Paw',  
  634. 'fa-spoon' => 'Spoon',  
  635. 'fa-cube' => 'Cube',  
  636. 'fa-cubes' => 'Cubes',  
  637. 'fa-behance' => 'Behance',  
  638. 'fa-behance-square' => 'Behance Square',  
  639. 'fa-steam' => 'Steam',  
  640. 'fa-steam-square' => 'Steam Square',  
  641. 'fa-recycle' => 'Recycle',  
  642. 'fa-car' => 'Car',  
  643. 'fa-taxi' => 'Taxi',  
  644. 'fa-tree' => 'Tree',  
  645. 'fa-spotify' => 'Spotify',  
  646. 'fa-deviantart' => 'Deviantart',  
  647. 'fa-soundcloud' => 'Soundcloud',  
  648. 'fa-database' => 'Database',  
  649. 'fa-file-pdf-o' => 'File Pdf O',  
  650. 'fa-file-word-o' => 'File Word O',  
  651. 'fa-file-excel-o' => 'File Excel O',  
  652. 'fa-file-powerpoint-o' => 'File Powerpoint O',  
  653. 'fa-file-image-o' => 'File Image O',  
  654. 'fa-file-archive-o' => 'File Archive O',  
  655. 'fa-file-audio-o' => 'File Audio O',  
  656. 'fa-file-video-o' => 'File Video O',  
  657. 'fa-file-code-o' => 'File Code O',  
  658. 'fa-vine' => 'Vine',  
  659. 'fa-codepen' => 'Codepen',  
  660. 'fa-jsfiddle' => 'Jsfiddle',  
  661. 'fa-life-ring' => 'Life Ring',  
  662. 'fa-circle-o-notch' => 'Circle O Notch',  
  663. 'fa-rebel' => 'Rebel',  
  664. 'fa-empire' => 'Empire',  
  665. 'fa-git-square' => 'Git Square',  
  666. 'fa-git' => 'Git',  
  667. 'fa-hacker-news' => 'Hacker News',  
  668. 'fa-tencent-weibo' => 'Tencent Weibo',  
  669. 'fa-qq' => 'Qq',  
  670. 'fa-weixin' => 'Weixin',  
  671. 'fa-paper-plane' => 'Paper Plane',  
  672. 'fa-paper-plane-o' => 'Paper Plane O',  
  673. 'fa-history' => 'History',  
  674. 'fa-circle-thin' => 'Circle Thin',  
  675. 'fa-header' => 'Header',  
  676. 'fa-paragraph' => 'Paragraph',  
  677. 'fa-sliders' => 'Sliders',  
  678. 'fa-share-alt' => 'Share Alt',  
  679. 'fa-share-alt-square' => 'Share Alt Square',  
  680. 'fa-bomb' => 'Bomb',  
  681. 'fa-futbol-o' => 'Futbol O',  
  682. 'fa-tty' => 'Tty',  
  683. 'fa-binoculars' => 'Binoculars',  
  684. 'fa-plug' => 'Plug',  
  685. 'fa-slideshare' => 'Slideshare',  
  686. 'fa-twitch' => 'Twitch',  
  687. 'fa-yelp' => 'Yelp',  
  688. 'fa-newspaper-o' => 'Newspaper O',  
  689. 'fa-wifi' => 'Wifi',  
  690. 'fa-calculator' => 'Calculator',  
  691. 'fa-paypal' => 'Paypal',  
  692. 'fa-google-wallet' => 'Google Wallet',  
  693. 'fa-cc-visa' => 'Cc Visa',  
  694. 'fa-cc-mastercard' => 'Cc Mastercard',  
  695. 'fa-cc-discover' => 'Cc Discover',  
  696. 'fa-cc-amex' => 'Cc Amex',  
  697. 'fa-cc-paypal' => 'Cc Paypal',  
  698. 'fa-cc-stripe' => 'Cc Stripe',  
  699. 'fa-bell-slash' => 'Bell Slash',  
  700. 'fa-bell-slash-o' => 'Bell Slash O',  
  701. 'fa-trash' => 'Trash',  
  702. 'fa-copyright' => 'Copyright',  
  703. 'fa-at' => 'At',  
  704. 'fa-eyedropper' => 'Eyedropper',  
  705. 'fa-paint-brush' => 'Paint Brush',  
  706. 'fa-birthday-cake' => 'Birthday Cake',  
  707. 'fa-area-chart' => 'Area Chart',  
  708. 'fa-pie-chart' => 'Pie Chart',  
  709. 'fa-line-chart' => 'Line Chart',  
  710. 'fa-lastfm' => 'Lastfm',  
  711. 'fa-lastfm-square' => 'Lastfm Square',  
  712. 'fa-toggle-off' => 'Toggle Off',  
  713. 'fa-toggle-on' => 'Toggle On',  
  714. 'fa-bicycle' => 'Bicycle',  
  715. 'fa-bus' => 'Bus',  
  716. 'fa-ioxhost' => 'Ioxhost',  
  717. 'fa-angellist' => 'Angellist',  
  718. 'fa-cc' => 'Cc',  
  719. 'fa-ils' => 'Ils',  
  720. 'fa-meanpath' => 'Meanpath',  
  721. 'fa-buysellads' => 'Buysellads',  
  722. 'fa-connectdevelop' => 'Connectdevelop',  
  723. 'fa-dashcube' => 'Dashcube',  
  724. 'fa-forumbee' => 'Forumbee',  
  725. 'fa-leanpub' => 'Leanpub',  
  726. 'fa-sellsy' => 'Sellsy',  
  727. 'fa-shirtsinbulk' => 'Shirtsinbulk',  
  728. 'fa-simplybuilt' => 'Simplybuilt',  
  729. 'fa-skyatlas' => 'Skyatlas',  
  730. 'fa-cart-plus' => 'Cart Plus',  
  731. 'fa-cart-arrow-down' => 'Cart Arrow Down',  
  732. 'fa-diamond' => 'Diamond',  
  733. 'fa-ship' => 'Ship',  
  734. 'fa-user-secret' => 'User Secret',  
  735. 'fa-motorcycle' => 'Motorcycle',  
  736. 'fa-street-view' => 'Street View',  
  737. 'fa-heartbeat' => 'Heartbeat',  
  738. 'fa-venus' => 'Venus',  
  739. 'fa-mars' => 'Mars',  
  740. 'fa-mercury' => 'Mercury',  
  741. 'fa-transgender' => 'Transgender',  
  742. 'fa-transgender-alt' => 'Transgender Alt',  
  743. 'fa-venus-double' => 'Venus Double',  
  744. 'fa-mars-double' => 'Mars Double',  
  745. 'fa-venus-mars' => 'Venus Mars',  
  746. 'fa-mars-stroke' => 'Mars Stroke',  
  747. 'fa-mars-stroke-v' => 'Mars Stroke V',  
  748. 'fa-mars-stroke-h' => 'Mars Stroke H',  
  749. 'fa-neuter' => 'Neuter',  
  750. 'fa-facebook-official' => 'Facebook Official',  
  751. 'fa-pinterest-p' => 'Pinterest P',  
  752. 'fa-whatsapp' => 'Whatsapp',  
  753. 'fa-server' => 'Server',  
  754. 'fa-user-plus' => 'User Plus',  
  755. 'fa-user-times' => 'User Times',  
  756. 'fa-bed' => 'Bed',  
  757. 'fa-viacoin' => 'Viacoin',  
  758. 'fa-train' => 'Train',  
  759. 'fa-subway' => 'Subway',  
  760. 'fa-medium' => 'Medium' 
  761. ); 
  762.  
  763. ksort( $icons ); 
  764.  
  765. $options['general_settings'] = array( 
  766.  
  767. 'section_general_settings_videobox' => array( 
  768. 'name' => __( 'Upgrade to the PREMIUM VERSION', 'yith-woocommerce-wishlist' ),  
  769. 'type' => 'videobox',  
  770. 'default' => array( 
  771. 'plugin_name' => __( 'YITH WooCommerce Wishlist', 'yith-woocommerce-wishlist' ),  
  772. 'title_first_column' => __( 'Discover the Advanced Features', 'yith-woocommerce-wishlist' ),  
  773. 'description_first_column' => __( 'Upgrade to the PREMIUM VERSION of YITH WOOCOMMERCE WISHLIST to benefit from all features!', 'yith-woocommerce-wishlist' ),  
  774. 'video' => array( 
  775. 'video_id' => '118797844',  
  776. 'video_image_url' => YITH_WCWL_URL . '/assets/images/video-thumb.jpg',  
  777. 'video_description' => '',  
  778. ),  
  779. 'title_second_column' => __( 'Get Support and Pro Features', 'yith-woocommerce-wishlist' ),  
  780. 'description_second_column' => __( 'By purchasing the premium version of the plugin, you will take advantage of the advanced features of the product and you will get one year of free updates and support through our platform available 24h/24.', 'yith-woocommerce-wishlist' ),  
  781. 'button' => array( 
  782. 'href' => $this->get_premium_landing_uri(),  
  783. 'title' => 'Get Support and Pro Features' 
  784. ),  
  785. 'id' => 'yith_wcwl_general_videobox' 
  786. ),  
  787.  
  788. 'general_section_start' => array( 
  789. 'name' => __( 'General Settings', 'yith-woocommerce-wishlist' ),  
  790. 'type' => 'title',  
  791. 'desc' => '',  
  792. 'id' => 'yith_wcwl_general_settings' 
  793. ),  
  794.  
  795. 'wishlist_enable' => array( 
  796. 'name' => __( 'Enable YITH Wishlist', 'yith-woocommerce-wishlist' ),  
  797. 'desc' => sprintf( __( 'Enable all plugin features. <strong>Be sure to select at least one option in the Wishlist page menu in this settings page.</strong> Also, please read the plugin <a href="%s" target="_blank">documentation</a>.', 'yith-woocommerce-wishlist' ), esc_url( $this->doc_url ) ),  
  798. 'id' => 'yith_wcwl_enabled',  
  799. 'default' => 'yes',  
  800. 'type' => 'checkbox' 
  801. ),  
  802. 'default_wishlist_title' => array( 
  803. 'name' => __( 'Default wishlist title', 'yith-woocommerce-wishlist' ),  
  804. 'id' => 'yith_wcwl_wishlist_title',  
  805. 'std' => sprintf( __( 'My wishlist on %s', 'yith-woocommerce-wishlist' ), get_bloginfo( 'name' ) ), // for woocommerce < 2.0 
  806. 'default' => sprintf( __( 'My wishlist on %s', 'yith-woocommerce-wishlist' ), get_bloginfo( 'name' ) ), // for woocommerce >= 2.0 
  807. 'type' => 'text',  
  808. 'css' => 'min-width:300px;',  
  809. ),  
  810. 'wishlist_page' => array( 
  811. 'name' => __( 'Wishlist Page', 'yith-woocommerce-wishlist' ),  
  812. 'desc' => __( 'Page contents: [yith_wcwl_wishlist]', 'yith-woocommerce-wishlist' ),  
  813. 'id' => 'yith_wcwl_wishlist_page_id',  
  814. 'type' => 'single_select_page',  
  815. 'default' => '',  
  816. 'class' => 'chosen_select_nostd',  
  817. 'css' => 'min-width:300px;',  
  818. 'desc_tip' => false,  
  819. ),  
  820. 'add_to_wishlist_position' => array( 
  821. 'name' => __( 'Position', 'yith-woocommerce-wishlist' ),  
  822. 'desc' => __( 'You can add the button in variable products only after the "Add to Cart" button or using the shortcode [yith_wcwl_add_to_wishlist].', 'yith-woocommerce-wishlist' ),  
  823. 'id' => 'yith_wcwl_button_position',  
  824. 'type' => 'select',  
  825. 'class' => 'chosen_select',  
  826. 'css' => 'min-width:300px;',  
  827. 'options' => array( 
  828. 'add-to-cart' => __( 'After "Add to cart"', 'yith-woocommerce-wishlist' ),  
  829. 'thumbnails' => __( 'After thumbnails', 'yith-woocommerce-wishlist' ),  
  830. 'summary' => __( 'After summary', 'yith-woocommerce-wishlist' ),  
  831. 'shortcode' => __( 'Use shortcode', 'yith-woocommerce-wishlist' ) 
  832. ),  
  833. 'desc_tip' => true 
  834. ),  
  835. 'redirect_to_cart' => array( 
  836. 'name' => __( 'Redirect to cart', 'yith-woocommerce-wishlist' ),  
  837. 'desc' => __( 'Redirect to cart page if "Add to cart" button is clicked in the wishlist page.', 'yith-woocommerce-wishlist' ),  
  838. 'id' => 'yith_wcwl_redirect_cart',  
  839. 'default' => 'no',  
  840. 'type' => 'checkbox' 
  841. ),  
  842. 'remove_after_add_to_cart' => array( 
  843. 'name' => __( 'Remove if added to the cart', 'yith-woocommerce-wishlist' ),  
  844. 'desc' => __( 'Remove the product from the wishlist if it has been added to the cart.', 'yith-woocommerce-wishlist' ),  
  845. 'id' => 'yith_wcwl_remove_after_add_to_cart',  
  846. 'default' => 'yes',  
  847. 'type' => 'checkbox' 
  848. ),  
  849. 'add_to_wishlist_text' => array( 
  850. 'name' => __( '"Add to Wishlist" text', 'yith-woocommerce-wishlist' ),  
  851. 'id' => 'yith_wcwl_add_to_wishlist_text',  
  852. 'default' => __( 'Add to Wishlist', 'yith-woocommerce-wishlist' ),  
  853. 'type' => 'text',  
  854. 'css' => 'min-width:300px;',  
  855. ),  
  856. 'browse_wishlist_text' => array( 
  857. 'name' => __( '"Browse wishlist" text', 'yith-woocommerce-wishlist' ),  
  858. 'id' => 'yith_wcwl_browse_wishlist_text',  
  859. 'default' => __( 'Browse Wishlist', 'yith-woocommerce-wishlist' ),  
  860. 'type' => 'text',  
  861. 'css' => 'min-width:300px;',  
  862. ),  
  863. 'already_in_wishlist_text' => array( 
  864. 'name' => __( '"Product already in wishlist" text', 'yith-woocommerce-wishlist' ),  
  865. 'id' => 'yith_wcwl_already_in_wishlist_text',  
  866. 'default' => __( 'The product is already in the wishlist!', 'yith-woocommerce-wishlist' ),  
  867. 'type' => 'text',  
  868. 'css' => 'min-width:300px;',  
  869. ),  
  870. 'product_added_text' => array( 
  871. 'name' => __( '"Product added" text', 'yith-woocommerce-wishlist' ),  
  872. 'id' => 'yith_wcwl_product_added_text',  
  873. 'default' => __( 'Product added!', 'yith-woocommerce-wishlist' ),  
  874. 'type' => 'text',  
  875. 'css' => 'min-width:300px;',  
  876. ),  
  877. 'add_to_cart_text' => array( 
  878. 'name' => __( '"Add to Cart" text', 'yith-woocommerce-wishlist' ),  
  879. 'id' => 'yith_wcwl_add_to_cart_text',  
  880. 'default' => __( 'Add to Cart', 'yith-woocommerce-wishlist' ),  
  881. 'type' => 'text',  
  882. 'css' => 'min-width:300px;',  
  883. ),  
  884. 'show_unit_price' => array( 
  885. 'name' => __( 'Show Unit price', 'yith-woocommerce-wishlist' ),  
  886. 'desc' => __( 'Show unit price for each product in wishlist', 'yith-woocommerce-wishlist' ),  
  887. 'id' => 'yith_wcwl_price_show',  
  888. 'default' => 'yes',  
  889. 'type' => 'checkbox',  
  890. 'css' => 'min-width:300px;',  
  891. ),  
  892. 'show_add_to_cart' => array( 
  893. 'name' => __( 'Show "Add to Cart" button', 'yith-woocommerce-wishlist' ),  
  894. 'desc' => __( 'Show "Add to Cart" button for each product in wishlist', 'yith-woocommerce-wishlist' ),  
  895. 'id' => 'yith_wcwl_add_to_cart_show',  
  896. 'default' => 'yes',  
  897. 'type' => 'checkbox',  
  898. 'css' => 'min-width:300px;',  
  899. ),  
  900. 'show_stock_status' => array( 
  901. 'name' => __( 'Show Stock status', 'yith-woocommerce-wishlist' ),  
  902. 'desc' => __( 'Show "In stock" or "Out of stock" label for each product in wishlist', 'yith-woocommerce-wishlist' ),  
  903. 'id' => 'yith_wcwl_stock_show',  
  904. 'default' => 'yes',  
  905. 'type' => 'checkbox',  
  906. 'css' => 'min-width:300px;',  
  907. ),  
  908. 'show_dateadded' => array( 
  909. 'name' => __( 'Show Date of addition', 'yith-woocommerce-wishlist' ),  
  910. 'desc' => __( 'Show the date when users have added a product to the wishlist', 'yith-woocommerce-wishlist' ),  
  911. 'id' => 'yith_wcwl_show_dateadded',  
  912. 'default' => 'no',  
  913. 'type' => 'checkbox',  
  914. 'css' => 'min-width:300px;',  
  915. ),  
  916. 'repeat_remove_button' => array( 
  917. 'name' => __( 'Add second remove button', 'yith-woocommerce-wishlist' ),  
  918. 'desc' => __( 'Add a second remove button in the last column, with extended label', 'yith-woocommerce-wishlist' ),  
  919. 'id' => 'yith_wcwl_repeat_remove_button',  
  920. 'default' => 'no',  
  921. 'type' => 'checkbox',  
  922. 'css' => 'min-width:300px;',  
  923. ),  
  924.  
  925. 'general_section_end' => array( 
  926. 'type' => 'sectionend',  
  927. 'id' => 'yith_wcwl_general_settings' 
  928. ); 
  929.  
  930. $options['styles'] = array( 
  931. 'styles_section_start' => array( 
  932. 'name' => __( 'Styles', 'yith-woocommerce-wishlist' ),  
  933. 'type' => 'title',  
  934. 'desc' => '',  
  935. 'id' => 'yith_wcwl_styles' 
  936. ),  
  937.  
  938. 'use_buttons' => array( 
  939. 'name' => __( 'Use buttons', 'yith-woocommerce-wishlist' ),  
  940. 'desc' => __( 'Use buttons instead of simple anchors.', 'yith-woocommerce-wishlist' ),  
  941. 'id' => 'yith_wcwl_use_button',  
  942. 'default' => 'no',  
  943. 'type' => 'checkbox' 
  944. ),  
  945. 'custom_css' => array( 
  946. 'name' => __( 'Custom CSS', 'yith-woocommerce-wishlist' ),  
  947. 'id' => 'yith_wcwl_custom_css',  
  948. 'css' => 'width:100%; height: 75px;',  
  949. 'default' => '',  
  950. 'type' => 'textarea' 
  951. ),  
  952. 'use_theme_style' => array( 
  953. 'name' => __( 'Use theme style', 'yith-woocommerce-wishlist' ),  
  954. 'desc' => __( 'Use the theme style.', 'yith-woocommerce-wishlist' ),  
  955. 'id' => 'yith_wcwl_frontend_css',  
  956. 'default' => 'yes',  
  957. 'type' => 'checkbox' 
  958. ),  
  959. 'rounded_buttons' => array( 
  960. 'name' => __( 'Rounded buttons', 'yith-woocommerce-wishlist' ),  
  961. 'desc' => __( 'Make button corners rounded', 'yith-woocommerce-wishlist' ),  
  962. 'id' => 'yith_wcwl_rounded_corners',  
  963. 'default' => 'yes',  
  964. 'type' => 'checkbox' 
  965. ),  
  966. 'add_to_wishlist_icon' => array( 
  967. 'name' => __( '"Add to Wishlist" icon', 'yith-woocommerce-wishlist' ),  
  968. 'desc' => __( 'Add an icon to the "Add to Wishlist" button', 'yith-woocommerce-wishlist' ),  
  969. 'id' => 'yith_wcwl_add_to_wishlist_icon',  
  970. 'css' => 'min-width:300px;width:300px;',  
  971. 'default' => apply_filters( 'yith_wcwl_add_to_wishlist_std_icon', 'none' ),  
  972. 'type' => 'select',  
  973. 'class' => 'chosen_select',  
  974. 'desc_tip' => true,  
  975. 'options' => array( 'none' => 'None' ) + $icons 
  976. ),  
  977. 'add_to_cart_icon' => array( 
  978. 'name' => __( '"Add to Cart" icon', 'yith-woocommerce-wishlist' ),  
  979. 'desc' => __( 'Add an icon to the "Add to Cart" button', 'yith-woocommerce-wishlist' ),  
  980. 'id' => 'yith_wcwl_add_to_cart_icon',  
  981. 'css' => 'min-width:300px;width:300px;',  
  982. 'default' => apply_filters( 'yith_wcwl_add_to_cart_std_icon', 'fa-shopping-cart' ),  
  983. 'type' => 'select',  
  984. 'class' => 'chosen_select',  
  985. 'desc_tip' => true,  
  986. 'options' => array( 'none' => 'None' ) + $icons 
  987. ),  
  988.  
  989. 'styles_section_end' => array( 
  990. 'type' => 'sectionend',  
  991. 'id' => 'yith_wcwl_styles' 
  992. ); 
  993.  
  994. $options['socials_share'] = array( 
  995. 'socials_section_start' => array( 
  996. 'name' => __( 'Social Networks & Share', 'yith-woocommerce-wishlist' ),  
  997. 'type' => 'title',  
  998. 'desc' => '',  
  999. 'id' => 'yith_wcwl_socials_share' 
  1000. ),  
  1001.  
  1002. 'share_on_facebook' => array( 
  1003. 'name' => __( 'Share on Facebook', 'yith-woocommerce-wishlist' ),  
  1004. 'desc' => __( 'Show "Share on Facebook" button', 'yith-woocommerce-wishlist' ),  
  1005. 'id' => 'yith_wcwl_share_fb',  
  1006. 'default' => 'yes',  
  1007. 'type' => 'checkbox' 
  1008. ),  
  1009. 'share_on_twitter' => array( 
  1010. 'name' => __( 'Tweet on Twitter', 'yith-woocommerce-wishlist' ),  
  1011. 'desc' => __( 'Show "Tweet on Twitter" button', 'yith-woocommerce-wishlist' ),  
  1012. 'id' => 'yith_wcwl_share_twitter',  
  1013. 'default' => 'yes',  
  1014. 'type' => 'checkbox' 
  1015. ),  
  1016. 'share_on_pinterest' => array( 
  1017. 'name' => __( 'Pin on Pinterest', 'yith-woocommerce-wishlist' ),  
  1018. 'desc' => __( 'Show "Pin on Pinterest" button', 'yith-woocommerce-wishlist' ),  
  1019. 'id' => 'yith_wcwl_share_pinterest',  
  1020. 'default' => 'yes',  
  1021. 'type' => 'checkbox' 
  1022. ),  
  1023. 'share_on_googleplus' => array( 
  1024. 'name' => __( 'Share on Google+', 'yith-woocommerce-wishlist' ),  
  1025. 'desc' => __( 'Show "Share on Google+" button', 'yith-woocommerce-wishlist' ),  
  1026. 'id' => 'yith_wcwl_share_googleplus',  
  1027. 'default' => 'yes',  
  1028. 'type' => 'checkbox' 
  1029. ),  
  1030. 'share_by_email' => array( 
  1031. 'name' => __( 'Share by Email', 'yith-woocommerce-wishlist' ),  
  1032. 'desc' => __( 'Show "Share by Email" button', 'yith-woocommerce-wishlist' ),  
  1033. 'id' => 'yith_wcwl_share_email',  
  1034. 'default' => 'yes',  
  1035. 'type' => 'checkbox' 
  1036. ),  
  1037. 'socials_title' => array( 
  1038. 'name' => __( 'Social title', 'yith-woocommerce-wishlist' ),  
  1039. 'id' => 'yith_wcwl_socials_title',  
  1040. 'default' => sprintf( __( 'My wishlist on %s', 'yith-woocommerce-wishlist' ), get_bloginfo( 'name' ) ),  
  1041. 'type' => 'text',  
  1042. 'css' => 'min-width:300px;',  
  1043. ),  
  1044. 'socials_text' => array( 
  1045. 'name' => __( 'Social text', 'yith-woocommerce-wishlist' ),  
  1046. 'desc' => __( 'It will be used by Twitter and Pinterest. Use <strong>%wishlist_url%</strong> where you want to show the URL of your wishlist.', 'yith-woocommerce-wishlist' ),  
  1047. 'id' => 'yith_wcwl_socials_text',  
  1048. 'css' => 'width:100%; height: 75px;',  
  1049. 'default' => '',  
  1050. 'type' => 'textarea' 
  1051. ),  
  1052. 'socials_image' => array( 
  1053. 'name' => __( 'Social image URL', 'yith-woocommerce-wishlist' ),  
  1054. 'desc' => __( 'It will be used by Pinterest.', 'yith-woocommerce-wishlist' ),  
  1055. 'id' => 'yith_wcwl_socials_image_url',  
  1056. 'default' => '',  
  1057. 'type' => 'text',  
  1058. 'css' => 'min-width:300px;',  
  1059. ),  
  1060.  
  1061. 'socials_section_end' => array( 
  1062. 'type' => 'sectionend',  
  1063. 'id' => 'yith_wcwl_styles' 
  1064. ); 
  1065.  
  1066. $yith_wfbt_thickbox = YITH_WCWL_URL . 'assets/images/landing/yith-wfbt-slider.jpg'; 
  1067. $yith_wfbt_promo = sprintf( __( 'If you want to take advantage of this feature, you could consider to purchase the %s.', 'yith-woocommerce-wishlist' ), '<a href="https://yithemes.com/themes/plugins/yith-woocommerce-frequently-bought-together/">YITH WooCommerce Frequently Bought Together Plugin</a>' ); 
  1068.  
  1069. $options['yith_wfbt_integration'] = array( 
  1070.  
  1071. 'yith_wfbt_start' => array( 
  1072. 'name' => __( 'YITH WooCommerce Frequently Bought Together Integration', 'yith-woocommerce-wishlist' ),  
  1073. 'type' => 'title',  
  1074. 'desc' => '',  
  1075. 'id' => 'yith_wcwl_yith_wfbt' 
  1076. ),  
  1077.  
  1078. 'yith_wfbt_enable_integration' => array( 
  1079. 'name' => __( 'Enable slider in wishlist', 'yith-woocommerce-wishlist' ),  
  1080. 'desc' => sprintf( __( 'Choose to enable product slider in wishlist page with linked products (<a href="%s" class="thickbox">Example</a>). %s', 'yith-woocommerce-wishlist' ), $yith_wfbt_thickbox, ( ! ( defined( 'YITH_WFBT' ) && YITH_WFBT ) ) ? $yith_wfbt_promo : '' ),  
  1081. 'id' => 'yith_wfbt_enable_integration',  
  1082. 'default' => 'yes',  
  1083. 'type' => 'checkbox',  
  1084. 'custom_attributes' => ( ! ( defined( 'YITH_WFBT' ) && YITH_WFBT ) ) ? array( 'disabled' => 'disabled' ) : false 
  1085. ),  
  1086.  
  1087. 'yith_wfbt_end' => array( 
  1088. 'type' => 'sectionend',  
  1089. 'id' => 'yith_wcwl_yith_wfbt' 
  1090.  
  1091. ); 
  1092.  
  1093. return apply_filters( 'yith_wcwl_admin_options', $options ); 
  1094.  
  1095. /** 
  1096. * Add colors options to the panel. 
  1097. * @return void 
  1098. * @access private 
  1099. * @since 1.0.0 
  1100. */ 
  1101. private function _styles_options() { 
  1102. $colors = maybe_unserialize( get_option( 'yith_wcwl_frontend_css_colors' ) ); 
  1103.  
  1104. foreach ( YITH_WCWL_Init()->colors_options as $color => $attrs ) { 
  1105. if ( ! isset( $colors[$color] ) ) { 
  1106. $colors[$color] = $attrs; 
  1107.  
  1108. ?> 
  1109. <div class="color-panel"> 
  1110. <div class="clear"></div> 
  1111. <h4><?php _e( '"Add to wishlist" button', 'yith-woocommerce-wishlist' ) ?></h4> 
  1112. <?php 
  1113.  
  1114. yith_frontend_css_color_picker( __( 'Background', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_add_to_wishlist_background', $colors['add_to_wishlist']['background'] ); 
  1115. yith_frontend_css_color_picker( __( 'Text', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_add_to_wishlist_color', $colors['add_to_wishlist']['color'] ); 
  1116. yith_frontend_css_color_picker( __( 'Border', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_add_to_wishlist_border_color', $colors['add_to_wishlist']['border_color'] ); 
  1117.  
  1118. ?> 
  1119. <div class="clear" style="height:10px;"></div> 
  1120. <?php 
  1121.  
  1122. // hover 
  1123. yith_frontend_css_color_picker( __( 'Background (hover)', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_add_to_wishlist_hover_background', $colors['add_to_wishlist_hover']['background'] ); 
  1124. yith_frontend_css_color_picker( __( 'Text (hover)', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_add_to_wishlist_hover_color', $colors['add_to_wishlist_hover']['color'] ); 
  1125. yith_frontend_css_color_picker( __( 'Border (hover)', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_add_to_wishlist_hover_border_color', $colors['add_to_wishlist_hover']['border_color'] ); 
  1126.  
  1127. ?> 
  1128. <div class="clear" style="height:30px;"></div> 
  1129. <h4><?php _e( '"Add to Cart" button', 'yith-woocommerce-wishlist' ) ?></h4> 
  1130. <?php 
  1131.  
  1132. yith_frontend_css_color_picker( __( 'Background', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_add_to_cart_background', $colors['add_to_cart']['background'] ); 
  1133. yith_frontend_css_color_picker( __( 'Text', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_add_to_cart_color', $colors['add_to_cart']['color'] ); 
  1134. yith_frontend_css_color_picker( __( 'Border', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_add_to_cart_border_color', $colors['add_to_cart']['border_color'] ); 
  1135.  
  1136. ?> 
  1137. <div class="clear" style="height:10px;"></div> 
  1138. <?php 
  1139.  
  1140. // hover 
  1141. yith_frontend_css_color_picker( __( 'Background (hover)', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_add_to_cart_hover_background', $colors['add_to_cart_hover']['background'] ); 
  1142. yith_frontend_css_color_picker( __( 'Text (hover)', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_add_to_cart_hover_color', $colors['add_to_cart_hover']['color'] ); 
  1143. yith_frontend_css_color_picker( __( 'Border (hover)', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_add_to_cart_hover_border_color', $colors['add_to_cart_hover']['border_color'] ); 
  1144.  
  1145. ?> 
  1146. <div class="clear" style="height:30px;"></div> 
  1147. <h4><?php _e( '"Style 1" button', 'yith-woocommerce-wishlist' ) ?></h4> 
  1148. <?php 
  1149.  
  1150. yith_frontend_css_color_picker( __( 'Background', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_button_style_1_background', $colors['button_style_1']['background'] ); 
  1151. yith_frontend_css_color_picker( __( 'Text', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_button_style_1_color', $colors['button_style_1']['color'] ); 
  1152. yith_frontend_css_color_picker( __( 'Border', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_button_style_1_border_color', $colors['button_style_1']['border_color'] ); 
  1153.  
  1154. ?> 
  1155. <div class="clear" style="height:10px;"></div> 
  1156. <?php 
  1157.  
  1158. // hover 
  1159. yith_frontend_css_color_picker( __( 'Background (hover)', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_button_style_1_hover_background', $colors['button_style_1_hover']['background'] ); 
  1160. yith_frontend_css_color_picker( __( 'Text (hover)', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_button_style_1_hover_color', $colors['button_style_1_hover']['color'] ); 
  1161. yith_frontend_css_color_picker( __( 'Border (hover)', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_button_style_1_hover_border_color', $colors['button_style_1_hover']['border_color'] ); 
  1162.  
  1163. ?> 
  1164. <div class="clear" style="height:30px;"></div> 
  1165. <h4><?php _e( '"Style 2" button', 'yith-woocommerce-wishlist' ) ?></h4> 
  1166. <?php 
  1167.  
  1168. yith_frontend_css_color_picker( __( 'Background', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_button_style_2_background', $colors['button_style_2']['background'] ); 
  1169. yith_frontend_css_color_picker( __( 'Text', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_button_style_2_color', $colors['button_style_2']['color'] ); 
  1170. yith_frontend_css_color_picker( __( 'Border', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_button_style_2_border_color', $colors['button_style_2']['border_color'] ); 
  1171.  
  1172. ?> 
  1173. <div class="clear" style="height:10px;"></div> 
  1174. <?php 
  1175.  
  1176. // hover 
  1177. yith_frontend_css_color_picker( __( 'Background (hover)', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_button_style_2_hover_background', $colors['button_style_2_hover']['background'] ); 
  1178. yith_frontend_css_color_picker( __( 'Text (hover)', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_button_style_2_hover_color', $colors['button_style_2_hover']['color'] ); 
  1179. yith_frontend_css_color_picker( __( 'Border (hover)', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_button_style_2_hover_border_color', $colors['button_style_2_hover']['border_color'] ); 
  1180.  
  1181. ?> 
  1182. <div class="clear" style="height:30px;"></div> 
  1183. <h4><?php _e( 'Wishlist table', 'yith-woocommerce-wishlist' )?></h4> 
  1184. <?php 
  1185.  
  1186. yith_frontend_css_color_picker( __( 'Background', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_wishlist_table_background', $colors['wishlist_table']['background'] ); 
  1187. yith_frontend_css_color_picker( __( 'Text', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_wishlist_table_color', $colors['wishlist_table']['color'] ); 
  1188. yith_frontend_css_color_picker( __( 'Border', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_wishlist_table_border_color', $colors['wishlist_table']['border_color'] ); 
  1189.  
  1190. ?> 
  1191. <div class="clear" style="height:30px;"></div> 
  1192. <h4><?php _e( 'Headers', 'yith-woocommerce-wishlist' ) ?></h4> 
  1193. <?php 
  1194.  
  1195. yith_frontend_css_color_picker( __( 'Background color', 'yith-woocommerce-wishlist' ), 'yith_wcwl_color_headers_background', $colors['headers']['background'] ); 
  1196.  
  1197. do_action( 'yith_wcwl_admin_color_pickers' ); 
  1198.  
  1199. ?> 
  1200. <div class="clear"></div> 
  1201. </div> 
  1202. <div class="clear" style="height:30px;"></div> 
  1203. <?php 
  1204.  
  1205. /** === WISHLIST SUBPANEL SECTION === */ 
  1206.  
  1207. /** 
  1208. * Register wishlist panel 
  1209. * @return void 
  1210. * @since 2.0.0 
  1211. */ 
  1212. public function register_panel() { 
  1213.  
  1214. $args = array( 
  1215. 'create_menu_page' => true,  
  1216. 'parent_slug' => '',  
  1217. 'page_title' => __( 'Wishlist', 'yith-woocommerce-wishlist' ),  
  1218. 'menu_title' => __( 'Wishlist', 'yith-woocommerce-wishlist' ),  
  1219. 'capability' => apply_filters( 'yith_wcwl_settings_panel_capability', 'manage_options' ),  
  1220. 'parent' => '',  
  1221. 'parent_page' => 'yit_plugin_panel',  
  1222. 'page' => 'yith_wcwl_panel',  
  1223. 'admin-tabs' => $this->available_tabs,  
  1224. 'options-path' => YITH_WCWL_DIR . 'plugin-options' 
  1225. ); 
  1226.  
  1227. /** === Fixed: not updated theme === */ 
  1228. if( ! class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) { 
  1229. require_once( YITH_WCWL_DIR . 'plugin-fw/lib/yit-plugin-panel-wc.php' ); 
  1230.  
  1231. $this->_panel = new YIT_Plugin_Panel_WooCommerce( $args ); 
  1232.  
  1233. /** 
  1234. * Load admin style. 
  1235. * @return void 
  1236. * @since 1.0.0 
  1237. */ 
  1238. public function enqueue() { 
  1239. global $woocommerce, $pagenow; 
  1240.  
  1241. if( $pagenow == 'admin.php' && isset( $_GET['page'] ) && $_GET['page'] == 'yith_wcwl_panel' ) { 
  1242. wp_enqueue_style( 'yith-wcwl-admin' ); 
  1243. wp_enqueue_script( 'yith-wcwl-admin' ); 
  1244.  
  1245. /** 
  1246. * Prints tab premium of the plugin 
  1247. * @return void 
  1248. * @since 2.0.0 
  1249. */ 
  1250. public function print_premium_tab() { 
  1251. $premium_tab = YITH_WCWL_DIR . 'templates/admin/wishlist-panel-premium.php'; 
  1252.  
  1253. if( file_exists( $premium_tab ) ) { 
  1254. include( $premium_tab ); 
  1255.  
  1256. /** === POINTER SECTION === */ 
  1257.  
  1258. /** 
  1259. * Register pointers for notify plugin updates to user 
  1260. * @return void 
  1261. * @since 2.0.0 
  1262. */ 
  1263. public function register_pointer() { 
  1264.  
  1265. if( ! class_exists( 'YIT_Pointers' ) ) { 
  1266. include_once( 'plugin-fw/lib/yit-pointers.php' ); 
  1267.  
  1268. $args[] = array( 
  1269. 'screen_id' => 'plugins',  
  1270. 'pointer_id' => 'yith_wcwl_panel',  
  1271. 'target' => '#toplevel_page_yit_plugin_panel',  
  1272. 'content' => sprintf( '<h3> %s </h3> <p> %s </p>',  
  1273. __( 'Wishlist Activated', 'yith-woocommerce-wishlist' ),  
  1274. apply_filters( 'yith_wcwl_activated_pointer_content', sprintf( __( 'In the YIT Plugin tab you can find the Wishlist options. With this menu, you can access to all the settings of our plugins that you have activated. Wishlist is available in an outstanding PREMIUM version with many new options, <a href="%s">discover it now</a>.', 'yith-woocommerce-wishlist' ), $this->get_premium_landing_uri() ) ) 
  1275. ),  
  1276. 'position' => array( 'edge' => 'left', 'align' => 'center' ),  
  1277. 'init' => YITH_WCWL_INIT 
  1278. ); 
  1279.  
  1280. $args[] = array( 
  1281. 'screen_id' => 'update',  
  1282. 'pointer_id' => 'yith_wcwl_panel',  
  1283. 'target' => '#toplevel_page_yit_plugin_panel',  
  1284. 'content' => sprintf( '<h3> %s </h3> <p> %s </p>',  
  1285. __( 'Wishlist Updated', 'yith-woocommerce-wishlist' ),  
  1286. apply_filters( 'yith_wcwl_updated_pointer_content', sprintf( __( 'From now on, you can find all the options of Wishlist under YIT Plugin -> Wishlist instead of WooCommerce -> Settings -> Wishlist, as in the previous version. When one of our plugins is updated, a new voice will be added to this menu. Wishlist has been updated with new available options, <a href="%s">discover the PREMIUM version.</a>', 'yith-woocommerce-wishlist' ), $this->get_premium_landing_uri() ) ) 
  1287. ),  
  1288. 'position' => array( 'edge' => 'left', 'align' => 'center' ),  
  1289. 'init' => YITH_WCWL_INIT 
  1290. ); 
  1291.  
  1292. YIT_Pointers()->register( $args );