All 140 HTML colors as JSON objects with fields:
- name
- hex
- rgb
- families
| ######################################################################## | |
| # OPTIMAL .htaccess FILE FOR SPEED AND SECURITY @Version 2.0.9 - 03/2024 | |
| # ---------------------------------------------------------------------- | |
| # @Author: Andreas Hecht | |
| # @Author URI: https://seoagentur-hamburg.com | |
| # License: GNU General Public License v2 or later | |
| # License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
| ######################################################################## | |
| <?php | |
| /** | |
| * Enable unfiltered_html capability for Editors. | |
| * | |
| * @param array $caps The user's capabilities. | |
| * @param string $cap Capability name. | |
| * @param int $user_id The user ID. | |
| * @return array $caps The user's capabilities, with 'unfiltered_html' potentially added. | |
| */ |
| # ---------------------------------------------------------------------- | |
| # | Komprimierung und Caching | | |
| # ---------------------------------------------------------------------- | |
| # Serve resources with far-future expires headers. | |
| # | |
| # (!) If you don't control versioning with filename-based | |
| # cache busting, you should consider lowering the cache times | |
| # to something like one week. | |
| # |
| <?php global $blog_id; ?> | |
| <?php if ($blog_id == 2) { ?> | |
| <?php } elseif ($blog_id == 1) { ?> | |
| <?php } ?> | |
| // Add site-id class to body functions.php | |
| add_filter('body_class', 'multisite_body_classes'); | |
| function multisite_body_classes($classes) { | |
| $id = get_current_blog_id(); |
| <?php | |
| /* | |
| * Loop through Categories and Display Posts within | |
| */ | |
| $post_type = 'features'; | |
| // Get all the taxonomies for this post type | |
| $taxonomies = get_object_taxonomies( array( 'post_type' => $post_type ) ); | |
| foreach( $taxonomies as $taxonomy ) : |
| <?php | |
| function ak_convert_hex2rgba($color, $opacity = false) { | |
| $default = 'rgb(0,0,0)'; | |
| if (empty($color)) | |
| return $default; | |
| if ($color[0] == '#') | |
| $color = substr($color, 1); | |
| $(document).ready(function() { | |
| $("#pics iframe").each(function(index) { | |
| var ratio = $(this).height() / $(this).width(); | |
| var origHeight = $(this).height(); | |
| var origWidth = $(this).width(); | |
| var self = this; | |
| // bind to window with closure that references the | |
| // iframe since the iframe doesn't get resize events | |
| // until (you know) we resize it. | |
| $(window).resize(function() { |
| function custom_tax_init(){ | |
| //set some options for our new custom taxonomy | |
| $args = array( | |
| 'label' => __( 'My Custom Taxonomy' ), | |
| 'hierarchical' => true, | |
| 'capabilities' => array( | |
| // allow anyone editing posts to assign terms | |
| 'assign_terms' => 'edit_posts', | |
| /* but you probably don't want anyone |