Changeset 2621870
- Timestamp:
- 10/29/2021 09:29:56 AM (4 years ago)
- Location:
- consent-manager/trunk
- Files:
-
- 3 edited
-
consentmanager.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
views/admin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
consent-manager/trunk/consentmanager.php
r2582633 r2621870 28 28 //Actions______________________________________________________________________________________________ 29 29 30 if(function_exists('amp_is_request') && amp_is_request()) 31 { 32 //AMP Code 33 add_action('wp_head', 'amp_script'); 34 add_action('after_body_open_tag', 'amp_body'); 35 } 36 else 37 if((int)$mode === 1){ 38 add_action( 'wp_enqueue_scripts', 'consent_manager_scripts' ); 39 } 40 else 41 { 42 if((int)$mode === 2) 43 { 44 //Serverside blocking 45 add_action('after_setup_theme', 'buffer_start'); 46 add_action('shutdown', 'buffer_end'); 47 } 48 //add_action('wp_enqueue_scripts', 'consent_manager_style'); 49 add_action('wp_footer', 'consent_manager_inline_scripts'); 50 } 30 if(!is_admin()) 31 { 32 if(function_exists('amp_is_request') && amp_is_request()) 33 { 34 //AMP Code 35 add_action('wp_head', 'amp_script'); 36 add_action('after_body_open_tag', 'amp_body'); 37 } 38 else if((int)$mode === 1) 39 { 40 add_action('wp_enqueue_scripts', 'consent_manager_scripts'); 41 } 42 else 43 { 44 if((int)$mode === 2) 45 { 46 //Serverside blocking 47 add_action('after_setup_theme', 'buffer_start'); 48 add_action('shutdown', 'buffer_end'); 49 } 50 //add_action('wp_enqueue_scripts', 'consent_manager_style'); 51 add_action('wp_footer', 'consent_manager_inline_scripts'); 52 } 53 } 51 54 52 55 /** … … 363 366 364 367 $icon = null; //icon for menu 365 add_menu_page('Consent Manager Options', 'Consent Manager', 'manage_options', 'ConsentManagerMain::ADMIN_URL', 'consentManagerDisplayAdminPage', '/wp-content/plugins/ ConsentManager/assets/images/logo20.png', 80);368 add_menu_page('Consent Manager Options', 'Consent Manager', 'manage_options', 'ConsentManagerMain::ADMIN_URL', 'consentManagerDisplayAdminPage', '/wp-content/plugins/consent-manager/assets/images/logo20.png', 80); 366 369 } 367 370 -
consent-manager/trunk/readme.txt
r2568880 r2621870 5 5 Requires at least: 3.0 6 6 Tested up to: 5.8 7 Stable tag: 2.0 7 Stable tag: 2.0.1 8 8 Requires PHP: 5.4 9 9 License: GPLv2 -
consent-manager/trunk/views/admin.php
r2568880 r2621870 36 36 <div class="wrap consentmanager_admin"> 37 37 <h1 id="logo"> 38 <img width="200px" src="<?php echo '/wp-content/plugins/ConsentManager/assets/images/logo_neu.png'; ?>" alt="Consentmanager"/>38 <img width="200px" src="<?php echo content_url().'/plugins/consent-manager/assets/images/logo_neu.png'; ?>" alt="Consentmanager"/> 39 39 </h1> 40 40
Note: See TracChangeset
for help on using the changeset viewer.