Doug Stewart avatar Doug Stewart committed 63b2283

Fixed imageradio styling.

Props to @helenhousandi, @pete_schuster and @rarst.

(Was going to make a statement on this being "final" styling, but we all know that's deluded.)

Comments (0)

Files changed (1)

includes/functions/admin.php

 					$tmp_name = $lblg_options_group . '['. $key . ']';
 					$input_name = $option['input'];
 					$input_img = $option['image'];
-					print_r($options);
-					echo sprintf( '<label class="lbimageradio"><input type="radio" name="%s" value="%s" %s /><img src="%s" title="%s" /></label>', $tmp_name, $input_name, checked( $input_name, $options[$key], false ), $input_img, $input_name) . "\n";
+
+					echo sprintf( '<label class="lbimageradio"><input type="radio" class="lbimageradio" name="%s" value="%s" %s /><img src="%s" title="%s" /></label>', $tmp_name, $input_name, checked( $input_name, $options[$key], false ), $input_img, $input_name) . "\n";
 				}
 			} else {
 		 		foreach ( $value['options'] as $opt_key => $opt_value ) {
 		margin: 5px;
 		padding: 5px;
 	}
+	
+	input[type=radio].lbimageradio:checked + img{
+		border-color: #ccc;
+	}
+	
 </style>	
 <?php
 }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.