Plugin Directory

Changeset 1199697


Ignore:
Timestamp:
07/16/2015 12:02:31 AM (11 years ago)
Author:
wpgraphicstudio
Message:

updates

Location:
wpgraphicstudio/trunk/templates
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • wpgraphicstudio/trunk/templates/belcher-boxes.php

    r1180299 r1199697  
    11<?php
    2 require_once($_SERVER['DOCUMENT_ROOT'] . '/wp-content/uploads/wpgs/xml/core-language.php');
    32global $current_user;
    43get_currentuserinfo();
     
    2726
    2827function 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;
    3228
    3329    global $wpdb;
     
    4238       $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n";
    4339add_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);
    4541
    4642if($eGraphic){
     
    5248
    5349function 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;
    5750
    5851    $emailFile = sanitize_file_name( $_POST['file'] );
     
    6861       $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n";
    6962add_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);
    7164
    7265if($eGraphic){
     
    7770remove_filter( 'wp_mail_content_type', 'set_html_content_type' );
    7871$fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) );
    79 $langs = new SimpleXMLElement($xmlstr);
    80 $text_email_graphic_notice_value = $langs->langu[0]->emailGraphicNotice;
    8172?>
    8273<style type="text/css">
     
    9788}
    9889</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>
    10091<?php
    10192}
     
    114105$upload_path = $wp_upload_dir['basedir'] . '/wpgs';
    115106$fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) );
    116 $langs = new SimpleXMLElement($xmlstr);
    117 $text_delete_graphic_notice_value = $langs->langu[0]->deleteGraphicNotice;
    118107?>
    119108<style type="text/css">
     
    134123}
    135124</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>
    137126<?php }
    138127
     
    208197    }
    209198imagedestroy($im);
    210 $langs = new SimpleXMLElement($xmlstr);
    211 $text_graphic_saved_notice_value = $langs->langu[0]->textGraphicSavedNotice;
    212 
    213199?>
    214200<style type="text/css">
     
    230216</style>
    231217<div class="isa_success">
    232 <?php echo $text_graphic_saved_notice_value ?>
     218Your 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>
    233221</div>
    234222<div width="100%" align="center">
     
    289277
    290278$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;
    296279?>
    297280<head>
     
    364347<input type=\"hidden\" name=\"view\" value=\"gallery\">
    365348<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>
    367350
    368351<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>";
    370353if ((get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == '') || (get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == 'On')) {
    371354print "<form action=\"/belcher-boxes\" id=\"eMail\" method=\"post\">
     
    373356<input type=\"hidden\" name=\"view\" value=\"gallery\">
    374357<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>";
    376359}
    377360print "</div></li>\n";
     
    387370print "</ul>\n<div class=\"clear\">&nbsp;</div>\n";
    388371}
    389 else { ?>
    390 <?php echo ''.$text_empty_gallery_value.'';
     372else {
     373print "<p>You currently have no graphics in this gallery </p>";
    391374} ?>
    392375</div>
     
    402385  <!--<![endif]-->
    403386  </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
    404391  <!--[if !IE]>-->
    405392  </object>
  • wpgraphicstudio/trunk/templates/buttons.php

    r1180298 r1199697  
    11<?php
    2 require_once($_SERVER['DOCUMENT_ROOT'] . '/wp-content/uploads/wpgs/xml/core-language.php');
    32global $current_user;
    43get_currentuserinfo();
     
    2726
    2827function 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;
    3228    global $wpdb;
    3329    $emailFile = sanitize_file_name( $_POST['file'] );
     
    4137       $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n";
    4238add_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);
    4440
    4541if($eGraphic){
     
    5248function ResendGraphic($user_id) {
    5349    $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;
    5750    global $wpdb;
    5851
     
    6558       $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n";
    6659add_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);
    6861
    6962if($eGraphic){
     
    7467remove_filter( 'wp_mail_content_type', 'set_html_content_type' );
    7568$fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) );
    76 $langs = new SimpleXMLElement($xmlstr);
    77 $text_email_graphic_notice_value = $langs->langu[0]->emailGraphicNotice;
    7869?>
    7970<style type="text/css">
     
    9485}
    9586</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>
    9788<?php
    9889}
     
    111102$upload_path = $wp_upload_dir['basedir'] . '/wpgs';
    112103$fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) );
    113 $langs = new SimpleXMLElement($xmlstr);
    114 $text_delete_graphic_notice_value = $langs->langu[0]->deleteGraphicNotice;
    115104?>
    116105<style type="text/css">
     
    131120}
    132121</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>
    134123<?php }
    135124
     
    205194    }
    206195imagedestroy($im);
    207 $langs = new SimpleXMLElement($xmlstr);
    208 $text_graphic_saved_notice_value = $langs->langu[0]->textGraphicSavedNotice;
    209196?>
    210197<style type="text/css">
     
    226213</style>
    227214<div class="isa_success">
    228 <?php echo $text_graphic_saved_notice_value ?>
     215Your 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>
    229218</div>
    230219<div width="100%" align="center">
     
    285274
    286275$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;
    292276?>
    293277<head>
     
    360344<input type=\"hidden\" name=\"view\" value=\"gallery\">
    361345<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>
    363347
    364348<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>";
    366350if ((get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == '') || (get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == 'On')) {
    367351print "<form action=\"/buttons\" id=\"eMail\" method=\"post\">
     
    369353<input type=\"hidden\" name=\"view\" value=\"gallery\">
    370354<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>";
    372356}
    373357print "</div></li>\n";
     
    383367print "</ul>\n<div class=\"clear\">&nbsp;</div>\n";
    384368}
    385 else { ?>
    386 <?php echo ''.$text_empty_gallery_value.'';
     369else {
     370print "<p>You currently have no graphics in this gallery </p>";
    387371} ?>
    388372</div>
  • wpgraphicstudio/trunk/templates/cta-boxes.php

    r1180297 r1199697  
    11<?php
    2 require_once($_SERVER['DOCUMENT_ROOT'] . '/wp-content/uploads/wpgs/xml/core-language.php');
    32global $current_user;
    43get_currentuserinfo();
     
    2726
    2827function 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;
    3228    global $wpdb;
    3329    $emailFile = sanitize_file_name( $_POST['file'] );
     
    4137       $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n";
    4238add_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);
    4440
    4541if($eGraphic){
     
    5248function ResendGraphic($user_id) {
    5349    $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;
    5750    global $wpdb;
    5851
     
    6558       $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n";
    6659add_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);
    6861
    6962if($eGraphic){
     
    7467remove_filter( 'wp_mail_content_type', 'set_html_content_type' );
    7568$fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) );
    76 $langs = new SimpleXMLElement($xmlstr);
    77 $text_email_graphic_notice_value = $langs->langu[0]->emailGraphicNotice;
    7869?>
    7970<style type="text/css">
     
    9485}
    9586</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>
    9788<?php
    9889}
     
    111102$upload_path = $wp_upload_dir['basedir'] . '/wpgs';
    112103$fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) );
    113 $langs = new SimpleXMLElement($xmlstr);
    114 $text_delete_graphic_notice_value = $langs->langu[0]->deleteGraphicNotice;
    115104?>
    116105<style type="text/css">
     
    131120}
    132121</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>
    134123<?php }
    135124
     
    205194    }
    206195imagedestroy($im);
    207 $langs = new SimpleXMLElement($xmlstr);
    208 $text_graphic_saved_notice_value = $langs->langu[0]->textGraphicSavedNotice;
    209196?>
    210197<style type="text/css">
     
    226213</style>
    227214<div class="isa_success">
    228 <?php echo $text_graphic_saved_notice_value ?>
     215Your 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>
    229218</div>
    230219<div width="100%" align="center">
     
    285274
    286275$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;
    292276?>
    293277<head>
     
    365349<input type=\"hidden\" name=\"view\" value=\"gallery\">
    366350<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>
    368352
    369353<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>";
    371355if ((get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == '') || (get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == 'On')) {
    372356print "<form action=\"/cta-boxes\" id=\"eMail\" method=\"post\">
     
    374358<input type=\"hidden\" name=\"view\" value=\"gallery\">
    375359<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>";
    377361}
    378362print "</div></li>\n";
     
    388372print "</ul>\n<div class=\"clear\">&nbsp;</div>\n";
    389373}
    390 else { ?>
    391 <?php echo ''.$text_empty_gallery_value.'';
     374else {
     375print "<p>You currently have no graphics in this gallery </p>";
    392376} ?>
    393377<?php } if ($_POST['create'] != '') {
  • wpgraphicstudio/trunk/templates/headlines.php

    r1180295 r1199697  
    11<?php
    2 require_once($_SERVER['DOCUMENT_ROOT'] . '/wp-content/uploads/wpgs/xml/core-language.php');
    32global $current_user;
    43get_currentuserinfo();
     
    2726
    2827function 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;
    3228    global $wpdb;
    3329    $emailFile = sanitize_file_name( $_POST['file'] );
     
    4137       $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n";
    4238add_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);
    4440
    4541if($eGraphic){
     
    5248function ResendGraphic($user_id) {
    5349    $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;
    5750    global $wpdb;
    5851
     
    6558       $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n";
    6659add_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);
    6861
    6962if($eGraphic){
     
    7467remove_filter( 'wp_mail_content_type', 'set_html_content_type' );
    7568$fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) );
    76 $langs = new SimpleXMLElement($xmlstr);
    77 $text_email_graphic_notice_value = $langs->langu[0]->emailGraphicNotice;
    7869?>
    7970<style type="text/css">
     
    9485}
    9586</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>
    9788<?php
    9889}
     
    111102$upload_path = $wp_upload_dir['basedir'] . '/wpgs';
    112103$fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) );
    113 $langs = new SimpleXMLElement($xmlstr);
    114 $text_delete_graphic_notice_value = $langs->langu[0]->deleteGraphicNotice;
    115104?>
    116105<style type="text/css">
     
    131120}
    132121</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>
    134123<?php }
    135124
     
    205194    }
    206195imagedestroy($im);
    207 $langs = new SimpleXMLElement($xmlstr);
    208 $text_graphic_saved_notice_value = $langs->langu[0]->textGraphicSavedNotice;
    209196?>
    210197<style type="text/css">
     
    226213</style>
    227214<div class="isa_success">
    228 <?php echo $text_graphic_saved_notice_value ?>
     215Your 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>
    229218</div>
    230219<div width="100%" align="center">
     
    285274
    286275$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;
    292276?>
    293277<head>
     
    360344<input type=\"hidden\" name=\"view\" value=\"gallery\">
    361345<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>
    363347
    364348<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>";
    366350if ((get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == '') || (get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == 'On')) {
    367351print "<form action=\"/headlines\" id=\"eMail\" method=\"post\">
     
    369353<input type=\"hidden\" name=\"view\" value=\"gallery\">
    370354<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>";
    372356}
    373357print "</div></li>\n";
     
    383367print "</ul>\n<div class=\"clear\">&nbsp;</div>\n";
    384368}
    385 else { ?>
    386 <?php echo ''.$text_empty_gallery_value.'';
     369else {
     370print "<p>You currently have no graphics in this gallery </p>";
    387371} ?>
    388372</div>
  • wpgraphicstudio/trunk/templates/web-boxes.php

    r1180293 r1199697  
    11<?php
    2 require_once($_SERVER['DOCUMENT_ROOT'] . '/wp-content/uploads/wpgs/xml/core-language.php');
    32global $current_user;
    43get_currentuserinfo();
     
    2726
    2827function 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;
    3228    global $wpdb;
    3329    $emailFile = sanitize_file_name( $_POST['file'] );
     
    4137       $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n";
    4238add_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);
    4440
    4541if($eGraphic){
     
    5248function ResendGraphic($user_id) {
    5349    $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;
    5750    global $wpdb;
    5851
     
    6558       $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n";
    6659add_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);
    6861
    6962if($eGraphic){
     
    7467remove_filter( 'wp_mail_content_type', 'set_html_content_type' );
    7568$fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) );
    76 $langs = new SimpleXMLElement($xmlstr);
    77 $text_email_graphic_notice_value = $langs->langu[0]->emailGraphicNotice;
    7869?>
    7970<style type="text/css">
     
    9485}
    9586</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>
    9788<?php
    9889}
     
    111102$upload_path = $wp_upload_dir['basedir'] . '/wpgs';
    112103$fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) );
    113 $langs = new SimpleXMLElement($xmlstr);
    114 $text_delete_graphic_notice_value = $langs->langu[0]->deleteGraphicNotice;
    115104?>
    116105<style type="text/css">
     
    131120}
    132121</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>
    134123<?php }
    135124
     
    205194    }
    206195imagedestroy($im);
    207 $langs = new SimpleXMLElement($xmlstr);
    208 $text_graphic_saved_notice_value = $langs->langu[0]->textGraphicSavedNotice;
    209196?>
    210197<style type="text/css">
     
    226213</style>
    227214<div class="isa_success">
    228 <?php echo $text_graphic_saved_notice_value ?>
     215Your 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>
    229218</div>
    230219<div width="100%" align="center">
     
    285274
    286275$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;
    292276?>
    293277<head>
     
    360344<input type=\"hidden\" name=\"view\" value=\"gallery\">
    361345<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>
    363347
    364348<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>";
    366350if ((get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == '') || (get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == 'On')) {
    367351print "<form action=\"/web-boxes\" id=\"eMail\" method=\"post\">
     
    369353<input type=\"hidden\" name=\"view\" value=\"gallery\">
    370354<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>";
    372356}
    373357print "</div></li>\n";
     
    383367print "</ul>\n<div class=\"clear\">&nbsp;</div>\n";
    384368}
    385 else { ?>
    386 <?php echo ''.$text_empty_gallery_value.'';
     369else {
     370print "<p>You currently have no graphics in this gallery </p>";
    387371} ?>
    388372</div>
Note: See TracChangeset for help on using the changeset viewer.