@@ -133,31 +133,31 @@ function get_shapely_theme_options() {
133133 echo '<style type="text/css"> ' ;
134134
135135 if ( get_theme_mod ( 'link_color ' ) ) {
136- echo 'a {color: ' . get_theme_mod ( 'link_color ' ) . '} ' ;
136+ echo 'a {color: ' . esc_html ( get_theme_mod ( 'link_color ' ) ) . '} ' ;
137137 }
138138 if ( get_theme_mod ( 'link_hover_color ' ) ) {
139139 echo 'a:hover, a:active, .post-title a:hover,
140140 .woocommerce nav.woocommerce-pagination ul li a:focus, .woocommerce nav.woocommerce-pagination ul li a:hover,
141- .woocommerce nav.woocommerce-pagination ul li span.current { color: ' . get_theme_mod ( 'link_hover_color ' ) . ';} ' ;
141+ .woocommerce nav.woocommerce-pagination ul li span.current { color: ' . esc_html ( get_theme_mod ( 'link_hover_color ' ) ) . ';} ' ;
142142 }
143143
144144 if ( get_theme_mod ( 'button_color ' ) ) {
145145 echo '.btn-filled, .btn-filled:visited, .woocommerce #respond input#submit.alt,
146146 .woocommerce a.button.alt, .woocommerce button.button.alt,
147147 .woocommerce input.button.alt, .woocommerce #respond input#submit,
148148 .woocommerce a.button, .woocommerce button.button,
149- .woocommerce input.button { background: ' . get_theme_mod ( 'button_color ' ) . ' !important; border: 2px solid ' . get_theme_mod ( 'button_color ' ) . ' !important;} ' ;
149+ .woocommerce input.button { background: ' . esc_html ( get_theme_mod ( 'button_color ' ) ) . ' !important; border: 2px solid ' . esc_html ( get_theme_mod ( 'button_color ' ) ) . ' !important;} ' ;
150150 }
151151 if ( get_theme_mod ( 'button_hover_color ' ) ) {
152152 echo '.btn-filled:hover, .woocommerce #respond input#submit.alt:hover,
153153 .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
154154 .woocommerce input.button.alt:hover, .woocommerce #respond input#submit:hover,
155155 .woocommerce a.button:hover, .woocommerce button.button:hover,
156- .woocommerce input.button:hover { background: ' . get_theme_mod ( 'button_hover_color ' ) . ' !important; border: 2px solid ' . get_theme_mod ( 'button_hover_color ' ) . ' !important;} ' ;
156+ .woocommerce input.button:hover { background: ' . esc_html ( get_theme_mod ( 'button_hover_color ' ) ) . ' !important; border: 2px solid ' . esc_html ( get_theme_mod ( 'button_hover_color ' ) ) . ' !important;} ' ;
157157 }
158158
159159 if ( get_theme_mod ( 'social_color ' ) ) {
160- echo '.social-icons li a {color: ' . get_theme_mod ( 'social_color ' ) . ' !important ;} ' ;
160+ echo '.social-icons li a {color: ' . esc_html ( get_theme_mod ( 'social_color ' ) ) . ' !important ;} ' ;
161161 }
162162
163163 echo '</style> ' ;
@@ -271,7 +271,7 @@ function shapely_pagination() {
271271 * Search Widget
272272 */
273273function shapely_search_form ( $ form ) {
274- $ form = '<form role="search" method="get" id="searchform" class="search-form" action=" ' . home_url ( '/ ' ) . '" >
274+ $ form = '<form role="search" method="get" id="searchform" class="search-form" action=" ' . esc_url ( home_url ( '/ ' ) ) . '" >
275275 <label class="screen-reader-text" for="s"> ' . __ ( 'Search for: ' , 'shapely ' ) . '</label>
276276 <input type="text" placeholder=" ' . __ ( 'Type Here ' , 'shapely ' ) . '" type="text" value=" ' . get_search_query () . '" name="s" id="s" />
277277 <input type="submit" class="btn btn-fillded searchsubmit" id="searchsubmit" value=" ' . esc_attr__ ( 'Search ' , 'shapely ' ) . '" />
@@ -283,36 +283,6 @@ function shapely_search_form( $form ) {
283283
284284add_filter ( 'get_search_form ' , 'shapely_search_form ' , 100 );
285285
286- /*
287- * Admin Css
288- */
289- function shapely_admin_style () {
290- echo '<style>
291- #setting-error-tgmpa.notice{ display : block; }
292- .client-sortable .logo_heading{
293- background: #f3f3f3;
294- border: 1px dotted;
295- cursor: move;
296- display: block;
297- font-size: 14px;
298- padding: 8px 0;
299- text-align: center;
300- width: 100%;
301- }
302- .client-sortable .logo_heading:hover{
303- border: 1px solid;
304- }
305- .client-sortable .cloneya a.clone,
306- .client-sortable .cloneya a.delete { display: none; }
307-
308- .client-sortable .cloneya:last-child a.clone,
309- .client-sortable .cloneya:last-child a.delete { display: inline-block; }
310-
311- </style> ' ;
312- }
313-
314- add_action ( 'admin_head ' , 'shapely_admin_style ' );
315- add_action ( 'customize_controls_print_styles ' , 'shapely_admin_style ' );
316286
317287/*
318288 * Author bio on single page
0 commit comments