Changeset 1199697
- Timestamp:
- 07/16/2015 12:02:31 AM (11 years ago)
- Location:
- wpgraphicstudio/trunk/templates
- Files:
-
- 5 edited
-
belcher-boxes.php (modified) (16 diffs)
-
buttons.php (modified) (15 diffs)
-
cta-boxes.php (modified) (15 diffs)
-
headlines.php (modified) (15 diffs)
-
web-boxes.php (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpgraphicstudio/trunk/templates/belcher-boxes.php
r1180299 r1199697 1 1 <?php 2 require_once($_SERVER['DOCUMENT_ROOT'] . '/wp-content/uploads/wpgs/xml/core-language.php');3 2 global $current_user; 4 3 get_currentuserinfo(); … … 27 26 28 27 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;32 28 33 29 global $wpdb; … … 42 38 $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n"; 43 39 add_filter( 'wp_mail_content_type', 'set_html_content_type' ); 44 $eGraphic = @wp_mail($downemail, ' ' . $text_email_graphic_subject_value . '', '' . $text_email_graphic_body_value . '', $headers, $attachments, 0);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); 45 41 46 42 if($eGraphic){ … … 52 48 53 49 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 51 $emailFile = sanitize_file_name( $_POST['file'] ); … … 68 61 $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n"; 69 62 add_filter( 'wp_mail_content_type', 'set_html_content_type' ); 70 $eGraphic = @wp_mail($downemail, ' ' . $text_email_graphic_subject_value . '', '' . $text_email_graphic_body_value . '', $headers, $attachments, 0);63 $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); 71 64 72 65 if($eGraphic){ … … 77 70 remove_filter( 'wp_mail_content_type', 'set_html_content_type' ); 78 71 $fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) ); 79 $langs = new SimpleXMLElement($xmlstr);80 $text_email_graphic_notice_value = $langs->langu[0]->emailGraphicNotice;81 72 ?> 82 73 <style type="text/css"> … … 97 88 } 98 89 </style> 99 <div class="isa_success"> <?php echo $text_email_graphic_notice_value ?></div>90 <div class="isa_success">Your Belcher Box Graphic Has Been eMailed to the eMail address on file.</div> 100 91 <?php 101 92 } … … 114 105 $upload_path = $wp_upload_dir['basedir'] . '/wpgs'; 115 106 $fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) ); 116 $langs = new SimpleXMLElement($xmlstr);117 $text_delete_graphic_notice_value = $langs->langu[0]->deleteGraphicNotice;118 107 ?> 119 108 <style type="text/css"> … … 134 123 } 135 124 </style> 136 <div class="isa_success"> <?php echo $text_delete_graphic_notice_value ?></div>125 <div class="isa_success">Your Belcher Box Graphic Has Been Deleted From Your Gallery Below</div> 137 126 <?php } 138 127 … … 208 197 } 209 198 imagedestroy($im); 210 $langs = new SimpleXMLElement($xmlstr);211 $text_graphic_saved_notice_value = $langs->langu[0]->textGraphicSavedNotice;212 213 199 ?> 214 200 <style type="text/css"> … … 230 216 </style> 231 217 <div class="isa_success"> 232 <?php echo $text_graphic_saved_notice_value ?> 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> 233 221 </div> 234 222 <div width="100%" align="center"> … … 289 277 290 278 $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;296 279 ?> 297 280 <head> … … 364 347 <input type=\"hidden\" name=\"view\" value=\"gallery\"> 365 348 <input type=\"hidden\" name=\"delete\" value=\"1\"> 366 <input class=\"galleryDelete\" type=\"submit\" value=\"\" alt=\" $alt_delete_graphic_value\" title=\"$alt_delete_graphic_value\" /></form>349 <input class=\"galleryDelete\" type=\"submit\" value=\"\" alt=\"Delete Graphic\" title=\"Delete Graphic\" /></form> 367 350 368 351 <a href=\"".$full_url.$pA."\" download=\"$pA\"> 369 <input class=\"galleryDownload\" type=\"submit\" value=\"\" alt=\" $alt_download_graphic_value\" title=\"$alt_download_graphic_value\" /></a>";352 <input class=\"galleryDownload\" type=\"submit\" value=\"\" alt=\"Download Graphic\" title=\"Download Graphic\" /></a>"; 370 353 if ((get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == '') || (get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == 'On')) { 371 354 print "<form action=\"/belcher-boxes\" id=\"eMail\" method=\"post\"> … … 373 356 <input type=\"hidden\" name=\"view\" value=\"gallery\"> 374 357 <input type=\"hidden\" name=\"email\" value=\"1\"> 375 <input class=\"galleryEmail\" type=\"submit\" value=\"\" alt=\" $alt_email_graphic_value\" title=\"$alt_email_graphic_value\"/></form>";358 <input class=\"galleryEmail\" type=\"submit\" value=\"\" alt=\"Email Graphic\" title=\"Email Graphic\"/></form>"; 376 359 } 377 360 print "</div></li>\n"; … … 387 370 print "</ul>\n<div class=\"clear\"> </div>\n"; 388 371 } 389 else { ?>390 <?php echo ''.$text_empty_gallery_value.'';372 else { 373 print "<p>You currently have no graphics in this gallery </p>"; 391 374 } ?> 392 375 </div> … … 402 385 <!--<![endif]--> 403 386 </div> 387 <p> 388 No graphic creation selection has been made or that module is not available.<br> 389 Pleae contact site support to request that module be added.</p> 390 404 391 <!--[if !IE]>--> 405 392 </object> -
wpgraphicstudio/trunk/templates/buttons.php
r1180298 r1199697 1 1 <?php 2 require_once($_SERVER['DOCUMENT_ROOT'] . '/wp-content/uploads/wpgs/xml/core-language.php');3 2 global $current_user; 4 3 get_currentuserinfo(); … … 27 26 28 27 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;32 28 global $wpdb; 33 29 $emailFile = sanitize_file_name( $_POST['file'] ); … … 41 37 $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n"; 42 38 add_filter( 'wp_mail_content_type', 'set_html_content_type' ); 43 $eGraphic = @wp_mail($downemail, ' ' . $text_email_graphic_subject_value . '', '' . $text_email_graphic_body_value . '', $headers, $attachments, 0);39 $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 40 45 41 if($eGraphic){ … … 52 48 function ResendGraphic($user_id) { 53 49 $emailFile = sanitize_file_name( $_POST['file'] ); 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 global $wpdb; 58 51 … … 65 58 $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n"; 66 59 add_filter( 'wp_mail_content_type', 'set_html_content_type' ); 67 $eGraphic = @wp_mail($downemail, ' ' . $text_email_graphic_subject_value . '', '' . $text_email_graphic_body_value . '', $headers, $attachments, 0);60 $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); 68 61 69 62 if($eGraphic){ … … 74 67 remove_filter( 'wp_mail_content_type', 'set_html_content_type' ); 75 68 $fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) ); 76 $langs = new SimpleXMLElement($xmlstr);77 $text_email_graphic_notice_value = $langs->langu[0]->emailGraphicNotice;78 69 ?> 79 70 <style type="text/css"> … … 94 85 } 95 86 </style> 96 <div class="isa_success"> <?php echo $text_email_graphic_notice_value ?></div>87 <div class="isa_success">Your Buttons Graphic Has Been eMailed to the eMail address on file.</div> 97 88 <?php 98 89 } … … 111 102 $upload_path = $wp_upload_dir['basedir'] . '/wpgs'; 112 103 $fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) ); 113 $langs = new SimpleXMLElement($xmlstr);114 $text_delete_graphic_notice_value = $langs->langu[0]->deleteGraphicNotice;115 104 ?> 116 105 <style type="text/css"> … … 131 120 } 132 121 </style> 133 <div class="isa_success"> <?php echo $text_delete_graphic_notice_value ?></div>122 <div class="isa_success">Your Buttons Graphic Has Been Deleted From Your Gallery Below</div> 134 123 <?php } 135 124 … … 205 194 } 206 195 imagedestroy($im); 207 $langs = new SimpleXMLElement($xmlstr);208 $text_graphic_saved_notice_value = $langs->langu[0]->textGraphicSavedNotice;209 196 ?> 210 197 <style type="text/css"> … … 226 213 </style> 227 214 <div class="isa_success"> 228 <?php echo $text_graphic_saved_notice_value ?> 215 Your created Button Has Been Saved To Your Buttons Graphic Gallery For Future Use. 216 <br>Click on your created Button below to save to your computer....<br> 217 <b>Close This Window When Download Has Completed To Return To The Buttons Module.</b> 229 218 </div> 230 219 <div width="100%" align="center"> … … 285 274 286 275 $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;292 276 ?> 293 277 <head> … … 360 344 <input type=\"hidden\" name=\"view\" value=\"gallery\"> 361 345 <input type=\"hidden\" name=\"delete\" value=\"1\"> 362 <input class=\"galleryDelete\" type=\"submit\" value=\"\" alt=\" $alt_delete_graphic_value\" title=\"$alt_delete_graphic_value\" /></form>346 <input class=\"galleryDelete\" type=\"submit\" value=\"\" alt=\"Delete Graphic\" title=\"Delete Graphic\" /></form> 363 347 364 348 <a href=\"".$full_url.$pA."\" download=\"$pA\"> 365 <input class=\"galleryDownload\" type=\"submit\" value=\"\" alt=\" $alt_download_graphic_value\" title=\"$alt_download_graphic_value\" /></a>";349 <input class=\"galleryDownload\" type=\"submit\" value=\"\" alt=\"Download Graphic\" title=\"Download Graphic\" /></a>"; 366 350 if ((get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == '') || (get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == 'On')) { 367 351 print "<form action=\"/buttons\" id=\"eMail\" method=\"post\"> … … 369 353 <input type=\"hidden\" name=\"view\" value=\"gallery\"> 370 354 <input type=\"hidden\" name=\"email\" value=\"1\"> 371 <input class=\"galleryEmail\" type=\"submit\" value=\"\" alt=\" $alt_email_graphic_value\" title=\"$alt_email_graphic_value\"/></form>";355 <input class=\"galleryEmail\" type=\"submit\" value=\"\" alt=\"Email Graphic\" title=\"Email Graphic\"/></form>"; 372 356 } 373 357 print "</div></li>\n"; … … 383 367 print "</ul>\n<div class=\"clear\"> </div>\n"; 384 368 } 385 else { ?>386 <?php echo ''.$text_empty_gallery_value.'';369 else { 370 print "<p>You currently have no graphics in this gallery </p>"; 387 371 } ?> 388 372 </div> -
wpgraphicstudio/trunk/templates/cta-boxes.php
r1180297 r1199697 1 1 <?php 2 require_once($_SERVER['DOCUMENT_ROOT'] . '/wp-content/uploads/wpgs/xml/core-language.php');3 2 global $current_user; 4 3 get_currentuserinfo(); … … 27 26 28 27 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;32 28 global $wpdb; 33 29 $emailFile = sanitize_file_name( $_POST['file'] ); … … 41 37 $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n"; 42 38 add_filter( 'wp_mail_content_type', 'set_html_content_type' ); 43 $eGraphic = @wp_mail($downemail, ' ' . $text_email_graphic_subject_value . '', '' . $text_email_graphic_body_value . '', $headers, $attachments, 0);39 $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 40 45 41 if($eGraphic){ … … 52 48 function ResendGraphic($user_id) { 53 49 $emailFile = sanitize_file_name( $_POST['file'] ); 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 global $wpdb; 58 51 … … 65 58 $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n"; 66 59 add_filter( 'wp_mail_content_type', 'set_html_content_type' ); 67 $eGraphic = @wp_mail($downemail, ' ' . $text_email_graphic_subject_value . '', '' . $text_email_graphic_body_value . '', $headers, $attachments, 0);60 $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); 68 61 69 62 if($eGraphic){ … … 74 67 remove_filter( 'wp_mail_content_type', 'set_html_content_type' ); 75 68 $fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) ); 76 $langs = new SimpleXMLElement($xmlstr);77 $text_email_graphic_notice_value = $langs->langu[0]->emailGraphicNotice;78 69 ?> 79 70 <style type="text/css"> … … 94 85 } 95 86 </style> 96 <div class="isa_success"> <?php echo $text_email_graphic_notice_value ?></div>87 <div class="isa_success">Your Call to Action Graphic Has Been eMailed to the eMail address on file.</div> 97 88 <?php 98 89 } … … 111 102 $upload_path = $wp_upload_dir['basedir'] . '/wpgs'; 112 103 $fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) ); 113 $langs = new SimpleXMLElement($xmlstr);114 $text_delete_graphic_notice_value = $langs->langu[0]->deleteGraphicNotice;115 104 ?> 116 105 <style type="text/css"> … … 131 120 } 132 121 </style> 133 <div class="isa_success"> <?php echo $text_delete_graphic_notice_value ?></div>122 <div class="isa_success">Your Call to Action Graphic Has Been Deleted From Your Gallery Below</div> 134 123 <?php } 135 124 … … 205 194 } 206 195 imagedestroy($im); 207 $langs = new SimpleXMLElement($xmlstr);208 $text_graphic_saved_notice_value = $langs->langu[0]->textGraphicSavedNotice;209 196 ?> 210 197 <style type="text/css"> … … 226 213 </style> 227 214 <div class="isa_success"> 228 <?php echo $text_graphic_saved_notice_value ?> 215 Your created Call to Action Has Been Saved To Your Call to Actions Graphic Gallery For Future Use. 216 <br>Click on your created Call to Action below to save to your computer....<br> 217 <b>Close This Window When Download Has Completed To Return To The Call to Actions Module.</b> 229 218 </div> 230 219 <div width="100%" align="center"> … … 285 274 286 275 $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;292 276 ?> 293 277 <head> … … 365 349 <input type=\"hidden\" name=\"view\" value=\"gallery\"> 366 350 <input type=\"hidden\" name=\"delete\" value=\"1\"> 367 <input class=\"galleryDelete\" type=\"submit\" value=\"\" alt=\" $alt_delete_graphic_value\" title=\"$alt_delete_graphic_value\" /></form>351 <input class=\"galleryDelete\" type=\"submit\" value=\"\" alt=\"Delete Graphic\" title=\"Delete Graphic\" /></form> 368 352 369 353 <a href=\"".$full_url.$pA."\" download=\"$pA\"> 370 <input class=\"galleryDownload\" type=\"submit\" value=\"\" alt=\" $alt_download_graphic_value\" title=\"$alt_download_graphic_value\" /></a>";354 <input class=\"galleryDownload\" type=\"submit\" value=\"\" alt=\"Download Graphic\" title=\"Download Graphic\" /></a>"; 371 355 if ((get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == '') || (get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == 'On')) { 372 356 print "<form action=\"/cta-boxes\" id=\"eMail\" method=\"post\"> … … 374 358 <input type=\"hidden\" name=\"view\" value=\"gallery\"> 375 359 <input type=\"hidden\" name=\"email\" value=\"1\"> 376 <input class=\"galleryEmail\" type=\"submit\" value=\"\" alt=\" $alt_email_graphic_value\" title=\"$alt_email_graphic_value\"/></form>";360 <input class=\"galleryEmail\" type=\"submit\" value=\"\" alt=\"Email Graphic\" title=\"Email Graphic\"/></form>"; 377 361 } 378 362 print "</div></li>\n"; … … 388 372 print "</ul>\n<div class=\"clear\"> </div>\n"; 389 373 } 390 else { ?>391 <?php echo ''.$text_empty_gallery_value.'';374 else { 375 print "<p>You currently have no graphics in this gallery </p>"; 392 376 } ?> 393 377 <?php } if ($_POST['create'] != '') { -
wpgraphicstudio/trunk/templates/headlines.php
r1180295 r1199697 1 1 <?php 2 require_once($_SERVER['DOCUMENT_ROOT'] . '/wp-content/uploads/wpgs/xml/core-language.php');3 2 global $current_user; 4 3 get_currentuserinfo(); … … 27 26 28 27 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;32 28 global $wpdb; 33 29 $emailFile = sanitize_file_name( $_POST['file'] ); … … 41 37 $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n"; 42 38 add_filter( 'wp_mail_content_type', 'set_html_content_type' ); 43 $eGraphic = @wp_mail($downemail, ' ' . $text_email_graphic_subject_value . '', '' . $text_email_graphic_body_value . '', $headers, $attachments, 0);39 $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 40 45 41 if($eGraphic){ … … 52 48 function ResendGraphic($user_id) { 53 49 $emailFile = sanitize_file_name( $_POST['file'] ); 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 global $wpdb; 58 51 … … 65 58 $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n"; 66 59 add_filter( 'wp_mail_content_type', 'set_html_content_type' ); 67 $eGraphic = @wp_mail($downemail, ' ' . $text_email_graphic_subject_value . '', '' . $text_email_graphic_body_value . '', $headers, $attachments, 0);60 $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); 68 61 69 62 if($eGraphic){ … … 74 67 remove_filter( 'wp_mail_content_type', 'set_html_content_type' ); 75 68 $fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) ); 76 $langs = new SimpleXMLElement($xmlstr);77 $text_email_graphic_notice_value = $langs->langu[0]->emailGraphicNotice;78 69 ?> 79 70 <style type="text/css"> … … 94 85 } 95 86 </style> 96 <div class="isa_success"> <?php echo $text_email_graphic_notice_value ?></div>87 <div class="isa_success">Your Headline Graphic Has Been eMailed to the eMail address on file.</div> 97 88 <?php 98 89 } … … 111 102 $upload_path = $wp_upload_dir['basedir'] . '/wpgs'; 112 103 $fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) ); 113 $langs = new SimpleXMLElement($xmlstr);114 $text_delete_graphic_notice_value = $langs->langu[0]->deleteGraphicNotice;115 104 ?> 116 105 <style type="text/css"> … … 131 120 } 132 121 </style> 133 <div class="isa_success"> <?php echo $text_delete_graphic_notice_value ?></div>122 <div class="isa_success">Your Headline Graphic Has Been Deleted From Your Gallery Below</div> 134 123 <?php } 135 124 … … 205 194 } 206 195 imagedestroy($im); 207 $langs = new SimpleXMLElement($xmlstr);208 $text_graphic_saved_notice_value = $langs->langu[0]->textGraphicSavedNotice;209 196 ?> 210 197 <style type="text/css"> … … 226 213 </style> 227 214 <div class="isa_success"> 228 <?php echo $text_graphic_saved_notice_value ?> 215 Your created Headline Has Been Saved To Your Headlines Graphic Gallery For Future Use. 216 <br>Click on your created Headline below to save to your computer....<br> 217 <b>Close This Window When Download Has Completed To Return To The Headlines Module.</b> 229 218 </div> 230 219 <div width="100%" align="center"> … … 285 274 286 275 $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;292 276 ?> 293 277 <head> … … 360 344 <input type=\"hidden\" name=\"view\" value=\"gallery\"> 361 345 <input type=\"hidden\" name=\"delete\" value=\"1\"> 362 <input class=\"galleryDelete\" type=\"submit\" value=\"\" alt=\" $alt_delete_graphic_value\" title=\"$alt_delete_graphic_value\" /></form>346 <input class=\"galleryDelete\" type=\"submit\" value=\"\" alt=\"Delete Graphic\" title=\"Delete Graphic\" /></form> 363 347 364 348 <a href=\"".$full_url.$pA."\" download=\"$pA\"> 365 <input class=\"galleryDownload\" type=\"submit\" value=\"\" alt=\" $alt_download_graphic_value\" title=\"$alt_download_graphic_value\" /></a>";349 <input class=\"galleryDownload\" type=\"submit\" value=\"\" alt=\"Download Graphic\" title=\"Download Graphic\" /></a>"; 366 350 if ((get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == '') || (get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == 'On')) { 367 351 print "<form action=\"/headlines\" id=\"eMail\" method=\"post\"> … … 369 353 <input type=\"hidden\" name=\"view\" value=\"gallery\"> 370 354 <input type=\"hidden\" name=\"email\" value=\"1\"> 371 <input class=\"galleryEmail\" type=\"submit\" value=\"\" alt=\" $alt_email_graphic_value\" title=\"$alt_email_graphic_value\"/></form>";355 <input class=\"galleryEmail\" type=\"submit\" value=\"\" alt=\"Email Graphic\" title=\"Email Graphic\"/></form>"; 372 356 } 373 357 print "</div></li>\n"; … … 383 367 print "</ul>\n<div class=\"clear\"> </div>\n"; 384 368 } 385 else { ?>386 <?php echo ''.$text_empty_gallery_value.'';369 else { 370 print "<p>You currently have no graphics in this gallery </p>"; 387 371 } ?> 388 372 </div> -
wpgraphicstudio/trunk/templates/web-boxes.php
r1180293 r1199697 1 1 <?php 2 require_once($_SERVER['DOCUMENT_ROOT'] . '/wp-content/uploads/wpgs/xml/core-language.php');3 2 global $current_user; 4 3 get_currentuserinfo(); … … 27 26 28 27 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;32 28 global $wpdb; 33 29 $emailFile = sanitize_file_name( $_POST['file'] ); … … 41 37 $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n"; 42 38 add_filter( 'wp_mail_content_type', 'set_html_content_type' ); 43 $eGraphic = @wp_mail($downemail, ' ' . $text_email_graphic_subject_value . '', '' . $text_email_graphic_body_value . '', $headers, $attachments, 0);39 $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 40 45 41 if($eGraphic){ … … 52 48 function ResendGraphic($user_id) { 53 49 $emailFile = sanitize_file_name( $_POST['file'] ); 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 global $wpdb; 58 51 … … 65 58 $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n"; 66 59 add_filter( 'wp_mail_content_type', 'set_html_content_type' ); 67 $eGraphic = @wp_mail($downemail, ' ' . $text_email_graphic_subject_value . '', '' . $text_email_graphic_body_value . '', $headers, $attachments, 0);60 $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); 68 61 69 62 if($eGraphic){ … … 74 67 remove_filter( 'wp_mail_content_type', 'set_html_content_type' ); 75 68 $fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) ); 76 $langs = new SimpleXMLElement($xmlstr);77 $text_email_graphic_notice_value = $langs->langu[0]->emailGraphicNotice;78 69 ?> 79 70 <style type="text/css"> … … 94 85 } 95 86 </style> 96 <div class="isa_success"> <?php echo $text_email_graphic_notice_value ?></div>87 <div class="isa_success">Your Web Box Graphic Has Been eMailed to the eMail address on file.</div> 97 88 <?php 98 89 } … … 111 102 $upload_path = $wp_upload_dir['basedir'] . '/wpgs'; 112 103 $fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) ); 113 $langs = new SimpleXMLElement($xmlstr);114 $text_delete_graphic_notice_value = $langs->langu[0]->deleteGraphicNotice;115 104 ?> 116 105 <style type="text/css"> … … 131 120 } 132 121 </style> 133 <div class="isa_success"> <?php echo $text_delete_graphic_notice_value ?></div>122 <div class="isa_success">Your Web Box Graphic Has Been Deleted From Your Gallery Below</div> 134 123 <?php } 135 124 … … 205 194 } 206 195 imagedestroy($im); 207 $langs = new SimpleXMLElement($xmlstr);208 $text_graphic_saved_notice_value = $langs->langu[0]->textGraphicSavedNotice;209 196 ?> 210 197 <style type="text/css"> … … 226 213 </style> 227 214 <div class="isa_success"> 228 <?php echo $text_graphic_saved_notice_value ?> 215 Your created Web Box Has Been Saved To Your Web Boxes Graphic Gallery For Future Use. 216 <br>Click on your created Web Box below to save to your computer....<br> 217 <b>Close This Window When Download Has Completed To Return To The Web Boxes Module.</b> 229 218 </div> 230 219 <div width="100%" align="center"> … … 285 274 286 275 $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;292 276 ?> 293 277 <head> … … 360 344 <input type=\"hidden\" name=\"view\" value=\"gallery\"> 361 345 <input type=\"hidden\" name=\"delete\" value=\"1\"> 362 <input class=\"galleryDelete\" type=\"submit\" value=\"\" alt=\" $alt_delete_graphic_value\" title=\"$alt_delete_graphic_value\" /></form>346 <input class=\"galleryDelete\" type=\"submit\" value=\"\" alt=\"Delete Graphic\" title=\"Delete Graphic\" /></form> 363 347 364 348 <a href=\"".$full_url.$pA."\" download=\"$pA\"> 365 <input class=\"galleryDownload\" type=\"submit\" value=\"\" alt=\" $alt_download_graphic_value\" title=\"$alt_download_graphic_value\" /></a>";349 <input class=\"galleryDownload\" type=\"submit\" value=\"\" alt=\"Download Graphic\" title=\"Download Graphic\" /></a>"; 366 350 if ((get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == '') || (get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == 'On')) { 367 351 print "<form action=\"/web-boxes\" id=\"eMail\" method=\"post\"> … … 369 353 <input type=\"hidden\" name=\"view\" value=\"gallery\"> 370 354 <input type=\"hidden\" name=\"email\" value=\"1\"> 371 <input class=\"galleryEmail\" type=\"submit\" value=\"\" alt=\" $alt_email_graphic_value\" title=\"$alt_email_graphic_value\"/></form>";355 <input class=\"galleryEmail\" type=\"submit\" value=\"\" alt=\"Email Graphic\" title=\"Email Graphic\"/></form>"; 372 356 } 373 357 print "</div></li>\n"; … … 383 367 print "</ul>\n<div class=\"clear\"> </div>\n"; 384 368 } 385 else { ?>386 <?php echo ''.$text_empty_gallery_value.'';369 else { 370 print "<p>You currently have no graphics in this gallery </p>"; 387 371 } ?> 388 372 </div>
Note: See TracChangeset
for help on using the changeset viewer.