Пример #1
0
    private function purchase_log_custom_fields()
    {
        if (wpsc_purchlogs_has_customfields()) {
            ?>
         <div class='metabox-holder'>
            <div id='purchlogs_customfields' class='postbox'>
               <h3 class='hndle'><?php 
            _e('Users Custom Fields', 'wpsc');
            ?>
</h3>
               <div class='inside'>
                  <?php 
            $messages = wpsc_purchlogs_custommessages();
            ?>
                  <?php 
            $files = wpsc_purchlogs_customfiles();
            ?>
                  <?php 
            if (count($files) > 0) {
                ?>
                     <h4><?php 
                _e('Cart Items with Custom Files', 'wpsc');
                ?>
:</h4>
                     <?php 
                foreach ($files as $file) {
                    echo $file;
                }
            }
            ?>
                  <?php 
            if (count($messages) > 0) {
                ?>
                     <h4><?php 
                _e('Cart Items with Custom Messages', 'wpsc');
                ?>
:</h4>
                     <?php 
                foreach ($messages as $message) {
                    echo $message;
                }
            }
            ?>
               </div>
            </div>
         </div>
      <?php 
        }
    }
Пример #2
0
    public function purchase_log_custom_fields()
    {
        if (wpsc_purchlogs_has_customfields()) {
            ?>
			<div class='metabox-holder'>
				<div id='purchlogs_customfields' class='postbox'>
					<h3 class='hndle'><?php 
            esc_html_e('Users Custom Fields', 'wp-e-commerce');
            ?>
</h3>
					<div class='inside'>
						<?php 
            $messages = wpsc_purchlogs_custommessages();
            ?>
						<?php 
            $files = wpsc_purchlogs_customfiles();
            ?>
						<?php 
            if (count($files) > 0) {
                ?>
							<h4><?php 
                esc_html_e('Cart Items with Custom Files', 'wp-e-commerce');
                ?>
:</h4>
							<?php 
                foreach ($files as $file) {
                    echo $file;
                }
            }
            ?>
						<?php 
            if (count($messages) > 0) {
                ?>
							<h4><?php 
                esc_html_e('Cart Items with Custom Messages', 'wp-e-commerce');
                ?>
:</h4>
							<?php 
                foreach ($messages as $message) {
                    echo esc_html($message['title']) . ':<br />' . nl2br(esc_html($message['message']));
                }
            }
            ?>
					</div>
				</div>
			</div>
		<?php 
        }
    }