@@ 1181-1195 (lines=15) @@ | ||
1178 | * @action wp_enqueue_script |
|
1179 | * @return null |
|
1180 | */ |
|
1181 | public function action_wp_enqueue_scripts() { |
|
1182 | if ( Jetpack_AMP_Support::is_amp_request() ) { |
|
1183 | return; |
|
1184 | } |
|
1185 | wp_enqueue_script( |
|
1186 | 'jetpack-photon', |
|
1187 | Jetpack::get_file_url_for_environment( |
|
1188 | '_inc/build/photon/photon.min.js', |
|
1189 | 'modules/photon/photon.js' |
|
1190 | ), |
|
1191 | array( 'jquery' ), |
|
1192 | 20130122, |
|
1193 | true |
|
1194 | ); |
|
1195 | } |
|
1196 | ||
1197 | /** |
|
1198 | * Determine if image_downsize should utilize Photon via REST API. |
@@ 76-91 (lines=16) @@ | ||
73 | } |
|
74 | } |
|
75 | ||
76 | public static function enqueue_template() { |
|
77 | if ( Jetpack_AMP_Support::is_amp_request() ) { |
|
78 | return; |
|
79 | } |
|
80 | ||
81 | wp_enqueue_script( |
|
82 | 'milestone', |
|
83 | Jetpack::get_file_url_for_environment( |
|
84 | '_inc/build/widgets/milestone/milestone.min.js', |
|
85 | 'modules/widgets/milestone/milestone.js' |
|
86 | ), |
|
87 | array( 'jquery' ), |
|
88 | '20160520', |
|
89 | true |
|
90 | ); |
|
91 | } |
|
92 | ||
93 | public static function styles_template() { |
|
94 | global $themecolors; |