--- /dev/null
+<?php
+
+namespace Application\Migrations;
+
+use Doctrine\DBAL\Migrations\AbstractMigration;
+use Doctrine\DBAL\Schema\Schema;
+use Symfony\Component\DependencyInjection\ContainerAwareInterface;
+use Symfony\Component\DependencyInjection\ContainerInterface;
+
+/**
+ * Remove isPublic in Entry Table.
+ */
+class Version20170407200919 extends AbstractMigration implements ContainerAwareInterface
+{
+ /**
+ * @var ContainerInterface
+ */
+ private $container;
+
+ public function setContainer(ContainerInterface $container = null)
+ {
+ $this->container = $container;
+ }
+
+ private function getTable($tableName)
+ {
+ return $this->container->getParameter('database_table_prefix').$tableName;
+ }
+
+ /**
+ * @param Schema $schema
+ */
+ public function up(Schema $schema)
+ {
+ $entryTable = $schema->getTable($this->getTable('entry'));
+ $this->skipIf(!$entryTable->hasColumn('is_public'), 'It seems that you already played this migration.');
+
+ $entryTable->dropColumn('is_public');
+ }
+
+ /**
+ * @param Schema $schema
+ */
+ public function down(Schema $schema)
+ {
+ $entryTable = $schema->getTable($this->getTable('entry'));
+ $this->skipIf($entryTable->hasColumn('is_public'), 'It seems that you already played this migration.');
+
+ $entryTable->addColumn('is_public', 'boolean', ['notnull' => false, 'default' => 0]);
+ }
+}
"liip/theme-bundle": "~1.1",
"lexik/form-filter-bundle": "~5.0",
"j0k3r/graby": "~1.0",
- "friendsofsymfony/user-bundle": "2.0.x-dev",
+ "friendsofsymfony/user-bundle": "^2.0",
"friendsofsymfony/oauth-server-bundle": "^1.5",
"stof/doctrine-extensions-bundle": "^1.2",
"scheb/two-factor-bundle": "~2.0",
*/
private $previewPicture;
- /**
- * @var bool
- *
- * @ORM\Column(name="is_public", type="boolean", nullable=true, options={"default" = false})
- *
- * @Groups({"export_all"})
- */
- private $isPublic;
-
/**
* @var string
*
$this->domainName = $domainName;
}
- /**
- * @return bool
- */
- public function isPublic()
- {
- return $this->isPublic;
- }
-
- /**
- * @param bool $isPublic
- */
- public function setIsPublic($isPublic)
- {
- $this->isPublic = $isPublic;
- }
-
/**
* @return ArrayCollection<Tag>
*/
namespace Wallabag\CoreBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
-use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
'required' => true,
'label' => 'entry.edit.title_label',
])
- ->add('is_public', CheckboxType::class, [
- 'required' => false,
- 'label' => 'entry.edit.is_public_label',
- ])
->add('url', TextType::class, [
'disabled' => true,
'required' => false,
$this->logger->debug('DownloadImages: Re-creating jpg');
break;
case 'png':
+ imagealphablending($im, false);
+ imagesavealpha($im, true);
imagepng($im, $localPath, ceil(self::REGENERATE_PICTURES_QUALITY / 100 * 9));
$this->logger->debug('DownloadImages: Re-creating png');
}
$book->setCoverImage('Cover.png', file_get_contents($this->logoPath), 'image/png');
}
- $book->addChapter('Notices', 'Cover2.html', $content_start.$this->getExportInformation('PHPePub').$bookEnd);
-
$book->buildTOC();
/*
$book->addChapter($entry->getTitle(), htmlspecialchars($filename).'.html', $chapter, true, EPub::EXTERNAL_REF_ADD);
}
+ $book->addChapter('Notices', 'Cover2.html', $content_start.$this->getExportInformation('PHPePub').$bookEnd);
+
return Response::create(
$book->getBook(),
200,
# page_title: 'Edit an entry'
# title_label: 'Title'
url_label: 'Url'
- # is_public_label: 'Public'
save_label: 'Gem'
public:
# shared_by_wallabag: "This article has been shared by <a href=%wallabag_instance%'>wallabag</a>"
page_title: 'Eintrag bearbeiten'
title_label: 'Titel'
url_label: 'URL'
- is_public_label: 'Öffentlich'
save_label: 'Speichern'
public:
shared_by_wallabag: "Dieser Artikel wurde mittels <a href='%wallabag_instance%'>wallabag</a> geteilt"
page_title: 'Edit an entry'
title_label: 'Title'
url_label: 'Url'
- is_public_label: 'Public'
save_label: 'Save'
public:
shared_by_wallabag: "This article has been shared by <a href='%wallabag_instance%'>wallabag</a>"
page_title: 'Editar un artículo'
title_label: 'Título'
url_label: 'URL'
- is_public_label: 'Es público'
save_label: 'Guardar'
public:
shared_by_wallabag: "Este artículo se ha compartido con <a href='%wallabag_instance%'>wallabag</a>"
page_title: 'ویرایش مقاله'
title_label: 'عنوان'
url_label: 'نشانی'
- is_public_label: 'عمومی'
save_label: 'ذخیره'
public:
# shared_by_wallabag: "This article has been shared by <a href='%wallabag_instance%'>wallabag</a>"
page_title: "Éditer un article"
title_label: "Titre"
url_label: "Adresse"
- is_public_label: "Public"
save_label: "Enregistrer"
public:
shared_by_wallabag: "Cet article a été partagé par <a href=\"%wallabag_instance%\">wallabag</a>"
page_title: 'Modifica voce'
title_label: 'Titolo'
url_label: 'Url'
- is_public_label: 'Pubblico'
save_label: 'Salva'
public:
# shared_by_wallabag: "This article has been shared by <a href='%wallabag_instance%'>wallabag</a>"
page_title: 'Modificar un article'
title_label: 'Títol'
url_label: 'Url'
- is_public_label: 'Public'
save_label: 'Enregistrar'
public:
shared_by_wallabag: "Aqueste article es estat partejat per <a href='%wallabag_instance%'>wallabag</a>"
page_title: 'Edytuj wpis'
title_label: 'Tytuł'
url_label: 'Adres URL'
- is_public_label: 'Publiczny'
save_label: 'Zapisz'
public:
shared_by_wallabag: "Ten artykuł został udostępniony przez <a href='%wallabag_instance%'>wallabag</a>"
page_title: 'Editar uma entrada'
title_label: 'Título'
url_label: 'Url'
- is_public_label: 'Público'
save_label: 'Salvar'
public:
shared_by_wallabag: "Este artigo foi compartilhado pelo <a href='%wallabag_instance%'>wallabag</a>"
# page_title: 'Edit an entry'
# title_label: 'Title'
url_label: 'Url'
- # is_public_label: 'Public'
save_label: 'Salvează'
public:
# shared_by_wallabag: "This article has been shared by <a href='%wallabag_instance%'>wallabag</a>"
page_title: 'Makaleyi düzenle'
title_label: 'Başlık'
url_label: 'Url'
- is_public_label: 'Herkes tarafından erişime açık olsun mu?'
save_label: 'Kaydet'
public:
# shared_by_wallabag: "This article has been shared by <a href='%wallabag_instance%'>wallabag</a>"
{{ form_label(form.url) }}
{{ form_widget(form.url) }}
</div>
-
- <div class="input-field s12">
- {{ form_widget(form.is_public) }}
- {{ form_label(form.is_public) }}
- </div>
<br>
{{ form_widget(form.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}