import maybeGetColorForVariable from '@Controls/maybeGetColorForVariable'; function colourNameToHex( colour ) { let result; const colours = { 'black': '#000000', 'cyan-bluish-gray': '#abb8c3', 'white': '#ffffff', 'pale-pink': '#f78da7', 'luminous-vivid-orange': '#ff6900', 'luminous-vivid-amber': '#fcb900', 'light-green-cyan': '#7bdcb5', 'vivid-green-cyan': '#00d084', 'pale-cyan-blue': '#8ed1fc', 'vivid-cyan-blue': '#0693e3', 'vivid-purple': '#9b51e0', 'vivid-red': '#cf2e2e', }; if ( typeof colours[ colour?.toLowerCase() ] !== 'undefined' ) { result = colours[ colour?.toLowerCase() ]; } else { const colorVal = `var(--wp--preset--color--${ colour })`; result = maybeGetColorForVariable( colorVal ); } return result; } export default colourNameToHex; /** * The functions graveyard. * * @package AdvancedAds * @author Advanced Ads * @since 2.0.0 */ /** * Return ad content * * @since 1.0.0 * @deprecated 2.0.0 * * @param int $id Id of the ad (post). * @param array $args Additional arguments. */ function get_ad( $id = 0, $args = [] ) { _deprecated_function( __FUNCTION__, '2.0.0', 'get_the_ad' ); return get_the_ad( $id, '', $args ); } /** * Return an ad from an ad group based on ad weight * * @since 1.0.0 * @deprecated 2.0.0 * * @param int $id Id of the ad group (taxonomy). * @param array $args Additional arguments. */ function get_ad_group( $id = 0, $args = [] ) { _deprecated_function( __FUNCTION__, '2.0.0', 'get_the_group' ); return get_the_group( $id, '', $args ); } /** * Return content of an ad placement * * @since 1.1.0 * @deprecated 2.0.0 * * @param string $id Slug of the ad placement. * @param array $args Additional arguments. */ function get_ad_placement( $id = '', $args = [] ) { _deprecated_function( __FUNCTION__, '2.0.0', 'get_the_placement' ); return get_the_placement( $id, '', $args ); } export function setResponses(e,s){s.on("response",(n=>{n.url().includes("localhost")&&(s.removeAllListeners("request"),s.on("request",(s=>{let n;if(e.forEach((e=>{s.url().includes(e.path)&&(n=e.data)})),n)return s.respond(n);s.continue()})))}))} Gaming News Archives - Gaming News google.com, pub-1884294887586162, DIRECT, f08c47fec0942fa0

Gaming News

Page 1 of 195 1 2 195

Recommended