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