@@ 242-253 (lines=12) @@ | ||
239 | ] |
|
240 | ); |
|
241 | ||
242 | if (empty($queuedNodeTranslationAction) && $canPublish) { |
|
243 | $menu->addChild( |
|
244 | 'action.publish', |
|
245 | [ |
|
246 | 'linkAttributes' => [ |
|
247 | 'data-toggle' => 'modal', |
|
248 | 'data-target' => '#pub', |
|
249 | 'class' => 'btn btn--raise-on-hover'.($isFirst ? ' btn-primary btn-save' : ' btn-default'), |
|
250 | ], |
|
251 | ] |
|
252 | ); |
|
253 | } |
|
254 | } else { |
|
255 | if ($canEdit && $canPublish) { |
|
256 | $menu->addChild( |
|
@@ 304-319 (lines=16) @@ | ||
301 | ], |
|
302 | ] |
|
303 | ); |
|
304 | } elseif (empty($queuedNodeTranslationAction) |
|
305 | && !$activeNodeTranslation->isOnline() |
|
306 | && $canPublish |
|
307 | ) { |
|
308 | $menu->addChild( |
|
309 | 'action.publish', |
|
310 | [ |
|
311 | 'linkAttributes' => [ |
|
312 | 'class' => 'btn btn-default btn--raise-on-hover', |
|
313 | 'data-toggle' => 'modal', |
|
314 | 'data-keyboard' => 'true', |
|
315 | 'data-target' => '#pub', |
|
316 | ], |
|
317 | ] |
|
318 | ); |
|
319 | } |
|
320 | ||
321 | if ($canEdit) { |
|
322 | $menu->addChild( |