当前位置: 首页>>代码示例>>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;未经允许,请勿转载。