@@ 76-83 (lines=8) @@ | ||
73 | $output = ''; |
|
74 | ||
75 | switch ( $target ) { |
|
76 | case 'view': { |
|
77 | $getter = get_the_github_view_url(); |
|
78 | if ( ! empty( $text ) ) { |
|
79 | $linktext = $text; |
|
80 | } else { |
|
81 | $linktext = 'View this post on GitHub'; |
|
82 | } |
|
83 | break; |
|
84 | } |
|
85 | case 'edit': { |
|
86 | $getter = get_the_github_edit_url(); |
|
@@ 85-92 (lines=8) @@ | ||
82 | } |
|
83 | break; |
|
84 | } |
|
85 | case 'edit': { |
|
86 | $getter = get_the_github_edit_url(); |
|
87 | if ( ! empty( $text ) ) { |
|
88 | $linktext = $text; |
|
89 | } else { |
|
90 | $linktext = 'Edit this post on GitHub'; |
|
91 | } |
|
92 | break; |
|
93 | } |
|
94 | default: { |
|
95 | $getter = get_the_github_view_url(); |