Changeset 1714033
- Timestamp:
- 08/16/2017 10:15:31 AM (9 years ago)
- Location:
- fds-slider/trunk
- Files:
-
- 2 added
- 2 edited
-
it-progress_slider.php (modified) (6 diffs)
-
library (added)
-
library/func.php (added)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fds-slider/trunk/it-progress_slider.php
r1710286 r1714033 1 1 <?php /** 2 2 * @package it-progress_slider 3 * @version 0.2 3 * @version 0.2.1 4 4 */ 5 5 /* … … 8 8 Description: Простой плагин контента 9 9 Author: IT-progress 10 Version: 0.2 10 Version: 0.2.1 11 11 Author URI: http://it-progress71.ru/ 12 12 … … 38 38 39 39 define('itppsc_BACKGROUND', itppsc_PLUGIN_URL.'assets/img/default.jpg'); 40 40 /* Библиотеки */ 41 require_once itppsc_DIR . '/library/func.php'; 42 41 43 load_plugin_textdomain('it-progress_slider', false, itppsc_DIR . '/lang' ); 42 44 … … 67 69 'width' => '100%', 68 70 'background' => 'image', 69 'size' => '20' 71 'text_size' => '20', 72 'title_size' => '25', 73 'text_color' => '#fff', 74 'title_color' => '#fff', 75 'background_color' => '#000', 76 'background_opac' => '0.3' 70 77 ), $atts ); 71 78 if ($atts['background'] = 'image') { … … 101 108 102 109 wp_reset_postdata(); 103 110 $back_fon = itppsc_hex_to_rgb($atts['background_color']); 104 111 $setting_css = '<style> 105 112 .itppsc_main { … … 110 117 .itppsc_cont { 111 118 height: '. $atts['height'] .'px; 119 color: rgba('.$back_fon['red'].','.$back_fon['green'].','.$back_fon['blue'].','.$atts['background_opac'].'); 112 120 } 113 .itppsc_main .itppsc_cont .single_post p{ 114 font-size: '. $atts['size'] .'px; 121 .itppsc_main .itppsc_cont .itppsc_single_post p{ 122 font-size: '. $atts['text_size'] .'px; 123 color: ' . $atts['text_color'] . '; 124 } 125 .itppsc_main .itppsc_cont .itppsc_single_post span { 126 font-size: '. $atts['title_size'] .'px; 127 color: '.$atts['title_color'].'; 115 128 } 116 129 .itppsc_main .itppsc_cont .single_post { -
fds-slider/trunk/readme.txt
r1710286 r1714033 2 2 Contributors: Ôåäèí Äìèòðèé Ñåðãååâè÷ 3 3 Tags: slider, content, content slider, slider post, post 4 Requires at least: 0.24 Requires at least: 4.8 5 5 Tested up to: 4.8 6 6 Stable tag: 4.8 … … 27 27 28 28 = 0.2 = 29 30 = 0.2.1 = 31 32 Added ability to customize via shortcode: 33 34 - color and size of the text 35 - color and size of the title 36 - color change and background dimming background
Note: See TracChangeset
for help on using the changeset viewer.