src/Modules/Licenser.php
function update_nag() {
		$theme        = wp_get_theme( $this->product->get_slug() );
		$api_response = get_transient( $this->product_key );
		if ( false === $api_response ) {
			return;
		}
		$update_url     = wp_nonce_url( 'update.php?action=upgrade-theme&amp;theme=' . urlencode( $this->product->get_slug() ), 'upgrade-theme_' . $this->product->get_slug() );
		$update_message = apply_filters( 'themeisle_sdk_license_update_message', 'Updating this theme will lose any customizations you have made. Cancel to stop, OK to update.' );
		$update_onclick = ' onclick="if ( confirm(\'' . esc_js( $update_message ) . '\') ) {return true;}return false;"';
		if ( version_compare( $this->product->get_version(), $api_response->new_version, '<' ) ) {
			echo '<div id="update-nag">';
			printf(
				'<strong>%1$s %2$s</strong> is available. <a href="%3$s" class="thickbox" title="%4s">Check out what\'s new</a> or <a href="%5$s"%6$s>update now</a>.',
				$theme->get( 'Name' ),
				$api_response->new_version,
				'#TB_inline?width=640&amp;inlineId=' . $this->product->get_version() . '_changelog',
				$theme->get( 'Name' ),
				$update_url,
				$update_onclick
			);
			echo '</div>';
			echo '<div id="' . $this->product->get_slug() . '_' . 'changelog" style="display:none;">';
			echo wpautop( $api_response->sections['changelog'] );
			echo '</div>';
		}
	}
function update_nag() {
		$theme        = wp_get_theme( $this->product->get_slug() );
		$api_response = get_transient( $this->product_key );
		if ( false === $api_response ) {
			return;
		}
		$update_url     = wp_nonce_url( 'update.php?action=upgrade-theme&amp;theme=' . urlencode( $this->product->get_slug() ), 'upgrade-theme_' . $this->product->get_slug() );
		$update_message = apply_filters( 'themeisle_sdk_license_update_message', 'Updating this theme will lose any customizations you have made. Cancel to stop, OK to update.' );
		$update_onclick = ' onclick="if ( confirm(\'' . esc_js( $update_message ) . '\') ) {return true;}return false;"';
		if ( version_compare( $this->product->get_version(), $api_response->new_version, '<' ) ) {
			echo '<div id="update-nag">';
			printf(
				'<strong>%1$s %2$s</strong> is available. <a href="%3$s" class="thickbox" title="%4s">Check out what\'s new</a> or <a href="%5$s"%6$s>update now</a>.',
				$theme->get( 'Name' ),
				$api_response->new_version,
				'#TB_inline?width=640&amp;inlineId=' . $this->product->get_version() . '_changelog',
				$theme->get( 'Name' ),
				$update_url,
				$update_onclick
			);
			echo '</div>';
			echo '<div id="' . $this->product->get_slug() . '_' . 'changelog" style="display:none;">';
			echo wpautop( $api_response->sections['changelog'] );
			echo '</div>';
		}
	}
function update_nag ( ) { $ theme = wp_get_theme ( $ this -> product -> get_slug ( ) ) ; $ api_response = get_transient ( $ this -> product_key ) ; if ( false === $ api_response ) { return ; } $ update_url = wp_nonce_url ( 'update.php?action=upgrade-theme&amp;theme=' . urlencode ( $ this -> product -> get_slug ( ) ) , 'upgrade-theme_' . $ this -> product -> get_slug ( ) ) ; $ update_message = apply_filters ( 'themeisle_sdk_license_update_message' , 'Updating this theme will lose any customizations you have made. Cancel to stop, OK to update.' ) ; $ update_onclick = ' onclick="if ( confirm(\'' . esc_js ( $ update_message ) . '\') ) {return true;}return false;"' ; if ( version_compare ( $ this -> product -> get_version ( ) , $ api_response -> new_version , '<' ) ) { echo '<div id="update-nag">' ; printf ( '<strong>%1$s %2$s</strong> is available. <a href="%3$s" class="thickbox" title="%4s">Check out what\'s new</a> or <a href="%5$s"%6$s>update now</a>.' , $ theme -> get ( 'Name' ) , $ api_response -> new_version , '#TB_inline?width=640&amp;inlineId=' . $ this -> product -> get_version ( ) . '_changelog' , $ theme -> get ( 'Name' ) , $ update_url , $ update_onclick ) ; echo '</div>' ; echo '<div id="' . $ this -> product -> get_slug ( ) . '_' . 'changelog" style="display:none;">' ; echo wpautop ( $ api_response -> sections [ 'changelog' ] ) ; echo '</div>' ; } }
Alter the nag for themes update.
Alter the nag for themes update .