Plugin Directory

Changeset 1910719


Ignore:
Timestamp:
07/18/2018 02:33:20 AM (8 years ago)
Author:
velathemes
Message:

version 1.0.5

Location:
vela-companion
Files:
87 added
2 edited

Legend:

Unmodified
Added
Removed
  • vela-companion/trunk/readme.txt

    r1910113 r1910719  
    3333== Changelog ==
    3434
     35= 1.0.5 =
     36* Added receiver email filter for Cactus theme
     37
    3538= 1.0.4 =
    3639* Fixed contact form issue
  • vela-companion/trunk/vela-companion.php

    r1910113 r1910719  
    55    Author: VelaThemes
    66    Author URI: https://velathemes.com/
    7     Version: 1.0.4
     7    Version: 1.0.5
    88    Text Domain: vela-companion
    99    Domain Path: /languages
     
    200200   
    201201        if(!isset($hasError)) {
     202           
    202203            $options = get_option('cactus_companion_options');
    203204           
     
    205206             $emailTo = $options['cactus_contact_form_email']; ;
    206207           }
    207            else{
     208           
     209           $emailTo = apply_filters( 'vela_contact_form_email', $emailTo );
     210           
     211           if( $emailTo == '' ){
    208212             $emailTo = get_option('admin_email');
    209             }
     213            }   
    210214           
    211215           if($emailTo !=""){
     216               
    212217                $body = "Name: $name \n\nEmail: $email \n\nMessage: $message";
    213218                $headers = 'From: '.$name.' <'.$emailTo.'>' . "\r\n" . 'Reply-To: ' . $email;
     
    216221                $emailSent = true;
    217222            }
     223           
    218224            echo json_encode(array("msg"=>__("Your message has been successfully sent!","vela-companion"),"error"=>0));
    219225           
     
    747753   
    748754   
    749     public static function replaceStar($str, $start, $length = 0)
    750     {
     755    public static function replaceStar($str, $start, $length = 0){
    751756      $i = 0;
    752757      $star = '';
Note: See TracChangeset for help on using the changeset viewer.