esc_html__( 'Push Notifications', 'accelerated-mobile-pages' ), // 'icon' => 'el el-podcast', 'id' => 'ampforwp-push-notifications', 'desc' => " ", 'subsection' => true, 'fields' => array( array( 'id' => 'ampforwp-pushnot-1', 'type' => 'section', 'title' => esc_html__('Push Notification Support', 'accelerated-mobile-pages'), 'indent' => true, 'layout_type' => 'accordion', 'accordion-open'=> 1, ), array( 'id' => 'ampforwp-web-push-onesignal', 'type' => 'switch', 'title' => esc_html__('OneSignal','accelerated-mobile-pages'), 'tooltip-subtitle' => 'View Integration Tutorial (HTTPS is required)', 'true' => 'true', 'false' => 'false', 'default' => 0, ), array( 'required' => array( array( 'ampforwp-web-push-onesignal', '=' , 1 ), ), 'id' => 'ampforwp-one-signal-app-id', 'type' => 'text', 'title' => 'APP ID', 'class' => 'child_opt child_opt_arrow', ), array( 'id' => 'ampforwp-onesignal-positioning', 'type' => 'section', 'title' => esc_html__('Positioning', 'accelerated-mobile-pages'), 'required' => array( array( 'ampforwp-web-push-onesignal', '=' , 1 ), array( 'amp-use-pot', '=' , 0 ) ), 'indent' => true, 'layout_type' => 'accordion', 'accordion-open'=> 1, ), array( 'id' => 'ampforwp-web-push-onesignal-below-content', 'type' => 'switch', 'title' => 'Below the Content', 'true' => 'true', 'false' => 'false', 'default' => 1, 'tooltip-subtitle' => 'Show Subscribe Button Below the Content', 'required' => array('ampforwp-web-push-onesignal', '=' , '1'), ), array( 'id' => 'ampforwp-web-push-onesignal-above-content', 'type' => 'switch', 'title' => 'Above the Content', 'true' => 'true', 'false' => 'false', 'default' => 0, 'tooltip-subtitle' => 'Show Subscribe Button Above the Content', 'required' => array('ampforwp-web-push-onesignal', '=' , '1'), ), array( 'id' => 'translation', 'type' => 'section', 'title' => esc_html__('Translation', 'accelerated-mobile-pages'), 'indent' => true, 'layout_type' => 'accordion', 'accordion-open'=> 1, ), array( 'id' => 'ampforwp-onesignal-translator-subscribe', 'type' => 'text', 'title' => esc_html__('Subscribe', 'accelerated-mobile-pages'), 'default' => esc_html__('Subscribe to updates','accelerated-mobile-pages'), 'placeholder'=>esc_html__('Add some text','accelerated-mobile-pages'), ), array( 'id' => 'ampforwp-onesignal-translator-unsubscribe', 'type' => 'text', 'title' => esc_html__('Unsubsribe', 'accelerated-mobile-pages'), 'default' => esc_html__('Unsubscribe from updates','accelerated-mobile-pages'), 'placeholder'=>esc_html__('Add some text','accelerated-mobile-pages'), ), array( 'id' => 'ampforwp-onesignal-exper', 'type' => 'section', 'title' => esc_html__('Experimental', 'accelerated-mobile-pages'), 'required' => array( array( 'ampforwp-web-push-onesignal', '=' , 1 ), array( 'amp-use-pot', '=' , 0 ) ), 'indent' => true, 'layout_type' => 'accordion', 'accordion-open'=> 1, ), array( 'id' => 'ampforwp-onesignal-http-site', 'type' => 'switch', 'title' => 'HTTP Site', 'tooltip-subtitle' => 'For HTTP Sites Only', 'required' => array('ampforwp-web-push-onesignal', '=' , '1'), 'true' => 'true', 'false' => 'false', 'default' => 0 ), array( 'id' => 'ampforwp-onesignal-subdomain', 'type' => 'text', 'title' => 'Subdomain', 'desc' => esc_html__('Example: ampforwp', 'accelerated-mobile-pages'), 'required' => array( array('ampforwp-web-push-onesignal', '=' , '1'), array('ampforwp-onesignal-http-site', '=','1')), ), ) ) ); }