'; echo 'i.mce-i-rt_tpg_scg{'; echo "background: url('" . esc_url( rtTPG()->get_assets_uri( 'images/icon-20x20.png' ) ) . "');"; echo '}'; echo ''; } } /** * Adds tinymce plugin * * @param array $plugin_array Plugins. * * @return array */ public function mce_external_plugins( $plugin_array ) { $plugin_array[ $this->sc_tag ] = rtTPG()->get_assets_uri( 'js/mce-button.js' ); return $plugin_array; } /** * Adds tinymce button * * @param array $buttons Buttons. * * @return array */ public function mce_buttons( $buttons ) { array_push( $buttons, $this->sc_tag ); return $buttons; } /** * Pro alert * * @return void */ public function pro_alert_html() { global $typenow; if ( rtTPG()->hasPro() ) { return; } if ( ( isset( $_GET['page'] ) && 'rttpg_settings' !== $_GET['page'] ) || rtTPG()->post_type !== $typenow ) { return; } $html = ''; $html .= '
' . esc_html__( 'Sorry! this is a Pro field. To use this field, you need to use Pro plugin.', 'the-post-grid' ) . '
' . esc_html__( 'Upgrade to Pro', 'the-post-grid' ) . ' x