Changeset 1198558
- Timestamp:
- 07/14/2015 07:28:53 AM (11 years ago)
- Location:
- pixterme/trunk
- Files:
-
- 2 edited
-
admin.php (modified) (3 diffs)
-
pixter-me.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pixterme/trunk/admin.php
r1196847 r1198558 14 14 "id" => "button_text", 15 15 "desc" => __("The text which will appear on the button which is displayed while hovering an image", 'pixter-me'), 16 "default" => __(" Print Image", 'pixter-me')16 "default" => __("Get Prints >>", 'pixter-me') 17 17 ), 18 18 array( … … 21 21 "id" => "button_bg_color", 22 22 "desc" => __("Bacground color of the print button.", 'pixter-me'), 23 "default" => "# 3333CC"23 "default" => "#00B22D" 24 24 ), 25 25 array( … … 43 43 "id" => "selector", 44 44 "desc" => __("Selector for containers including relevant images. Comma separates multiple selectors.", 'pixter-me'), 45 "default" => " #primary, .entry-content"45 "default" => "img" 46 46 ), 47 47 ); 48 48 49 49 $pixter_me_user = get_option('pixter_me_user'); 50 50 51 if (empty($pixter_me_user)) 51 52 { -
pixterme/trunk/pixter-me.php
r1196853 r1198558 68 68 } 69 69 70 $selector = explode(',', $options->selector);71 foreach ($selector as &$sel)72 $sel = trim($sel).' img';73 74 $selector = implode(', ', $selector);75 76 70 echo <<<InlineScript 77 <style>78 .pixter_wrapper79 {80 position: relative;81 display: inline-block;82 }83 .pixter_button84 {85 $cssPos86 padding: 7px 12px!important;87 height: auto!important;88 width: auto!important;89 border-radius: 5px!important;90 line-height: 1!important;91 color: $button_text_color!important;92 background-color: $button_bg_color!important;93 display: none;94 }95 .pixter_button, .pixter_button:hover96 {97 text-decoration: none;98 }99 .pixter_wrapper:hover .pixter_button100 {101 display: inline-block;102 }103 </style>104 71 <script> 105 72 function onInitComplete() 106 73 { 107 74 pLoader.initOnDemand({ 108 "selectors":" $selector", "minHeight":150, "minWidth":150, "position":"$button_position",75 "selectors":"{$options->selector}", "minHeight":150, "minWidth":150, "position":"$button_position", 109 76 "text":"$button_text", "textColor":"$button_text_color", "buttonColor":"$button_bg_color" 110 77 }); … … 117 84 $wp_scripts->done[] = 'pixter_me_inline'; 118 85 } 86 119 87 } 120 88 add_action( 'wp_footer', 'pixter_me_inline_script', 99999 );
Note: See TracChangeset
for help on using the changeset viewer.