Version Description
- Fixed an issue where Featured Images may have become inadvertently disabled, props @deborre
Download this release
Release Info
Developer | jchristopher |
Plugin | Attachments |
Version | 3.5.1.1 |
Comparing to | |
See all releases |
Code changes from version 3.5.1 to 3.5.1.1
- README.md +1 -1
- classes/class.attachments.php +27 -3
- docs/changelog.md +3 -1
- index.php +1 -1
- readme.txt +15 -2
- views/options.php +61 -20
README.md
CHANGED
@@ -12,7 +12,7 @@ Attachments is based on the concept of Instances. An Attachments Instance can be
|
|
12 |
|
13 |
### Attachments UI
|
14 |
|
15 |
-
Some people prefer an interface whenever possible. To accommodate those developers, Attachments has an extension called [Attachments UI](https://mondaybynoon.com/members/plugins/attachments-ui
|
16 |
|
17 |
## Documentation
|
18 |
|
12 |
|
13 |
### Attachments UI
|
14 |
|
15 |
+
Some people prefer an interface whenever possible. To accommodate those developers, Attachments has an extension called [Attachments UI](https://mondaybynoon.com/members/plugins/attachments-ui/?utm_campaign=Attachments&utm_term=github%2breadme). Using this plugin, you don't have to write any code at all to define your Instances, and it even tosses out a customized code snippet tied directly to the Instance you just generated. It's a great way to get up and running very quickly. Further, there's also the option to auto-append your Attachments Instance assets to `the_content()` using an easy templating language.
|
16 |
|
17 |
## Documentation
|
18 |
|
classes/class.attachments.php
CHANGED
@@ -55,7 +55,7 @@ if( !class_exists( 'Attachments' ) ) :
|
|
55 |
global $_wp_additional_image_sizes;
|
56 |
|
57 |
// establish our environment variables
|
58 |
-
$this->version = '3.5.1';
|
59 |
$this->url = ATTACHMENTS_URL;
|
60 |
$this->dir = ATTACHMENTS_DIR;
|
61 |
$plugin = 'attachments/index.php';
|
@@ -75,6 +75,9 @@ if( !class_exists( 'Attachments' ) ) :
|
|
75 |
// add 'Extend' link
|
76 |
add_filter( "plugin_action_links_$plugin", array( $this, 'plugin_settings_link' ) );
|
77 |
|
|
|
|
|
|
|
78 |
// set up l10n
|
79 |
add_action( 'plugins_loaded', array( $this, 'l10n' ) );
|
80 |
|
@@ -106,7 +109,7 @@ if( !class_exists( 'Attachments' ) ) :
|
|
106 |
// execution of actions varies depending on whether we're in the admin or not and an instance was passed
|
107 |
if( is_admin() )
|
108 |
{
|
109 |
-
add_action( 'after_setup_theme', array( $this, 'apply_init_filters' ) );
|
110 |
$this->attachments = $this->get_attachments( $instance, $post_id );
|
111 |
}
|
112 |
elseif( !is_null( $instance ) )
|
@@ -119,9 +122,30 @@ if( !class_exists( 'Attachments' ) ) :
|
|
119 |
|
120 |
|
121 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
function plugin_settings_link( $links )
|
123 |
{
|
124 |
-
$
|
|
|
|
|
125 |
array_unshift( $links, $extend_link );
|
126 |
return $links;
|
127 |
}
|
55 |
global $_wp_additional_image_sizes;
|
56 |
|
57 |
// establish our environment variables
|
58 |
+
$this->version = '3.5.1.1';
|
59 |
$this->url = ATTACHMENTS_URL;
|
60 |
$this->dir = ATTACHMENTS_DIR;
|
61 |
$plugin = 'attachments/index.php';
|
75 |
// add 'Extend' link
|
76 |
add_filter( "plugin_action_links_$plugin", array( $this, 'plugin_settings_link' ) );
|
77 |
|
78 |
+
// add update message(s)
|
79 |
+
add_action( 'in_plugin_update_message-attachments/index.php', array( $this, 'update_message' ) );
|
80 |
+
|
81 |
// set up l10n
|
82 |
add_action( 'plugins_loaded', array( $this, 'l10n' ) );
|
83 |
|
109 |
// execution of actions varies depending on whether we're in the admin or not and an instance was passed
|
110 |
if( is_admin() )
|
111 |
{
|
112 |
+
add_action( 'after_setup_theme', array( $this, 'apply_init_filters' ), 999 );
|
113 |
$this->attachments = $this->get_attachments( $instance, $post_id );
|
114 |
}
|
115 |
elseif( !is_null( $instance ) )
|
122 |
|
123 |
|
124 |
|
125 |
+
/**
|
126 |
+
* Add notification about available Attachments extensions
|
127 |
+
*/
|
128 |
+
function update_message()
|
129 |
+
{ ?>
|
130 |
+
<div style="margin-top:10px;padding-top:8px;border-top:1px solid #eaeaea;"><span style="color:#f00;"><?php _e( 'Attachments Extensions Available!', 'attachments' ); ?></span> <span style="font-weight:normal;"><?php _e( 'These utilities make working with Attachments even easier!', 'attachments' ); ?></span></div>
|
131 |
+
<div style="font-weight:normal;padding-top:8px;">
|
132 |
+
<p><strong><a href="https://mondaybynoon.com/members/plugins/attachments-ui/?utm_campaign=Attachments&utm_term=Upgrade%2bNotice">Attachments UI</a></strong> - <?php _e( 'Create Attachments Instances with an easy-to-use UI, easily limit meta box locations with fine grained control (e.g. Home page only), and more.', 'attachments' ); ?></p>
|
133 |
+
</div>
|
134 |
+
<?php }
|
135 |
+
|
136 |
+
|
137 |
+
|
138 |
+
/**
|
139 |
+
* Customize the links on the Plugins list page
|
140 |
+
*
|
141 |
+
* @param $links
|
142 |
+
* @return mixed
|
143 |
+
*/
|
144 |
function plugin_settings_link( $links )
|
145 |
{
|
146 |
+
$settings_link = '<a href="options-general.php?page=attachments">'. __( 'Settings', 'attachments' ) . '</a>';
|
147 |
+
array_unshift( $links, $settings_link );
|
148 |
+
$extend_link = '<a href="https://mondaybynoon.com/members/plugins/?utm_campaign=Attachments&utm_term=Plugins%2bExtend#attachments">'. __( 'Extend', 'attachments' ) . '</a>';
|
149 |
array_unshift( $links, $extend_link );
|
150 |
return $links;
|
151 |
}
|
docs/changelog.md
CHANGED
@@ -3,6 +3,8 @@ This is a WordPress plugin. [Official download available on WordPress.org](http:
|
|
3 |
## [Docs TOC](TOC.md) / Changelog
|
4 |
|
5 |
<dl>
|
|
|
|
|
6 |
|
7 |
<dt>3.5.1</dt>
|
8 |
<dd>Fixed an issue where changing an Attachment changed all attachments</dd>
|
@@ -13,7 +15,7 @@ This is a WordPress plugin. [Official download available on WordPress.org](http:
|
|
13 |
<dd>You can now change an Attachment asset without having to remove the entire Attachment and re-add something new</dd>
|
14 |
<dd>New filter: <code>attachments_location_{my_instance}</code> (where <code><strong>{my_instance}</strong></code> is your instance name) allows for more fine-grained control over where meta boxes show up (e.g. limiting to your Home page)</dd>
|
15 |
<dd>New action: <code>attachments_extension</code> facilitates Attachments extensions</dd>
|
16 |
-
<dd>New extension: <a href="http://mondaybynoon.com/members/plugins/attachments-ui
|
17 |
<dd>New method <code>width( $size )</code> to retrieve the width of the current Attachment</dd>
|
18 |
<dd>New method <code>height( $size )</code> to retrieve the height of the current Attachment</dd>
|
19 |
<dd>New document structure, various additions to documentation</dd>
|
3 |
## [Docs TOC](TOC.md) / Changelog
|
4 |
|
5 |
<dl>
|
6 |
+
<dt>3.5.1.1</dt>
|
7 |
+
<dd>Fixed an issue where Featured Images may have become inadvertently disabled, props @deborre</dd>
|
8 |
|
9 |
<dt>3.5.1</dt>
|
10 |
<dd>Fixed an issue where changing an Attachment changed all attachments</dd>
|
15 |
<dd>You can now change an Attachment asset without having to remove the entire Attachment and re-add something new</dd>
|
16 |
<dd>New filter: <code>attachments_location_{my_instance}</code> (where <code><strong>{my_instance}</strong></code> is your instance name) allows for more fine-grained control over where meta boxes show up (e.g. limiting to your Home page)</dd>
|
17 |
<dd>New action: <code>attachments_extension</code> facilitates Attachments extensions</dd>
|
18 |
+
<dd>New extension: <a href="http://mondaybynoon.com/members/plugins/attachments-ui/?utm_campaign=Attachments&utm_term=changelog">Attachments UI</a> to create "code-free" Instances in the WordPress admin</dd>
|
19 |
<dd>New method <code>width( $size )</code> to retrieve the width of the current Attachment</dd>
|
20 |
<dd>New method <code>height( $size )</code> to retrieve the height of the current Attachment</dd>
|
21 |
<dd>New document structure, various additions to documentation</dd>
|
index.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Description: Attachments gives the ability to append any number of Media Library items to Pages, Posts, and Custom Post Types
|
7 |
* Author: Jonathan Christopher
|
8 |
* Author URI: http://mondaybynoon.com/
|
9 |
-
* Version: 3.5.1
|
10 |
* Text Domain: attachments
|
11 |
* Domain Path: /languages/
|
12 |
* License: GPLv2 or later
|
6 |
* Description: Attachments gives the ability to append any number of Media Library items to Pages, Posts, and Custom Post Types
|
7 |
* Author: Jonathan Christopher
|
8 |
* Author URI: http://mondaybynoon.com/
|
9 |
+
* Version: 3.5.1.1
|
10 |
* Text Domain: attachments
|
11 |
* Domain Path: /languages/
|
12 |
* License: GPLv2 or later
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://mondaybynoon.com/donate/
|
|
4 |
Tags: post, page, posts, pages, images, PDF, doc, Word, image, jpg, jpeg, picture, pictures, photos, attachment
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.6
|
7 |
-
Stable tag: 3.5.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -14,7 +14,11 @@ Attachments allows you to simply append any number of items from your WordPress
|
|
14 |
|
15 |
**Extensive** usage instructions are [available on GitHub](https://github.com/jchristopher/attachments/#attachments)
|
16 |
|
17 |
-
Attachments allows you to simply append any number of items from your WordPress Media Library to Posts, Pages, and Custom Post Types.
|
|
|
|
|
|
|
|
|
18 |
|
19 |
= Associate Media items with posts =
|
20 |
|
@@ -67,6 +71,12 @@ Version 3 is a *major* rewrite. While I've taken precautions in ensuring you won
|
|
67 |
|
68 |
== Frequently Asked Questions ==
|
69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
Please see [Issues on GitHub](https://github.com/jchristopher/attachments/issues)
|
71 |
|
72 |
== Screenshots ==
|
@@ -81,6 +91,9 @@ Please see [Issues on GitHub](https://github.com/jchristopher/attachments/issues
|
|
81 |
|
82 |
Please see [Attachments' changelog on GitHub](https://github.com/jchristopher/attachments/docs/changelog.md)
|
83 |
|
|
|
|
|
|
|
84 |
= 3.5.1 =
|
85 |
* Fixed an issue where changing an Attachment changed all attachments, props @bartoszwww
|
86 |
* Fixed an issue where certain Unicode characters weren't decoded properly, props @stuk88
|
4 |
Tags: post, page, posts, pages, images, PDF, doc, Word, image, jpg, jpeg, picture, pictures, photos, attachment
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.6
|
7 |
+
Stable tag: 3.5.1.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
14 |
|
15 |
**Extensive** usage instructions are [available on GitHub](https://github.com/jchristopher/attachments/#attachments)
|
16 |
|
17 |
+
Attachments allows you to simply append any number of items from your WordPress Media Library to Posts, Pages, and Custom Post Types.
|
18 |
+
|
19 |
+
= Extend Attachments with add-ons =
|
20 |
+
|
21 |
+
This plugin *does not* directly interact with your theme, you will need to edit your template files. If you prefer working with a UI, take a look at <a href="https://mondaybynoon.com/members/plugins/attachments-ui/?utm_campaign=Attachments&utm_term=wp%2breadme">Attachments UI</a>
|
22 |
|
23 |
= Associate Media items with posts =
|
24 |
|
71 |
|
72 |
== Frequently Asked Questions ==
|
73 |
|
74 |
+
= How do I customize this plugin? =
|
75 |
+
|
76 |
+
Please use [Attachments UI](https://mondaybynoon.com/members/plugins/attachments-ui/?utm_campaign=Attachments&utm_term=wp%2breadme%2bFAQ) or see the [documentation](https://github.com/jchristopher/attachments#documentation)
|
77 |
+
|
78 |
+
= This doesn't answer my question =
|
79 |
+
|
80 |
Please see [Issues on GitHub](https://github.com/jchristopher/attachments/issues)
|
81 |
|
82 |
== Screenshots ==
|
91 |
|
92 |
Please see [Attachments' changelog on GitHub](https://github.com/jchristopher/attachments/docs/changelog.md)
|
93 |
|
94 |
+
= 3.5.1.1 =
|
95 |
+
* Fixed an issue where Featured Images may have become inadvertently disabled, props @deborre
|
96 |
+
|
97 |
= 3.5.1 =
|
98 |
* Fixed an issue where changing an Attachment changed all attachments, props @bartoszwww
|
99 |
* Fixed an issue where certain Unicode characters weren't decoded properly, props @stuk88
|
views/options.php
CHANGED
@@ -54,11 +54,11 @@
|
|
54 |
|
55 |
<h3><?php _e( 'Setting up Instances', 'attachments' ); ?></h3>
|
56 |
|
57 |
-
<p><?php _e( 'Attachments 3.0 ships with what are called <em>instances</em>. An instance is equivalent to a meta box on an edit screen and it has a number of properties you can customize. Please read the README for more information.', 'attachments' ); ?> <a href="https://github.com/jchristopher/attachments
|
58 |
|
59 |
<h3><?php _e( 'Retrieving Attachments in your theme', 'attachments' ); ?></h3>
|
60 |
|
61 |
-
<p><?php _e( 'As always has been the case with Attachments, editing your theme files is required. The syntax to do so has changed in Attachments 3.0. Please read the', 'attachments' ); ?> <a href="https://github.com/jchristopher/attachments
|
62 |
|
63 |
<form action="options-general.php" method="get">
|
64 |
<input type="hidden" name="page" value="attachments" />
|
@@ -108,7 +108,13 @@
|
|
108 |
<p><?php _e( 'Attachments has found records from version 1.x. Would you like to migrate them to version 3?', 'attachments' ); ?></p>
|
109 |
<p><a href="?page=attachments&migrate=1&nonce=<?php echo wp_create_nonce( 'attachments-migrate-1' ); ?>" class="button-primary button"><?php _e( 'Migrate legacy data', 'attachments' ); ?></a></p>
|
110 |
<?php elseif( true == get_option( 'attachments_migrated' ) ) : ?>
|
111 |
-
<p
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
<?php endif; ?>
|
113 |
|
114 |
<?php if( false == get_option( 'attachments_pro_migrated' ) && $legacy->legacy_pro ) : ?>
|
@@ -116,25 +122,60 @@
|
|
116 |
<p><?php _e( 'Attachments has found records stored in Attachments Pro. Would you like to migrate them to Attachments?', 'attachments' ); ?></p>
|
117 |
<p><a href="?page=attachments&migrate-pro=1&nonce=<?php echo wp_create_nonce( 'attachments-pro-migrate-1' ); ?>" class="button-primary button"><?php _e( 'Migrate Attachments Pro data', 'attachments' ); ?></a></p>
|
118 |
<?php elseif( true == get_option( 'attachments_pro_migrated' ) ) : ?>
|
119 |
-
<p
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
<
|
|
|
|
|
|
|
|
|
|
|
124 |
<?php endif; ?>
|
125 |
|
126 |
-
<h2><?php _e( '
|
127 |
-
<p
|
128 |
-
<
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
<?php }
|
138 |
?>
|
139 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
</div>
|
54 |
|
55 |
<h3><?php _e( 'Setting up Instances', 'attachments' ); ?></h3>
|
56 |
|
57 |
+
<p><?php _e( 'Attachments 3.0 ships with what are called <em>instances</em>. An instance is equivalent to a meta box on an edit screen and it has a number of properties you can customize. Please read the README for more information.', 'attachments' ); ?> <a href="https://github.com/jchristopher/attachments/#attachments"><?php _e( 'Additional instructions', 'attachments' ); ?>.</a></p>
|
58 |
|
59 |
<h3><?php _e( 'Retrieving Attachments in your theme', 'attachments' ); ?></h3>
|
60 |
|
61 |
+
<p><?php _e( 'As always has been the case with Attachments, editing your theme files is required. The syntax to do so has changed in Attachments 3.0. Please read the', 'attachments' ); ?> <a href="https://github.com/jchristopher/attachments/#attachments"><?php _e( 'Additional instructions', 'attachments' ); ?></a>.</p>
|
62 |
|
63 |
<form action="options-general.php" method="get">
|
64 |
<input type="hidden" name="page" value="attachments" />
|
108 |
<p><?php _e( 'Attachments has found records from version 1.x. Would you like to migrate them to version 3?', 'attachments' ); ?></p>
|
109 |
<p><a href="?page=attachments&migrate=1&nonce=<?php echo wp_create_nonce( 'attachments-migrate-1' ); ?>" class="button-primary button"><?php _e( 'Migrate legacy data', 'attachments' ); ?></a></p>
|
110 |
<?php elseif( true == get_option( 'attachments_migrated' ) ) : ?>
|
111 |
+
<p>
|
112 |
+
<?php _e( 'You have already migrated your legacy Attachments data.', 'attachments' ); ?>
|
113 |
+
<a class="attachments-toggle-trigger" href="#migrated-legacy"><?php _e( 'View more', 'attachments' ); ?></a>
|
114 |
+
</p>
|
115 |
+
<div id="migrated-legacy" class="attachments-toggle-target" style="display:none;">
|
116 |
+
<p>Your legacy Attachments data has been migrated.</p>
|
117 |
+
</div>
|
118 |
<?php endif; ?>
|
119 |
|
120 |
<?php if( false == get_option( 'attachments_pro_migrated' ) && $legacy->legacy_pro ) : ?>
|
122 |
<p><?php _e( 'Attachments has found records stored in Attachments Pro. Would you like to migrate them to Attachments?', 'attachments' ); ?></p>
|
123 |
<p><a href="?page=attachments&migrate-pro=1&nonce=<?php echo wp_create_nonce( 'attachments-pro-migrate-1' ); ?>" class="button-primary button"><?php _e( 'Migrate Attachments Pro data', 'attachments' ); ?></a></p>
|
124 |
<?php elseif( true == get_option( 'attachments_pro_migrated' ) ) : ?>
|
125 |
+
<p>
|
126 |
+
<?php _e( 'You have already migrated your Attachments Pro data.', 'attachments' ); ?>
|
127 |
+
<a class="attachments-toggle-trigger" href="#migrated-legacy-pro"><?php _e( 'View more', 'attachments' ); ?></a>
|
128 |
+
</p>
|
129 |
+
<div id="migrated-legacy-pro" class="attachments-toggle-target" style="display:none;">
|
130 |
+
<h2><?php _e( 'Moving from Attachments Pro: required code for your functions.php', 'attachments' ); ?></h2>
|
131 |
+
<textarea style="display:block; width:100%; font-family:monospace; height:300px;"><?php echo get_option( 'attachments_pro_functions '); ?></textarea>
|
132 |
+
<h2><?php _e( 'Moving from Attachments Pro: starter code for your theme templates', 'attachments' ); ?></h2>
|
133 |
+
<textarea style="display:block; width:100%; font-family:monospace; height:200px;"><?php echo get_option( 'attachments_pro_template '); ?></textarea>
|
134 |
+
</div>
|
135 |
<?php endif; ?>
|
136 |
|
137 |
+
<h2><?php _e( 'Usage', 'attachments' ); ?></h2>
|
138 |
+
<p>Full usage instructions are provided in <a href="">the official documentation</a>. You can also view the <a class="attachments-toggle-trigger" href="#usage">abridged version</a>.</p>
|
139 |
+
<div id="usage" class="attachments-toggle-target" style="display:none;">
|
140 |
+
<h2><?php _e( 'Revert to version 1.x', 'attachments' ); ?></h2>
|
141 |
+
<p><?php _e( 'If you would like to forcefully revert to the 1.x version branch of Attachments, add the following to your', 'attachments' ); ?> <code>wp-config.php</code>:</p>
|
142 |
+
<p><code>define( 'ATTACHMENTS_LEGACY', true );</code></p>
|
143 |
+
<h2><?php _e( 'Meta box customization', 'attachments' ); ?></h2>
|
144 |
+
<p><?php _e( 'Attachments requires manual creation of meta boxes using code outlined in the documentation. If you would prefer a UI for managing Attachments Instances, please see', 'attachments' ); ?> <a href="https://mondaybynoon.com/members/plugins/attachments-ui/?utm_campaign=Attachments&utm_term=Settings">Attachments UI</a>. <?php _e( 'By default, Attachments implements a single meta box on Posts and Pages with two fields. You can disable this default instance by adding the following to your', 'attachments' ); ?> <code>wp-config.php</code>:</p>
|
145 |
+
<p><code>define( 'ATTACHMENTS_DEFAULT_INSTANCE', false );</code></p>
|
146 |
+
<p><?php _e( "Your Attachments meta box(es) can be customized by adding the following to your theme's", 'attachments' ); ?> <code>functions.php</code>:</p>
|
147 |
+
<script src="https://gist.github.com/4217475.js"> </script>
|
148 |
+
<h2><?php _e( 'Using Attachments data in your theme', 'attachments' ); ?></h2>
|
149 |
+
<p><?php _e( "Attachments does not directly integrate with your theme out of the box, you will need to edit your theme's template files where appropriate. You can add the following within The Loop to retrieve all Attachments data for the current post:", 'attachments' ); ?></p>
|
150 |
+
<script src="https://gist.github.com/4217483.js"> </script>
|
151 |
+
</div>
|
152 |
+
|
153 |
+
<h2><?php _e( 'Extend Attachments', 'attachments' ); ?></h2>
|
154 |
+
<p><?php _e( 'Attachments can be extended using any number of the items listed here.', 'attachmentsui' ); ?></p>
|
155 |
+
<p><strong style="font-size:1.4em;display:block;padding:10px 0;"><a href="https://mondaybynoon.com/members/plugins/attachments-ui/?utm_campaign=Attachments&utm_term=Settings">Attachments UI</a></strong>
|
156 |
+
<?php _e( 'Attachments is a code-focused plugin, meaning it essentially has no UI. If you prefer using a UI with Attachments, Attachments UI is for you. Features include:', 'attachments' ); ?></p>
|
157 |
+
<ul style="list-style:disc;padding-left:40px">
|
158 |
+
<li><?php _e( 'Visually create Instances from within the WordPress admin', 'attachments' ); ?></li>
|
159 |
+
<li><?php _e( 'Fine-grained control over which edit screens each Instance appears on (e.g. limited to Home page)', 'attachments' ); ?></li>
|
160 |
+
<li><?php _e( 'Auto-append Attachments content to posts using an easy to understand template system', 'attachments' ); ?></li>
|
161 |
+
<li><?php _e( 'Automatic, custom code snippets to copy, paste, and customize', 'attachments' ); ?></li>
|
162 |
+
<li><a href="https://mondaybynoon.com/members/plugins/attachments-ui/?utm_campaign=Attachments&utm_term=Settings"><?php _e( 'More information', 'attachments' ); ?></a></li>
|
163 |
+
</ul>
|
164 |
<?php }
|
165 |
?>
|
166 |
+
<script type="text/javascript">
|
167 |
+
jQuery(document).ready(function($){
|
168 |
+
$('.attachments-toggle-target').hide();
|
169 |
+
$('a.attachments-toggle-trigger').click(function(){
|
170 |
+
var $this = $(this);
|
171 |
+
var $target = $($this.attr('href'));
|
172 |
+
if($target.is(':visible')){
|
173 |
+
$target.hide();
|
174 |
+
}else{
|
175 |
+
$target.show();
|
176 |
+
}
|
177 |
+
return false;
|
178 |
+
});
|
179 |
+
});
|
180 |
+
</script>
|
181 |
</div>
|