} add_action('wp_footer', 'adauga_recaptha'); function adauga_recaptha() { wp_print_scripts('contact_form_7_recaptcha_script'); } function replace_text($text) { $url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; if (strpos($url,'en') !== false) { $text = str_replace('CICLISM', 'CYCLING', $text); $text = str_replace('BASCHET', 'BASKETBALL', $text); $text = str_replace('ATLETISM', 'ATHLETICS', $text); $text = str_replace('TRIATLON', 'TRIATHLON', $text); $text = str_replace('SCRIMĂ', 'FENCING', $text); $text = str_replace('HANDBAL', 'HANDBALL', $text); $text = str_replace('FOTBAL', 'FOOTBALL', $text); $text = str_replace('VOLEI', 'VOLLEYBALL', $text); $text = str_replace('BOX', 'BOXING', $text); $text = str_replace('ESCALADĂ', 'CLIMBING', $text); $text = str_replace('TENIS DE MASĂ', 'TABLE TENNIS', $text); $text = str_replace('TENIS DE CÂMP', 'TENNIS', $text); $text = str_replace('GIMNASTICĂ AEROBICĂ', 'AEROBIC GYMNASTICS', $text); $text = str_replace('ÎNOT', 'SWIMMING', $text); $text = str_replace('POLO PE APĂ', 'WATER POLO', $text); $text = str_replace('Tipuri de costuri', 'Types of costs', $text); $text = str_replace('Cost lunar', 'Monthly cost', $text); $text = str_replace('Cost anul 2023', 'Cost year 2023', $text); $text = str_replace('Cap. 1. Personal administrativ', 'Ch. 1. Administrative staff', $text); $text = str_replace('Manager de proiect', 'Project manager', $text); $text = str_replace('Asistent manager', 'Assistant manager', $text); $text = str_replace('Personal curățenie sală sport', 'Gym cleaning staff', $text); $text = str_replace('Fonduri Europene', 'European funds', $text); $text = str_replace('Subtotal Cap. 1', 'Subtotal Ch. 1', $text); $text = str_replace('Cap. 2. Personal Tehnic', 'Ch. 2. Technical staff', $text); $text = str_replace('Preparatori fizici', 'Physical trainers', $text); $text = str_replace('Nutriționist sportiv', 'Sports nutritionist', $text); $text = str_replace('Psihologi', 'Psychologists', $text); $text = str_replace('Kinetoterapie', 'Physical Therapy', $text); $text = str_replace('Consiliere carieră', 'Career counseling', $text); $text = str_replace('Comunicare și social media', 'Communication and social media', $text); $text = str_replace('Subtotal Cap. 2', 'Subtotal Ch. 2', $text); $text = str_replace('Cap. 3. Cheltuieli administrative', 'Ch. 3. Administrative expenses', $text); $text = str_replace('Chirii (sală fitness, birou, săli ședințe)', 'Rentals (fitness room, office, meeting rooms)', $text); $text = str_replace('Servicii contabile', 'Accounting services', $text); $text = str_replace('Legal services', 'Legal services', $text); $text = str_replace('Servicii IT', 'IT services', $text); $text = str_replace('Servicii foto, grafică, promovare', 'Photo, graphics, promotion services', $text); $text = str_replace('Taxe stat', 'State taxes', $text); $text = str_replace('Alte cheltuieli (curățenie, telefonie, premieri și sponsorizări sportivi, birotica etc.)', 'Other expenses (cleaning, telephone, prizes and sports sponsorships, stationery, etc.)', $text); $text = str_replace('Subtotal Cap. 3', 'Subtotal Ch. 3', $text); $text = str_replace('Cap. 4. Echipamente si servicii', 'Ch. 4. Equipment and services', $text); $text = str_replace('Dezvoltare educațională (cursuri, meditații etc.)', 'Educational development (courses, meditations, etc.)', $text); $text = str_replace('Echipament de pregătire sportivă', 'Sports training equipment', $text); $text = str_replace('Echipament sportiv', 'Sportswear', $text); $text = str_replace('Workshop-uri sportivi, staff, antrenori', 'Sports workshops, staff, coaches', $text); $text = str_replace('Subtotal Cap. 4', 'Subtotal Ch. 4', $text); $text = str_replace('Cost per sportiv/ă', 'Cost per athlete', $text); return $text; } $text = str_replace('ASSISTENT MANAGER', 'ASISTENT MANAGER', $text); $text = str_replace('CRISTINA ANGHEL', 'CRISTINA ANGHEL', $text); return $text; } add_filter('the_content', 'replace_text'); add_action( 'wp_footer', 'mycustom_wp_footer' ); function mycustom_wp_footer() { ?>