Plugin Directory

Changeset 796545


Ignore:
Timestamp:
10/31/2013 10:45:02 AM (12 years ago)
Author:
PotySoft
Message:

new version

Location:
poty-mail-send/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • poty-mail-send/trunk/css/_notes/dwsync.xml

    r776276 r796545  
    11<?xml version="1.0" encoding="utf-8" ?>
    22<dwsync>
    3 <file name="poty-mail-send.css" server="E:/fw4/" local="130242202697149419" remote="130242202700000000" />
     3<file name="poty-mail-send.css" server="E:/fw4/" local="130249596662736602" remote="130249596680000000" />
     4<file name="poty-mail-send.css" server="E:/www.laboratorio.com.des/" local="130276872263068199" remote="130276872280000000" />
    45</dwsync>
  • poty-mail-send/trunk/css/poty-mail-send.css

    r776276 r796545  
    11/* CSS Document */
    22
    3 label{
     3.wrap_poty label.lbl{
    44    width:80px !important;
    55    float:left;
    66}
    77
    8 input{
     8.wrap_poty input.txt{
    99    width:80% !important;
    1010}
    1111
    12 #btn_accion{
     12.wrap_poty #btn_accion{
    1313    width:auto !important;
    1414}
    1515
    16 .button {
     16.wrap_poty .button_info {
    1717   border-top: 1px solid #96d1f8;
    1818   background: #65a9d7;
    19    background: -webkit-gradient(linear, left top, left bottom, from(#3e779d), to(#65a9d7));
    20    background: -webkit-linear-gradient(top, #3e779d, #65a9d7);
    21    background: -moz-linear-gradient(top, #3e779d, #65a9d7);
    22    background: -ms-linear-gradient(top, #3e779d, #65a9d7);
    23    background: -o-linear-gradient(top, #3e779d, #65a9d7);
    24    padding: 7.5px 15px;
     19   padding: 7px 15px;
    2520   -webkit-border-radius: 8px;
    2621   -moz-border-radius: 8px;
    2722   border-radius: 8px;
    28    -webkit-box-shadow: rgba(0,0,0,1) 0 1px 0;
    29    -moz-box-shadow: rgba(0,0,0,1) 0 1px 0;
    30    box-shadow: rgba(0,0,0,1) 0 1px 0;
    31    text-shadow: rgba(0,0,0,.4) 0 1px 0;
    32    color: white;
     23   color: #ffffff;
    3324   font-size: 17px;
    3425   font-family: Georgia, serif;
    3526   text-decoration: none;
    36    vertical-align: middle;
     27   display:block;
     28   text-align:center;
    3729   }
    38 .button:hover {
     30.wrap_poty .button_info:hover {
    3931   border-top-color: #28597a;
    4032   background: #28597a;
    4133   color: #ccc;
    4234   }
    43 .button:active {
     35.wrap_poty .button:active {
    4436   border-top-color: #1b435e;
    4537   background: #1b435e;
  • poty-mail-send/trunk/page/_notes/dwsync.xml

    r776276 r796545  
    22<dwsync>
    33<file name="sidebar.php" server="E:/fw4/" local="130242204616229184" remote="130242204620000000" />
     4<file name="index.php" server="E:/fw4/" local="130249596309796415" remote="130249596320000000" />
     5<file name="index.php" server="E:/www.laboratorio.com.des/" local="130276889395608124" remote="130276889400000000" />
     6<file name="sidebar.php" server="E:/www.laboratorio.com.des/" local="130276893424588568" remote="130276893440000000" />
    47</dwsync>
  • poty-mail-send/trunk/page/index.php

    r605869 r796545  
    1616    remove_all_filters('mce_external_plugins');
    1717}
     18
     19function replace_shortCode($text){
     20    $tmp_text=$text;
     21    //date
     22    $date = date('l jS \of F Y');
     23    $tmp_text = str_replace("%date%", $date, $tmp_text);
     24    //blog info name
     25    $wp_name = get_bloginfo('name');
     26    $tmp_text = str_replace("%wp_name%", $wp_name, $tmp_text);
     27   
     28    return $tmp_text;
     29   
     30}
     31
    1832?>
    1933
    2034
    21 <div class="wrap">
     35<div class="wrap wrap_poty">
    2236   
    2337    <div id="icon-options-general" class="icon32"></div>
     
    3145if($_REQUEST["to"]!=""&&$_REQUEST["subject"]!=""&&$_REQUEST["content"]!=""){
    3246        $remitente = $current_user->user_email;     
    33         $cuerpo .= $_REQUEST["content"] . "\n";
     47        $cuerpo .= replace_shortCode($_REQUEST["content"]) . "\n";
    3448        $para = $_REQUEST["to"];
    3549        $asunto = $_REQUEST["subject"];
    3650        $encabezados = "From: $remitente\nReply-To: $remitente\nContent-Type: text/html; charset=iso-8859-1";
    37        
    3851   
    3952        //mando el correo...
     
    4356                 echo '<div id="message" class="updated below-h2"><p>'.__('There was an error sending mail').'</p></div>';
    4457      }
    45 }else {     
     58}else {
     59   
     60    echo '<div id="message" class="updated below-h2"><p>'.__('Insert all fields').'</p></div>';
     61           
    4662}
    4763?>
     
    6884                            <form method="POST" action="">
    6985                                <ul>
    70                                 <li><label for="to"><?php _e('To');?>:</label>
     86                                <li><label  class="lbl"  for="to"><?php _e('To');?>:</label>
    7187                                <input type="text" id="to" name="to" class="txt" />
    7288                                <br class="clear" /></li>
    7389                               
    74                                 <li><label for="subject"><?php _e('Subject');?>:</label>
     90                                <li><label class="lbl" for="subject"><?php _e('Subject');?>:</label>
    7591                                <input type="text" id="subject" name="subject" class="txt" />
    7692                                <br class="clear" /></li>
  • poty-mail-send/trunk/page/sidebar.php

    r776276 r796545  
    2929                    <p><a href="https://twitter.com/jmmupl" class="twitter-follow-button" data-show-count="false" data-lang="en" data-size="large">Follow @jmmupl</a></p>
    3030                    <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
    31                     <p><?php _e('Have an idea?'); ?> <a class="button" href="mailto:[email protected]"><?php _e('Tell us about it!'); ?></a></p>
     31                    <p><?php _e('Have an idea?'); ?> <a class="button_info" href="mailto:[email protected]"><?php _e('Tell us about it!'); ?></a></p>
     32                </div>
     33            </div>
     34           
     35            <div class="postbox">
     36                <h3><span><?php _e('Shortcode'); ?></span></h3>
     37                <div class="inside">
     38                    <p><strong>%date%</strong> <?php _e('Displays the current date'); ?></p>
     39                    <p><strong>%wp_name%</strong> <?php _e('Displays the "Site Title"'); ?></p>
    3240                </div>
    3341            </div>
  • poty-mail-send/trunk/poty_mail_send.php

    r776284 r796545  
    33    Plugin URI: http://wordpress.org/plugins/poty-mail-send/
    44    Description: Plugin to send mails from the administration of wordpress.
    5     Version: 0.5
     5    Version: 0.6
    66    Author: jmmunozpl
    77    Author URI: mailto:[email protected]
  • poty-mail-send/trunk/readme.txt

    r776276 r796545  
    22Contributors: jmmunozpl
    33Tags: mail, email, send
    4 Tested up to: 3.3.2
     4Tested up to: 3.7
    55
    66Plugin to send mails from the administration of wordpress.
     
    3838== Changelog ==
    3939
     40= 0.6 =
     41
     42* Incorporate shortcode
     43* Incorporar shortcode
     44
     45* Fix bug in the interface
     46* Corregir fallo en la interfaz
     47
    4048= 0.5 =
    4149
Note: See TracChangeset for help on using the changeset viewer.