Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
page_link_manager_edit_fns.inc
1 <?php
17 require_once SQ_PACKAGES_PATH.'/cms/page_templates/page_asset_listing/page_asset_listing_edit_fns.inc';
18 
32 {
33 
34 
39  function __construct()
40  {
41  parent::__construct();
42 
43  }//end constructor
44 
45 
56  function paintDefaultFormatLinks(&$asset, &$o, $prefix)
57  {
58  ?>
59  <table class="sq-backend-table">
60  <tr>
61  <td class="sq-backend-table-header"><?php echo translate('edit_format') ?></td>
62  <td class="sq-backend-table-header"><?php echo translate('note') ?></td>
63  </tr>
64  <?php
65  $this->_paintDefaultFormatLink($asset->id, 'page_contents', translate('cms_listing_page_contents_desc'));
66  $this->_paintDefaultFormatLink($asset->id, 'no_results', translate('cms_listing_no_results_bodycopy_desc'));
67  $this->_paintDefaultFormatLink($asset->id, 'not_logged_in', translate('cms_link_manager_not_logged_in_bodycopy_desc'));
68 
69  $folder = $asset->getFolder('type_formats');
70  $this->_paintDefaultFormatLink($folder->id, 'default_format', translate('cms_listing_default_asset_desc'));
71  ?>
72  </table>
73  <?php
74 
75  return FALSE;
76 
77  }//end paintDefaultFormatLinks()
78 
79 
80 }//end class
81 
82 
83 ?>