Changeset 1167507
- Timestamp:
- 05/26/2015 05:19:26 AM (11 years ago)
- Location:
- wpgraphicstudio/trunk/templates
- Files:
-
- 6 edited
-
belcher-boxes.php (modified) (17 diffs)
-
buttons.php (modified) (17 diffs)
-
create-graphic.php (modified) (4 diffs)
-
cta-boxes.php (modified) (17 diffs)
-
headlines.php (modified) (17 diffs)
-
web-boxes.php (modified) (17 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpgraphicstudio/trunk/templates/belcher-boxes.php
r1165168 r1167507 1 1 <?php 2 include '/wp-content/uploads/wpgs/xml/core-language.php'; 2 3 global $current_user; 3 4 get_currentuserinfo(); … … 26 27 27 28 function emailGraphic($user_id) { 29 $langs = new SimpleXMLElement($xmlstr); 30 $text_email_graphic_subject_value = $langs->langu[0]->emailGraphicSubject; 31 $text_email_graphic_body_value = $langs->langu[0]->emailGraphicBody; 28 32 29 33 global $wpdb; … … 38 42 $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n"; 39 43 add_filter( 'wp_mail_content_type', 'set_html_content_type' ); 40 $eGraphic = @wp_mail($downemail, ' Your custom graphic from ' . get_bloginfo( "name" ) . '', 'Thank you for using ' . get_bloginfo("name") . ' for your graphic creation needs.<br>Your custom generated graphic is attached.', $headers, $attachments, 0);44 $eGraphic = @wp_mail($downemail, '' . $text_email_graphic_subject_value . '', '' . $text_email_graphic_body_value . '', $headers, $attachments, 0); 41 45 42 46 if($eGraphic){ … … 48 52 49 53 function ResendGraphic($user_id) { 54 $langs = new SimpleXMLElement($xmlstr); 55 $text_email_graphic_subject_value = $langs->langu[0]->emailGraphicSubject; 56 $text_email_graphic_body_value = $langs->langu[0]->emailGraphicBody; 57 50 58 $emailFile = sanitize_file_name( $_POST['file'] ); 51 59 … … 60 68 $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n"; 61 69 add_filter( 'wp_mail_content_type', 'set_html_content_type' ); 62 $eGraphic = @wp_mail($downemail, ' Your custom graphic from ' . get_bloginfo( "name" ) . '', 'Thank you for using ' . get_bloginfo("name") . ' for your graphic creation needs.<br>Your custom generated graphic is attached.', $headers, $attachments, 0);70 $eGraphic = @wp_mail($downemail, '' . $text_email_graphic_subject_value . '', '' . $text_email_graphic_body_value . '', $headers, $attachments, 0); 63 71 64 72 if($eGraphic){ … … 69 77 remove_filter( 'wp_mail_content_type', 'set_html_content_type' ); 70 78 $fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) ); 79 $langs = new SimpleXMLElement($xmlstr); 80 $text_email_graphic_notice_value = $langs->langu[0]->emailGraphicNotice; 71 81 ?> 72 82 <style type="text/css"> … … 87 97 } 88 98 </style> 89 <div class="isa_success"> Your Belcher Box Graphic Has Been eMailed to the eMail address on file.</div>99 <div class="isa_success"><?php echo $text_email_graphic_notice_value ?></div> 90 100 <?php 91 101 } … … 104 114 $upload_path = $wp_upload_dir['basedir'] . '/wpgs'; 105 115 $fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) ); 106 116 $langs = new SimpleXMLElement($xmlstr); 117 $text_delete_graphic_notice_value = $langs->langu[0]->deleteGraphicNotice; 107 118 ?> 108 119 <style type="text/css"> … … 123 134 } 124 135 </style> 125 <div class="isa_success"> Your Belcher Box Graphic Has Been Deleted From Your Gallery Below</div>136 <div class="isa_success"><?php echo $text_delete_graphic_notice_value ?></div> 126 137 <?php } 127 138 … … 197 208 } 198 209 imagedestroy($im); 210 $langs = new SimpleXMLElement($xmlstr); 211 $text_graphic_saved_notice_value = $langs->langu[0]->textGraphicSavedNotice; 212 199 213 ?> 200 214 <style type="text/css"> … … 216 230 </style> 217 231 <div class="isa_success"> 218 Your created Belcher Box Has Been Saved To Your Belcher Boxes Graphic Gallery For Future Use. 219 <br>Click on your created Belcher Box below to save to your computer....<br> 220 <b>Close This Window When Download Has Completed To Return To The Belcher Boxes Module.</b> 232 <?php echo $text_graphic_saved_notice_value ?> 221 233 </div> 222 234 <div width="100%" align="center"> … … 246 258 # Set number of thumbs_per_page. 247 259 260 if ((get_option( 'wpgs_wpgraphicstudio_per_gallery' ) == '') || (get_option( 'wpgs_wpgraphicstudio_per_gallery' ) == '0')) { 261 $thumbs_per_page = 10; 262 } else { 248 263 $thumbs_per_page = $thumbs_per_page = get_option( 'wpgs_wpgraphicstudio_per_gallery' ); 264 } 249 265 250 266 # Set the thumb_max height/width in pixels. … … 273 289 274 290 $pictureArray = array(); 291 $langs = new SimpleXMLElement($xmlstr); 292 $alt_delete_graphic_value = $langs->langu[0]->altDeleteGraphic; 293 $alt_email_graphic_value = $langs->langu[0]->altEmailGraphic; 294 $alt_download_graphic_value = $langs->langu[0]->altDownloadGraphic; 295 $text_empty_gallery_value = $langs->langu[0]->textEmptyGallery; 275 296 ?> 276 297 <head> … … 343 364 <input type=\"hidden\" name=\"view\" value=\"gallery\"> 344 365 <input type=\"hidden\" name=\"delete\" value=\"1\"> 345 <input class=\"galleryDelete\" type=\"submit\" value=\"\" alt=\" Delete Graphic\" title=\"Delete Graphic\" /></form>366 <input class=\"galleryDelete\" type=\"submit\" value=\"\" alt=\"$alt_delete_graphic_value\" title=\"$alt_delete_graphic_value\" /></form> 346 367 347 368 <a href=\"".$full_url.$pA."\" download=\"$pA\"> 348 <input class=\"galleryDownload\" type=\"submit\" value=\"\" alt=\" Download Graphic\" title=\"Download Graphic\" /></a>";369 <input class=\"galleryDownload\" type=\"submit\" value=\"\" alt=\"$alt_download_graphic_value\" title=\"$alt_download_graphic_value\" /></a>"; 349 370 if ((get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == '') || (get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == 'On')) { 350 371 print "<form action=\"/belcher-boxes\" id=\"eMail\" method=\"post\"> … … 352 373 <input type=\"hidden\" name=\"view\" value=\"gallery\"> 353 374 <input type=\"hidden\" name=\"email\" value=\"1\"> 354 <input class=\"galleryEmail\" type=\"submit\" value=\"\" alt=\" Email Graphic\" title=\"Email Graphic\"/></form>";375 <input class=\"galleryEmail\" type=\"submit\" value=\"\" alt=\"$alt_email_graphic_value\" title=\"$alt_email_graphic_value\"/></form>"; 355 376 } 356 377 print "</div></li>\n"; … … 366 387 print "</ul>\n<div class=\"clear\"> </div>\n"; 367 388 } 368 else 369 { 370 print "<p>You currently have no graphics in this gallery </p>"; 389 else { ?> 390 <?php echo ''.$text_empty_gallery_value.''; 371 391 } ?> 372 392 </div> … … 382 402 <!--<![endif]--> 383 403 </div> 384 <p>385 No graphic creation selection has been made or that module is not available.<br>386 Pleae contact site support to request that module be added.</p>387 388 404 <!--[if !IE]>--> 389 405 </object> -
wpgraphicstudio/trunk/templates/buttons.php
r1165168 r1167507 1 1 <?php 2 include '/wp-content/uploads/wpgs/xml/core-language.php'; 2 3 global $current_user; 3 4 get_currentuserinfo(); … … 26 27 27 28 function emailGraphic($user_id) { 28 29 $langs = new SimpleXMLElement($xmlstr); 30 $text_email_graphic_subject_value = $langs->langu[0]->emailGraphicSubject; 31 $text_email_graphic_body_value = $langs->langu[0]->emailGraphicBody; 29 32 global $wpdb; 30 33 $emailFile = sanitize_file_name( $_POST['file'] ); … … 38 41 $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n"; 39 42 add_filter( 'wp_mail_content_type', 'set_html_content_type' ); 40 $eGraphic = @wp_mail($downemail, ' Your custom graphic from ' . get_bloginfo( "name" ) . '', 'Thank you for using ' . get_bloginfo("name") . ' for your graphic creation needs.<br>Your custom generated graphic is attached.', $headers, $attachments, 0);43 $eGraphic = @wp_mail($downemail, '' . $text_email_graphic_subject_value . '', '' . $text_email_graphic_body_value . '', $headers, $attachments, 0); 41 44 42 45 if($eGraphic){ … … 49 52 function ResendGraphic($user_id) { 50 53 $emailFile = sanitize_file_name( $_POST['file'] ); 51 54 $langs = new SimpleXMLElement($xmlstr); 55 $text_email_graphic_subject_value = $langs->langu[0]->emailGraphicSubject; 56 $text_email_graphic_body_value = $langs->langu[0]->emailGraphicBody; 52 57 global $wpdb; 53 58 … … 60 65 $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n"; 61 66 add_filter( 'wp_mail_content_type', 'set_html_content_type' ); 62 $eGraphic = @wp_mail($downemail, ' Your custom graphic from ' . get_bloginfo( "name" ) . '', 'Thank you for using ' . get_bloginfo("name") . ' for your graphic creation needs.<br>Your custom generated graphic is attached.', $headers, $attachments, 0);67 $eGraphic = @wp_mail($downemail, '' . $text_email_graphic_subject_value . '', '' . $text_email_graphic_body_value . '', $headers, $attachments, 0); 63 68 64 69 if($eGraphic){ … … 69 74 remove_filter( 'wp_mail_content_type', 'set_html_content_type' ); 70 75 $fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) ); 76 $langs = new SimpleXMLElement($xmlstr); 77 $text_email_graphic_notice_value = $langs->langu[0]->emailGraphicNotice; 71 78 ?> 72 79 <style type="text/css"> … … 87 94 } 88 95 </style> 89 <div class="isa_success"> Your Button Graphic Has Been eMailed to the eMail address on file.</div>96 <div class="isa_success"><?php echo $text_email_graphic_notice_value ?></div> 90 97 <?php 91 98 } … … 104 111 $upload_path = $wp_upload_dir['basedir'] . '/wpgs'; 105 112 $fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) ); 106 113 $langs = new SimpleXMLElement($xmlstr); 114 $text_delete_graphic_notice_value = $langs->langu[0]->deleteGraphicNotice; 107 115 ?> 108 116 <style type="text/css"> … … 123 131 } 124 132 </style> 125 <div class="isa_success"> Your Button Graphic Has Been Deleted From Your Gallery Below</div>133 <div class="isa_success"><?php echo $text_delete_graphic_notice_value ?></div> 126 134 <?php } 127 135 … … 197 205 } 198 206 imagedestroy($im); 207 $langs = new SimpleXMLElement($xmlstr); 208 $text_graphic_saved_notice_value = $langs->langu[0]->textGraphicSavedNotice; 199 209 ?> 200 210 <style type="text/css"> … … 216 226 </style> 217 227 <div class="isa_success"> 218 Your created Button Has Been Saved To Your Buttons Graphic Gallery For Future Use. 219 <br>Click on your created Button below to save to your computer....<br> 220 <b>Close This Window When Download Has Completed To Return To The Buttons Module.</b> 228 <?php echo $text_graphic_saved_notice_value ?> 221 229 </div> 222 230 <div width="100%" align="center"> … … 246 254 # Set number of thumbs_per_page. 247 255 256 if ((get_option( 'wpgs_wpgraphicstudio_per_gallery' ) == '') || (get_option( 'wpgs_wpgraphicstudio_per_gallery' ) == '0')) { 257 $thumbs_per_page = 10; 258 } else { 248 259 $thumbs_per_page = $thumbs_per_page = get_option( 'wpgs_wpgraphicstudio_per_gallery' ); 260 } 249 261 250 262 # Set the thumb_max height/width in pixels. … … 273 285 274 286 $pictureArray = array(); 287 $langs = new SimpleXMLElement($xmlstr); 288 $alt_delete_graphic_value = $langs->langu[0]->altDeleteGraphic; 289 $alt_email_graphic_value = $langs->langu[0]->altEmailGraphic; 290 $alt_download_graphic_value = $langs->langu[0]->altDownloadGraphic; 291 $text_empty_gallery_value = $langs->langu[0]->textEmptyGallery; 275 292 ?> 276 293 <head> … … 343 360 <input type=\"hidden\" name=\"view\" value=\"gallery\"> 344 361 <input type=\"hidden\" name=\"delete\" value=\"1\"> 345 <input class=\"galleryDelete\" type=\"submit\" value=\"\" alt=\" Delete Graphic\" title=\"Delete Graphic\" /></form>362 <input class=\"galleryDelete\" type=\"submit\" value=\"\" alt=\"$alt_delete_graphic_value\" title=\"$alt_delete_graphic_value\" /></form> 346 363 347 364 <a href=\"".$full_url.$pA."\" download=\"$pA\"> 348 <input class=\"galleryDownload\" type=\"submit\" value=\"\" alt=\" Download Graphic\" title=\"Download Graphic\"/></a>";365 <input class=\"galleryDownload\" type=\"submit\" value=\"\" alt=\"$alt_download_graphic_value\" title=\"$alt_download_graphic_value\" /></a>"; 349 366 if ((get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == '') || (get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == 'On')) { 350 367 print "<form action=\"/buttons\" id=\"eMail\" method=\"post\"> … … 352 369 <input type=\"hidden\" name=\"view\" value=\"gallery\"> 353 370 <input type=\"hidden\" name=\"email\" value=\"1\"> 354 <input class=\"galleryEmail\" type=\"submit\" value=\"\" alt=\" Email Graphic\" title=\"Email Graphic\"/></form>";371 <input class=\"galleryEmail\" type=\"submit\" value=\"\" alt=\"$alt_email_graphic_value\" title=\"$alt_email_graphic_value\"/></form>"; 355 372 } 356 373 print "</div></li>\n"; … … 366 383 print "</ul>\n<div class=\"clear\"> </div>\n"; 367 384 } 368 else 369 { 370 print "<p>You currently have no graphics in this gallery </p>"; 385 else { ?> 386 <?php echo ''.$text_empty_gallery_value.''; 371 387 } ?> 372 388 </div> … … 382 398 <!--<![endif]--> 383 399 </div> 384 <p>385 No graphic creation selection has been made or that module is not available.<br>386 Pleae contact site support to request that module be added.</p>387 388 400 <!--[if !IE]>--> 389 401 </object> -
wpgraphicstudio/trunk/templates/create-graphic.php
r1131321 r1167507 1 1 <?php 2 2 include '/wp-content/uploads/wpgs/xml/core-language.php'; 3 3 # Create folder named thumbs inside your gallery, 4 4 # Be sure to set the thumbs folder permissions to 777. … … 47 47 48 48 $pictureArray = array(); 49 $langs = new SimpleXMLElement($xmlstr); 50 $alt_create_graphic_value = $langs->langu[0]->altCreateGraphic; 51 $alt_view_gallery_value = $langs->langu[0]->altViewGallery; 49 52 ?> 50 53 <head> … … 121 124 <form action=\"/$file_name\" method=\"post\"> 122 125 <input type=\"hidden\" name=\"create\" value=\"yes\"> 123 <input class=\"create\" type=\"submit\" value=\"\" title=\" Create Graphic\" alt=\"Create Graphic\" /></form>126 <input class=\"create\" type=\"submit\" value=\"\" title=\"$alt_create_graphic_value\" alt=\"$alt_create_graphic_value\" /></form> 124 127 <form action=\"/$file_name\" method=\"post\"> 125 128 <input type=\"hidden\" name=\"gallery\" value=\"yes\"> 126 <input class=\"gallery\" type=\"submit\" value=\"\" title=\" View Gallery\" alt=\"View Gallery\" /></form>129 <input class=\"gallery\" type=\"submit\" value=\"\" title=\"$alt_view_gallery_value\" alt=\"$alt_view_gallery_value\" /></form> 127 130 </div>\n"; 128 131 } … … 139 142 else 140 143 { 141 print " <p>You currently have no graphics in this gallery </p>";144 print ""; 142 145 } 143 146 ?> -
wpgraphicstudio/trunk/templates/cta-boxes.php
r1165168 r1167507 1 1 <?php 2 include '/wp-content/uploads/wpgs/xml/core-language.php'; 2 3 global $current_user; 3 4 get_currentuserinfo(); … … 26 27 27 28 function emailGraphic($user_id) { 28 29 $langs = new SimpleXMLElement($xmlstr); 30 $text_email_graphic_subject_value = $langs->langu[0]->emailGraphicSubject; 31 $text_email_graphic_body_value = $langs->langu[0]->emailGraphicBody; 29 32 global $wpdb; 30 33 $emailFile = sanitize_file_name( $_POST['file'] ); … … 38 41 $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n"; 39 42 add_filter( 'wp_mail_content_type', 'set_html_content_type' ); 40 $eGraphic = @wp_mail($downemail, ' Your custom graphic from ' . get_bloginfo( "name" ) . '', 'Thank you for using ' . get_bloginfo("name") . ' for your graphic creation needs.<br>Your custom generated graphic is attached.', $headers, $attachments, 0);43 $eGraphic = @wp_mail($downemail, '' . $text_email_graphic_subject_value . '', '' . $text_email_graphic_body_value . '', $headers, $attachments, 0); 41 44 42 45 if($eGraphic){ … … 49 52 function ResendGraphic($user_id) { 50 53 $emailFile = sanitize_file_name( $_POST['file'] ); 51 54 $langs = new SimpleXMLElement($xmlstr); 55 $text_email_graphic_subject_value = $langs->langu[0]->emailGraphicSubject; 56 $text_email_graphic_body_value = $langs->langu[0]->emailGraphicBody; 52 57 global $wpdb; 53 58 … … 60 65 $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n"; 61 66 add_filter( 'wp_mail_content_type', 'set_html_content_type' ); 62 $eGraphic = @wp_mail($downemail, ' Your custom graphic from ' . get_bloginfo( "name" ) . '', 'Thank you for using ' . get_bloginfo("name") . ' for your graphic creation needs.<br>Your custom generated graphic is attached.', $headers, $attachments, 0);67 $eGraphic = @wp_mail($downemail, '' . $text_email_graphic_subject_value . '', '' . $text_email_graphic_body_value . '', $headers, $attachments, 0); 63 68 64 69 if($eGraphic){ … … 69 74 remove_filter( 'wp_mail_content_type', 'set_html_content_type' ); 70 75 $fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) ); 76 $langs = new SimpleXMLElement($xmlstr); 77 $text_email_graphic_notice_value = $langs->langu[0]->emailGraphicNotice; 71 78 ?> 72 79 <style type="text/css"> … … 87 94 } 88 95 </style> 89 <div class="isa_success"> Your Call toAction Box Graphic Has Been eMailed to the eMail address on file.</div>96 <div class="isa_success"><?php echo $text_email_graphic_notice_value ?></div> 90 97 <?php 91 98 } … … 104 111 $upload_path = $wp_upload_dir['basedir'] . '/wpgs'; 105 112 $fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) ); 106 113 $langs = new SimpleXMLElement($xmlstr); 114 $text_delete_graphic_notice_value = $langs->langu[0]->deleteGraphicNotice; 107 115 ?> 108 116 <style type="text/css"> … … 123 131 } 124 132 </style> 125 <div class="isa_success"> Your Call to Action Box Graphic Has Been Deleted From Your Gallery Below</div>133 <div class="isa_success"><?php echo $text_delete_graphic_notice_value ?></div> 126 134 <?php } 127 135 … … 197 205 } 198 206 imagedestroy($im); 207 $langs = new SimpleXMLElement($xmlstr); 208 $text_graphic_saved_notice_value = $langs->langu[0]->textGraphicSavedNotice; 199 209 ?> 200 210 <style type="text/css"> … … 216 226 </style> 217 227 <div class="isa_success"> 218 Your created Call to Action Box Has Been Saved To Your Call to Action Boxes Graphic Gallery For Future Use. 219 <br>Click on your created Call to Action Box below to save to your computer....<br> 220 <b>Close This Window When Download Has Completed To Return To The Call to Action Boxes Module.</b> 228 <?php echo $text_graphic_saved_notice_value ?> 221 229 </div> 222 230 <div width="100%" align="center"> … … 246 254 # Set number of thumbs_per_page. 247 255 256 if ((get_option( 'wpgs_wpgraphicstudio_per_gallery' ) == '') || (get_option( 'wpgs_wpgraphicstudio_per_gallery' ) == '0')) { 257 $thumbs_per_page = 10; 258 } else { 248 259 $thumbs_per_page = $thumbs_per_page = get_option( 'wpgs_wpgraphicstudio_per_gallery' ); 260 } 249 261 250 262 # Set the thumb_max height/width in pixels. … … 273 285 274 286 $pictureArray = array(); 287 $langs = new SimpleXMLElement($xmlstr); 288 $alt_delete_graphic_value = $langs->langu[0]->altDeleteGraphic; 289 $alt_email_graphic_value = $langs->langu[0]->altEmailGraphic; 290 $alt_download_graphic_value = $langs->langu[0]->altDownloadGraphic; 291 $text_empty_gallery_value = $langs->langu[0]->textEmptyGallery; 275 292 ?> 276 293 <head> … … 348 365 <input type=\"hidden\" name=\"view\" value=\"gallery\"> 349 366 <input type=\"hidden\" name=\"delete\" value=\"1\"> 350 <input class=\"galleryDelete\" type=\"submit\" value=\"\" title=\"Delete Graphic\" alt=\"Delete Graphic\" /></form>367 <input class=\"galleryDelete\" type=\"submit\" value=\"\" alt=\"$alt_delete_graphic_value\" title=\"$alt_delete_graphic_value\" /></form> 351 368 352 369 <a href=\"".$full_url.$pA."\" download=\"$pA\"> 353 <input class=\"galleryDownload\" type=\"submit\" value=\"\" alt=\" Download Graphic\" title=\"Download Graphic\" /></a>";370 <input class=\"galleryDownload\" type=\"submit\" value=\"\" alt=\"$alt_download_graphic_value\" title=\"$alt_download_graphic_value\" /></a>"; 354 371 if ((get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == '') || (get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == 'On')) { 355 372 print "<form action=\"/cta-boxes\" id=\"eMail\" method=\"post\"> … … 357 374 <input type=\"hidden\" name=\"view\" value=\"gallery\"> 358 375 <input type=\"hidden\" name=\"email\" value=\"1\"> 359 <input class=\"galleryEmail\" type=\"submit\" value=\"\" title=\"Email Graphic\" alt=\"Email Graphic\"/></form>";376 <input class=\"galleryEmail\" type=\"submit\" value=\"\" alt=\"$alt_email_graphic_value\" title=\"$alt_email_graphic_value\"/></form>"; 360 377 } 361 378 print "</div></li>\n"; … … 371 388 print "</ul>\n<div class=\"clear\"> </div>\n"; 372 389 } 373 else 374 { 375 print "<p>You currently have no graphics in this gallery </p>"; 390 else { ?> 391 <?php echo ''.$text_empty_gallery_value.''; 376 392 } ?> 377 </div>378 393 <?php } if ($_POST['create'] != '') { 379 394 $logo = get_option( 'wpgs_wpgraphicstudio_logo_url' ); … … 387 402 <!--<![endif]--> 388 403 </div> 389 <p>390 No graphic creation selection has been made or that module is not available.<br>391 Pleae contact site support to request that module be added.</p>392 393 404 <!--[if !IE]>--> 394 405 </object> -
wpgraphicstudio/trunk/templates/headlines.php
r1149193 r1167507 1 1 <?php 2 include '/wp-content/uploads/wpgs/xml/core-language.php'; 2 3 global $current_user; 3 4 get_currentuserinfo(); … … 26 27 27 28 function emailGraphic($user_id) { 28 29 $langs = new SimpleXMLElement($xmlstr); 30 $text_email_graphic_subject_value = $langs->langu[0]->emailGraphicSubject; 31 $text_email_graphic_body_value = $langs->langu[0]->emailGraphicBody; 29 32 global $wpdb; 30 33 $emailFile = sanitize_file_name( $_POST['file'] ); … … 38 41 $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n"; 39 42 add_filter( 'wp_mail_content_type', 'set_html_content_type' ); 40 $eGraphic = @wp_mail($downemail, ' Your custom graphic from ' . get_bloginfo( "name" ) . '', 'Thank you for using ' . get_bloginfo("name") . ' for your graphic creation needs.<br>Your custom generated graphic is attached.', $headers, $attachments, 0);43 $eGraphic = @wp_mail($downemail, '' . $text_email_graphic_subject_value . '', '' . $text_email_graphic_body_value . '', $headers, $attachments, 0); 41 44 42 45 if($eGraphic){ … … 49 52 function ResendGraphic($user_id) { 50 53 $emailFile = sanitize_file_name( $_POST['file'] ); 51 54 $langs = new SimpleXMLElement($xmlstr); 55 $text_email_graphic_subject_value = $langs->langu[0]->emailGraphicSubject; 56 $text_email_graphic_body_value = $langs->langu[0]->emailGraphicBody; 52 57 global $wpdb; 53 58 … … 60 65 $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n"; 61 66 add_filter( 'wp_mail_content_type', 'set_html_content_type' ); 62 $eGraphic = @wp_mail($downemail, ' Your custom graphic from ' . get_bloginfo( "name" ) . '', 'Thank you for using ' . get_bloginfo("name") . ' for your graphic creation needs.<br>Your custom generated graphic is attached.', $headers, $attachments, 0);67 $eGraphic = @wp_mail($downemail, '' . $text_email_graphic_subject_value . '', '' . $text_email_graphic_body_value . '', $headers, $attachments, 0); 63 68 64 69 if($eGraphic){ … … 69 74 remove_filter( 'wp_mail_content_type', 'set_html_content_type' ); 70 75 $fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) ); 76 $langs = new SimpleXMLElement($xmlstr); 77 $text_email_graphic_notice_value = $langs->langu[0]->emailGraphicNotice; 71 78 ?> 72 79 <style type="text/css"> … … 87 94 } 88 95 </style> 89 <div class="isa_success"> Your Headline Graphic Has Been eMailed to the eMail address on file.</div>96 <div class="isa_success"><?php echo $text_email_graphic_notice_value ?></div> 90 97 <?php 91 98 } … … 104 111 $upload_path = $wp_upload_dir['basedir'] . '/wpgs'; 105 112 $fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) ); 106 113 $langs = new SimpleXMLElement($xmlstr); 114 $text_delete_graphic_notice_value = $langs->langu[0]->deleteGraphicNotice; 107 115 ?> 108 116 <style type="text/css"> … … 123 131 } 124 132 </style> 125 <div class="isa_success"> Your Headline Graphic Has Been Deleted From Your Gallery Below</div>133 <div class="isa_success"><?php echo $text_delete_graphic_notice_value ?></div> 126 134 <?php } 127 135 … … 197 205 } 198 206 imagedestroy($im); 207 $langs = new SimpleXMLElement($xmlstr); 208 $text_graphic_saved_notice_value = $langs->langu[0]->textGraphicSavedNotice; 199 209 ?> 200 210 <style type="text/css"> … … 216 226 </style> 217 227 <div class="isa_success"> 218 Your created Headline Has Been Saved To Your Buttons Graphic Gallery For Future Use. 219 <br>Click on your created Headline below to save to your computer....<br> 220 <b>Close This Window When Download Has Completed To Return To The Headlines Module.</b> 228 <?php echo $text_graphic_saved_notice_value ?> 221 229 </div> 222 230 <div width="100%" align="center"> … … 246 254 # Set number of thumbs_per_page. 247 255 256 if ((get_option( 'wpgs_wpgraphicstudio_per_gallery' ) == '') || (get_option( 'wpgs_wpgraphicstudio_per_gallery' ) == '0')) { 257 $thumbs_per_page = 10; 258 } else { 248 259 $thumbs_per_page = $thumbs_per_page = get_option( 'wpgs_wpgraphicstudio_per_gallery' ); 260 } 249 261 250 262 # Set the thumb_max height/width in pixels. … … 273 285 274 286 $pictureArray = array(); 287 $langs = new SimpleXMLElement($xmlstr); 288 $alt_delete_graphic_value = $langs->langu[0]->altDeleteGraphic; 289 $alt_email_graphic_value = $langs->langu[0]->altEmailGraphic; 290 $alt_download_graphic_value = $langs->langu[0]->altDownloadGraphic; 291 $text_empty_gallery_value = $langs->langu[0]->textEmptyGallery; 275 292 ?> 276 293 <head> … … 343 360 <input type=\"hidden\" name=\"view\" value=\"gallery\"> 344 361 <input type=\"hidden\" name=\"delete\" value=\"1\"> 345 <input class=\"galleryDelete\" type=\"submit\" value=\"\" alt=\" Delete Graphic\" title=\"Delete Graphic\" /></form>362 <input class=\"galleryDelete\" type=\"submit\" value=\"\" alt=\"$alt_delete_graphic_value\" title=\"$alt_delete_graphic_value\" /></form> 346 363 347 364 <a href=\"".$full_url.$pA."\" download=\"$pA\"> 348 <input class=\"galleryDownload\" type=\"submit\" value=\"\" alt=\" Download Graphic\" title=\"Download Graphic\"/></a>";365 <input class=\"galleryDownload\" type=\"submit\" value=\"\" alt=\"$alt_download_graphic_value\" title=\"$alt_download_graphic_value\" /></a>"; 349 366 if ((get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == '') || (get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == 'On')) { 350 367 print "<form action=\"/headlines\" id=\"eMail\" method=\"post\"> … … 352 369 <input type=\"hidden\" name=\"view\" value=\"gallery\"> 353 370 <input type=\"hidden\" name=\"email\" value=\"1\"> 354 <input class=\"galleryEmail\" type=\"submit\" value=\"\" alt=\" Email Graphic\" title=\"Email Graphic\"/></form>";371 <input class=\"galleryEmail\" type=\"submit\" value=\"\" alt=\"$alt_email_graphic_value\" title=\"$alt_email_graphic_value\"/></form>"; 355 372 } 356 373 print "</div></li>\n"; … … 366 383 print "</ul>\n<div class=\"clear\"> </div>\n"; 367 384 } 368 else 369 { 370 print "<p>You currently have no graphics in this gallery </p>"; 385 else { ?> 386 <?php echo ''.$text_empty_gallery_value.''; 371 387 } ?> 372 388 </div> … … 382 398 <!--<![endif]--> 383 399 </div> 384 <p>385 No graphic creation selection has been made or that module is not available.<br>386 Pleae contact site support to request that module be added.</p>387 388 400 <!--[if !IE]>--> 389 401 </object> -
wpgraphicstudio/trunk/templates/web-boxes.php
r1165168 r1167507 1 1 <?php 2 include '/wp-content/uploads/wpgs/xml/core-language.php'; 2 3 global $current_user; 3 4 get_currentuserinfo(); … … 26 27 27 28 function emailGraphic($user_id) { 28 29 $langs = new SimpleXMLElement($xmlstr); 30 $text_email_graphic_subject_value = $langs->langu[0]->emailGraphicSubject; 31 $text_email_graphic_body_value = $langs->langu[0]->emailGraphicBody; 29 32 global $wpdb; 30 33 $emailFile = sanitize_file_name( $_POST['file'] ); … … 38 41 $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n"; 39 42 add_filter( 'wp_mail_content_type', 'set_html_content_type' ); 40 $eGraphic = @wp_mail($downemail, ' Your custom graphic from ' . get_bloginfo( "name" ) . '', 'Thank you for using ' . get_bloginfo("name") . ' for your graphic creation needs.<br>Your custom generated graphic is attached.', $headers, $attachments, 0);43 $eGraphic = @wp_mail($downemail, '' . $text_email_graphic_subject_value . '', '' . $text_email_graphic_body_value . '', $headers, $attachments, 0); 41 44 42 45 if($eGraphic){ … … 49 52 function ResendGraphic($user_id) { 50 53 $emailFile = sanitize_file_name( $_POST['file'] ); 51 54 $langs = new SimpleXMLElement($xmlstr); 55 $text_email_graphic_subject_value = $langs->langu[0]->emailGraphicSubject; 56 $text_email_graphic_body_value = $langs->langu[0]->emailGraphicBody; 52 57 global $wpdb; 53 58 … … 60 65 $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n"; 61 66 add_filter( 'wp_mail_content_type', 'set_html_content_type' ); 62 $eGraphic = @wp_mail($downemail, ' Your custom graphic from ' . get_bloginfo( "name" ) . '', 'Thank you for using ' . get_bloginfo("name") . ' for your graphic creation needs.<br>Your custom generated graphic is attached.', $headers, $attachments, 0);67 $eGraphic = @wp_mail($downemail, '' . $text_email_graphic_subject_value . '', '' . $text_email_graphic_body_value . '', $headers, $attachments, 0); 63 68 64 69 if($eGraphic){ … … 69 74 remove_filter( 'wp_mail_content_type', 'set_html_content_type' ); 70 75 $fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) ); 76 $langs = new SimpleXMLElement($xmlstr); 77 $text_email_graphic_notice_value = $langs->langu[0]->emailGraphicNotice; 71 78 ?> 72 79 <style type="text/css"> … … 87 94 } 88 95 </style> 89 <div class="isa_success"> Your Web Box Graphic Has Been eMailed to the eMail address on file.</div>96 <div class="isa_success"><?php echo $text_email_graphic_notice_value ?></div> 90 97 <?php 91 98 } … … 104 111 $upload_path = $wp_upload_dir['basedir'] . '/wpgs'; 105 112 $fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) ); 106 113 $langs = new SimpleXMLElement($xmlstr); 114 $text_delete_graphic_notice_value = $langs->langu[0]->deleteGraphicNotice; 107 115 ?> 108 116 <style type="text/css"> … … 123 131 } 124 132 </style> 125 <div class="isa_success"> Your Web Box Graphic Has Been Deleted From Your Gallery Below</div>133 <div class="isa_success"><?php echo $text_delete_graphic_notice_value ?></div> 126 134 <?php } 127 135 … … 197 205 } 198 206 imagedestroy($im); 207 $langs = new SimpleXMLElement($xmlstr); 208 $text_graphic_saved_notice_value = $langs->langu[0]->textGraphicSavedNotice; 199 209 ?> 200 210 <style type="text/css"> … … 216 226 </style> 217 227 <div class="isa_success"> 218 Your created Web Box Has Been Saved To Your Web Boxes Graphic Gallery For Future Use. 219 <br>Click on your created Web Box below to save to your computer....<br> 220 <b>Close This Window When Download Has Completed To Return To The Web Boxes Module.</b> 228 <?php echo $text_graphic_saved_notice_value ?> 221 229 </div> 222 230 <div width="100%" align="center"> … … 246 254 # Set number of thumbs_per_page. 247 255 256 if ((get_option( 'wpgs_wpgraphicstudio_per_gallery' ) == '') || (get_option( 'wpgs_wpgraphicstudio_per_gallery' ) == '0')) { 257 $thumbs_per_page = 10; 258 } else { 248 259 $thumbs_per_page = $thumbs_per_page = get_option( 'wpgs_wpgraphicstudio_per_gallery' ); 260 } 249 261 250 262 # Set the thumb_max height/width in pixels. … … 273 285 274 286 $pictureArray = array(); 287 $langs = new SimpleXMLElement($xmlstr); 288 $alt_delete_graphic_value = $langs->langu[0]->altDeleteGraphic; 289 $alt_email_graphic_value = $langs->langu[0]->altEmailGraphic; 290 $alt_download_graphic_value = $langs->langu[0]->altDownloadGraphic; 291 $text_empty_gallery_value = $langs->langu[0]->textEmptyGallery; 275 292 ?> 276 293 <head> … … 343 360 <input type=\"hidden\" name=\"view\" value=\"gallery\"> 344 361 <input type=\"hidden\" name=\"delete\" value=\"1\"> 345 <input class=\"galleryDelete\" type=\"submit\" value=\"\" alt=\" Delete Graphic\" title=\"Delete Graphic\" /></form>362 <input class=\"galleryDelete\" type=\"submit\" value=\"\" alt=\"$alt_delete_graphic_value\" title=\"$alt_delete_graphic_value\" /></form> 346 363 347 364 <a href=\"".$full_url.$pA."\" download=\"$pA\"> 348 <input class=\"galleryDownload\" type=\"submit\" value=\"\" alt=\" Download Graphic\" title=\"Download Graphic\" /></a>";365 <input class=\"galleryDownload\" type=\"submit\" value=\"\" alt=\"$alt_download_graphic_value\" title=\"$alt_download_graphic_value\" /></a>"; 349 366 if ((get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == '') || (get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == 'On')) { 350 367 print "<form action=\"/web-boxes\" id=\"eMail\" method=\"post\"> … … 352 369 <input type=\"hidden\" name=\"view\" value=\"gallery\"> 353 370 <input type=\"hidden\" name=\"email\" value=\"1\"> 354 <input class=\"galleryEmail\" type=\"submit\" value=\"\" alt=\" Email Graphic\" title=\"Email Graphic\"/></form>";371 <input class=\"galleryEmail\" type=\"submit\" value=\"\" alt=\"$alt_email_graphic_value\" title=\"$alt_email_graphic_value\"/></form>"; 355 372 } 356 373 print "</div></li>\n"; … … 366 383 print "</ul>\n<div class=\"clear\"> </div>\n"; 367 384 } 368 else 369 { 370 print "<p>You currently have no graphics in this gallery </p>"; 385 else { ?> 386 <?php echo ''.$text_empty_gallery_value.''; 371 387 } ?> 372 388 </div> … … 382 398 <!--<![endif]--> 383 399 </div> 384 <p>385 No graphic creation selection has been made or that module is not available.<br>386 Pleae contact site support to request that module be added.</p>387 388 400 <!--[if !IE]>--> 389 401 </object>
Note: See TracChangeset
for help on using the changeset viewer.