Changeset 2082430
- Timestamp:
- 05/07/2019 01:22:02 PM (7 years ago)
- Location:
- color-system-visualizer
- Files:
-
- 64 added
- 3 edited
-
tags/1.1 (added)
-
tags/1.1/color-system-visualizer.php (added)
-
tags/1.1/gpl-3.0.txt (added)
-
tags/1.1/includes (added)
-
tags/1.1/includes/cpm-archive-template.php (added)
-
tags/1.1/includes/cpm-single-template.php (added)
-
tags/1.1/includes/cpm_enqueue_files.php (added)
-
tags/1.1/includes/cpm_functions.php (added)
-
tags/1.1/includes/cpm_import_export.php (added)
-
tags/1.1/includes/cpm_menus.php (added)
-
tags/1.1/includes/cpm_meta_boxes.php (added)
-
tags/1.1/includes/cpm_plugin_options.php (added)
-
tags/1.1/includes/cpm_post_type.php (added)
-
tags/1.1/includes/cpm_template_register.php (added)
-
tags/1.1/includes/css (added)
-
tags/1.1/includes/css/bootstrap.min.css (added)
-
tags/1.1/includes/css/cpm_deafault.css (added)
-
tags/1.1/includes/css/images (added)
-
tags/1.1/includes/css/images/128 (added)
-
tags/1.1/includes/css/images/128/bar-alpha.png (added)
-
tags/1.1/includes/css/images/128/bar.png (added)
-
tags/1.1/includes/css/images/128/map.png (added)
-
tags/1.1/includes/css/images/bar-alpha.png (added)
-
tags/1.1/includes/css/images/bar-opacity.png (added)
-
tags/1.1/includes/css/images/bar-pointer.png (added)
-
tags/1.1/includes/css/images/bar.png (added)
-
tags/1.1/includes/css/images/favicon.png (added)
-
tags/1.1/includes/css/images/logotype-a.png (added)
-
tags/1.1/includes/css/images/logotype-b.png (added)
-
tags/1.1/includes/css/images/map-opacity.png (added)
-
tags/1.1/includes/css/images/map-pointer.png (added)
-
tags/1.1/includes/css/images/map.png (added)
-
tags/1.1/includes/css/images/preview-opacity.png (added)
-
tags/1.1/includes/css/images/sort_asc.png (added)
-
tags/1.1/includes/css/images/sort_both.png (added)
-
tags/1.1/includes/css/images/sort_desc.png (added)
-
tags/1.1/includes/css/images/ui-colorpicker.png (added)
-
tags/1.1/includes/css/jquery-ui.min.css (added)
-
tags/1.1/includes/css/jquery.colorpicker.css (added)
-
tags/1.1/includes/css/jquery.dataTables.min.css (added)
-
tags/1.1/includes/demo_csv (added)
-
tags/1.1/includes/demo_csv/demo.csv (added)
-
tags/1.1/includes/fonts (added)
-
tags/1.1/includes/fonts/glyphicons-halflings-regular.eot (added)
-
tags/1.1/includes/fonts/glyphicons-halflings-regular.svg (added)
-
tags/1.1/includes/fonts/glyphicons-halflings-regular.ttf (added)
-
tags/1.1/includes/fonts/glyphicons-halflings-regular.woff (added)
-
tags/1.1/includes/fonts/glyphicons-halflings-regular.woff2 (added)
-
tags/1.1/includes/images (added)
-
tags/1.1/includes/images/loading.gif (added)
-
tags/1.1/includes/js (added)
-
tags/1.1/includes/js/admin_default.js (added)
-
tags/1.1/includes/js/default.js (added)
-
tags/1.1/includes/js/jquery-ui.js (added)
-
tags/1.1/includes/js/jquery.colorpicker.js (added)
-
tags/1.1/includes/js/jquery.dataTables.min.js (added)
-
tags/1.1/languages (added)
-
tags/1.1/languages/color-system-visualizer-de_DE.mo (added)
-
tags/1.1/languages/color-system-visualizer-de_DE.po (added)
-
tags/1.1/languages/color-system-visualizer-de_DE_formal.mo (added)
-
tags/1.1/languages/color-system-visualizer-de_DE_formal.po (added)
-
tags/1.1/readme.txt (added)
-
trunk/color-system-visualizer.php (modified) (1 diff)
-
trunk/includes/cpm_template_register.php (modified) (2 diffs)
-
trunk/languages/color-system-visualizer-de_DE_formal.mo (added)
-
trunk/languages/color-system-visualizer-de_DE_formal.po (added)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
color-system-visualizer/trunk/color-system-visualizer.php
r2077660 r2082430 6 6 Author: WSM – Walter Solbach Metallbau GmbH 7 7 Author URI: https://www.wsm.eu/ 8 Version: 1. 08 Version: 1.1 9 9 Text Domain: 10 10 Domain Path: /languages -
color-system-visualizer/trunk/includes/cpm_template_register.php
r2077660 r2082430 11 11 /* Checks for single template by post type */ 12 12 if ( $post->post_type == 'color' ) { 13 if ( file_exists( plugin_dir_path( __FILE__ ) . 'cpm-single-template.php' ) ) { 13 if ( file_exists( get_stylesheet_directory() . '/cpm-single-template.php' ) ) { 14 return get_stylesheet_directory() . '/cpm-single-template.php'; 15 } else if ( file_exists( plugin_dir_path( __FILE__ ) . 'cpm-single-template.php' ) ) { 14 16 return plugin_dir_path( __FILE__ ) . 'cpm-single-template.php'; 15 17 } … … 23 25 24 26 function get_cpm_color_palette_archive_template( $archive_template ) { 25 global $post;27 global $post; 26 28 27 if ( ( is_archive () ) && ( ( $post->post_type == 'color' ) ) ) { 28 $archive_template = plugin_dir_path( __FILE__ ) . 'cpm-archive-template.php'; 29 return $archive_template; 30 } 31 return $archive_template; 29 if ( ( is_archive () ) && ( ( $post->post_type == 'color' ) ) ) { 30 if ( file_exists( get_stylesheet_directory() . '/cpm-archive-template.php' ) ) { 31 $archive_template = get_stylesheet_directory() . '/cpm-archive-template.php'; 32 } else if ( file_exists( plugin_dir_path( __FILE__ ) . 'cpm-archive-template.php' ) ) { 33 $archive_template = plugin_dir_path( __FILE__ ) . 'cpm-archive-template.php'; 34 } 35 36 return $archive_template; 37 } 38 39 return $archive_template; 32 40 } 33 41 -
color-system-visualizer/trunk/readme.txt
r2077660 r2082430 1 1 === Color System Visualizer === 2 2 Contributors: wsmeu 3 Tags: color, colour, color palette, colour palette, color manager, colour manager, ral, hks, pantone3 Tags: color, colour, color palette, colour palette, color manager, colour manager, color system, colour system, ral, hks, pantone 4 4 Requires at least: 5 5 Tested up to: 5.1.1 6 Stable tag: 1. 06 Stable tag: 1.1 7 7 License: GPLv3 8 8 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 26 26 1. Upload the plugin files to the `/wp-content/plugins/color-system-visualizer` directory, or install the plugin through the WordPress plugins screen directly. 27 27 2. Activate the plugin through the 'Plugins' screen in WordPress. 28 3. Go to newly created custom post type "Color Palette" 28 3. Go to newly created custom post type "Color Palette". 29 29 4. Add new color palette and colors manually or by uploading a CSV file. 30 5. To edit the templates, simply copy `includes/cpm-archive-template.php` and `includes/cpm-single-template.php` into your theme's main folder, e.g. `your-theme/cpm-archive-template.php`. 30 31 31 32 == Screenshots == … … 33 34 == Changelog == 34 35 36 = 1.1 = 37 * Added custom templating functionality 38 * Added german language files 39 35 40 = 1.0 = 36 41 * Initial release for WordPress plugin directory.
Note: See TracChangeset
for help on using the changeset viewer.