* @license GPL-2.0+ * @link https://wpadvancedads.com * @copyright since 2013 Thomas Maier, Advanced Ads GmbH */ $ad_groups_list = new Advanced_Ads_Groups_List(); // create new group. if ( isset( $_REQUEST['advads-group-add-nonce'] ) ) { $create_result = $ad_groups_list->create_group(); // display error message. if ( is_wp_error( $create_result ) ) { // potential error comes from WP_Error and is no user input. // phpcs:ignore $error_string = $create_result->get_error_message(); echo '

' . esc_html( $error_string ) . '

'; } else { echo '

' . esc_html__( 'Ad Group successfully created', 'advanced-ads' ) . '

'; } } // save updated groups. if ( isset( $_REQUEST['advads-group-update-nonce'] ) ) { $udpate_result = $ad_groups_list->update_groups(); // display error message. if ( is_wp_error( $udpate_result ) ) { $error_string = $udpate_result->get_error_message(); // potential error comes from WP_Error and is no user input. // phpcs:ignore echo '

' . $error_string . '

'; } else { echo '

' . esc_html__( 'Ad Groups successfully updated', 'advanced-ads' ) . '

'; } } $last_edited_group_id = 0; if ( isset( $_REQUEST['advads-last-edited-group'] ) ) { $last_edited_group_id = $_REQUEST['advads-last-edited-group']; ?>

' . __( 'Search results for “%s”', 'advanced-ads' ) . '', esc_html( wp_unslash( $_REQUEST['s'] ) ) ); } else { $group_page_url = Advanced_Ads_Groups_List::group_page_url( array( 'action' => 'edit' ) ); echo ' ' . esc_html( $tax->labels->add_new_item ) . ''; } ?>

manual.', 'advanced-ads' ), array( 'a' => array( 'href' => array(), 'target' => array(), ), ) ), esc_url( ADVADS_URL ) . 'manual/ad-groups/#utm_source=advanced-ads&utm_medium=link&utm_campaign=groups' ); ?>

search_box( $tax->labels->search_items, 'tag' ); ?>
render_header(); ?> render_rows(); ?>