Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Filippo Matteo Riggio committed Feb 3, 2020
2 parents 031e546 + a572bfb commit d314c4c
Show file tree
Hide file tree
Showing 2,234 changed files with 329 additions and 330,531 deletions.
Binary file added .DS_Store
Binary file not shown.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
.DS_Store

.idea/
node_modules/
node_modules/
vendor/
498 changes: 201 additions & 297 deletions composer.lock

Large diffs are not rendered by default.

Binary file added src/app/.DS_Store
Binary file not shown.
4 changes: 3 additions & 1 deletion src/app/Helpers/PrintFieldHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ private static function print_multiple_linked_content()

<div class="col col-xs-12 col-sm-6">
<p><?php echo Lang::get('factotum::content.select_content'); ?></p>
<input id="filter_sortable_source" style="width: 100%" placeholder="filter..">
<ul id="sortable1_<?php echo self::$field->id; ?>" class="connectedSortable source"
data-field_id="<?php echo self::$field->id; ?>">
<?php if ( isset(self::$field->options) ) { ?>
Expand All @@ -543,7 +544,8 @@ private static function print_multiple_linked_content()

<div class="col col-xs-12 col-sm-6">
<p><?php echo Lang::get('factotum::content.to_content'); ?></p>
<ul id="sortable2_<?php echo self::$field->id; ?>" class="connectedSortable"
<input id="filter_sortable_destination" style="width: 100%" placeholder="filter..">
<ul id="sortable2_<?php echo self::$field->id; ?>" class="connectedSortable destination"
data-field_id="<?php echo self::$field->id; ?>">
<?php if ( count($tmp) > 0 ) { ?>
<?php foreach ( $tmp as $opt ) { ?>
Expand Down
Binary file added src/app/Http/Controllers/.DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions src/app/Http/Controllers/FrontController.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public function __construct()
protected function _getContentByURI($uri)
{
$contentSearch = new ContentSearch( $this->pageContentType );

$content = $contentSearch->addWhereCondition( 'abs_url', '=', url('') . '/' . $uri )
->onlyPublished()
->addLimit(1)
Expand All @@ -84,6 +85,7 @@ protected function _getContentByURI($uri)
$content = ( $content && $content->count() > 0 ? $content[0] : null );

if ( !$content ) {

$uriParts = explode( '/' , $uri );
$uri = $uriParts[ count($uriParts) - 1 ];

Expand Down
12 changes: 12 additions & 0 deletions src/app/Setting.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace Kaleidoscope\Factotum;

use Illuminate\Database\Eloquent\Model;

class Setting extends Model
{
protected $fillable = [
'setting_key', 'setting_value'
];
}

0 comments on commit d314c4c

Please sign in to comment.