芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/public_html/wp-content/plugins/whatsapp-for-wordpress/includes/Fields.php
'round', 'backgroundColor' => '#2DB742', 'textColor' => '#fff', 'label' => __( 'Need Help? Chat with us', 'ninjateam-whatsapp' ), 'width' => 300, 'height' => 64, ) ); } public static function getWidgetDisplay() { return wp_parse_args( get_option( 'nta_wa_widget_display', array() ), array( 'displayCondition' => 'showAllPage', 'displayPostCondition' => 'showAllPost', 'includePages' => array(), 'excludePages' => array(), 'includePosts' => array(), 'excludePosts' => array(), 'showOnDesktop' => 'ON', 'showOnMobile' => 'ON', 'time_symbols' => 'h:m', ) ); } public static function getURLSettings() { return wp_parse_args( get_option( 'nta_wa_url', array() ), array( 'onDesktop' => 'api', 'onMobile' => 'api', 'openInNewTab' => 'ON', ) ); } public static function getAccountsSettings() { return wp_parse_args( get_option( 'nta_wa_accounts', array() ), array( 'hideOfflineAgents' => 'OFF', ) ); } public static function getWidgetStyles() { return wp_parse_args( get_option( 'nta_wa_widget_styles', array() ), array( 'title' => __( 'Start a Conversation', 'ninjateam-whatsapp' ), 'responseText' => __( 'The team typically replies in a few minutes.', 'ninjateam-whatsapp' ), 'description' => __( 'Hi! Click one of our member below to chat on
WhatsApp
', 'ninjateam-whatsapp' ), 'backgroundColor' => '#2db742', 'textColor' => '#fff', 'titleSize' => 18, 'accountNameSize' => 14, 'descriptionTextSize' => 12, 'regularTextSize' => 11, 'scrollHeight' => 500, 'isShowScroll' => 'OFF', 'isShowResponseText' => 'ON', 'isShowPoweredBy' => 'ON', 'btnLabel' => __( 'Need Help?
Chat with us
', 'ninjateam-whatsapp' ), 'btnLabelWidth' => 156, 'btnPosition' => 'right', 'btnLeftDistance' => 30, 'btnRightDistance' => 30, 'btnBottomDistance' => 30, 'isShowBtnLabel' => 'ON', 'isShowGDPR' => 'OFF', 'gdprContent' => __( 'Please accept our
privacy policy
first to start a conversation.', 'ninjateam-whatsapp' ), 'widgetType' => 'expandable', ) ); } public static function getWoocommerceSetting() { $option = get_option( 'nta_wa_woocommerce', array() ); return wp_parse_args( $option, array( 'position' => 'after_atc', 'isShow' => 'OFF', 'enableDokanVendorButton' => 'OFF', ) ); } public static function getAnalyticsSetting() { $option = get_option( 'nta_wa_analytics', array() ); return wp_parse_args( $option, array( 'enabledGoogle' => 'OFF', 'enabledFacebook' => 'OFF', 'enabledGoogleGA4' => 'OFF', ) ); } public static function getDefaultMetaAccount( $daysOfWeek ) { $meta = array( 'number' => '', 'title' => '', 'predefinedText' => '', 'willBeBackText' => __( 'I will be back in [njwa_time_work]', 'ninjateam-whatsapp' ), 'dayOffsText' => __( 'I will be back soon', 'ninjateam-whatsapp' ), 'isAlwaysAvailable' => 'ON', ); foreach ( $daysOfWeek as $dayKey ) { $meta['daysOfWeekWorking'][ $dayKey ] = array( 'isWorkingOnDay' => 'OFF', 'workHours' => array( array( 'startTime' => '08:00', 'endTime' => '17:30', ), ), ); } return $meta; } }