Basic implementation event signup
This commit is contained in:
		
							
								
								
									
										36
									
								
								modules/event-participants/Templates/compose-email.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								modules/event-participants/Templates/compose-email.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,36 @@
 | 
			
		||||
 | 
			
		||||
<h2>
 | 
			
		||||
    <?= __('Send Email', BDP_LV_PLUGIN_SLUG); ?>
 | 
			
		||||
</h2>
 | 
			
		||||
<form method="post" action="admin.php?page=kompass-mail" style="width: 80%; margin: auto">
 | 
			
		||||
    <table style="width: 100%">
 | 
			
		||||
        <input type="hidden" name="action" value="send-email" />
 | 
			
		||||
        <tr>
 | 
			
		||||
            <td><?= __('From: ', BDP_LV_PLUGIN_SLUG); ?></td>
 | 
			
		||||
            <td><input type="text" name="mail-from" style="width: 100%"></td>
 | 
			
		||||
        </tr>
 | 
			
		||||
        <tr>
 | 
			
		||||
            <td><?= __('To: ', BDP_LV_PLUGIN_SLUG); ?></td>
 | 
			
		||||
            <td><input type="text" name="mail-to" style="width: 100%"></td>
 | 
			
		||||
        </tr>
 | 
			
		||||
        <tr>
 | 
			
		||||
            <td><?= __('Subject: ', BDP_LV_PLUGIN_SLUG); ?></td>
 | 
			
		||||
            <td><input type="text" name="mail-subject" style="width: 100%"></td>
 | 
			
		||||
        </tr>
 | 
			
		||||
    </table>
 | 
			
		||||
    <?php
 | 
			
		||||
 | 
			
		||||
    $args = array(
 | 
			
		||||
            'textarea_name' => 'mail-text',
 | 
			
		||||
            'media_buttons' => false,
 | 
			
		||||
            'tinymce'       => array(
 | 
			
		||||
                'toolbar1'      => 'bold,italic,underline,separator,alignleft,aligncenter,alignright,separator,link,unlink,undo,redo',
 | 
			
		||||
                'toolbar2'      => '',
 | 
			
		||||
                'toolbar3'      => '',
 | 
			
		||||
            ),
 | 
			
		||||
    );
 | 
			
		||||
 | 
			
		||||
    wp_editor( '', 'kompass-mailcomposer', $args );
 | 
			
		||||
    submit_button(__('Send email', BDP_LV_PLUGIN_SLUG));
 | 
			
		||||
    ?>
 | 
			
		||||
</form>
 | 
			
		||||
		Reference in New Issue
	
	Block a user