~jacekn/wordpress/wp-plugin-swift-storage-migrate-swf

« back to all changes in this revision

Viewing changes to view/settings.php

  • Committer: Nick Moffitt
  • Date: 2015-01-20 16:41:18 UTC
  • mfrom: (4.1.1 wp-plugin-swift-storage)
  • Revision ID: nick.moffitt@canonical.com-20150120164118-iokvihuzzhismia7
merge jacekn's php changes to the settings page and path fix

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
<tr valign="top">
61
61
        <td>
62
62
                <input type="hidden" name="object-prefix" value="<?php echo esc_attr( $this->swift_get_setting( 'object-prefix' ) ); ?>" size="30" />
63
 
                <label><?php echo trailingslashit( $this->swift_get_dynamic_prefix() ); ?></label><br>
64
63
                <label><?php _e( 'Swift URL:', 'swift' ); ?></label>&nbsp;&nbsp;
65
 
                <input type="text" name="swift-url" value="<?php echo esc_attr( $this->swift_get_setting( 'swift-url' ) ); ?>" size="30" />
 
64
                <input type="text" name="swift-url" value="<?php echo esc_attr( $this->swift_get_setting( 'swift-url' ) ); ?>" size="80" />
66
65
        </td>
67
66
</tr>
68
67
 
69
68
<tr valign="top">
 
69
    <td>
 
70
        <label><?php _e( 'Media URLs will look like: ', 'swift' ); echo get_site_url() . '/' . esc_attr( $this->swift_get_setting('object-prefix')) ; ?> </label><br>
 
71
        <label><?php _e( 'And will be proxied to: ', 'swift' ); echo esc_attr( $this->swift_get_setting('swift-url')) . '/' . esc_attr($bucket['name']) . '/' . esc_attr( $this->swift_get_setting('object-prefix')) ; ?></label>
 
72
    </td>
 
73
</tr>
 
74
 
 
75
<tr valign="top">
70
76
        <td>
71
77
                <h3><?php _e( 'Plugin Settings', 'swift' ); ?></h3>
72
78