/** * Custom builder for link decoration styles. * * Remove bottom borders when using text-decoration setting. * * @since 1.0.1 * * @param string $selector The CSS selector being passed. * @param mixed $value The stored setting value. * * @return string */ public static function link_decorations($selector, $value) { // Set the empty. $build = ''; // Switch our selector. switch ($selector) { case 'text-decoration': $build .= GP_Pro_Builder::text_css('text-decoration', $value); $build .= GP_Pro_Builder::text_css('border-bottom-style', 'none'); break; default: $build .= ''; break; } // Return the CSS to the builder. return $build; }
/** * Checks the settings for field input placeholder text color. * * @param [type] $setup [description] * @param [type] $data [description] * @param [type] $class [description] * @return [type] [description] */ public function placeholder_text_filter($setup, $data, $class) { // Check for a change in the placeholder text color. if (GP_Pro_Builder::build_check($data, 'enews-widget-field-place-text-color')) { // Pull my color variable out of the data array. $color = esc_attr($data['enews-widget-field-place-text-color']); // CSS entries for webkit. $setup .= $class . ' .enews-widget input[type="text"]::-webkit-input-placeholder { color: ' . $color . ' }' . "\n"; $setup .= $class . ' .enews-widget input[type="email"]::-webkit-input-placeholder { color: ' . $color . ' }' . "\n"; // CSS entries for Firefox 18 and below. $setup .= $class . ' .enews-widget input[type="text"]:-moz-placeholder { color: ' . $color . ' }' . "\n"; $setup .= $class . ' .enews-widget input[type="email"]:-moz-placeholder { color: ' . $color . ' }' . "\n"; // CSS entries for Firefox 19 and above. $setup .= $class . ' .enews-widget input[type="text"]::-moz-placeholder { color: ' . $color . ' }' . "\n"; $setup .= $class . ' .enews-widget input[type="email"]::-moz-placeholder { color: ' . $color . ' }' . "\n"; // CSS entries for IE. $setup .= $class . ' .enews-widget input[type="text"]:-ms-input-placeholder { color: ' . $color . ' }' . "\n"; $setup .= $class . ' .enews-widget input[type="email"]:-ms-input-placeholder { color: ' . $color . ' }' . "\n"; } // Return the CSS values. return $setup; }