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