Plugin Directory

Changeset 1167507


Ignore:
Timestamp:
05/26/2015 05:19:26 AM (11 years ago)
Author:
wpgraphicstudio
Message:

update

Location:
wpgraphicstudio/trunk/templates
Files:
6 edited

Legend:

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

    r1165168 r1167507  
    11<?php
     2include '/wp-content/uploads/wpgs/xml/core-language.php';
    23global $current_user;
    34get_currentuserinfo();
     
    2627
    2728function 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;
    2832
    2933    global $wpdb;
     
    3842       $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n";
    3943add_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);
    4145
    4246if($eGraphic){
     
    4852
    4953function 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
    5058    $emailFile = sanitize_file_name( $_POST['file'] );
    5159
     
    6068       $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n";
    6169add_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);
    6371
    6472if($eGraphic){
     
    6977remove_filter( 'wp_mail_content_type', 'set_html_content_type' );
    7078$fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) );
     79$langs = new SimpleXMLElement($xmlstr);
     80$text_email_graphic_notice_value = $langs->langu[0]->emailGraphicNotice;
    7181?>
    7282<style type="text/css">
     
    8797}
    8898</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>
    90100<?php
    91101}
     
    104114$upload_path = $wp_upload_dir['basedir'] . '/wpgs';
    105115$fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) );
    106 
     116$langs = new SimpleXMLElement($xmlstr);
     117$text_delete_graphic_notice_value = $langs->langu[0]->deleteGraphicNotice;
    107118?>
    108119<style type="text/css">
     
    123134}
    124135</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>
    126137<?php }
    127138
     
    197208    }
    198209imagedestroy($im);
     210$langs = new SimpleXMLElement($xmlstr);
     211$text_graphic_saved_notice_value = $langs->langu[0]->textGraphicSavedNotice;
     212
    199213?>
    200214<style type="text/css">
     
    216230</style>
    217231<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 ?>
    221233</div>
    222234<div width="100%" align="center">
     
    246258# Set number of thumbs_per_page.
    247259
     260if ((get_option( 'wpgs_wpgraphicstudio_per_gallery' ) == '') || (get_option( 'wpgs_wpgraphicstudio_per_gallery' ) == '0')) {
     261$thumbs_per_page = 10;
     262} else {
    248263$thumbs_per_page = $thumbs_per_page = get_option( 'wpgs_wpgraphicstudio_per_gallery' );
     264}
    249265
    250266# Set the thumb_max height/width in pixels.
     
    273289
    274290$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;
    275296?>
    276297<head>
     
    343364<input type=\"hidden\" name=\"view\" value=\"gallery\">
    344365<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>
    346367
    347368<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>";
    349370if ((get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == '') || (get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == 'On')) {
    350371print "<form action=\"/belcher-boxes\" id=\"eMail\" method=\"post\">
     
    352373<input type=\"hidden\" name=\"view\" value=\"gallery\">
    353374<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>";
    355376}
    356377print "</div></li>\n";
     
    366387print "</ul>\n<div class=\"clear\">&nbsp;</div>\n";
    367388}
    368 else
    369 {
    370 print "<p>You currently have no graphics in this gallery </p>";
     389else { ?>
     390<?php echo ''.$text_empty_gallery_value.'';
    371391} ?>
    372392</div>
     
    382402  <!--<![endif]-->
    383403  </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 
    388404  <!--[if !IE]>-->
    389405  </object>
  • wpgraphicstudio/trunk/templates/buttons.php

    r1165168 r1167507  
    11<?php
     2include '/wp-content/uploads/wpgs/xml/core-language.php';
    23global $current_user;
    34get_currentuserinfo();
     
    2627
    2728function 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;
    2932    global $wpdb;
    3033    $emailFile = sanitize_file_name( $_POST['file'] );
     
    3841       $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n";
    3942add_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);
    4144
    4245if($eGraphic){
     
    4952function ResendGraphic($user_id) {
    5053    $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;
    5257    global $wpdb;
    5358
     
    6065       $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n";
    6166add_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);
    6368
    6469if($eGraphic){
     
    6974remove_filter( 'wp_mail_content_type', 'set_html_content_type' );
    7075$fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) );
     76$langs = new SimpleXMLElement($xmlstr);
     77$text_email_graphic_notice_value = $langs->langu[0]->emailGraphicNotice;
    7178?>
    7279<style type="text/css">
     
    8794}
    8895</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>
    9097<?php
    9198}
     
    104111$upload_path = $wp_upload_dir['basedir'] . '/wpgs';
    105112$fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) );
    106 
     113$langs = new SimpleXMLElement($xmlstr);
     114$text_delete_graphic_notice_value = $langs->langu[0]->deleteGraphicNotice;
    107115?>
    108116<style type="text/css">
     
    123131}
    124132</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>
    126134<?php }
    127135
     
    197205    }
    198206imagedestroy($im);
     207$langs = new SimpleXMLElement($xmlstr);
     208$text_graphic_saved_notice_value = $langs->langu[0]->textGraphicSavedNotice;
    199209?>
    200210<style type="text/css">
     
    216226</style>
    217227<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 ?>
    221229</div>
    222230<div width="100%" align="center">
     
    246254# Set number of thumbs_per_page.
    247255
     256if ((get_option( 'wpgs_wpgraphicstudio_per_gallery' ) == '') || (get_option( 'wpgs_wpgraphicstudio_per_gallery' ) == '0')) {
     257$thumbs_per_page = 10;
     258} else {
    248259$thumbs_per_page = $thumbs_per_page = get_option( 'wpgs_wpgraphicstudio_per_gallery' );
     260}
    249261
    250262# Set the thumb_max height/width in pixels.
     
    273285
    274286$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;
    275292?>
    276293<head>
     
    343360<input type=\"hidden\" name=\"view\" value=\"gallery\">
    344361<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>
    346363
    347364<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>";
    349366if ((get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == '') || (get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == 'On')) {
    350367print "<form action=\"/buttons\" id=\"eMail\" method=\"post\">
     
    352369<input type=\"hidden\" name=\"view\" value=\"gallery\">
    353370<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>";
    355372}
    356373print "</div></li>\n";
     
    366383print "</ul>\n<div class=\"clear\">&nbsp;</div>\n";
    367384}
    368 else
    369 {
    370 print "<p>You currently have no graphics in this gallery </p>";
     385else { ?>
     386<?php echo ''.$text_empty_gallery_value.'';
    371387} ?>
    372388</div>
     
    382398  <!--<![endif]-->
    383399  </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 
    388400  <!--[if !IE]>-->
    389401  </object>
  • wpgraphicstudio/trunk/templates/create-graphic.php

    r1131321 r1167507  
    11<?php
    2 
     2include '/wp-content/uploads/wpgs/xml/core-language.php';
    33# Create folder named thumbs inside your gallery,
    44# Be sure to set the thumbs folder permissions to 777.
     
    4747
    4848$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;
    4952?>
    5053<head>
     
    121124    <form action=\"/$file_name\" method=\"post\">
    122125<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>
    124127    <form action=\"/$file_name\" method=\"post\">
    125128<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>
    127130            </div>\n";
    128131}
     
    139142else
    140143{
    141 print "<p>You currently have no graphics in this gallery </p>";
     144print "";
    142145}
    143146?>
  • wpgraphicstudio/trunk/templates/cta-boxes.php

    r1165168 r1167507  
    11<?php
     2include '/wp-content/uploads/wpgs/xml/core-language.php';
    23global $current_user;
    34get_currentuserinfo();
     
    2627
    2728function 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;
    2932    global $wpdb;
    3033    $emailFile = sanitize_file_name( $_POST['file'] );
     
    3841       $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n";
    3942add_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);
    4144
    4245if($eGraphic){
     
    4952function ResendGraphic($user_id) {
    5053    $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;
    5257    global $wpdb;
    5358
     
    6065       $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n";
    6166add_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);
    6368
    6469if($eGraphic){
     
    6974remove_filter( 'wp_mail_content_type', 'set_html_content_type' );
    7075$fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) );
     76$langs = new SimpleXMLElement($xmlstr);
     77$text_email_graphic_notice_value = $langs->langu[0]->emailGraphicNotice;
    7178?>
    7279<style type="text/css">
     
    8794}
    8895</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>
    9097<?php
    9198}
     
    104111$upload_path = $wp_upload_dir['basedir'] . '/wpgs';
    105112$fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) );
    106 
     113$langs = new SimpleXMLElement($xmlstr);
     114$text_delete_graphic_notice_value = $langs->langu[0]->deleteGraphicNotice;
    107115?>
    108116<style type="text/css">
     
    123131}
    124132</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>
    126134<?php }
    127135
     
    197205    }
    198206imagedestroy($im);
     207$langs = new SimpleXMLElement($xmlstr);
     208$text_graphic_saved_notice_value = $langs->langu[0]->textGraphicSavedNotice;
    199209?>
    200210<style type="text/css">
     
    216226</style>
    217227<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 ?>
    221229</div>
    222230<div width="100%" align="center">
     
    246254# Set number of thumbs_per_page.
    247255
     256if ((get_option( 'wpgs_wpgraphicstudio_per_gallery' ) == '') || (get_option( 'wpgs_wpgraphicstudio_per_gallery' ) == '0')) {
     257$thumbs_per_page = 10;
     258} else {
    248259$thumbs_per_page = $thumbs_per_page = get_option( 'wpgs_wpgraphicstudio_per_gallery' );
     260}
    249261
    250262# Set the thumb_max height/width in pixels.
     
    273285
    274286$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;
    275292?>
    276293<head>
     
    348365<input type=\"hidden\" name=\"view\" value=\"gallery\">
    349366<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>
    351368
    352369<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>";
    354371if ((get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == '') || (get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == 'On')) {
    355372print "<form action=\"/cta-boxes\" id=\"eMail\" method=\"post\">
     
    357374<input type=\"hidden\" name=\"view\" value=\"gallery\">
    358375<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>";
    360377}
    361378print "</div></li>\n";
     
    371388print "</ul>\n<div class=\"clear\">&nbsp;</div>\n";
    372389}
    373 else
    374 {
    375 print "<p>You currently have no graphics in this gallery </p>";
     390else { ?>
     391<?php echo ''.$text_empty_gallery_value.'';
    376392} ?>
    377 </div>
    378393<?php } if ($_POST['create'] != '') {
    379394$logo = get_option( 'wpgs_wpgraphicstudio_logo_url' );
     
    387402  <!--<![endif]-->
    388403  </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 
    393404  <!--[if !IE]>-->
    394405  </object>
  • wpgraphicstudio/trunk/templates/headlines.php

    r1149193 r1167507  
    11<?php
     2include '/wp-content/uploads/wpgs/xml/core-language.php';
    23global $current_user;
    34get_currentuserinfo();
     
    2627
    2728function 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;
    2932    global $wpdb;
    3033    $emailFile = sanitize_file_name( $_POST['file'] );
     
    3841       $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n";
    3942add_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);
    4144
    4245if($eGraphic){
     
    4952function ResendGraphic($user_id) {
    5053    $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;
    5257    global $wpdb;
    5358
     
    6065       $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n";
    6166add_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);
    6368
    6469if($eGraphic){
     
    6974remove_filter( 'wp_mail_content_type', 'set_html_content_type' );
    7075$fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) );
     76$langs = new SimpleXMLElement($xmlstr);
     77$text_email_graphic_notice_value = $langs->langu[0]->emailGraphicNotice;
    7178?>
    7279<style type="text/css">
     
    8794}
    8895</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>
    9097<?php
    9198}
     
    104111$upload_path = $wp_upload_dir['basedir'] . '/wpgs';
    105112$fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) );
    106 
     113$langs = new SimpleXMLElement($xmlstr);
     114$text_delete_graphic_notice_value = $langs->langu[0]->deleteGraphicNotice;
    107115?>
    108116<style type="text/css">
     
    123131}
    124132</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>
    126134<?php }
    127135
     
    197205    }
    198206imagedestroy($im);
     207$langs = new SimpleXMLElement($xmlstr);
     208$text_graphic_saved_notice_value = $langs->langu[0]->textGraphicSavedNotice;
    199209?>
    200210<style type="text/css">
     
    216226</style>
    217227<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 ?>
    221229</div>
    222230<div width="100%" align="center">
     
    246254# Set number of thumbs_per_page.
    247255
     256if ((get_option( 'wpgs_wpgraphicstudio_per_gallery' ) == '') || (get_option( 'wpgs_wpgraphicstudio_per_gallery' ) == '0')) {
     257$thumbs_per_page = 10;
     258} else {
    248259$thumbs_per_page = $thumbs_per_page = get_option( 'wpgs_wpgraphicstudio_per_gallery' );
     260}
    249261
    250262# Set the thumb_max height/width in pixels.
     
    273285
    274286$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;
    275292?>
    276293<head>
     
    343360<input type=\"hidden\" name=\"view\" value=\"gallery\">
    344361<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>
    346363
    347364<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>";
    349366if ((get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == '') || (get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == 'On')) {
    350367print "<form action=\"/headlines\" id=\"eMail\" method=\"post\">
     
    352369<input type=\"hidden\" name=\"view\" value=\"gallery\">
    353370<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>";
    355372}
    356373print "</div></li>\n";
     
    366383print "</ul>\n<div class=\"clear\">&nbsp;</div>\n";
    367384}
    368 else
    369 {
    370 print "<p>You currently have no graphics in this gallery </p>";
     385else { ?>
     386<?php echo ''.$text_empty_gallery_value.'';
    371387} ?>
    372388</div>
     
    382398  <!--<![endif]-->
    383399  </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 
    388400  <!--[if !IE]>-->
    389401  </object>
  • wpgraphicstudio/trunk/templates/web-boxes.php

    r1165168 r1167507  
    11<?php
     2include '/wp-content/uploads/wpgs/xml/core-language.php';
    23global $current_user;
    34get_currentuserinfo();
     
    2627
    2728function 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;
    2932    global $wpdb;
    3033    $emailFile = sanitize_file_name( $_POST['file'] );
     
    3841       $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n";
    3942add_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);
    4144
    4245if($eGraphic){
     
    4952function ResendGraphic($user_id) {
    5053    $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;
    5257    global $wpdb;
    5358
     
    6065       $headers = 'From: ' . get_bloginfo( "name" ) . ' <' . get_bloginfo( "admin_email" ) . '>' . "\r\n";
    6166add_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);
    6368
    6469if($eGraphic){
     
    6974remove_filter( 'wp_mail_content_type', 'set_html_content_type' );
    7075$fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) );
     76$langs = new SimpleXMLElement($xmlstr);
     77$text_email_graphic_notice_value = $langs->langu[0]->emailGraphicNotice;
    7178?>
    7279<style type="text/css">
     
    8794}
    8895</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>
    9097<?php
    9198}
     
    104111$upload_path = $wp_upload_dir['basedir'] . '/wpgs';
    105112$fileurl = plugins_url( 'includes/wpgs/images', dirname(__FILE__) );
    106 
     113$langs = new SimpleXMLElement($xmlstr);
     114$text_delete_graphic_notice_value = $langs->langu[0]->deleteGraphicNotice;
    107115?>
    108116<style type="text/css">
     
    123131}
    124132</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>
    126134<?php }
    127135
     
    197205    }
    198206imagedestroy($im);
     207$langs = new SimpleXMLElement($xmlstr);
     208$text_graphic_saved_notice_value = $langs->langu[0]->textGraphicSavedNotice;
    199209?>
    200210<style type="text/css">
     
    216226</style>
    217227<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 ?>
    221229</div>
    222230<div width="100%" align="center">
     
    246254# Set number of thumbs_per_page.
    247255
     256if ((get_option( 'wpgs_wpgraphicstudio_per_gallery' ) == '') || (get_option( 'wpgs_wpgraphicstudio_per_gallery' ) == '0')) {
     257$thumbs_per_page = 10;
     258} else {
    248259$thumbs_per_page = $thumbs_per_page = get_option( 'wpgs_wpgraphicstudio_per_gallery' );
     260}
    249261
    250262# Set the thumb_max height/width in pixels.
     
    273285
    274286$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;
    275292?>
    276293<head>
     
    343360<input type=\"hidden\" name=\"view\" value=\"gallery\">
    344361<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>
    346363
    347364<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>";
    349366if ((get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == '') || (get_option( 'wpgs_wpgraphicstudio_email_graphics' ) == 'On')) {
    350367print "<form action=\"/web-boxes\" id=\"eMail\" method=\"post\">
     
    352369<input type=\"hidden\" name=\"view\" value=\"gallery\">
    353370<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>";
    355372}
    356373print "</div></li>\n";
     
    366383print "</ul>\n<div class=\"clear\">&nbsp;</div>\n";
    367384}
    368 else
    369 {
    370 print "<p>You currently have no graphics in this gallery </p>";
     385else { ?>
     386<?php echo ''.$text_empty_gallery_value.'';
    371387} ?>
    372388</div>
     
    382398  <!--<![endif]-->
    383399  </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 
    388400  <!--[if !IE]>-->
    389401  </object>
Note: See TracChangeset for help on using the changeset viewer.