|  | @@ 137-158 (lines=22) @@ | 
                                                            
                                    | 134 |  | 	 * Present Photon just in time activation msg | 
                                                            
                                    | 135 |  | 	 * | 
                                                            
                                    | 136 |  | 	 */ | 
                                                            
                                    | 137 |  | 	function photon_msg() { | 
                                                            
                                    | 138 |  | 		?> | 
                                                            
                                    | 139 |  | 		<div class="jp-jitm"> | 
                                                            
                                    | 140 |  | 			<a href="#" data-module="photon" class="dismiss"><span class="genericon genericon-close"></span></a> | 
                                                            
                                    | 141 |  |  | 
                                                            
                                    | 142 |  | 			<div class="jp-emblem"> | 
                                                            
                                    | 143 |  | 				<?php echo self::get_jp_emblem(); ?> | 
                                                            
                                    | 144 |  | 			</div> | 
                                                            
                                    | 145 |  | 			<p class="msg"> | 
                                                            
                                    | 146 |  | 				<?php _e( 'Speed up your photos and save bandwidth costs by using a free content delivery network.', 'jetpack' ); ?> | 
                                                            
                                    | 147 |  | 			</p> | 
                                                            
                                    | 148 |  |  | 
                                                            
                                    | 149 |  | 			<p> | 
                                                            
                                    | 150 |  | 				<img class="j-spinner hide" style="margin-top: 13px;" width="17" height="17" src="<?php echo esc_url( includes_url( 'images/spinner-2x.gif' ) ); ?>" alt="<?php echo esc_attr__( 'Loading...', 'jetpack' ); ?>" /><a href="#" data-module="photon" class="activate button button-jetpack"><?php esc_html_e( 'Activate Photon', 'jetpack' ); ?></a> | 
                                                            
                                    | 151 |  | 			</p> | 
                                                            
                                    | 152 |  | 		</div> | 
                                                            
                                    | 153 |  | 		<?php | 
                                                            
                                    | 154 |  | 		//jitm is being viewed, track it | 
                                                            
                                    | 155 |  | 		$jetpack = Jetpack::init(); | 
                                                            
                                    | 156 |  | 		$jetpack->stat( 'jitm', 'photon-viewed-' . JETPACK__VERSION ); | 
                                                            
                                    | 157 |  | 		$jetpack->do_stats( 'server_side' ); | 
                                                            
                                    | 158 |  | 	} | 
                                                            
                                    | 159 |  |  | 
                                                            
                                    | 160 |  | 	/** | 
                                                            
                                    | 161 |  | 	 * Display Photon JITM template in Media Library after user uploads an image. | 
                                                                                
                                |  | @@ 165-188 (lines=24) @@ | 
                                                            
                                    | 162 |  | 	 * | 
                                                            
                                    | 163 |  | 	 * @since 3.9 | 
                                                            
                                    | 164 |  | 	 */ | 
                                                            
                                    | 165 |  | 	function photon_tmpl() { | 
                                                            
                                    | 166 |  | 		?> | 
                                                            
                                    | 167 |  | 		<script id="tmpl-jitm-photon" type="text/html"> | 
                                                            
                                    | 168 |  | 			<div class="jp-jitm"> | 
                                                            
                                    | 169 |  | 				<a href="#" data-module="photon" class="dismiss"><span class="genericon genericon-close"></span></a> | 
                                                            
                                    | 170 |  |  | 
                                                            
                                    | 171 |  | 				<div class="jp-emblem"> | 
                                                            
                                    | 172 |  | 					<?php echo self::get_jp_emblem(); ?> | 
                                                            
                                    | 173 |  | 				</div> | 
                                                            
                                    | 174 |  | 				<p class="msg"> | 
                                                            
                                    | 175 |  | 					<?php _e( 'Speed up your photos and save bandwidth costs by using a free content delivery network.', 'jetpack' ); ?> | 
                                                            
                                    | 176 |  | 				</p> | 
                                                            
                                    | 177 |  |  | 
                                                            
                                    | 178 |  | 				<p> | 
                                                            
                                    | 179 |  | 					<img class="j-spinner hide" style="margin-top: 13px;" width="17" height="17" src="<?php echo esc_url( includes_url( 'images/spinner-2x.gif' ) ); ?>" alt="<?php echo esc_attr__( 'Loading...', 'jetpack' ); ?>" /><a href="#" data-module="photon" class="activate button button-jetpack"><?php esc_html_e( 'Activate Photon', 'jetpack' ); ?></a> | 
                                                            
                                    | 180 |  | 				</p> | 
                                                            
                                    | 181 |  | 			</div> | 
                                                            
                                    | 182 |  | 		</script> | 
                                                            
                                    | 183 |  | 		<?php | 
                                                            
                                    | 184 |  | 		//jitm is being viewed, track it | 
                                                            
                                    | 185 |  | 		$jetpack = Jetpack::init(); | 
                                                            
                                    | 186 |  | 		$jetpack->stat( 'jitm', 'photon-viewed-' . JETPACK__VERSION ); | 
                                                            
                                    | 187 |  | 		$jetpack->do_stats( 'server_side' ); | 
                                                            
                                    | 188 |  | 	} | 
                                                            
                                    | 189 |  |  | 
                                                            
                                    | 190 |  | 	/** | 
                                                            
                                    | 191 |  | 	 * Display message prompting user to enable auto-updates in WordPress.com. |