@@ -41,9 +41,9 @@ discard block |
||
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | return view('laravel-cards::cards.index', compact('cards')) |
| 44 | - ->with('i', (request()->input('page', 1) - 1) * 20) |
|
| 45 | - ->with('searchKeywords', $searchKeywords) |
|
| 46 | - ->with('countriesAvailableForTranslations', $countriesAvailableForTranslations); |
|
| 44 | + ->with('i', (request()->input('page', 1) - 1) * 20) |
|
| 45 | + ->with('searchKeywords', $searchKeywords) |
|
| 46 | + ->with('countriesAvailableForTranslations', $countriesAvailableForTranslations); |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | /***************************************************************************/ |
@@ -248,27 +248,27 @@ discard block |
||
| 248 | 248 | public static function getButtonColorArray() |
| 249 | 249 | { |
| 250 | 250 | $ret = [ |
| 251 | - 'press-red' => 'Red', |
|
| 252 | - 'press-pink' => 'Pink', |
|
| 253 | - 'press-purple' => 'Purple', |
|
| 254 | - 'press-deeppurple' => 'Deep purple', |
|
| 255 | - 'press-indigo' => 'Indigo', |
|
| 256 | - 'press-blue' => 'Blue', |
|
| 257 | - 'press-lightblue' => 'Light blue', |
|
| 258 | - 'press-cyan' => 'Cyan', |
|
| 259 | - 'press-teal' => 'Teal', |
|
| 260 | - 'press-green' => 'Green', |
|
| 261 | - 'press-lightgreen' => 'Light green', |
|
| 262 | - 'press-lime' => 'Lime', |
|
| 263 | - 'press-yellow' => 'Yellow', |
|
| 264 | - 'press-amber' => 'Amber', |
|
| 265 | - 'press-orange' => 'Orange', |
|
| 266 | - 'press-deeporange' => 'Deeporange', |
|
| 267 | - 'press-brown' => 'Brown', |
|
| 268 | - 'press-grey' => 'Grey', |
|
| 269 | - 'press-bluegrey' => 'Blue grey', |
|
| 270 | - 'press-black' => 'Black', |
|
| 271 | - ]; |
|
| 251 | + 'press-red' => 'Red', |
|
| 252 | + 'press-pink' => 'Pink', |
|
| 253 | + 'press-purple' => 'Purple', |
|
| 254 | + 'press-deeppurple' => 'Deep purple', |
|
| 255 | + 'press-indigo' => 'Indigo', |
|
| 256 | + 'press-blue' => 'Blue', |
|
| 257 | + 'press-lightblue' => 'Light blue', |
|
| 258 | + 'press-cyan' => 'Cyan', |
|
| 259 | + 'press-teal' => 'Teal', |
|
| 260 | + 'press-green' => 'Green', |
|
| 261 | + 'press-lightgreen' => 'Light green', |
|
| 262 | + 'press-lime' => 'Lime', |
|
| 263 | + 'press-yellow' => 'Yellow', |
|
| 264 | + 'press-amber' => 'Amber', |
|
| 265 | + 'press-orange' => 'Orange', |
|
| 266 | + 'press-deeporange' => 'Deeporange', |
|
| 267 | + 'press-brown' => 'Brown', |
|
| 268 | + 'press-grey' => 'Grey', |
|
| 269 | + 'press-bluegrey' => 'Blue grey', |
|
| 270 | + 'press-black' => 'Black', |
|
| 271 | + ]; |
|
| 272 | 272 | |
| 273 | 273 | return $ret; |
| 274 | 274 | } |
@@ -127,23 +127,23 @@ |
||
| 127 | 127 | public static function getParametersArray($card) |
| 128 | 128 | { |
| 129 | 129 | $ret = [ |
| 130 | - 'img_col_size_class' => 'col-md-'.$card->img_col_size, |
|
| 131 | - 'text_col_size_class' => 'col-md-'.(12 - $card->img_col_size), |
|
| 132 | - 'bkg_color' => 'background-color: '.$card->bkg_color.';', |
|
| 133 | - 'text_color' => 'color: '.$card->text_color.';', |
|
| 134 | - 'container_wrap' => ($card->container_wrap == 'true') ? 1 : 0, |
|
| 135 | - ]; |
|
| 130 | + 'img_col_size_class' => 'col-md-'.$card->img_col_size, |
|
| 131 | + 'text_col_size_class' => 'col-md-'.(12 - $card->img_col_size), |
|
| 132 | + 'bkg_color' => 'background-color: '.$card->bkg_color.';', |
|
| 133 | + 'text_color' => 'color: '.$card->text_color.';', |
|
| 134 | + 'container_wrap' => ($card->container_wrap == 'true') ? 1 : 0, |
|
| 135 | + ]; |
|
| 136 | 136 | |
| 137 | 137 | switch ($card->img_alignment) { |
| 138 | - case 'left': |
|
| 138 | + case 'left': |
|
| 139 | 139 | $ret['img_col_order_class'] = 'order-md-1'; |
| 140 | - $ret['text_col_order_class'] = 'order-md-2'; |
|
| 141 | - break; |
|
| 142 | - case 'right': |
|
| 140 | + $ret['text_col_order_class'] = 'order-md-2'; |
|
| 141 | + break; |
|
| 142 | + case 'right': |
|
| 143 | 143 | $ret['img_col_order_class'] = 'order-md-2'; |
| 144 | - $ret['text_col_order_class'] = 'order-md-1'; |
|
| 145 | - break; |
|
| 146 | - } |
|
| 144 | + $ret['text_col_order_class'] = 'order-md-1'; |
|
| 145 | + break; |
|
| 146 | + } |
|
| 147 | 147 | |
| 148 | 148 | return $ret; |
| 149 | 149 | } |