Changeset 27147


Ignore:
Timestamp:
Feb 3, 2014, 1:55:53 PM (10 years ago)
Author:
JanisV
Message:

Make processed physical albums private

Location:
extensions/physical2virtual
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • extensions/physical2virtual/admin.php

    r27096 r27147  
    99  $conf['physical2virtual'] = array(
    1010    'lock_physical' => isset($_POST['lock_physical']),
     11    'private_physical' => isset($_POST['private_physical']),
    1112    );
    1213  if (isset($_POST['parent_cat']) and $_POST['parent_cat'] > 0)
     
    1920{
    2021  $conf['physical2virtual']['lock_physical'] = isset($_POST['lock_physical']);
     22  $conf['physical2virtual']['private_physical'] = isset($_POST['private_physical']);
    2123  if (isset($_POST['parent_cat']) and $_POST['parent_cat'] > 0)
    2224    $conf['physical2virtual']['parent_cat'] = $_POST['parent_cat'];
  • extensions/physical2virtual/language/en_UK/plugin.lang.php

    r27096 r27147  
    33$lang['Create new virtual albums into'] = 'Create new virtual albums into';
    44$lang['Lock physical albums after converting'] = 'Lock physical albums after converting';
     5$lang['Make physical albums private after converting'] = 'Make physical albums private after converting';
    56$lang['Convert now'] = 'Convert now';
    67$lang['Convertion done'] = 'Convertion done';
  • extensions/physical2virtual/language/ru_RU/plugin.lang.php

    r27096 r27147  
    22
    33$lang['Create new virtual albums into'] = 'Создавать новые виртуальные альбомы в';
    4 $lang['Lock physical albums after converting'] = 'Блоикровать физические альбомы после конвертирования';
     4$lang['Lock physical albums after converting'] = 'Блокировать физические альбомы после конвертирования';
     5$lang['Make physical albums private after converting'] = 'Делать физические альбомы приватными после конвертирования';
    56$lang['Convert now'] = 'Конвертировать сейчас';
    67$lang['Convertion done'] = 'Конвертирование выполнено';
  • extensions/physical2virtual/main.inc.php

    r27146 r27147  
    6565        }
    6666      }
     67      if (isset($conf['physical2virtual']['private_physical']) and $conf['physical2virtual']['private_physical'])
     68      {
     69        set_cat_status(array($row['id']), 'private');
     70      }
    6771    }
    6872    else
  • extensions/physical2virtual/maintain.inc.php

    r27096 r27147  
    1414    'parent_cat' => null,
    1515    'lock_physical' => false,
     16    'private_physical' => false,
    1617    'update_on_manual' => true,
    1718    'update_on_upload' => false,
  • extensions/physical2virtual/template/admin.tpl

    r27096 r27147  
    2020    <input type="checkbox" id="lock_physical" name="lock_physical"{if $physical2virtual.lock_physical} checked="checked"{/if}>
    2121    <label for="lock_physical">
    22       <b>{'Lock physical albums after converting'|@translate}</b>
     22      <b>{'Lock physical albums after converting'|@translate}</b>
     23    </label>
     24  </li>
     25  <li>
     26    <input type="checkbox" id="private_physical" name="private_physical"{if $physical2virtual.private_physical} checked="checked"{/if}>
     27    <label for="private_physical">
     28      <b>{'Make physical albums private after converting'|@translate}</b>
    2329    </label>
    2430  </li>
Note: See TracChangeset for help on using the changeset viewer.