@@ 236-247 (lines=12) @@ | ||
233 | ] |
|
234 | ); |
|
235 | ||
236 | if (empty($queuedNodeTranslationAction) && $canPublish) { |
|
237 | $menu->addChild( |
|
238 | 'action.publish', |
|
239 | [ |
|
240 | 'linkAttributes' => [ |
|
241 | 'data-toggle' => 'modal', |
|
242 | 'data-target' => '#pub', |
|
243 | 'class' => 'btn btn--raise-on-hover'.($isFirst ? ' btn-primary btn-save' : ' btn-default'), |
|
244 | ], |
|
245 | ] |
|
246 | ); |
|
247 | } |
|
248 | } else { |
|
249 | if ($canEdit && $canPublish) { |
|
250 | $menu->addChild( |
|
@@ 298-313 (lines=16) @@ | ||
295 | ], |
|
296 | ] |
|
297 | ); |
|
298 | } elseif (empty($queuedNodeTranslationAction) |
|
299 | && !$activeNodeTranslation->isOnline() |
|
300 | && $canPublish |
|
301 | ) { |
|
302 | $menu->addChild( |
|
303 | 'action.publish', |
|
304 | [ |
|
305 | 'linkAttributes' => [ |
|
306 | 'class' => 'btn btn-default btn--raise-on-hover', |
|
307 | 'data-toggle' => 'modal', |
|
308 | 'data-keyboard' => 'true', |
|
309 | 'data-target' => '#pub', |
|
310 | ], |
|
311 | ] |
|
312 | ); |
|
313 | } |
|
314 | ||
315 | if ($canEdit) { |
|
316 | $menu->addChild( |