function raindrops_nav_menu_primary($args = array()) { global $raindrops_link_unique_text; $raindrops_link_unique_text = raindrops_link_unique_text(); $defaults = array('theme_location' => 'primary', 'menu' => '', 'container' => 'div', 'container_class' => 'menu-header', 'container_id' => '', 'menu_class' => 'menu', 'menu_id' => '', 'echo' => false, 'fallback_cb' => 'wp_page_menu', 'before' => '', 'after' => '', 'link_before' => '', 'link_after' => '', 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>', 'depth' => 0, 'walker' => '', 'wrap_element_id' => 'access', 'wrap_mobile_class' => 'raindrops-mobile-menu'); $args = wp_parse_args($args, $defaults); $args = apply_filters('wp_nav_menu_args', $args); if ("show" == raindrops_warehouse('raindrops_show_menu_primary')) { if ($raindrops_link_unique_text == true) { $args['walker'] = new raindrops_unique_identifier_walker_nav_menu(); $raindrops_nav_menu_primary = wp_nav_menu($args); } else { $raindrops_nav_menu_primary = wp_nav_menu($args); } $template = "\n" . str_repeat("\t", 4) . '<p class="' . $args['wrap_mobile_class'] . '"> <a href="#access" class="open"><span class="raindrops-nav-menu-expand" title="nav menu expand">Expand</span></a><span class="menu-text">menu</span> <a href="#%1$s" class="close"><span class="raindrops-nav-menu-shrunk" title="nav menu shrunk">Shrunk</span></a> </p> <%3$s id="' . esc_attr($args['wrap_element_id']) . '" class="clearfix" aria-label="%4$s"> %2$s </%3$s>'; do_action('raindrops_nav_menu_primary'); $html = sprintf($template, esc_attr(raindrops_warehouse('raindrops_page_width')), $raindrops_nav_menu_primary, raindrops_doctype_elements('div', 'nav', false), esc_attr__('Primary Navigation', 'raindrops')); echo apply_filters('raindrops_nav_menu_primary_html', $html); } //raindrops_warehouse( 'raindrops_show_menu_primary' ) }
/** * * * * * */ function raindrops_color_selector($name, $current_val, $i) { global $raindrops_color_ja, $raindrops_color_en_140, $raindrops_color_en, $raindrops_color_anime; $result = sprintf($this->line_select_element, $this->accesskey[$i], 'raindrops_option_values[' . $name . ']', 4, 100); $scheme = raindrops_warehouse("raindrops_color_scheme"); $scheme = ${$scheme}; //1.122 if (isset($scheme) && is_array($scheme)) { $current_color = array_search($current_val, $scheme); $result .= '<option value="' . $current_val . '" style="background:' . $current_val . '" ' . selected(1, 1, false) . '>' . $current_color . '</option>'; foreach ($scheme as $key => $val) { $cr = hexdec(substr($val, 1, 2)) * 0.5; $cg = hexdec(substr($val, 3, 2)) * 0.5; $cb = hexdec(substr($val, 5, 2)) * 0.5; if ($cr + $cg + $cb < 128 && !empty($val)) { $color = "#ccc"; } else { if ($cr > $cg && $cg > $cb) { $color = "#" . dechex($cb) . dechex($cg) . dechex($cr); } elseif ($cr > $cb && $cb > $cg) { $color = "#" . dechex($cg) . dechex($cb) . dechex($cr); } elseif ($cg > $cr && $cr > $cb) { $color = "#" . dechex($cb) . dechex($cg) . dechex($cg); } elseif ($cg > $cb && $cb > $cr) { $color = "#" . dechex($cr) . dechex($cb) . dechex($cg); } elseif ($cb > $cg && $cg > $cr) { $color = "#" . dechex($cr) . dechex($cg) . dechex($cb); } elseif ($cb > $cr && $cr > $cg) { $color = "#" . dechex($cg) . dechex($cr) . dechex($cb); } else { $color = "#000"; } } $result .= '<option value="' . esc_attr($val) . '" style="background:' . esc_attr($val) . ';color:' . esc_attr($color) . '">' . esc_html($key) . '</option>'; } } else { $result .= '<option disabled>' . esc_html('Not selectable', 'raindrops') . '</option>'; } $result .= '</select>'; return $result; }
/** * * */ function raindrops_the_event_calendar_css($main_css) { if ('yes' == get_theme_mod('raindrops_the_events_calendar_status') && 'yes' == raindrops_warehouse_clone('raindrops_plugin_presentation_the_events_calendar')) { $color_type = raindrops_warehouse('raindrops_style_type'); $border_rgba = '52,52,52,1'; switch ($color_type) { case 'dark': $color_type_value = -3; $color_type_value_hover = 3; $border_rgba = '222,222,222,0.3'; break; case 'light': $color_type_value = 4; $color_type_value_hover = -3; $border_rgba = '52,52,52,0.2'; break; default: $color_type_value = false; break; } if ($color_type_value !== false) { $raindrops_gradient = raindrops_gradient_single_clone($color_type_value); $custom_color = raindrops_colors_clone($color_type_value, 'color'); $custom_background = raindrops_colors_clone($color_type_value, 'background'); $custom_color_hover = raindrops_colors_clone($color_type_value_hover, 'color'); $custom_background_hover = raindrops_colors_clone($color_type_value_hover, 'background'); } else { $raindrops_gradient = ''; $custom_color = '#000'; $custom_background = '#fff'; $custom_color_hover = '#fff'; $custom_background_hover = '#000'; } $raindrops_event_calendar_css = '@media screen and (max-width : 920px){ div#tribe-bar-collapse-toggle{color:' . $custom_color . '; background:' . $custom_background . '} } .tribe-events-loop .tribe-events-list .tribe-events-event-cost span{ color:red;} .datepicker{ width:280px;max-width:100%;} .tribe-events-list-widget li{padding:0 10px 20px;} .tribe-events-list-widget ol li{margin:10px 0;} .events-archive .entry-title,.icon-link-no-title, .events-single .entry-title{display:none;} .events-archive.events-gridview #tribe-events-content table .vevent .entry-title{display:block;margin:0;text-align:left;background:transparent;} .events-archive.events-gridview #tribe-events-content table .vevent .tribe-events-month-event-title:hover + .tribe-events-tooltip .entry-title{color:#000;} .events-archive.events-gridview #tribe-events-content .vevent .entry-title, .events-list #tribe-events-content a, .events-list .tribe-events-event-meta a, .events-archive #tribe-events-bar .tribe-bar-views-inner label, .tribe-events-day .tribe-events-day-time-slot h5, .tribe-bar-views-inner, #tribe-bar-form, .datepicker.dropdown-menu, .tribe-events-list .tribe-events-event-cost span, .tribe-events-list-separator-month span, #tribe-events-content .tribe-events-calendar td.tribe-events-othermonth, .single-tribe_events .tribe-events-event-meta{color:' . $custom_color . '; background:' . $custom_background . '} .datepicker thead tr:first-child th:hover, .datepicker tfoot tr th:hover,.datepicker.dropdown-menu td span:hover{color:' . $custom_color_hover . '; background:' . $custom_background_hover . '} .tribe-events-list-widget-events, .events-archive .tribe-events-calendar td.tribe-events-future div[id*="tribe-events-daynum-"], .events-archive .tribe-events-calendar td.tribe-events-future div[id*="tribe-events-daynum-"] > a, .events-archive .tribe-events-calendar td.tribe-events-past div[id*="tribe-events-daynum-"], .events-archive .tribe-events-calendar td.tribe-events-past div[id*="tribe-events-daynum-"] > a, .events-archive #tribe-events, .events-archive #tribe-events-content-wrapper, .single-tribe_events #tribe-events, .single-tribe_events #tribe-events-content-wrapper{' . $raindrops_gradient . '} .rd-type-minimal .tribe-events-calendar td.tribe-events-past div[id*="tribe-events-daynum-"], .rd-type-minimal .tribe-events-calendar td.tribe-events-past div[id*="tribe-events-daynum-"] > a, .rd-type-w3standard .tribe-events-calendar td.tribe-events-past div[id*="tribe-events-daynum-"], .rd-type-w3standard .tribe-events-calendar td.tribe-events-past div[id*="tribe-events-daynum-"] > a{ color:#000; background:#eee:} .single-tribe_events .tribe-events-event-meta, #tribe-events-content .tribe-events-calendar td{border:1px solid rgba(' . $border_rgba . ');} .single-tribe_events #tribe-events-footer, .tribe-events-day #tribe-events-footer, .events-list #tribe-events-footer, .tribe-events-map #tribe-events-footer, .tribe-events-photo #tribe-events-footer{border-top:1px solid rgba(' . $border_rgba . ');} #tribe-events .tribe-events-notices li{background:#d9edf7; color:#000;} #tribe-bar-views .tribe-bar-views-list .tribe-bar-views-option a:hover{background:#fff;color:#000;} .tribe-events-list-widget .tribe-events-widget-link a{margin:1em; background:' . $custom_background . '; text-align:center; padding:1em;display:inline-block;box-sizing:border-box;border:1px solid rgba(' . $border_rgba . ');} .tribe-events-list-widget .tribe-events-widget-link a, .tribe-events-list-widget .tribe-events-list-widget-events .entry-title{font-size:108%;} .tribe-events-list-widget ol li{margin-bottom:10px;} #tribe-bar-collapse-toggle, .tribe-events-sub-nav{background:transparent!important;} #tribe-events-content .tribe-events-calendar td:hover{background:' . $custom_background . '}'; if (WP_DEBUG !== true) { $raindrops_event_calendar_css = str_replace(array("\n", "\r", "\t", '"', '--', '\\"'), array("", "", "", '"', '', '"'), $raindrops_event_calendar_css); } wp_add_inline_style('tribe-events-calendar-style', $raindrops_event_calendar_css); } }
<div class="entry-content clearfix"> <?php raindrops_prepend_entry_content(); raindrops_entry_content(); ?> <br class="clear" /> <?php raindrops_append_entry_content(); ?> </div> <div class="entry-meta"><?php if ('after' == raindrops_warehouse('raindrops_posted_on_position')) { raindrops_posted_on(); } if ('after' == raindrops_warehouse('raindrops_posted_in_position')) { raindrops_posted_in(); } ?> </div> <br class="clear" /> </<?php raindrops_doctype_elements('div', 'article'); ?> > </div> </li> <?php } //while ( have_posts( ) )
"><?php esc_html_e('Skip to content', 'raindrops'); ?> </a></div><?php echo raindrops_skip_links(); ?> <?php } // raindrops_disable_keyboard_focus ?> <div id="<?php echo esc_attr(raindrops_warehouse('raindrops_page_width')); ?> " class="<?php echo esc_attr('yui-' . raindrops_warehouse('raindrops_col_width')); ?> hfeed"> <?php raindrops_prepend_doc(); ?> <header id="top"> <div id="hd" <?php raindrops_doctype_elements('', 'role="banner"'); ?> > <?php if (raindrops_is_place_of_site_title() == true) { echo raindrops_site_title(); } echo raindrops_site_description();
} raindrops_entry_title(); ?> <div class="<?php echo $raindrops_entry_meta_class; ?> "> <?php if ('before' == raindrops_warehouse('raindrops_posted_on_position')) { ?> <div class="posted-on" ><?php raindrops_posted_on(); ?> </div><?php } if ('before' == raindrops_warehouse('raindrops_posted_in_position')) { raindrops_posted_in(); } ?> </div> <div class="entry-content clearfix"> <?php raindrops_prepend_entry_content(); $content = $post->post_content; $content = apply_filters('the_content', $content); $content = apply_filters('raindrops_entry_content', $content); $content = str_replace(']]>', ']]>', $content); $content = str_replace('<span id="more-' . $post->ID . '"></span>', '<!--more-->', $content); $text_array = get_extended($content); if (empty($text_array['more_text'])) {