true ); foreach( $default as $key => $value ) { if( isset( $_GET[ $key ] ) ) $options[ $key ] = false; } $options = array_merge( $default, $options ); update_option( 'LDB_Affiliate_Press_Pointers', $options ); $this->options = $options; } function AP_addPointers() { $page = false; $pointers = array(); if( isset( $_GET['page'] ) ) $page = $_GET['page']; switch( $page ) { case 'affiliate_press_add': if( isset( $this->options['ap_rp_add'] ) && $this->options['ap_rp_add'] ) { $this->pointers[] = array( 'el' => '.wrap h2', 'title' => esc_js( __( 'Adding a feed', 'LDB_AP' ) ), 'content' => '

' . esc_js( __( "This is the screen where you add a feed. The name, image, price, link and identifier XPaths you need to enter are relative to the item XPath and should therefor be prefixed with a \'.\'", 'LDB_AP' ) ) . '

', 'position' => 'top', 'link' => '?page=affiliate_press_add&ap_rp_add', 'link_text' => esc_js( __( 'I know, stop bugging me.', 'LDB_AP' ) ) ); } break; } } function AP_printPointers() { if( count( $this->pointers ) > 0 ) { ?>