admin notices wordpress plugin

Solutions on MaxInterview for admin notices wordpress plugin by the best coders in the world

showing results for - "admin notices wordpress plugin"
Andrea
02 Mar 2016
1<h2><?php esc_attr_e( 'Admin Notices', 'WpAdminStyle' ); ?></h2>
2
3<p>
4	<?php
5	printf(
6		// translators: Leave always a hint for translators to understand the placeholders.
7		__( 'Define type via parameter (same as CSS classes) with <a href="%s" target="_blank">function add_settings_error()</a>, or use class(es) on a wrapping <code>div</code>.',
8		'WpAdminStyle' ), 'https://developer.wordpress.org/reference/functions/add_settings_error/'
9	);
10	?>
11</p>
12<p>
13	<?php
14	printf(
15		// translators: Leave always a hint for translators to understand the placeholders.
16		__( 'Since WordPress version 4.2 there are more classes and paths available. See <a href="%s" target="_blank">this post on make.w.org</a> for further details.', 'WpAdminStyle' ),
17		'https://make.wordpress.org/core/2015/04/23/spinners-and-dismissible-admin-notices-in-4-2/'
18	);
19	?>
20</p>
21<p>
22	<?php
23	_e( 'Note: The <code>inline</code> class is only to leave the notices here. On default WordPress will hide them via javascript.', 'WpAdminStyle' );
24	?>
25</p>
26
27<div class="notice notice-error inline">
28	<p>
29		<?php
30		printf(
31			// translators: Leave always a hint for translators to understand the placeholders.
32			esc_attr__( 'class %1$s with paragraph and %2$s class', 'WpAdminStyle' ),
33			'<code>.notice-error</code>',
34			'<code>.inline</code>'
35		);
36		?>
37	</p>
38</div>
39
40<div class="notice notice-warning inline">
41	<p>
42		<?php
43		printf(
44			// translators: Leave always a hint for translators to understand the placeholders.
45			esc_html__( 'class %1$s with paragraph and %2$s class', 'WpAdminStyle' ),
46			'<code>.notice-warning</code>',
47			'<code>.inline</code>'
48		);
49		?>
50	</p>
51</div>
52
53<div class="notice notice-success inline">
54	<p>
55		<?php
56		printf(
57			// translators: Leave always a hint for translators to understand the placeholders.
58			esc_html__( 'class %1$s with paragraph and %2$s class', 'WpAdminStyle' ),
59			'<code>.notice-success</code>',
60			'<code>.inline</code>'
61		);
62		?>
63	</p>
64</div>
65
66<div class="notice notice-info is-dismissible inline">
67	<p>
68		<?php
69		printf(
70			// translators: Leave always a hint for translators to understand the placeholders.
71			esc_attr__( 'class %1$s with paragraph include %2$s  and %3$s class', 'WpAdminStyle' ),
72			'<code>.notice-info</code>',
73			'<code>.is-dismissible</code>',
74			'<code>.inline</code>'
75		);
76		?>
77	</p>
78</div>
79
80<div class="notice notice-info inline">
81	<p>
82		<?php
83		printf(
84			// translators: %1$s is a code fragment for the notice information and %2$s is the inline class code.
85			esc_attr__( 'class %1$s with paragraph and %2$s class', 'WpAdminStyle' ),
86			'<code>.notice-info</code>',
87			'<code>.inline</code>'
88		);
89		?>
90	</p>
91</div>
similar questions
queries leading to this page
admin notices wordpress plugin