當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Gdn::Slice方法代碼示例

本文整理匯總了PHP中Gdn::Slice方法的典型用法代碼示例。如果您正苦於以下問題:PHP Gdn::Slice方法的具體用法?PHP Gdn::Slice怎麽用?PHP Gdn::Slice使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Gdn的用法示例。


在下文中一共展示了Gdn::Slice方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Configure

 public function Configure($AuthenticationSchemeAlias = NULL)
 {
     $Message = T("Please choose an authenticator to configure.");
     if (!is_null($AuthenticationSchemeAlias)) {
         $AuthenticatorInfo = Gdn::Authenticator()->GetAuthenticatorInfo($AuthenticationSchemeAlias);
         if ($AuthenticatorInfo !== FALSE) {
             $this->AuthenticatorChoice = $AuthenticationSchemeAlias;
             if (array_key_exists($AuthenticationSchemeAlias, $this->ConfigureList) && $this->ConfigureList[$AuthenticationSchemeAlias] !== FALSE) {
                 echo Gdn::Slice($this->ConfigureList[$AuthenticationSchemeAlias]);
                 return;
             } else {
                 $Message = sprintf(T("The %s Authenticator does not have any custom configuration options."), $AuthenticatorInfo['Name']);
             }
         }
     }
     $this->SetData('ConfigureMessage', $Message);
     $this->Render();
 }
開發者ID:tautomers,項目名稱:knoopvszombies,代碼行數:18,代碼來源:class.authenticationcontroller.php

示例2: Slice

 public function Slice($SliceName, $Arguments = array())
 {
     $CurrentPath = Gdn::Request()->Path();
     $ExplodedPath = explode('/', $CurrentPath);
     switch ($this instanceof Gdn_IPlugin) {
         case TRUE:
             $ReplacementIndex = 2;
             break;
         case FALSE:
             $ReplacementIndex = 1;
             break;
     }
     if ($ExplodedPath[0] == strtolower(Gdn::Dispatcher()->Application()) && $ExplodedPath[1] == strtolower(Gdn::Dispatcher()->Controller())) {
         $ReplacementIndex++;
     }
     $ExplodedPath[$ReplacementIndex] = $SliceName;
     $SlicePath = implode('/', $ExplodedPath);
     return Gdn::Slice($SlicePath);
 }
開發者ID:tautomers,項目名稱:knoopvszombies,代碼行數:19,代碼來源:class.sliceprovider.php

示例3: GetValue

</h1>
<?php 
$CurrentStep = GetValue('CurrentStep', $this->Data, 0);
$Complete = FALSE;
if ($CurrentStep < 1) {
    // The import hasn't started yet.
    echo '<div class="Info">', T('Garden.Import.Info', 'You\'ve successfully uploaded an import file.
Please review the information below and click <b>Start Import</b> to begin the import.'), '</div>';
} else {
    $Steps = GetValue('Steps', $this->Data, array());
    if (count($Steps) > 0 && !array_key_exists($CurrentStep, $Steps)) {
        // The import is complete.
        $Complete = TRUE;
        // The import is complete.
        echo '<div class="Info">', T('Garden.Import.Complete.Description', 'You have successfully completed an import.
   Click <b>Finished</b> when you are ready.'), '</div>';
        echo Gdn::Slice('/dashboard/role/defaultroleswarning');
    } else {
        // The import is in process.
        echo '<div class="Info">', T('Garden.Import.Continue.Description', 'It appears as though you are in the middle of an import.
   Please choose one of the following options.'), '</div>';
    }
}
include $this->FetchViewLocation('stats', 'import', 'dashboard');
if ($CurrentStep < 1) {
    echo Anchor(T('Start Import'), 'dashboard/import/go', 'Button'), ' ', Anchor(T('Restart'), 'dashboard/import/restart', 'Button');
} elseif (!$Complete) {
    echo Anchor(T('Continue Import'), 'dashboard/import/go', 'Button'), ' ', Anchor(T('Restart'), 'dashboard/import/restart', 'Button');
} else {
    echo Anchor(T('Finished'), 'dashboard/import/restart', 'Button');
}
開發者ID:TiGR,項目名稱:Garden,代碼行數:31,代碼來源:info.php

示例4: Wrap

                  echo $this->Form->TextBox('SignInUrl');
                  echo Wrap(T('The URL where users sign in on your site'));
               ?></li>
               <li><?php
                  echo $this->Form->Label(T('Sign-Out URL'), 'SignOutUrl');
                  echo $this->Form->TextBox('SignOutUrl');
                  echo Wrap(T('The URL where users sign out of your site'));
               ?></li>
            </ul>
            <?php
               echo $this->Form->Close('Save', '', array(
                                 'class' => 'SliceSubmit Button'
                              ));
            ?>
         </td>
         
         <td class="RemoteConfig">
            <div>
               <?php echo T("These are the settings you might need when you configure ProxyConnect on your remote website."); ?>
               <p>
                  <?php echo T("You will probably need to configure Vanilla and your remote application to use a shared Cookie Domain that they can both access. We've
                  tried to guess what that might be, based on your hostname, but you'll need to check this and make sure that it works."); ?>
               </p><br/>
            </div>
            <?php 
               echo Gdn::Slice('dashboard/settings/proxyconnect/integration/proxyconnectmanual/cookie');
            ?>
         </td>
      </tbody>
   </table>
</div>
開發者ID:real-chocopanda,項目名稱:Proxyconnect,代碼行數:31,代碼來源:manual.php

示例5: Wrap

?>
</li>
            <li><?php 
echo $this->Form->Label(T('Sign-Out URL'), 'SignOutUrl');
echo $this->Form->TextBox('SignOutUrl');
echo Wrap(T('The URL where users sign out of your site'));
?>
</li>
         </ul>
         <?php 
echo $this->Form->Close('Save', '', array('class' => 'SliceSubmit Button'));
?>
      </td>
      
      <td class="RemoteConfig">
         <div>
            <?php 
echo T("These are the settings you might need when you configure ProxyConnect on your remote website.");
?>
            <p>
               <?php 
echo T("You will probably need to configure Vanilla and your remote application to use a shared Cookie Domain that they can both access. We've\r\n               tried to guess what that might be, based on your hostname, but you'll need to check this and make sure that it works.");
?>
            </p><br/>
         </div>
         <?php 
echo Gdn::Slice('dashboard/settings/proxyconnect/cookie');
?>
      </td>
   </tbody>
</table>
開發者ID:seedbank,項目名稱:old-repo,代碼行數:31,代碼來源:manual.php


注:本文中的Gdn::Slice方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。