Changeset 3232375
- Timestamp:
- 01/31/2025 03:01:59 AM (13 months ago)
- Location:
- heading-id-copy/trunk
- Files:
-
- 2 added
- 2 edited
-
css/style.css (modified) (1 diff)
-
heading-id-copy.php (modified) (2 diffs)
-
images (added)
-
images/copy.png (added)
Legend:
- Unmodified
- Added
- Removed
-
heading-id-copy/trunk/css/style.css
r3232365 r3232375 2 2 cursor: pointer; 3 3 } 4 5 .copy-icon { 6 width: 0.8em; 7 cursor: pointer; 8 } -
heading-id-copy/trunk/heading-id-copy.php
r3232365 r3232375 33 33 } 34 34 35 return "<h{$tag} class=\"wp-block-heading\" id=\"{$id}\" onclick=\"copyToClipboard('{$id}')\">{$text}</h{$tag}>"; 35 return "<h{$tag} class=\"wp-block-heading\" id=\"{$id}\" onclick=\"copyToClipboard('{$id}')\">{$text} 36 <img src=\"" . plugin_dir_url(__FILE__) . "images/copy.png\" class=\"copy-icon\" alt=\"Copy\"> 37 </h{$tag}>"; 36 38 }, 37 39 $content … … 40 42 return $content; 41 43 } 44 42 45 add_filter('the_content', 'headingcopy_headings'); 43 46
Note: See TracChangeset
for help on using the changeset viewer.