id = ''; $this->desc = __( 'General', 'add-to-cart-button-labels-for-woocommerce' ); parent::__construct(); } /** * get_settings. * * @version 1.2.0 * @since 1.0.0 */ function get_settings() { $settings_links = array( 'all_products' => __( 'All Products', 'add-to-cart-button-labels-for-woocommerce' ), 'per_product_type' => __( 'Per Product Type & Condition', 'add-to-cart-button-labels-for-woocommerce' ), 'per_category' => __( 'Per Category', 'add-to-cart-button-labels-for-woocommerce' ), 'per_product' => __( 'Per Product', 'add-to-cart-button-labels-for-woocommerce' ), ); $settings_links_html = array(); foreach ( $settings_links as $link_id => $link_title ) { $settings_links_html[] = '' . $link_title . ''; } $settings_links_html = sprintf( __( 'Settings: %s.', 'add-to-cart-button-labels-for-woocommerce' ), implode( ', ', $settings_links_html ) ); $settings = array( array( 'title' => __( 'Add to Cart Button Labels Options', 'add-to-cart-button-labels-for-woocommerce' ), 'type' => 'title', 'id' => 'alg_wc_add_to_cart_button_labels_options', 'desc' => sprintf( __( 'For more information, please visit the %s.', 'add-to-cart-button-labels-for-woocommerce' ), '' . __( 'plugin page', 'add-to-cart-button-labels-for-woocommerce' ) . '' ), ), array( 'title' => __( 'Add to Cart Button Labels for WooCommerce', 'add-to-cart-button-labels-for-woocommerce' ), 'desc' => '' . __( 'Enable plugin', 'add-to-cart-button-labels-for-woocommerce' ) . '', 'desc_tip' => $settings_links_html, 'id' => 'alg_wc_add_to_cart_button_labels_enabled', 'default' => 'yes', 'type' => 'checkbox', ), array( 'type' => 'sectionend', 'id' => 'alg_wc_add_to_cart_button_labels_options', ), ); return $settings; } } endif; return new Alg_WC_Add_To_Cart_Button_Labels_Settings_General();