Version Description
Download this release
Release Info
Developer | cbaldelomar |
Plugin | Shortcodes by Angie Makes |
Version | 3.27 |
Comparing to | |
See all releases |
Code changes from version 3.26 to 3.27
- README.md +4 -0
- public/class-register.php +8 -1
- public/class-sanitize.php +6 -0
- public/class-vars.php +3 -1
- public/widgets/widget-image-links.php +9 -1
- readme.txt +4 -0
- wc-shortcodes.php +1 -1
README.md
CHANGED
@@ -106,6 +106,10 @@ See our help article on [how to manually upload a plugin](http://knowledgebase.a
|
|
106 |
|
107 |
## Changelog ##
|
108 |
|
|
|
|
|
|
|
|
|
109 |
### Version 3.26 ###
|
110 |
|
111 |
* Added featured posts widget
|
106 |
|
107 |
## Changelog ##
|
108 |
|
109 |
+
### Version 3.27 ###
|
110 |
+
|
111 |
+
* Added color options for image links
|
112 |
+
|
113 |
### Version 3.26 ###
|
114 |
|
115 |
* Added featured posts widget
|
public/class-register.php
CHANGED
@@ -1566,7 +1566,14 @@ class WPC_Shortcodes_Register extends WPC_Shortcodes_Vars {
|
|
1566 |
|
1567 |
$text = '';
|
1568 |
if ( isset( $atts['text_'.$i] ) && ! empty ( $atts['text_'.$i] ) ) {
|
1569 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1570 |
}
|
1571 |
|
1572 |
$html .= '<a class="wc-shortcodes-image-link wc-shortcodes-image-link-'.$i.'" href="' . esc_url( $atts['url_'.$i] ) . '">';
|
1566 |
|
1567 |
$text = '';
|
1568 |
if ( isset( $atts['text_'.$i] ) && ! empty ( $atts['text_'.$i] ) ) {
|
1569 |
+
$text_style = array();
|
1570 |
+
if ( ! empty( $atts['text_color'] ) ) {
|
1571 |
+
$text_style[] = 'color:'.$atts['text_color'];
|
1572 |
+
}
|
1573 |
+
if ( ! empty( $atts['background_color'] ) ) {
|
1574 |
+
$text_style[] = 'background-color:'.$atts['background_color'];
|
1575 |
+
}
|
1576 |
+
$text = '<div class="wc-shortcodes-image-link-text"><'.$atts['heading_type'].' class="wc-shortcodes-image-links-heading" style="' . implode( ';', $text_style ) . '">' . $atts['text_'.$i] . '</'.$atts['heading_type'].'></div>';
|
1577 |
}
|
1578 |
|
1579 |
$html .= '<a class="wc-shortcodes-image-link wc-shortcodes-image-link-'.$i.'" href="' . esc_url( $atts['url_'.$i] ) . '">';
|
public/class-sanitize.php
CHANGED
@@ -846,6 +846,12 @@ class WPC_Shortcodes_Sanitize {
|
|
846 |
case 'heading_type' :
|
847 |
$atts[ $key ] = self::heading_type( $value );
|
848 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
849 |
case 'class' :
|
850 |
$atts[ $key ] = self::html_classes( $value );
|
851 |
break;
|
846 |
case 'heading_type' :
|
847 |
$atts[ $key ] = self::heading_type( $value );
|
848 |
break;
|
849 |
+
case 'text_color' :
|
850 |
+
$atts[ $key ] = self::hex_color( $value );
|
851 |
+
break;
|
852 |
+
case 'background_color' :
|
853 |
+
$atts[ $key ] = self::hex_color( $value );
|
854 |
+
break;
|
855 |
case 'class' :
|
856 |
$atts[ $key ] = self::html_classes( $value );
|
857 |
break;
|
public/class-vars.php
CHANGED
@@ -8,7 +8,7 @@ class WPC_Shortcodes_Vars {
|
|
8 |
*
|
9 |
* @var string
|
10 |
*/
|
11 |
-
const VERSION = '3.
|
12 |
const DB_VERSION = '1.0';
|
13 |
|
14 |
/**
|
@@ -343,6 +343,8 @@ class WPC_Shortcodes_Vars {
|
|
343 |
// settings
|
344 |
'text_position' => 'center',
|
345 |
'heading_type' => 'h3',
|
|
|
|
|
346 |
'height' => '250px',
|
347 |
'class' => '',
|
348 |
);
|
8 |
*
|
9 |
* @var string
|
10 |
*/
|
11 |
+
const VERSION = '3.27';
|
12 |
const DB_VERSION = '1.0';
|
13 |
|
14 |
/**
|
343 |
// settings
|
344 |
'text_position' => 'center',
|
345 |
'heading_type' => 'h3',
|
346 |
+
'text_color' => '',
|
347 |
+
'background_color' => '',
|
348 |
'height' => '250px',
|
349 |
'class' => '',
|
350 |
);
|
public/widgets/widget-image-links.php
CHANGED
@@ -92,6 +92,14 @@ class WPC_Shortcodes_Widget_Image_Links extends WP_Widget {
|
|
92 |
<?php endforeach; ?>
|
93 |
</select>
|
94 |
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
<p>
|
96 |
<label for="<?php echo $this->get_field_id('height'); ?>"><?php _e('Height:') ?></label>
|
97 |
<input type="text" class="wc-shortcodes-widget-option widefat" id="<?php echo $this->get_field_id('height'); ?>" name="<?php echo $this->get_field_name('height'); ?>" value="<?php echo $o['height']; ?>" />
|
@@ -108,7 +116,7 @@ class WPC_Shortcodes_Widget_Image_Links extends WP_Widget {
|
|
108 |
<script type="text/javascript">
|
109 |
/* <![CDATA[ */
|
110 |
jQuery(document).ready(function($){
|
111 |
-
$('#wc-shortcodes-image-links-widget-<?php echo $this->number; ?>').accordion({heightStyle: "content", collapsible: true});
|
112 |
});
|
113 |
/* ]]> */
|
114 |
</script>
|
92 |
<?php endforeach; ?>
|
93 |
</select>
|
94 |
</p>
|
95 |
+
<p>
|
96 |
+
<label for="<?php echo $this->get_field_id('text_color'); ?>"><?php _e('Text Color:') ?></label><br />
|
97 |
+
<input type="text" class="wc-shortcodes-widget-option widefat wc-shortcodes-widget-color-picker" id="<?php echo $this->get_field_id('text_color'); ?>" name="<?php echo $this->get_field_name('text_color'); ?>" value="<?php echo $o['text_color']; ?>" />
|
98 |
+
</p>
|
99 |
+
<p>
|
100 |
+
<label for="<?php echo $this->get_field_id('background_color'); ?>"><?php _e('Background Color:') ?></label><br />
|
101 |
+
<input type="text" class="wc-shortcodes-widget-option widefat wc-shortcodes-widget-color-picker" id="<?php echo $this->get_field_id('background_color'); ?>" name="<?php echo $this->get_field_name('background_color'); ?>" value="<?php echo $o['background_color']; ?>" />
|
102 |
+
</p>
|
103 |
<p>
|
104 |
<label for="<?php echo $this->get_field_id('height'); ?>"><?php _e('Height:') ?></label>
|
105 |
<input type="text" class="wc-shortcodes-widget-option widefat" id="<?php echo $this->get_field_id('height'); ?>" name="<?php echo $this->get_field_name('height'); ?>" value="<?php echo $o['height']; ?>" />
|
116 |
<script type="text/javascript">
|
117 |
/* <![CDATA[ */
|
118 |
jQuery(document).ready(function($){
|
119 |
+
$('#wc-shortcodes-image-links-widget-<?php echo $this->number; ?>').accordion({heightStyle: "content", collapsible: true}).wcColorPickerWidget();
|
120 |
});
|
121 |
/* ]]> */
|
122 |
</script>
|
readme.txt
CHANGED
@@ -113,6 +113,10 @@ See our help article on [how to manually upload a plugin](http://knowledgebase.a
|
|
113 |
|
114 |
== Changelog ==
|
115 |
|
|
|
|
|
|
|
|
|
116 |
= Version 3.26 =
|
117 |
|
118 |
* Added featured posts widget
|
113 |
|
114 |
== Changelog ==
|
115 |
|
116 |
+
= Version 3.27 =
|
117 |
+
|
118 |
+
* Added color options for image links
|
119 |
+
|
120 |
= Version 3.26 =
|
121 |
|
122 |
* Added featured posts widget
|
wc-shortcodes.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://angiemakes.com/feminine-wordpress-blog-themes-women/
|
|
5 |
Description: A plugin that adds a useful family of shortcodes to your WordPress theme.
|
6 |
Author: Chris Baldelomar
|
7 |
Author URI: http://angiemakes.com/
|
8 |
-
Version: 3.
|
9 |
License: GPLv2 or later
|
10 |
*/
|
11 |
|
5 |
Description: A plugin that adds a useful family of shortcodes to your WordPress theme.
|
6 |
Author: Chris Baldelomar
|
7 |
Author URI: http://angiemakes.com/
|
8 |
+
Version: 3.27
|
9 |
License: GPLv2 or later
|
10 |
*/
|
11 |
|